/* ==========================================================================
   BLAU · Clínica Dental — web del paciente
   Blanco y azul claro. Tipografía grande y botones amplios (también para
   personas mayores). Mejora progresiva: sin JS/animaciones se lee todo.
   ========================================================================== */
:root {
  --white: #FFFFFF;
  --paper: #F7FBFE;
  --ice: #EEF6FC;
  --mist: #E1EEF9;
  --sky: #C4E0F5;
  --blue-300: #93C6EC;
  --blue-400: #5FA8E0;
  --blue: #2C78C0;          /* botones y enlaces (AA sobre blanco) */
  --blue-700: #1D5E9C;
  --navy: #0B2540;          /* texto */
  --ink-2: #3D5670;
  --ink-3: #6A8098;
  --line: #D7E6F3;
  --line-2: #E8F1F9;
  --ok: #23946B;
  --amber: #D98A1C;
  --violet: #6C78E6;
  --urgent: #D9534F;
  --urgent-bg: #FDEEEE;
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, .06), 0 2px 8px rgba(44, 120, 192, .06);
  --shadow: 0 2px 6px rgba(11, 37, 64, .05), 0 18px 40px -18px rgba(44, 120, 192, .28);
  --shadow-lg: 0 30px 80px -30px rgba(29, 94, 156, .45);
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 72px;
  --gut: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font: 400 18px/1.6 var(--f-text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.fine { font-size: 14px; color: var(--ink-3); }
.eyebrow { font: 600 13px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
em { font-style: italic; color: var(--blue); }

/* --------------------------------------------------------------- Botones */
.btn {
  --bg: var(--white); --fg: var(--navy); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--primary { --bg: var(--blue); --fg: #fff; --bd: var(--blue); }
.btn--primary:hover { --bg: var(--blue-700); --bd: var(--blue-700); }
.btn--ghost { --bg: transparent; --bd: var(--line); --fg: var(--navy); }
.btn--ghost:hover { --bg: var(--white); }
.btn--urgent { --bg: var(--white); --fg: var(--urgent); --bd: #F3C4C2; }
.btn--urgent:hover { --bg: var(--urgent-bg); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--urgent); box-shadow: 0 0 0 0 rgba(217, 83, 79, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 83, 79, .45); } 70% { box-shadow: 0 0 0 10px rgba(217, 83, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(35, 148, 107, .5); animation: pulseok 2s infinite; vertical-align: middle; }
@keyframes pulseok { 0% { box-shadow: 0 0 0 0 rgba(35, 148, 107, .45); } 70% { box-shadow: 0 0 0 8px rgba(35, 148, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 148, 107, 0); } }

/* --------------------------------------------------------------- Navegación */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 40;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  background: rgba(247, 251, 254, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 36px; height: 36px; }
.brand-mark rect { fill: var(--blue); }
.brand-mark path { fill: #fff; }
.brand-word { font: 500 26px/1 var(--f-display); letter-spacing: -.02em; display: inline-flex; flex-direction: column; color: var(--navy); }
.brand-word small { font: 600 10.5px/1.4 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--blue); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-mine { color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang button { border: 0; background: none; padding: 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lang button[aria-pressed="true"] { background: var(--mist); color: var(--blue-700); }

/* --------------------------------------------------------------- Recorrido (hero + plano) */
.journey {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 0 clamp(20px, 3vw, 48px); padding: 0 0 0 var(--gut); position: relative;
  background:
    radial-gradient(1200px 700px at 85% 0%, rgba(196, 224, 245, .55), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.journey-text { padding-top: var(--nav-h); }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 60px; position: relative; }
.hero-title { font: 360 clamp(48px, 6.4vw, 96px)/.98 var(--f-display); letter-spacing: -.035em; margin-bottom: 28px; font-variation-settings: 'opsz' 144; }
.hero-title em { display: block; font-weight: 300; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 34ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font: 500 22px/1.1 var(--f-display); color: var(--navy); }
.hero-facts span { font-size: 14px; color: var(--ink-3); }
.scroll-hint { position: absolute; bottom: 28px; left: 0; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: 0; }
.scroll-hint span:first-child { width: 22px; height: 36px; border: 1.5px solid var(--blue-300); border-radius: 12px; position: relative; }
.scroll-hint span:first-child::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--blue-400); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.steps { list-style: none; margin: 0; padding: 0 0 18vh; counter-reset: s; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; padding: 40px 0; opacity: .32; transition: opacity .5s ease; }
.step.is-active { opacity: 1; }
.step-n { font: 600 13px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.step h2 { font: 380 clamp(34px, 3.6vw, 54px)/1.05 var(--f-display); letter-spacing: -.025em; margin-bottom: 18px; }
.step p { color: var(--ink-2); font-size: 19px; }
.step .btn { align-self: flex-start; margin-top: 8px; }
.step--live h2 { color: var(--blue-700); }

.stage { position: relative; }
.stage-inner { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 10px) var(--gut) 30px 0; }
.aura { position: absolute; inset: 14% 4% 10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(147, 198, 236, .38), rgba(147, 198, 236, 0)); filter: blur(10px); animation: breathe 9s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
.plan { width: 100%; height: auto; max-height: 82vh; overflow: visible; position: relative; }
.stage-chip {
  position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
}

/* Plano isométrico */
.plan .pl-floor { fill: #FFFFFF; stroke: #CFE2F2; stroke-width: 1; transition: fill .6s ease; }
.plan .pl-corridor { fill: #F2F8FD; stroke: #DCEAF6; }
.plan .pl-ground { fill: #E9F3FB; }
.plan .pl-wall-n { fill: #EAF3FB; stroke: #C9DEF0; stroke-width: 1; }
.plan .pl-wall-w { fill: #D9E9F6; stroke: #C9DEF0; stroke-width: 1; }
.plan .pl-top { fill: #FFFFFF; stroke: #B9D4EA; stroke-width: 1; }
.plan .pl-furn-t { fill: #FFFFFF; stroke: #B7D0E6; stroke-width: .8; }
.plan .pl-furn-l { fill: #DCEAF6; stroke: #B7D0E6; stroke-width: .8; }
.plan .pl-furn-r { fill: #C8DDEF; stroke: #B7D0E6; stroke-width: .8; }
.plan .pl-chair-t { fill: #8CC1EA; stroke: #5FA8E0; stroke-width: .8; }
.plan .pl-chair-l { fill: #6FB0E3; stroke: #5FA8E0; stroke-width: .8; }
.plan .pl-chair-r { fill: #5A9FD6; stroke: #4E95CF; stroke-width: .8; }
.plan .pl-glow { fill: url(#glow); opacity: 0; transition: opacity .6s ease; }
.plan .pl-label { transition: opacity .4s ease; }
.plan .pl-label rect { fill: #fff; stroke: var(--line); }
.plan .pl-label text { font: 600 11px var(--f-text); fill: var(--navy); }
.plan .pl-label .pl-sub { font: 500 9.5px var(--f-text); fill: var(--ink-3); }
.plan .pl-label .pl-dot { fill: var(--blue-300); }
.plan .pl-room.is-on .pl-floor { fill: #DDEEFB; }
.plan .pl-room.is-on .pl-glow { opacity: .9; }
.plan .pl-room.is-dim { opacity: .55; }
.plan .pl-room { transition: opacity .6s ease; }
.plan .pl-room.st-busy .pl-floor { fill: #CFE6F9; }
.plan .pl-room.st-busy .pl-glow { opacity: 1; }
.plan .pl-room.st-busy .pl-dot { fill: var(--blue); }
.plan .pl-room.st-cleaning .pl-floor { fill: #E7E9FD; }
.plan .pl-room.st-cleaning .pl-dot { fill: var(--violet); }
.plan .pl-room.st-preparing .pl-floor { fill: #FFF4E2; }
.plan .pl-room.st-preparing .pl-dot { fill: var(--amber); }
.plan .pl-room.st-free .pl-dot { fill: var(--ok); }
.plan .pl-room.st-blocked .pl-floor { fill: #EEF1F4; }
.plan .pl-room.st-blocked .pl-dot { fill: #9AA9B8; }
.plan .pl-walker { opacity: 0; transition: opacity .4s ease; }
.plan .pl-walker.is-on { opacity: 1; }
.plan .pl-walker-halo { fill: rgba(44, 120, 192, .18); transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.plan .pl-walker-dot { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.plan .pl-qr { fill: var(--navy); }
.plan .pl-qr-ring { fill: none; stroke: var(--blue-400); stroke-width: 1.5; opacity: 0; }
.plan.qr-on .pl-qr-ring { opacity: 1; animation: ring 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.plan .pl-draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.plan.is-drawn .pl-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.6, .1, .2, 1); }
.plan .pl-fade { opacity: 0; transition: opacity .9s ease; }
.plan.is-drawn .pl-fade { opacity: 1; }

/* --------------------------------------------------------------- Secciones */
.sec { padding: clamp(80px, 11vw, 150px) var(--gut); background: var(--white); position: relative; }
.sec--tint { background: var(--ice); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-title { font: 360 clamp(38px, 4.6vw, 66px)/1.02 var(--f-display); letter-spacing: -.03em; margin-bottom: 20px; }
.sec-title em { font-weight: 300; }
.sec-lead { font-size: 19px; color: var(--ink-2); max-width: 38em; }
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 36px; position: relative; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C78C0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Tratamientos */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tab { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--ink-2); min-height: 44px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.treat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.treat {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--paper);
  border: 1px solid var(--line-2); transition: transform .3s ease, box-shadow .3s ease, background .3s;
}
.treat:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--white); }
.treat h3 { font: 450 25px/1.15 var(--f-display); letter-spacing: -.015em; }
.treat p { color: var(--ink-2); font-size: 16.5px; margin: 0; flex: 1; }
.treat-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--blue-700); font-size: 13.5px; font-weight: 600; }
.pill--room { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.pill--urgent { background: var(--urgent-bg); color: var(--urgent); }
.treat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 500 22px/1 var(--f-display); }
.price small { font: 500 13px var(--f-text); color: var(--ink-3); margin-right: 4px; }
.treat--urgent { background: #FFF8F8; border-color: #F6DADA; }

/* Calculadora */
.calc-label { font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.calc-amount { font: 400 56px/1.1 var(--f-display); letter-spacing: -.03em; margin-bottom: 16px; }
input[type=range] { width: 100%; accent-color: var(--blue); height: 32px; }
.calc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 16px; }
.calc-plan { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 12px; text-align: center; }
.calc-plan b { display: block; font: 500 26px/1.1 var(--f-display); color: var(--blue-700); }
.calc-plan span { display: block; font-size: 13px; color: var(--ink-3); }
.calc-plan .m { font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 4px; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.member { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-2); }
.avatar { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; font: 500 28px var(--f-display); color: #fff; position: relative; overflow: hidden; }
.avatar::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .45), transparent 55%); }
.member h3 { font: 450 23px/1.15 var(--f-display); }
.member .role { color: var(--ink-2); font-size: 16px; margin: -8px 0 0; }
.days { display: flex; gap: 5px; flex-wrap: wrap; }
.days span { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--white); border: 1px solid var(--line); color: var(--ink-3); text-transform: capitalize; }
.days span.on { background: var(--mist); color: var(--blue-700); border-color: var(--sky); }

/* Opiniones */
.reviews-empty { text-align: center; display: grid; gap: 14px; justify-items: center; }
.stars { font-size: 26px; letter-spacing: 4px; color: var(--sky); }

/* Mi cita / formularios */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: 15.5px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 18px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(95, 168, 224, .2); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--urgent); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.form-err { color: var(--urgent); font-weight: 600; min-height: 1px; margin: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.mine-res { display: grid; gap: 16px; }
.mine-res .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mine-res .row span { color: var(--ink-3); }
.mine-res .row b { text-align: right; font-weight: 600; }
.mine-actions { display: grid; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--mist); color: var(--blue-700); }
.status--cancelled, .status--no_show { background: #F1F3F5; color: var(--ink-3); }
.status--completed { background: #E5F5EE; color: var(--ok); }
.status--arrived, .status--in_room { background: #FFF4E2; color: #9A5F09; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-grid h3 { font: 450 24px var(--f-display); margin-bottom: 16px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; }
.hours dt { text-transform: capitalize; color: var(--ink-2); }
.hours dd { margin: 0; text-align: right; font-weight: 600; }
.hours .today { color: var(--blue-700); }
.contact-btns { display: grid; gap: 10px; margin-top: 18px; }
.map { display: grid; place-content: center; gap: 14px; text-align: center; min-height: 280px; padding: 0; overflow: hidden; background: linear-gradient(135deg, var(--ice), var(--mist)); }
.map p { max-width: 30ch; margin: 0 auto; color: var(--ink-2); font-size: 15px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Detrás */
.behind { background: linear-gradient(180deg, var(--white), var(--ice)); }
.behind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.behind-card { position: relative; text-decoration: none; color: var(--navy); display: grid; gap: 10px; transition: transform .3s, box-shadow .3s; }
.behind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--navy); }
.behind-card h3 { font: 450 24px var(--f-display); }
.behind-card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.bc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mist); }
.bc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.behind-card .arrow { position: absolute; top: 26px; right: 28px; font-size: 22px; color: var(--blue); }

/* Pie */
.foot { background: var(--navy); color: #C9DCEE; padding: 56px var(--gut) 110px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot .brand-word { color: #fff; }
.foot .brand-word small { color: #8FB0CF; }
.foot .fine { color: #8FB0CF; margin: 12px 0 0; }
.foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: #C9DCEE; text-decoration: none; font-size: 15px; }
.foot-in > .fine:last-child { grid-column: 1 / -1; }

/* Barra móvil */
.mbar { display: none; }

/* --------------------------------------------------------------- Diálogo (hoja) */
.sheet {
  border: 0; padding: 0; margin: auto; width: min(980px, calc(100vw - 32px)); max-height: min(860px, calc(100vh - 40px));
  border-radius: var(--r-lg); background: var(--white); color: var(--navy); box-shadow: var(--shadow-lg); overflow: hidden;
}
.sheet::backdrop { background: rgba(11, 37, 64, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet--narrow { width: min(620px, calc(100vw - 32px)); }
.sheet-in { display: flex; flex-direction: column; max-height: inherit; }
.sh-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.sh-head .sh-title { font: 450 22px/1.2 var(--f-display); flex: 1; margin: 0; }
.sh-progress { display: flex; gap: 6px; }
.sh-progress i { width: 26px; height: 5px; border-radius: 3px; background: var(--mist); }
.sh-progress i.on { background: var(--blue); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--ice); }
.sh-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 0; flex: 1; }
.sh-main { padding: 26px; overflow-y: auto; overscroll-behavior: contain; }
.sh-main--full { grid-column: 1 / -1; }
.sh-aside { background: var(--paper); border-left: 1px solid var(--line-2); padding: 24px; overflow-y: auto; }
.sh-aside h4 { margin: 0 0 14px; font: 600 13px var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sum-row { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
.sum-row span { font-size: 13px; color: var(--ink-3); }
.sum-row:last-child { border: 0; }
.sh-q { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 20px; }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.opt {
  text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); padding: 16px 18px;
  display: grid; gap: 4px; min-height: 84px; transition: border-color .2s, background .2s, transform .2s;
}
.opt:hover { border-color: var(--blue-300); background: var(--paper); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 3px rgba(44, 120, 192, .12); }
.opt b { font-weight: 650; font-size: 17px; }
.opt span { font-size: 14.5px; color: var(--ink-3); }
.opt--hero { grid-column: 1 / -1; background: linear-gradient(120deg, var(--ice), var(--white)); border-color: var(--sky); }
.opt--urgent { border-color: #F3C4C2; background: #FFF9F9; }
.opt--urgent b { color: var(--urgent); }
.opt-row { display: flex; align-items: center; gap: 14px; }
.opt .avatar { width: 50px; height: 50px; border-radius: 16px; font-size: 19px; flex: none; }
.group-t { font: 600 13px var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.group-t:first-child { margin-top: 0; }

.days-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day {
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); padding: 10px 4px; display: grid; gap: 2px; justify-items: center;
  min-height: 86px; align-content: center;
}
.day small { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.day b { font: 500 26px/1 var(--f-display); }
.day i { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.day[disabled] { opacity: .38; cursor: not-allowed; }
.day[disabled] i { color: var(--ink-3); }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] i { color: #DDEEFB; }
.days-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.days-nav b { font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { border: 1.5px solid var(--line); background: var(--white); border-radius: 14px; min-height: 52px; font-weight: 600; font-size: 17px; }
.time:hover { border-color: var(--blue-300); }
.time[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.wl-box { margin-top: 26px; padding: 18px; border-radius: var(--r); background: var(--paper); border: 1px dashed var(--sky); display: grid; gap: 12px; }
.wl-box p { margin: 0; }
.empty { padding: 22px; border-radius: var(--r); background: var(--paper); color: var(--ink-2); text-align: center; }
.sh-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: var(--white); }
.done { display: grid; gap: 18px; text-align: center; justify-items: center; padding: 10px 0; }
.done-ico { width: 74px; height: 74px; border-radius: 50%; background: #E5F5EE; display: grid; place-items: center; }
.done-ico svg { width: 38px; height: 38px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.code { font: 500 clamp(30px, 5vw, 44px)/1 var(--f-display); letter-spacing: .06em; color: var(--blue-700); padding: 14px 24px; border-radius: 18px; background: var(--ice); border: 1.5px dashed var(--blue-300); }
.done-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 560px; }
.note { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--paper); color: var(--ink-2); font-size: 16px; max-width: 560px; }
.note--warn { background: #FFF6E8; color: #7A4E0B; }
.note--urgent { background: var(--urgent-bg); color: #8E2B28; }

/* Urgencia */
.ur-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ur-kind { border: 1.5px solid #F3D3D2; background: #FFFBFB; border-radius: var(--r); padding: 18px; min-height: 72px; font-weight: 650; font-size: 17px; text-align: left; color: var(--navy); }
.ur-kind[aria-pressed="true"] { border-color: var(--urgent); background: var(--urgent-bg); }

/* Cuestionario de salud */
.hq { display: grid; gap: 22px; }
.hq-q { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.hq-q > b { font-weight: 650; font-size: 17.5px; }
.hq-q.is-bad > b { color: var(--urgent); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 500; cursor: pointer; }
.chips input:checked + span { background: var(--mist); border-color: var(--blue-300); color: var(--blue-700); font-weight: 600; }

/* Páginas superpuestas: check-in y plan de tratamiento */
.overlay-page { position: fixed; inset: 0; z-index: 60; background: linear-gradient(180deg, var(--white), var(--ice)); overflow-y: auto; }
.op-in { max-width: 640px; margin: 0 auto; padding: 32px 20px 60px; min-height: 100%; display: flex; flex-direction: column; }
.op-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.op-title { font: 360 clamp(36px, 7vw, 54px)/1.02 var(--f-display); letter-spacing: -.03em; margin-bottom: 14px; }
.op-lead { color: var(--ink-2); font-size: 19px; }
.big-input { font-size: 22px !important; min-height: 64px !important; text-align: center; letter-spacing: .04em; }
.phase { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--white); margin-bottom: 12px; }
.phase h4 { margin: 0 0 10px; font: 600 16px var(--f-text); color: var(--blue-700); }
.phase-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 16.5px; }
.phase-item:first-of-type { border-top: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font: 500 30px var(--f-display); }
.pay-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }

/* Avisos */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 90; background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 16px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 420px; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 15px; color: var(--ink-2); }
.cookie p { margin: 0; }
.legal-txt { color: var(--ink-2); font-size: 16px; }
.legal-txt h4 { color: var(--navy); margin: 18px 0 6px; font-size: 17px; }
.qr-box { display: grid; place-items: center; padding: 14px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr-fallback { word-break: break-all; font-size: 13px; }

/* Revelado suave (solo con .fx, es decir, con animaciones activas) */
.fx .rv { opacity: 0; transform: translateY(26px); }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .map { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  body { font-size: 17px; }
  .nav { gap: 10px; }
  .nav-mine, .nav-end > .btn { display: none; }
  .brand-word { font-size: 23px; }
  .journey { grid-template-columns: 1fr; padding: var(--nav-h) 0 0; }
  .stage { order: -1; position: sticky; top: var(--nav-h); z-index: 3; height: 40vh; min-height: 260px; background: linear-gradient(180deg, #FFFFFF 0%, #F1F8FD 100%); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px -24px rgba(29, 94, 156, .5); }
  .stage-inner { position: relative; height: 100%; padding: 10px 12px 34px; }
  .stage-chip { bottom: 6px; font-size: 13.5px; padding: 8px 14px; }
  .plan { max-height: 100%; }
  .journey-text { padding: 0 var(--gut); position: relative; z-index: 1; }
  .hero { min-height: auto; padding: 28px 0 40px; }
  .hero-title { font-size: clamp(44px, 12vw, 64px); }
  .scroll-hint { display: none; }
  .steps { padding-bottom: 8vh; }
  .step { min-height: 62vh; opacity: 1; background: rgba(255, 255, 255, .95); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px 22px; margin: 0 0 16vh; box-shadow: var(--shadow); justify-content: flex-start; min-height: 0; }
  .step:last-child { margin-bottom: 0; }
  .step h2 { font-size: 32px; }
  .step p { font-size: 17px; }
  .split, .contact-grid, .behind-grid { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 34px; }
  .calc-plans { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .calc-plan { padding: 12px 6px; }
  .calc-plan b { font-size: 21px; }
  .foot-in { grid-template-columns: 1fr; }
  .mbar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 42;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .mbar .btn { min-height: 50px; padding: 0 10px; font-size: 15.5px; }
  .cookie { bottom: 86px; left: 12px; right: 12px; max-width: none; }
  .toast { bottom: 96px; }
  .sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .sheet-in { height: 100%; }
  .sh-body { grid-template-columns: 1fr; }
  .sh-aside { display: none; }
  .sh-main { padding: 20px 16px; }
  .sh-head { padding: 12px 14px; }
  .sh-progress i { width: 14px; }
  .opts { grid-template-columns: 1fr; }
  .days-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .done-grid, .pay-opts { grid-template-columns: 1fr; }
  .ur-kinds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .lang button { padding: 5px 7px; }
  .hero-cta .btn { width: 100%; }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .step { opacity: 1; }
  .plan .pl-draw { stroke-dashoffset: 0; }
  .plan .pl-fade { opacity: 1; }
}
