/* =====================================================================
   Dra. Ana Santamaría — Oftalmología · Glaucoma
   Sistema visual: violeta noche + índigo/lila del logo, Outfit / Inter / Instrument Serif
   ===================================================================== */

:root {
  --night: #120a33;
  --night-2: #1b1047;
  --night-3: #2a1a66;
  --indigo: #3b23ac;
  --violet: #6a3fe0;
  --lilac: #b9a2ff;
  --lilac-2: #ddd2ff;
  --rose: #f4b6cf;
  --paper: #f7f4fe;
  --paper-2: #eee8fb;
  --white: #ffffff;
  --ink: #170f33;
  --ink-2: #3f3763;
  --muted: #6c6589;
  --line: #e4ddf4;
  --line-dark: rgba(255, 255, 255, .12);
  --red: #e5484d;
  --green: #12a150;
  --wa: #25d366;

  --f-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(23, 15, 51, .05), 0 14px 36px -14px rgba(59, 35, 172, .22);
  --shadow-lg: 0 30px 80px -30px rgba(18, 10, 51, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lilac); color: var(--night); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------- tipografía */
.h2 { font-size: clamp(32px, 4.4vw, 56px); color: var(--ink); max-width: 17ch; font-weight: 600; }
.h3 { font-size: clamp(24px, 2.6vw, 34px); }
.h2 em, .h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  background: linear-gradient(100deg, var(--indigo), var(--violet) 55%, #a274f0); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lead { font-size: clamp(18px, 1.5vw, 20.5px); color: var(--ink); line-height: 1.55; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 13px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--violet);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker .ico { width: 16px; height: 16px; }
.kicker-light { color: var(--lilac); }

/* ------------------------------------------------------------- botones */
.btn {
  --b-bg: var(--ink); --b-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg); text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--f-display); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(120deg, var(--violet), var(--indigo)); color: var(--white); box-shadow: 0 12px 30px -10px rgba(106, 63, 224, .75); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(106, 63, 224, .9); filter: brightness(1.08); }
.btn-dark { --b-bg: var(--ink); --b-fg: var(--white); }
.btn-dark:hover { --b-bg: var(--indigo); }
.btn-wa { --b-bg: var(--wa); --b-fg: #04381b; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .7); }
.btn-wa:hover { --b-bg: #3ee07b; }
.btn-ghost-light { --b-bg: rgba(255, 255, 255, .06); --b-fg: var(--white); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost-light:hover { --b-bg: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15.5px/1 var(--f-display); color: var(--violet); text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico, a:hover > .link-arrow .ico { transform: translateX(4px); }

/* ------------------------------------------------------------- cabecera */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white); transition: box-shadow .35s;
}
/* El desenfoque va en una capa aparte: si estuviera en la cabecera, el menú móvil
   (position: fixed, hijo de la cabecera) quedaría recortado a la altura de la cabecera. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: rgba(18, 10, 51, .8); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.has-solid .site-header::before, .site-header.is-scrolled::before { opacity: 1; }
.has-solid .site-header::before { background: var(--night); }
.has-solid .site-header, .site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-dark); }
.has-solid main { padding-top: var(--header-h); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-icon { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { white-space: nowrap; font: 600 18px/1.1 var(--f-display); letter-spacing: -.01em; }
.brand-text small { white-space: nowrap; font: 500 10.5px/1.5 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--lilac); }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul a { display: block; white-space: nowrap; padding: 10px 13px; border-radius: 999px; text-decoration: none; font: 500 14.5px/1 var(--f-display); color: rgba(255, 255, 255, .78); transition: color .2s, background-color .2s; }
.nav > ul a:hover, .nav > ul a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .09); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-wa { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 13.5px/1 var(--f-display); color: var(--white); opacity: .9; }
.header-wa .ico { width: 18px; height: 18px; color: var(--wa); }
.header-wa:hover { opacity: 1; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .05); cursor: pointer; place-items: center; }
.menu-btn .ico { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

/* Selector de idioma */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-dark); cursor: pointer; font: 500 14px/1 var(--f-display); color: var(--white); transition: background-color .2s, border-color .2s; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.flag { width: 22px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lang .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.lang[open] .chev { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 120; }
.lang ul a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 15px/1 var(--f-display); }
.lang ul a:hover, .lang ul a[aria-current] { background: var(--paper); }
.lang ul a[aria-current] { font-weight: 600; }
.lang ul .flag { width: 26px; height: 17px; }
.lang-mobile { display: none; }

/* ------------------------------------------------------------- iris (motivo del logo) */
.iris { color: var(--lilac); }
.iris .r1 { transform-origin: 100px 100px; animation: spin 60s linear infinite; }
.iris .r2 { transform-origin: 100px 100px; animation: spin 38s linear infinite; }
.iris .r3 { transform-origin: 100px 100px; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 78% 45%, #34208a 0%, #1d1150 45%, var(--night) 78%);
  color: var(--white); display: flex; flex-direction: column;
}
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 82% 60%, rgba(185, 162, 255, .35), transparent 70%),
    radial-gradient(30% 40% at 10% 90%, rgba(106, 63, 224, .35), transparent 70%),
    radial-gradient(25% 30% at 40% 10%, rgba(244, 182, 207, .12), transparent 70%);
}
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-in > * { min-width: 0; }
.hero-in { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: 24px; padding-top: calc(var(--header-h) + 24px); }
.hero-copy { align-self: center; padding: 40px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06); font: 500 13.5px/1 var(--f-display); letter-spacing: .04em; color: rgba(255, 255, 255, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 4px rgba(185, 162, 255, .25); }
.hero-title { font-size: clamp(56px, 8.2vw, 116px); font-weight: 700; letter-spacing: -.045em; line-height: .95; margin-bottom: 26px; }
.hero-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 0%, var(--lilac-2) 35%, var(--lilac) 70%, var(--rose) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, .8); max-width: 34ch; margin-bottom: 34px; }
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { list-style: none; margin: 52px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 620px; }
.hero-facts li { display: flex; flex-direction: column; gap: 6px; }
.hero-facts strong { font: 600 19px/1 var(--f-display); color: var(--lilac-2); }
.hero-facts span { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .62); }

.hero-media { position: relative; align-self: end; display: flex; justify-content: center; height: 100%; min-height: 520px; }
.hero-media picture { position: relative; z-index: 2; align-self: end; }
.hero-photo { width: auto; max-height: calc(100svh - var(--header-h) - 10px); max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 40px 60px rgba(8, 4, 26, .55)); animation: heroIn 1.4s var(--ease) both .15s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
.hero-iris { position: absolute; z-index: 1; width: min(640px, 112%); left: 50%; top: 46%; transform: translate(-50%, -50%); opacity: .2; color: var(--lilac-2); pointer-events: none; }
.hero-ring { position: absolute; z-index: 1; left: 50%; top: 42%; width: min(520px, 92%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(185, 162, 255, .38), rgba(106, 63, 224, .12) 55%, transparent 70%); }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font: 600 15px/1.2 var(--f-display); }
.float-card small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.fc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--violet), var(--indigo)); flex: none; }
.fc-ico .ico { width: 22px; height: 22px; }
/* Las tarjetas van a la altura del hombro y de los brazos, nunca sobre el rostro */
.fc-1 { left: -4%; top: 54%; }
.fc-2 { right: -2%; bottom: 18%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 4; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .4); transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--white); transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Entrada del hero */
.hero .reveal { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .18s; }
.hero .reveal:nth-child(4) { animation-delay: .28s; }
.hero .reveal:nth-child(5) { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- cinta */
.ribbon { background: var(--night); color: rgba(255, 255, 255, .85); overflow: hidden; border-top: 1px solid var(--line-dark); padding: 20px 0; }
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon-track span { font: 500 clamp(18px, 2vw, 24px)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.ribbon-iris { width: 22px; height: 22px; color: var(--lilac); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- secciones */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-soft { background: var(--paper); }
.section-dark { background: var(--night); color: var(--white); }
.section-dark .h2 { color: var(--white); }
.section-dark .h2 em { background: linear-gradient(100deg, var(--lilac-2), var(--lilac) 60%, var(--rose)); -webkit-background-clip: text; background-clip: text; }
.section-dark .lead { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, .74); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 60px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; max-width: 46ch; }

/* Aparición al hacer scroll */
.js .section .reveal, .js .urgent .reveal, .js .band .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .section .reveal.is-in, .js .urgent .reveal.is-in, .js .band .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- la doctora */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 32px; background: linear-gradient(140deg, var(--lilac-2), var(--paper-2)); z-index: -1; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; right: -18px; bottom: 34px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); }
.about-badge img { width: 58px; height: auto; aspect-ratio: auto; box-shadow: none; border-radius: 0; }
.about-badge strong { display: block; font: 600 15px/1.2 var(--f-display); }
.about-badge small { color: var(--muted); font-size: 13px; }
.about-copy .h2 { margin-bottom: 26px; }
.about-copy p { color: var(--ink-2); }
.check-list { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font: 500 15.5px/1.4 var(--f-display); }
.check-list .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--paper-2); color: var(--violet); stroke-width: 2.6; margin-top: 1px; }
.about-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* ------------------------------------------------------------- servicios */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 18px; }
.svc-photo { grid-row: span 2; position: relative; border-radius: 26px; overflow: hidden; min-height: 420px; }
.svc-photo picture, .svc-photo img { width: 100%; height: 100%; }
.svc-photo img { object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-photo:hover img { transform: scale(1.04); }
.svc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 10, 51, .85)); }
.svc-photo-cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: var(--white); }
.svc-photo-cap strong { display: block; font: 600 22px/1.2 var(--f-display); }
.svc-photo-cap span { font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.svc { position: relative; overflow: hidden; padding: 30px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--violet), var(--indigo)); color: var(--white); margin-bottom: 22px; box-shadow: 0 12px 24px -12px rgba(106, 63, 224, .8); }
.svc-ico .ico { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; margin: 0; }
.svc-n { position: absolute; top: 20px; right: 24px; font: 600 15px/1 var(--f-display); color: var(--line); }

.general { margin-top: clamp(60px, 8vw, 100px); }
.general-head { display: flex; align-items: end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.general-head p { color: var(--muted); margin: 0; max-width: 44ch; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; }
.acc { border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.acc[open] { box-shadow: var(--shadow); border-color: transparent; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; font: 600 16.5px/1.3 var(--f-display); }
.acc summary::-webkit-details-marker { display: none; }
.acc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--violet); flex: none; }
.acc-ico .ico { width: 21px; height: 21px; }
.acc-t { flex: 1; }
.acc-plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); flex: none; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.acc-plus .ico { width: 16px; height: 16px; }
.acc[open] .acc-plus { transform: rotate(45deg); background: var(--violet); color: var(--white); border-color: var(--violet); }
.acc p { margin: 0; padding: 0 22px 22px 74px; color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------- glaucoma */
.glaucoma { overflow: hidden; }
.glaucoma::before { content: ""; position: absolute; left: -20%; top: -10%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(106, 63, 224, .35), transparent 65%); pointer-events: none; }
.glaucoma-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.glaucoma .h2 { margin-bottom: 26px; }
.eye-viz { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #2c1b6e 0%, #1a0f48 60%, var(--night) 100%); box-shadow: inset 0 0 0 1px var(--line-dark), 0 40px 100px -40px rgba(106, 63, 224, .7); overflow: hidden; }
.eye-iris { width: 74%; color: var(--lilac); }
/* El "campo visual" que se cierra desde la periferia */
.eye-field { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 30%, rgba(10, 5, 30, .96) 62%); animation: tunnel 7s ease-in-out infinite; }
@keyframes tunnel { 0%, 100% { transform: scale(1.9); } 50% { transform: scale(1.05); } }
.eye-caption { text-align: center; max-width: 34ch; margin: 22px auto 0; font-size: 14.5px; color: rgba(255, 255, 255, .6) !important; }
.metrics { list-style: none; margin: 34px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric { padding: 22px 20px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 8px; }
.metric-n { font: 600 40px/1 var(--f-display); letter-spacing: -.03em; background: linear-gradient(100deg, var(--lilac-2), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span:last-child { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: rgba(185, 162, 255, .1); border: 1px solid rgba(185, 162, 255, .25); color: var(--white) !important; font-size: 16px; margin-bottom: 30px; }
.callout .ico { width: 24px; height: 24px; color: var(--lilac); margin-top: 1px; }
.what-is { position: relative; margin-top: clamp(60px, 8vw, 96px); display: flex; gap: 24px; align-items: flex-start; padding: clamp(26px, 4vw, 40px); border-radius: 26px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.what-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--violet), var(--indigo)); flex: none; }
.what-ico .ico { width: 28px; height: 28px; }
.what-is h3 { font-size: 24px; margin-bottom: 10px; }
.what-is p { margin: 0; max-width: 80ch; }

/* ------------------------------------------------------------- tratamientos */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; background: var(--paper); width: fit-content; margin-bottom: 36px; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 15.5px/1 var(--f-display); color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.tab .ico { width: 19px; height: 19px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.tab[aria-selected="true"] .ico { color: var(--violet); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 70px); align-items: center; animation: fadeIn .5s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-copy .h3 { margin-bottom: 16px; }
.panel-copy p { color: var(--ink-2); }
.panel-label { font: 600 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.proc-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.proc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--paper); font: 500 15.5px/1.4 var(--f-display); }
.proc-list .ico { color: var(--violet); width: 19px; height: 19px; margin-top: 1px; stroke-width: 2.4; }
.panel-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------- formación */
.training-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.training-side { position: sticky; top: calc(var(--header-h) + 30px); }
.training-side .h2 { margin-bottom: 20px; }
.training-side > p { color: var(--muted); }
.training-photo { margin-top: 30px; max-width: 380px; }
.training-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--violet), var(--lilac-2)); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.tl-ico { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--violet); box-shadow: 0 0 0 6px var(--paper), var(--shadow); }
.tl-ico .ico { width: 24px; height: 24px; }
.tl-card { padding: 26px 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.tl-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.tl-card h3 { font-size: 21px; margin-bottom: 8px; }
.tl-place { margin: 0; font-weight: 500; color: var(--ink); }
.tl-uni { margin: 2px 0 0; color: var(--violet); font: 500 14.5px/1.4 var(--f-display); }

/* ------------------------------------------------------------- banda */
.band { position: relative; min-height: clamp(360px, 40vw, 560px); display: flex; align-items: center; overflow: hidden; background: #fff; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 30%; }
.band-in { position: relative; display: flex; justify-content: flex-end; }
.band blockquote { margin: 0; max-width: 560px; padding: 40px 0; }
.band blockquote p { font: 400 clamp(30px, 3.6vw, 48px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 20px; }
.band blockquote em { font-family: var(--f-serif); font-style: italic; color: var(--violet); }
.band blockquote footer { font: 600 15px/1 var(--f-display); color: var(--muted); letter-spacing: .04em; }

/* ------------------------------------------------------------- artículo */
.article-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 30px; background: var(--paper); text-decoration: none; transition: box-shadow .35s, transform .35s var(--ease); }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-art { aspect-ratio: 4 / 3; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #3a2490, var(--night) 75%); overflow: hidden; }
.article-art picture, .article-art img { width: 100%; height: 100%; }
.article-art img { object-fit: cover; transition: transform 1.2s var(--ease); }
.article-card:hover .article-art img { transform: scale(1.04); }
.article-copy .h3 { margin-bottom: 14px; }
.article-copy p { color: var(--ink-2); }

/* ------------------------------------------------------------- contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.map-card { position: relative; border-radius: 26px; overflow: hidden; min-height: 460px; background: var(--paper-2); box-shadow: var(--shadow); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) hue-rotate(-8deg); }
.map-link { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font: 600 14.5px/1 var(--f-display); box-shadow: var(--shadow); }
.map-link .ico { color: var(--violet); }
.info-cards { display: grid; gap: 12px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.info-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--violet); flex: none; }
.info-ico .ico { width: 21px; height: 21px; }
.info h3 { font-size: 17px; margin-bottom: 4px; }
.info p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--violet); }
.wa-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--wa); color: #04381b; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 16px 36px -16px rgba(37, 211, 102, .8); }
.wa-card:hover { transform: translateY(-3px); }
.wa-card > span:nth-child(2) { flex: 1; }
.wa-card strong { display: block; font: 600 17px/1.2 var(--f-display); }
.wa-card small { font-size: 14px; opacity: .85; }
.wa-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .35); flex: none; }
.wa-ico .ico { width: 24px; height: 24px; }
.wa-card > .ico { width: 22px; height: 22px; }

/* ------------------------------------------------------------- urgencias + cta */
.urgent { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--night) 0%, #24135e 100%); color: var(--white); padding: clamp(70px, 9vw, 120px) 0; }
.urgent::before { content: ""; position: absolute; right: -10%; top: -50%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(185, 162, 255, .3), transparent 65%); }
.urgent-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.urgent-in > div:first-child { max-width: 640px; }
.urgent .h2 { color: var(--white); margin-bottom: 14px; }
.urgent .h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--lilac-2); }
.urgent p { margin: 0; color: rgba(255, 255, 255, .76); font-size: 17.5px; }
.urgent .kicker { color: var(--rose); }
.urgent .kicker::before { display: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-final { position: relative; margin-top: clamp(50px, 7vw, 80px); display: flex; align-items: center; gap: 24px; padding: 24px 24px 24px 24px; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.cta-final img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--paper-2); }
.cta-final > div { flex: 1; min-width: 240px; }
.cta-final h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; }
.cta-final p { color: var(--muted); font-size: 15.5px; }

/* ------------------------------------------------------------- pie */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 80px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand img { width: 270px; margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--white); transition: background-color .25s, color .25s, border-color .25s; }
.social a:hover { background: var(--lilac); color: var(--night); border-color: var(--lilac); }
.social .ico { width: 18px; height: 18px; }
.footer-h { font: 600 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-list a, .footer-plain { display: inline-flex; align-items: flex-start; gap: 10px; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--lilac); }
.footer-list .ico { width: 17px; height: 17px; margin-top: 3px; color: var(--lilac); }
.footer-bottom { position: relative; margin-top: 64px; padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-dark); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }

/* Botón flotante de WhatsApp */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65); transition: transform .3s var(--ease); text-decoration: none; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa .ico { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.fab-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 9px 14px; border-radius: 12px; background: var(--white); color: var(--ink); font: 600 13.5px/1 var(--f-display); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.fab-wa:hover .fab-tip { opacity: 1; transform: translate(0, -50%); }

/* ------------------------------------------------------------- páginas internas */
.page-hero { position: relative; background: radial-gradient(80% 120% at 85% 0%, #3a2491 0%, var(--night-2) 50%, var(--night) 100%); color: var(--white); padding: clamp(56px, 8vw, 100px) 0 clamp(120px, 14vw, 170px); overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-iris { position: absolute; right: -80px; top: -60px; width: clamp(280px, 34vw, 480px); opacity: .16; color: var(--lilac-2); }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; letter-spacing: -.04em; max-width: 16ch; margin-bottom: 18px; }
.page-hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--lilac-2); }
.page-hero p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .74); max-width: 56ch; margin: 0; }
.page-body { position: relative; margin-top: clamp(-120px, -10vw, -80px); padding-bottom: clamp(80px, 10vw, 130px); }
.book-grid, .article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.side-card h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.side-card h2 .ico { color: var(--violet); }
.side-card p { font-size: 15px; color: var(--ink-2); }
.side-card.dark { background: var(--night); color: var(--white); border-color: transparent; }
.side-card.dark p { color: rgba(255, 255, 255, .7); }
.side-card.dark h2 .ico { color: var(--rose); }
.side-portrait { display: flex; align-items: center; gap: 16px; }
.side-portrait img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.side-portrait strong { display: block; font: 600 17px/1.2 var(--f-display); }
.side-portrait small { color: var(--muted); font-size: 14px; }
.side-links { display: grid; gap: 10px; margin-top: 6px; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); text-decoration: none; font: 500 15px/1.2 var(--f-display); transition: background-color .2s; }
.side-links a:hover { background: var(--paper-2); }
.side-links .ico { color: var(--violet); }
.dark .side-links a { background: rgba(255, 255, 255, .07); }
.dark .side-links a:hover { background: rgba(255, 255, 255, .13); }
.dark .side-links .ico { color: var(--lilac); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.tips li { display: flex; gap: 10px; line-height: 1.45; }
.tips .ico { color: var(--green); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.4; }

/* Texto largo (privacidad, artículo) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { color: var(--ink); font-size: clamp(18px, 1.6vw, 21px); }
.content-card { background: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }
.article-author { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.article-author strong { display: block; font: 600 16.5px/1.2 var(--f-display); }
.article-author small { color: var(--muted); font-size: 14px; }

/* 404 */
.not-found { min-height: 74vh; display: grid; place-items: center; text-align: center; background: radial-gradient(70% 80% at 50% 30%, #2f1d80, var(--night) 75%); color: var(--white); padding: 120px 20px 80px; }
.nf-iris { width: 120px; margin: 0 auto 10px; }
.not-found h1 { font-size: clamp(80px, 16vw, 170px); letter-spacing: -.06em; background: linear-gradient(100deg, #fff, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.not-found .btn { margin: 4px; }

/* =====================================================================
   Formulario de reserva (marcado generado por assets/js/reservas.js)
   ===================================================================== */
.ncr { --ncr-primary: var(--violet); font-size: 16px; }
.ncr-card { background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ncr-h { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 22px; }
.ncr-lead { font: 600 18px/1.3 var(--f-display); margin: 26px 0 16px; outline: none; }
.ncr-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 280px; background: var(--white); border-radius: 28px; box-shadow: var(--shadow); color: var(--muted); }
.ncr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }

.ncr-steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px; counter-reset: s; }
.ncr-steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ncr-steps li:empty { display: none; }
.ncr-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.ncr-steps li.done::before { background: var(--lilac); }
.ncr-steps li.current::before { background: var(--violet); }
.ncr-steps span { display: none; }
.ncr-steps em { font-style: normal; font-weight: 500; }
.ncr-steps li.current em { color: var(--ink); font-weight: 600; }

.ncr-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ncr-summary span { padding: 7px 14px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

.ncr-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ncr-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.ncr-type:hover { border-color: var(--violet); transform: translateY(-2px); }
.ncr-type.is-on { border-color: var(--violet); background: rgba(106, 63, 224, .06); }
.ncr-type strong { font: 600 16.5px/1.3 var(--f-display); }
.ncr-type small { color: var(--muted); font-size: 14px; }

.ncr-cal { border: 1px solid var(--line); border-radius: 20px; padding: 18px; max-width: 520px; }
.ncr-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ncr-cal-head strong { font: 600 17px/1 var(--f-display); }
.ncr-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 22px; line-height: 1; }
.ncr-nav:hover:not(:disabled) { border-color: var(--ink); }
.ncr-nav:disabled { opacity: .35; cursor: default; }
.ncr-week, .ncr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.ncr-week span { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.ncr-grid.is-busy { opacity: .5; pointer-events: none; }
.ncr-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 15px; color: #b3abc9; border: 0; background: none; position: relative; }
.ncr-day.ncr-empty { visibility: hidden; }
.ncr-day.is-free { color: var(--ink); background: rgba(185, 162, 255, .2); cursor: pointer; font-weight: 600; transition: background-color .2s, color .2s; }
.ncr-day.is-free:hover { background: rgba(185, 162, 255, .4); }
.ncr-day.is-on { background: var(--ink); color: var(--white); }
.ncr-day b { font-weight: inherit; }
.ncr-day i { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
.ncr-day.is-on i { background: var(--lilac); }
.ncr-legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ncr-legend i { width: 14px; height: 14px; border-radius: 4px; background: rgba(185, 162, 255, .35); }

.ncr-slot-group h4 { font: 600 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.ncr-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ncr-slot { padding: 14px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font: 600 15px/1 var(--f-display); transition: border-color .2s, background-color .2s, color .2s; }
.ncr-slot:hover { border-color: var(--violet); color: var(--violet); }
.ncr-slot.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

.ncr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ncr-field { display: flex; flex-direction: column; gap: 7px; }
.ncr-full { grid-column: 1 / -1; }
.ncr-field label { font: 600 14px/1.2 var(--f-display); }
.ncr-field label span { font-weight: 400; color: var(--muted); }
.ncr-field input, .ncr-field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: 400 16px/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.ncr-field input:focus, .ncr-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(106, 63, 224, .14); }
.ncr-field textarea { resize: vertical; min-height: 96px; }
.ncr .is-invalid { border-color: var(--red) !important; }
.ncr-err { color: var(--red); font-size: 13px; min-height: 0; }
.ncr-err:empty { display: none; }
.ncr .ncr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ncr-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.ncr-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.ncr-check a { color: var(--violet); }

.ncr-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.ncr-actions.ncr-center { justify-content: center; }
.ncr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: linear-gradient(120deg, var(--violet), var(--indigo)); color: var(--white); font: 600 15.5px/1 var(--f-display); cursor: pointer; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(106, 63, 224, .8); transition: transform .2s var(--ease), filter .2s; }
.ncr-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.ncr-btn:disabled { opacity: .6; cursor: progress; }
.ncr-actions .ncr-btn:only-child { margin-left: auto; }
.ncr-btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.ncr-btn-ghost:hover:not(:disabled) { background: var(--paper); filter: none; }
.ncr-btn-danger { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -12px rgba(229, 72, 77, .7); }
.ncr-link { background: none; border: 0; padding: 10px 0; cursor: pointer; font: 600 15px/1 var(--f-display); color: var(--muted); }
.ncr-link:hover { color: var(--ink); }
.ncr-cal + .ncr-link, .ncr-slot-group + .ncr-link, .ncr-alert + .ncr-link { margin-top: 18px; }

.ncr-review { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 6px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--paper); outline: none; }
.ncr-review dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.ncr-review dd { margin: 0; font-weight: 500; }
.ncr-code { font: 700 20px/1 var(--f-display); letter-spacing: .06em; color: var(--indigo); }

.ncr-alert { padding: 14px 18px; border-radius: 14px; font-size: 15px; margin: 14px 0; }
.ncr-alert-red { background: #fdecec; color: #8f1d21; }
.ncr-alert-amber { background: #fff4dd; color: #6b4a00; }
.ncr-alert-green { background: #e6f6ec; color: #0b5c2e; }
.ncr-alert-blue { background: #efeafd; color: #35208f; }
.ncr-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ncr-amber { background: #fff4dd; color: #8a5a00; }
.ncr-green { background: #e6f6ec; color: #0b6b35; }
.ncr-red { background: #fdecec; color: #a3262b; }
.ncr-gray { background: var(--paper-2); color: var(--ink-2); }
.ncr-contact { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.ncr-contact a { color: var(--violet); font-weight: 600; }
.ncr-small { font-size: 13.5px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.ncr-done { text-align: center; }
.ncr-done .ncr-review { text-align: left; max-width: 460px; margin: 22px auto 0; }
.ncr-check-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--lilac), var(--violet)); color: var(--white); font-size: 36px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(106, 63, 224, .6); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ncr-msg:empty { display: none; }
.ncr-result:empty { display: none; }
.ncr-result { margin-top: 26px; }
.ncr-msg .ncr-slots { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1480px) {
  .header-wa span { display: none; }
}
@media (max-width: 1240px) {
  .lang-desktop summary span { display: none; }
  .header-in { gap: 16px; }
}

@media (max-width: 1100px) {
  .nav > ul a { padding: 10px 9px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc-photo { grid-row: span 1; grid-column: span 2; min-height: 360px; }
  .svc-photo img { object-position: 50% 25%; }
  .metrics { grid-template-columns: 1fr; }
  .metric { flex-direction: row; align-items: center; gap: 18px; }
  .metric-n { min-width: 86px; font-size: 34px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-btn { display: grid; }
  .header-cta, .header-wa { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--night);
    padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: var(--night); }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul a { padding: 18px 4px; font-size: 22px; border-radius: 0; border-bottom: 1px solid var(--line-dark); background: none !important; }
  .nav-mobile-extra { display: grid; gap: 12px; }
  .lang-desktop { display: none; }
  .lang-mobile { display: block; }
  .lang-mobile summary { justify-content: center; padding: 14px; font-size: 16px; }
  .lang-mobile ul { position: static; margin-top: 8px; box-shadow: none; }
  body.menu-open { overflow: hidden; }

  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: calc(var(--header-h) + 10px); }
  .hero-copy { padding: 30px 0 10px; order: 1; }
  .hero-media { order: 2; min-height: 0; height: auto; margin-top: 20px; }
  .hero-photo { max-height: 72svh; }
  .hero-facts { margin-top: 36px; }
  /* En una columna la foto queda angosta: las tarjetas van sobre la bata, nunca sobre el rostro */
  .fc-1 { left: 0; top: auto; bottom: 30%; }
  .fc-2 { right: 0; bottom: 8%; }
  .hero-scroll { display: none; }

  .section-head, .about-grid, .glaucoma-grid, .tab-panel, .training-grid, .book-grid, .article-grid, .contact-grid, .article-card { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
  .about-badge { right: 12px; }
  .training-side, .side { position: static; }
  .panel-media img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
  .acc-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 340px; }
  .band-media img { object-position: 8% 30%; opacity: .45; }
  .band-in { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { letter-spacing: .18em; }
  .brand-icon { width: 40px; }
  .hero-title { font-size: clamp(50px, 15vw, 72px); }
  .hero-ctas .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-facts li { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .hero-facts strong { font-size: 16px; }
  .float-card { padding: 9px 12px 9px 9px; border-radius: 14px; }
  .float-card strong { font-size: 13px; }
  .float-card small { display: none; }
  .fc-ico { width: 34px; height: 34px; border-radius: 10px; }
  .fc-ico .ico { width: 18px; height: 18px; }
  .bento { grid-template-columns: 1fr; }
  .svc-photo { grid-column: auto; min-height: 380px; }
  .check-list { grid-template-columns: 1fr; }
  .acc p { padding: 0 20px 20px; }
  .tab-list { border-radius: 20px; width: 100%; }
  .tab { flex: 1 1 100%; justify-content: flex-start; padding: 14px 18px; border-radius: 14px; }
  .what-is { flex-direction: column; }
  .timeline::before { left: 21px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 14px; }
  .tl-ico { width: 44px; height: 44px; }
  .tl-ico .ico { width: 20px; height: 20px; }
  .tl-card { padding: 20px; }
  .cta-final { flex-direction: column; text-align: center; }
  .cta-final .btn { width: 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ncr-row { grid-template-columns: 1fr; }
  .ncr-review { grid-template-columns: 1fr; gap: 4px; }
  .ncr-review dd { margin-bottom: 10px; }
  .ncr-actions { flex-direction: column-reverse; align-items: stretch; }
  .ncr-actions .ncr-btn { width: 100%; }
  .ncr-cal { padding: 12px; }
  .ncr-day { border-radius: 10px; font-size: 14px; }
  .fab-wa { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .fab-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero .reveal { opacity: 1; transform: none; }
  .hero-dust { display: none; }
  .ribbon-track { animation: none; }
}

/* =====================================================================
   Glaucoma ampliado: la especialidad de la doctora
   ===================================================================== */
.g-word {
  margin: -6px 0 4px; font: 700 clamp(64px, 9vw, 128px)/.9 var(--f-display); letter-spacing: -.05em;
  background: linear-gradient(100deg, #fff 0%, var(--lilac-2) 40%, var(--lilac) 75%, var(--rose) 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.glaucoma .h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 20ch; }
.g-block { margin-top: clamp(80px, 9vw, 120px); }
.g-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; margin-bottom: 36px; }
.g-head p { margin: 0; }
.glaucoma .h3 { color: var(--white); }
.glaucoma .h3 em { background: linear-gradient(100deg, var(--lilac-2), var(--lilac) 60%, var(--rose)); -webkit-background-clip: text; background-clip: text; }

.g-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.g-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 47px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--lilac), var(--rose)); opacity: .5; }
.g-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.g-step-n { position: absolute; top: 14px; right: 18px; font: 600 14px/1 var(--f-display); color: rgba(255, 255, 255, .35); }
.g-step-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--violet), var(--indigo)); box-shadow: 0 0 0 6px var(--night); margin-bottom: 8px; }
.g-step-ico .ico { width: 24px; height: 24px; }
.g-steps strong { font: 600 18px/1.2 var(--f-display); color: var(--white); }
.g-steps li > span:last-child { font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .68); }

.g-consult, .g-laser { margin-top: clamp(80px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.g-consult-media img, .g-laser-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 90px -40px rgba(106, 63, 224, .8); }
.g-consult-copy .h3, .g-laser-copy .h3 { margin-bottom: 18px; }
.g-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font: 500 15px/1.35 var(--f-display); color: var(--white); }
.g-checks .ico { color: var(--lilac); width: 19px; height: 19px; stroke-width: 2.4; margin-top: 1px; }

.g-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.g-card { grid-column: span 2; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); transition: transform .35s var(--ease), border-color .35s, background-color .35s; }
.g-card:nth-child(4), .g-card:nth-child(5) { grid-column: span 3; }
.g-card:hover { transform: translateY(-4px); border-color: rgba(185, 162, 255, .4); background: rgba(255, 255, 255, .08); }
.g-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.g-card-media picture, .g-card-media img { width: 100%; height: 100%; }
.g-card-media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.g-card:hover .g-card-media img { transform: scale(1.05); }
.g-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.g-card h4 { font-size: 20px; color: var(--white); }
.g-card p { margin: 0; font-size: 15px; flex: 1; }
.g-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-tags li { padding: 6px 12px; border-radius: 999px; background: rgba(185, 162, 255, .14); border: 1px solid rgba(185, 162, 255, .3); color: var(--lilac-2); font: 600 12.5px/1 var(--f-display); letter-spacing: .02em; }

.g-laser { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.g-laser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-laser-list li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.g-laser-list li > span { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, var(--lilac), var(--violet)); color: var(--white); font: 600 15px/1 var(--f-display); }
.g-laser-list strong { display: block; font: 600 17px/1.3 var(--f-display); color: var(--white); margin-bottom: 4px; }
.g-laser-list p { margin: 0; font-size: 15px; }

.g-types { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g-type { padding: 28px 30px; border-radius: 24px; background: linear-gradient(140deg, rgba(106, 63, 224, .28), rgba(255, 255, 255, .04)); border: 1px solid rgba(185, 162, 255, .3); }
.g-type-tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--lilac); color: var(--night); font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.g-type h4 { font-size: 22px; color: var(--white); margin-bottom: 10px; }
.g-type p { margin: 0; }
.g-sec-title { margin: 40px 0 16px; font: 600 13px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.g-secondary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-secondary li { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); transition: border-color .3s, background-color .3s; }
.g-secondary li:hover { border-color: rgba(185, 162, 255, .4); background: rgba(255, 255, 255, .08); }
.g-secondary strong { font: 600 16.5px/1.2 var(--f-display); color: var(--white); }
.g-secondary span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .66); }

.g-cta { margin-top: clamp(70px, 8vw, 100px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(120deg, var(--violet), var(--indigo)); box-shadow: 0 40px 90px -40px rgba(106, 63, 224, .9); }
.g-cta h3 { font-size: clamp(24px, 2.6vw, 32px); color: var(--white); margin-bottom: 8px; }
.g-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.g-cta .btn-primary { background: var(--white); color: var(--indigo); box-shadow: none; }

/* "¿Qué es la oftalmología?" sobre fondo claro (sección Servicios) */
.what-is-light { background: var(--white); border-color: var(--line); }
.what-is-light .what-ico { color: var(--white); }
.what-is-light p { color: var(--ink-2); }

@media (max-width: 1100px) {
  .g-steps { grid-template-columns: repeat(3, 1fr); }
  .g-steps::before { display: none; }
  .g-cards { grid-template-columns: 1fr 1fr; }
  .g-card, .g-card:nth-child(4) { grid-column: span 1; }
  .g-card:nth-child(5) { grid-column: span 2; }
  .g-secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .g-head, .g-consult, .g-laser, .g-types { grid-template-columns: 1fr; }
  .g-laser-media { order: -1; }
  /* En una columna, primero el título "Glaucoma" y luego el iris animado */
  .glaucoma-visual { order: 2; }
  .eye-viz { width: min(100%, 340px); }
}
@media (max-width: 640px) {
  .g-steps { grid-template-columns: 1fr; }
  .g-steps li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .g-step-ico { margin: 0; box-shadow: none; width: 44px; height: 44px; }
  .g-steps li > span:last-child { flex-basis: 100%; }
  .g-checks { grid-template-columns: 1fr; }
  .g-cards { grid-template-columns: 1fr; }
  .g-card:nth-child(5) { grid-column: auto; }
  .g-secondary { grid-template-columns: 1fr; }
  .g-cta .cta-actions, .g-cta .btn { width: 100%; }
}
