/* Centro Médico CURIS — nueva portada editorial, sin frameworks ni imágenes externas. */
:root{
  --ink:#0b2b42; --deep:#06273d; --blue:#1887ae; --teal:#079b9e;
  --paper:#f9fbfb; --muted:#617789; --focus:#27c9c4;
}
*,*::before,*::after{box-sizing:border-box}
html{min-height:100%}
body.curis-auth{margin:0;min-height:100vh;min-width:320px;font-family:"Segoe UI",Inter,Arial,sans-serif;color:var(--ink);background:#e8f0f2;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait}
[hidden]{display:none!important}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.curis-layout{min-height:100vh;min-height:100svh;padding:clamp(10px,2.2vw,28px);display:grid;place-items:center;background:radial-gradient(circle at 5% 4%,#d1eff1 0,transparent 32%),radial-gradient(circle at 92% 90%,#d3e5ef 0,transparent 30%),#eaf2f3}
.curis-shell{width:min(1510px,100%);min-height:min(855px,calc(100svh - 56px));display:grid;grid-template-columns:minmax(0,1.03fr) minmax(430px,.97fr);border:1px solid rgba(255,255,255,.8);border-radius:34px;overflow:hidden;background:var(--paper);box-shadow:0 22px 78px rgba(12,57,74,.13),0 2px 8px rgba(8,55,72,.05)}
/* Lado izquierdo: composición asimétrica que no utiliza fotografía de fondo. */
.curis-story{position:relative;isolation:isolate;min-height:730px;padding:clamp(30px,3.2vw,52px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:radial-gradient(ellipse at 87% 55%,rgba(13,133,156,.54),transparent 55%),linear-gradient(145deg,#08253c 0%,#073d56 52%,#05687b 100%);color:#fff}
.story-grid{position:absolute;z-index:-1;inset:0;opacity:.17;background-image:linear-gradient(rgba(164,239,232,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(164,239,232,.16) 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(120deg,transparent 10%,#000 100%)}
.story-glow{position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
.story-glow-one{width:430px;height:430px;right:-230px;top:-200px;background:radial-gradient(circle,rgba(24,214,190,.33),transparent 70%)}
.story-glow-two{width:490px;height:490px;left:-275px;bottom:-220px;background:radial-gradient(circle,rgba(22,141,194,.35),transparent 68%)}
.story-header,.story-bottom{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px}
.curis-logo{display:flex;align-items:center;justify-content:center;width:173px;height:84px;background:#fff;border-radius:18px;overflow:hidden;padding:0;text-decoration:none;box-shadow:0 14px 30px rgba(0,16,34,.15)}
.curis-logo img{width:170px;height:170px;max-width:none;flex:0 0 170px;object-fit:contain}
.story-number{font-size:10px;letter-spacing:.19em;font-weight:700;color:rgba(225,251,255,.75);white-space:nowrap}
.story-number span{margin:0 8px;color:#5fd7cf}
.story-main{position:relative;padding-top:20px}
.story-kicker{display:flex;align-items:center;gap:12px;letter-spacing:.17em;font-size:11px;font-weight:800;color:#a7e5e3}
.story-spark{width:8px;height:8px;background:#52e3ce;border-radius:50%;box-shadow:0 0 0 5px rgba(82,227,206,.14)}
.story-main h1{max-width:680px;font-size:clamp(54px,5.2vw,85px);letter-spacing:-.07em;font-weight:800;line-height:1.04;margin:23px 0 24px}
.story-main h1 em{font-style:normal;color:#7be1d3}
.story-subtitle{position:relative;z-index:1;max-width:440px;font-size:17px;line-height:1.6;color:#c1dce6;margin:0}
.story-visual{position:relative;min-height:228px;margin:28px 5px 8px;isolation:isolate}
.orbital{position:absolute;border:1px solid rgba(127,230,220,.32);border-radius:50%;left:42%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
.orbital-a{width:260px;height:260px}.orbital-b{width:345px;height:345px;opacity:.38}
.orbital-core{position:absolute;left:42%;top:49%;transform:translate(-50%,-50%);width:95px;height:95px;display:grid;place-items:center;border:1px solid rgba(194,255,252,.45);border-radius:29px;background:linear-gradient(135deg,rgba(37,194,190,.53),rgba(31,114,166,.45));backdrop-filter:blur(12px);box-shadow:0 15px 35px rgba(0,29,59,.22);color:#d7fffb}
.orbital-core svg{width:48px;height:48px}
.story-wave{position:absolute;left:0;right:0;top:51%;z-index:-1;color:#62dfd8;opacity:.47}
.story-wave svg{width:100%;height:100px}
.story-label{position:absolute;z-index:2;display:flex;align-items:center;gap:15px;border:1px solid rgba(203,255,252,.18);background:rgba(4,48,73,.53);backdrop-filter:blur(12px);padding:12px 15px;border-radius:12px;color:#c1efed;font-size:10px;letter-spacing:.13em;font-weight:800;white-space:nowrap;box-shadow:0 12px 24px rgba(0,21,42,.14)}
.story-label span{font-size:18px;line-height:1;color:#85f4de}
.story-label-top{top:12px;right:5%}.story-label-bottom{bottom:8px;left:1%}
.story-bottom{font-size:12px;letter-spacing:.02em;color:#b8dbe5}
.story-bottom p{margin:0;text-align:right}
.story-index{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:800;letter-spacing:.10em;color:#e3ffff}
.story-index-line{width:36px;height:1px;background:#7bddd8}
.story-index-muted{color:#6592a0}
/* Lado derecho: formulario visible, con selector horizontal de tres perfiles. */
.curis-entry{position:relative;min-width:0;padding:clamp(28px,3.6vw,62px) clamp(28px,4.4vw,77px) 24px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#fff,#f8fbfb 73%)}
.entry-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
/* CURIS+: recuadro completo en cualquier tamaño de pantalla */
.entry-monogram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 115px;
    min-width: 115px;
    height: 45px;
    padding: 0 24px 0 14px;
    box-sizing: border-box;
    white-space: nowrap;

    background: #e6f5f5;
    color: #086d87;
    border: 1px solid #d3eeee;
    border-radius: 13px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}
.entry-monogram span {
    position: absolute;
    top: 5px;
    right: 8px;
    margin: 0;
    padding: 0;
    color: #0ba4a1;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}


.entry-help{display:flex;align-items:center;gap:8px;border:0;background:none;color:#38596a;font-size:12px;font-weight:700;padding:8px 0}
.entry-help svg{width:19px;height:19px;color:#168cab}
.entry-help:hover{color:#059995}
.entry-inner{width:min(100%,510px);margin:30px auto 36px}
.entry-eyebrow{display:flex;align-items:center;gap:11px;color:#088a96;font-weight:850;font-size:11px;letter-spacing:.18em}
.entry-eyebrow-line{height:2px;width:28px;background:#14b4b0}
.entry-inner h2{font-size:clamp(42px,3.6vw,62px);line-height:1.07;font-weight:800;letter-spacing:-.065em;margin:19px 0 14px}
.entry-inner h2 span{color:#0aa69f}
.entry-copy{font-size:14.5px;line-height:1.65;color:#6a7d8a;max-width:430px;min-height:45px;margin:0 0 34px}
.profile-section{margin-bottom:27px}
.field-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.field-row-title{font-size:14px;font-weight:750;color:#18384a}.field-row-caption{font-size:9.5px;font-weight:850;letter-spacing:.14em;color:#8a9ba5}
.profile-switch{padding:5px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#e9f1f2;border:1px solid #e0ebee;border-radius:17px}
.profile-option{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-width:0;min-height:77px;border:1px solid transparent;border-radius:13px;background:transparent;color:#6f8793;font-size:12px;font-weight:750;transition:background .2s ease,box-shadow .2s ease,color .2s ease,transform .2s ease}
.profile-option svg{width:22px;height:22px}
.profile-option:hover{color:#0a8191;background:rgba(255,255,255,.54)}
.profile-option.is-selected{background:#fff;color:#087f91;border-color:#d2e7e7;box-shadow:0 5px 16px rgba(12,76,94,.11);transform:translateY(-1px)}
.selected-hint{display:flex;align-items:center;gap:9px;margin-top:13px;color:#66818a;font-size:12px;min-height:20px}
.selected-indicator{display:block;flex:0 0 6px;width:6px;height:6px;background:#19bba7;border-radius:50%}
.curis-field{margin-bottom:18px}
.curis-field label{display:block;font-size:13px;color:#28475a;font-weight:750;margin-bottom:9px}
.input-wrap{display:flex;align-items:center;height:57px;border:1.5px solid #dce8eb;border-radius:14px;background:#fff;transition:border-color .2s,box-shadow .2s;overflow:hidden}
.input-wrap:focus-within{border-color:#0caaa4;box-shadow:0 0 0 4px rgba(12,170,164,.11)}
.input-wrap>svg{flex:0 0 21px;width:21px;height:21px;margin-left:18px;color:#77a0aa}
.input-wrap input{height:100%;width:100%;min-width:0;border:0;outline:0;padding:0 14px;color:#15364b;font-size:14px;background:transparent}
.input-wrap input::placeholder{color:#9aadb5}
.password-toggle{flex:0 0 44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;margin-right:5px;color:#8196a0}
.password-toggle:hover{color:#088a98;background:#edf8f7}
.password-toggle svg{width:20px;height:20px}
.form-alert{padding:12px 14px;color:#a22a38;background:#fff1f2;border:1px solid #f4cbd1;border-radius:11px;font-size:13px;line-height:1.5;white-space:pre-line;margin:0 0 14px}
.curis-submit{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:62px;padding:7px 8px 7px 22px;border:0;border-radius:16px;background:linear-gradient(110deg,#0c8199,#069c98);color:#fff;font-size:15px;font-weight:800;letter-spacing:.01em;box-shadow:0 13px 24px rgba(0,130,143,.19);transition:transform .17s,box-shadow .17s,filter .17s;margin-top:6px}
.curis-submit:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 16px 26px rgba(0,130,143,.27);filter:brightness(1.04)}
.curis-submit-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:rgba(255,255,255,.18)}
.curis-submit-icon svg{width:22px;height:22px}
.curis-spinner{display:none;width:21px;height:21px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:curis-spin .7s linear infinite}
.curis-submit.is-loading .submit-arrow{display:none}.curis-submit.is-loading .curis-spinner{display:block}
.entry-trust{margin-top:19px;display:flex;align-items:center;justify-content:center;gap:8px;color:#8da0a8;font-size:11.5px;text-align:center;line-height:1.4}
.entry-trust svg{width:14px;height:14px;flex:0 0 14px}
.entry-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:22px;border-top:1px solid #ebf0f2;color:#93a5ae;font-size:11px}
.footer-deco{display:flex;gap:5px}.footer-deco i{width:6px;height:6px;background:#d1e5e6;border-radius:50%}.footer-deco i:first-child{background:#1ab7a9}
.help-panel{position:absolute;z-index:10;top:100px;right:35px;width:min(340px,calc(100% - 60px));border:1px solid #d9e6e9;border-radius:17px;padding:20px;background:#fff;box-shadow:0 22px 48px rgba(7,50,72,.18)}
.help-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.help-top button{width:30px;height:30px;border:0;border-radius:50%;background:#e9f5f5;font-size:22px;color:#456577}
.help-panel p{font-size:12.5px;line-height:1.65;color:#627e8d;margin:12px 0 0}
@keyframes curis-spin{to{transform:rotate(360deg)}}
@media(max-width:1130px){
  .curis-shell{grid-template-columns:minmax(0, .89fr) minmax(420px,1.11fr)}
  .curis-story{padding:32px;min-height:690px}
  .story-main h1{font-size:clamp(51px,5.3vw,68px)}
  .curis-entry{padding:34px 38px 24px}
  .story-number{font-size:9px}
}
@media(max-width:860px){
  .curis-layout{padding:12px}
  .curis-shell{grid-template-columns:1fr;max-width:660px;min-height:auto;border-radius:26px}
  .curis-story{min-height:auto;padding:27px 30px 24px}
  .story-header{margin-bottom:39px}
  .curis-logo{width:137px;height:66px;border-radius:13px}.curis-logo img{width:140px;height:140px;flex-basis:140px}
  .story-main h1{font-size:clamp(42px,7.8vw,62px);margin:16px 0}
  .story-subtitle{font-size:14px;max-width:500px}
  .story-visual{display:none}
  .story-bottom{margin-top:22px}
  .curis-entry{padding:27px 30px 25px}
  .entry-inner{margin:22px auto 28px}
  .entry-inner h2{font-size:clamp(40px,7vw,54px)}
  .entry-copy{min-height:auto;margin-bottom:28px}
}
@media(max-width:480px){
  .curis-layout{padding:0;background:#fff}
  .curis-shell{border-radius:0;border:0;box-shadow:none}
  .curis-story{padding:23px 22px 22px}
  .story-header{margin-bottom:28px}
  .story-number{letter-spacing:.07em;font-size:8.5px}
  .curis-logo{width:116px;height:57px}.curis-logo img{width:125px;height:125px;flex-basis:125px}
  .story-kicker{font-size:9px}
  .story-main h1{font-size:clamp(39px,10vw,50px);margin:12px 0}
  .story-subtitle{font-size:13px}
  .story-bottom{margin-top:16px}
  .story-bottom p{font-size:10px}
  .curis-entry{padding:20px 22px 25px}
  .entry-inner{margin:24px auto 30px}
  .entry-inner h2{font-size:43px}
  .profile-option{font-size:11px;min-height:72px}
  .field-row-caption{font-size:8px}
  .help-panel{top:78px;right:15px;width:calc(100% - 30px)}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ================================================================
   CURIS | Corrección de escritorio adaptable (12-11-2026)
   - El portal ocupa la ventana disponible.
   - Reduce el espacio a los lados y entre panel/formulario.
   - Compacta la altura en laptops sin alterar el diseño móvil.
   ================================================================ */
@media (min-width: 861px) {
  html, body.curis-auth { min-height: 100%; }
  .curis-layout {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px;
    display: block;
  }
  .curis-shell {
    width: 100%;
    max-width: none;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    min-height: 660px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 22px;
  }
  .curis-story {
    min-height: 0;
    padding: clamp(24px, 2.4vw, 46px);
  }
  .story-main h1 {
    font-size: clamp(49px, 4.2vw, 82px);
    margin: 16px 0 18px;
  }
  .story-visual {
    min-height: clamp(110px, 18vh, 210px);
    margin: 14px 5px 4px;
  }
  .curis-entry {
    min-height: 0;
    padding: clamp(22px, 2.4vw, 44px) clamp(26px, 3vw, 56px) 18px;
    gap: 0;
  }
  .entry-inner {
    width: 100%;
    max-width: 760px;
    margin: 12px 0 18px;
  }
  .entry-inner h2 {
    font-size: clamp(43px, 3.2vw, 62px);
    margin: 14px 0 10px;
  }
  .entry-copy { min-height: 0; margin-bottom: 22px; }
  .profile-section { margin-bottom: 19px; }
  .profile-option { min-height: 70px; }
  .selected-hint { margin-top: 10px; }
  .curis-field { margin-bottom: 15px; }
  .input-wrap { height: 53px; }
  .curis-submit { min-height: 57px; }
  .entry-trust { margin-top: 13px; }
  .entry-footer { padding-top: 14px; }
}
/* Altura típica de una laptop: se compacta sin esconder el botón. */
@media (min-width: 861px) and (max-height: 820px) {
  .curis-shell { min-height: 615px; }
  .curis-story { padding: 24px 36px; }
  .curis-logo { width: 144px; height: 70px; }
  .curis-logo img { width: 146px; height: 146px; flex-basis: 146px; }
  .story-main { padding-top: 4px; }
  .story-main h1 { font-size: clamp(46px, 4vw, 68px); margin: 12px 0; }
  .story-subtitle { font-size: 15px; line-height: 1.45; }
  .story-visual { min-height: 120px; margin: 6px 5px 2px; }
  .orbital-a { width: 190px; height: 190px; }
  .orbital-b { width: 260px; height: 260px; }
  .orbital-core { width: 70px; height: 70px; border-radius: 20px; }
  .orbital-core svg { width: 36px; height: 36px; }
  .curis-entry { padding: 18px 35px 12px; }
  /* CURIS+ conserva su ancho de 115px también en laptops. */
  .entry-inner { margin: 8px 0 10px; }
  .entry-inner h2 { font-size: clamp(42px, 3vw, 52px); margin: 10px 0 7px; }
  .entry-copy { margin-bottom: 14px; line-height: 1.4; }
  .profile-section { margin-bottom: 10px; }
  .field-row { margin-bottom: 8px; }
  .profile-option { min-height: 57px; gap: 3px; }
  .profile-option svg { width: 18px; height: 18px; }
  .selected-hint { margin-top: 6px; font-size: 11px; }
  .curis-field { margin-bottom: 10px; }
  .curis-field label { margin-bottom: 6px; }
  .input-wrap { height: 45px; }
  .curis-submit { min-height: 50px; }
  .curis-submit-icon { width: 39px; height: 39px; flex-basis: 39px; }
  .entry-trust { margin-top: 8px; font-size: 10px; }
  .entry-footer { padding-top: 9px; }
}
/* Escritorios bajos o navegador con zoom: permitir scroll, no recortar contenido. */
@media (min-width: 861px) and (max-height: 640px) {
  .curis-shell { min-height: 615px; height: auto; }
}



/* Footer discreto de CURIS */
.entry-footer .footer-copyright {
    color: #94a3ad;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
}

.entry-footer .footer-separator {
    color: #c4cdd2;
    margin: 0 5px;
}

/* Enlace con aspecto de texto normal */
.entry-footer a.footer-sitca,
.entry-footer a.footer-sitca:link,
.entry-footer a.footer-sitca:visited {
    color: #8799a4 !important;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: 0;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Efecto al pasar el cursor */
.entry-footer a.footer-sitca:hover {
    color: #536b79 !important;
    text-decoration: underline !important;
    background: transparent !important;
    transform: none;
}
