/* =====================================================================
   Dr. Orlando Villarreal — Neurocirujano
   Sistema visual: azul noche + cian de la marca, Sora / Inter / Instrument Serif
   ===================================================================== */

:root {
  --night: #050b17;
  --night-2: #0a1426;
  --night-3: #11203a;
  --navy: #12306b;
  --blue: #1667a6;
  --cyan: #2fc4f2;
  --cyan-2: #8fe3ff;
  --paper: #f3f6fa;
  --paper-2: #e9eef5;
  --white: #ffffff;
  --ink: #0b1526;
  --ink-2: #33415a;
  --muted: #5f6f86;
  --line: #dbe3ee;
  --line-dark: rgba(255, 255, 255, .12);
  --red: #e5484d;
  --green: #12a150;
  --amber: #c27c0e;

  --f-display: "Sora", 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);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .06), 0 12px 32px -12px rgba(11, 21, 38, .18);
  --shadow-lg: 0 30px 80px -30px rgba(5, 11, 23, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ------------------------------------------------------------- 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.12; letter-spacing: -.02em; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan); 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; }
.ico-lg { width: 28px; height: 28px; }
.ico-xl { width: 44px; height: 44px; }

/* ------------------------------------------------------------- tipografía */
.h2 { font-size: clamp(30px, 4.2vw, 54px); color: var(--ink); max-width: 18ch; }
.h3 { font-size: clamp(24px, 2.6vw, 34px); }
.h4 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.h2 em, .hero-lead em, .h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 13px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker .ico { width: 16px; height: 16px; }
.kicker-light { color: var(--cyan); }

/* ------------------------------------------------------------- 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: -.01em; 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 { --b-bg: var(--cyan); --b-fg: var(--night); box-shadow: 0 10px 30px -10px rgba(47, 196, 242, .7); }
.btn-primary:hover { --b-bg: #5fd3f6; box-shadow: 0 16px 40px -12px rgba(47, 196, 242, .85); }
.btn-dark { --b-bg: var(--ink); --b-fg: var(--white); }
.btn-dark:hover { --b-bg: var(--navy); }
.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 15px/1 var(--f-display); color: var(--blue); text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ------------------------------------------------------------- cabecera */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white); transition: background-color .35s, box-shadow .35s, height .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(5, 11, 23, .82); 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, .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: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-icon { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 600 17px/1.1 var(--f-display); letter-spacing: -.01em; }
.brand-text small { font: 500 10.5px/1.4 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: var(--cyan); }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul a { display: block; padding: 10px 14px; 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, .08); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-urgent { 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-urgent:hover { opacity: 1; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--red); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.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; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 70% 40%, #0d2142 0%, var(--night) 60%); color: var(--white); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -2; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  animation: heroZoom 18s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.12); filter: brightness(.75) saturate(.9); } to { transform: scale(1); filter: none; } }
.hero-neurons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 11, 23, .42) 0%, transparent 22%, transparent 66%, rgba(5, 11, 23, .88) 100%); }
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; position: relative; }
.hero-copy { max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); font: 500 13.5px/1 var(--f-display); letter-spacing: .04em; color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 196, 242, .2); }
.hero-title { font-size: clamp(52px, 8vw, 116px); font-weight: 700; line-height: .92; letter-spacing: -.045em; margin-bottom: 28px; }
.hero-title .line { display: block; }
.hero-title .line:last-child { background: linear-gradient(95deg, #fff 10%, var(--cyan-2) 60%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, .8); max-width: 30em; margin-bottom: 36px; }
.hero-lead em { background: none; color: var(--white); -webkit-text-fill-color: var(--white); font-size: 1.12em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { list-style: none; margin: 64px 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 28px; border-top: 1px solid var(--line-dark); }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.hero-facts strong { font: 600 17px/1.2 var(--f-display); }
.hero-facts span { font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 34px; width: 28px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 20px; }
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Entrada del hero */
.hero .reveal { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.hero .reveal:nth-child(1) { animation-delay: .15s; }
.hero .hero-title { animation-delay: .3s; }
.hero .hero-lead { animation-delay: .5s; }
.hero .hero-ctas { animation-delay: .65s; }
.hero .hero-facts { animation-delay: .85s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- cinta */
.ticker { background: var(--cyan); color: var(--night); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: ticker 50s linear infinite; font: 600 15px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.ticker-track i { font-style: normal; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- secciones */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .h2 { margin: 0 auto; }
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Aparición al hacer scroll */
.js .section .reveal, .js .urgent .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .section .reveal.is-in, .js .urgent .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- sobre */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about-photo::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 55%; height: 55%; border-radius: 28px; background: radial-gradient(circle at 30% 30%, rgba(47, 196, 242, .35), transparent 70%); z-index: -1; }
.about-badge { position: absolute; right: -24px; bottom: 32px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); max-width: 290px; }
.about-badge img { width: 34px; box-shadow: none; border-radius: 0; aspect-ratio: auto; }
.about-badge span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.35; }
.about-badge strong { font: 600 15px/1.25 var(--f-display); color: var(--ink); }
.about-copy .h2 { margin-bottom: 28px; }
.about-copy > p { color: var(--ink-2); max-width: 60ch; }
.stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 20px; margin: 44px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.stats div { margin: 0; }
.stats dt { font: 600 clamp(36px, 4vw, 52px)/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.04em; background: linear-gradient(160deg, var(--navy), var(--blue) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ------------------------------------------------------------- especialidades */
.specialties { background: var(--paper); }
.tab-list { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); margin-bottom: 40px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font: 600 15px/1 var(--f-display); color: var(--muted); white-space: nowrap; transition: background-color .25s, color .25s; }
.tab .ico { width: 20px; height: 20px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab[aria-selected="true"] .ico { color: var(--cyan); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; animation: fadeUp .6s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel-media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.panel-media img { width: 100%; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-lg); }
.panel-tall img { aspect-ratio: 4 / 5; }
.panel-wide img { aspect-ratio: 4 / 3; }
.panel-copy .h3 { margin-bottom: 14px; }
.panel-intro { font-size: 18px; color: var(--ink-2); }
.panel-kicker { margin: 26px 0 12px; font: 600 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.check-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.check-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.check-list .ico { width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: rgba(47, 196, 242, .16); color: var(--blue); stroke-width: 3; }

/* ------------------------------------------------------------- feature endoscopia */
.feature { background: var(--night); color: var(--white); overflow: hidden; }
.feature-bg { position: absolute; inset: 0; background:
  radial-gradient(50% 60% at 85% 30%, rgba(22, 103, 166, .45), transparent 70%),
  radial-gradient(40% 50% at 10% 90%, rgba(47, 196, 242, .14), transparent 70%); }
.feature-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.feature .h2 { color: var(--white); margin-bottom: 26px; }
.feature .h2 em { background: linear-gradient(100deg, var(--cyan-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.feature-copy > p { color: rgba(255, 255, 255, .74); max-width: 56ch; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 40px 0 32px; border-radius: 20px; overflow: hidden; background: var(--line-dark); }
.metric { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; background: var(--night-2); }
.metric-n { font: 600 44px/1 var(--f-display); letter-spacing: -.04em; color: var(--cyan); min-height: 44px; display: flex; align-items: flex-end; }
.metric-n small { font-size: 18px; margin-left: 4px; color: var(--cyan-2); letter-spacing: 0; }
.metric-l { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .64); }
.feature-note { font-size: 15px; padding-left: 18px; border-left: 2px solid var(--cyan); color: rgba(255, 255, 255, .7) !important; }
.feature-media { position: relative; margin: 0 0 60px; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.feature-media img.feature-inset { position: absolute; left: -40px; bottom: -60px; width: 40%; aspect-ratio: 4 / 5; border-radius: 18px; border: 6px solid var(--night); box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------- trayectoria */
.training-portrait { margin: 0; width: 150px; flex: none; }
.training-portrait img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.training-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.tl-n { font: 600 15px/1 var(--f-display); color: var(--blue); padding-top: 6px; letter-spacing: .04em; }
.timeline h3 { font-size: clamp(19px, 1.8vw, 23px); margin-bottom: 8px; line-height: 1.25; }
.timeline p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tl-country { color: var(--blue); font-weight: 500; }
.training-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.card-soft { padding: 28px; border-radius: var(--radius); background: var(--paper); }
.card-soft .h4 { margin-bottom: 18px; }
.card-soft .h4 .ico { color: var(--blue); width: 22px; height: 22px; }
.assoc { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.assoc li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; }
.assoc strong { font: 700 14px/1 var(--f-display); color: var(--navy); letter-spacing: .02em; }
.assoc span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.langs { display: flex; gap: 10px; margin: 0; }
.langs span { padding: 8px 16px; border-radius: 999px; background: var(--white); font: 500 14px/1 var(--f-display); box-shadow: 0 0 0 1px var(--line); }
.courses { margin-top: 56px; border-radius: 22px; background: var(--night); color: var(--white); overflow: hidden; }
.courses summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; cursor: pointer; }
.courses summary::-webkit-details-marker { display: none; }
.courses summary > span:first-child { display: flex; flex-direction: column; gap: 6px; }
.courses summary strong { font: 600 21px/1.2 var(--f-display); }
.courses summary small { color: rgba(255, 255, 255, .6); font-size: 14px; }
.courses-toggle { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: var(--night); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease); }
.courses-toggle .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.courses[open] .courses-toggle { transform: rotate(45deg); }
.courses-grid { list-style: none; margin: 0; padding: 0 32px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.courses-grid li { padding: 20px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.courses-grid p { margin: 0; font-size: 15px; line-height: 1.45; }
.courses-grid small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cyan-2); }
.courses-grid small .ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------- consultorio */
.clinic { background: var(--paper); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 17vw, 230px); gap: 16px; }
.bento figure { margin: 0; overflow: hidden; border-radius: 22px; position: relative; }
.bento picture, .bento img { width: 100%; height: 100%; }
.bento img { object-fit: cover; transition: transform 1.2s var(--ease); }
.bento figure:hover img { transform: scale(1.05); }
.b-1 { grid-column: span 7; grid-row: span 2; }
.b-2 { grid-column: span 5; grid-row: span 2; }
.b-3 { grid-column: span 4; grid-row: span 2; }
.b-4 { grid-column: span 8; grid-row: span 2; }
.b-2 img { object-position: 50% 0%; }
.b-3 img { object-position: 50% 25%; }

/* ------------------------------------------------------------- sedes */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.loc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.loc-card.is-main { background: linear-gradient(160deg, var(--navy), var(--night) 80%); color: var(--white); border-color: transparent; }
.loc-card h3 { font-size: 24px; }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(47, 196, 242, .16); color: var(--cyan); font: 600 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.loc-addr { display: flex; gap: 10px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.is-main .loc-addr { color: rgba(255, 255, 255, .72); }
.loc-addr .ico { margin-top: 3px; color: var(--blue); }
.is-main .loc-addr .ico, .is-main .loc-phones .ico { color: var(--cyan); }
.loc-phones { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 8px; }
.loc-phones a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15.5px/1.2 var(--f-display); }
.loc-phones a:hover { color: var(--blue); }
.is-main .loc-phones a:hover { color: var(--cyan); }
.loc-phones .ico { color: var(--blue); width: 17px; height: 17px; }
.is-main .link-arrow { color: var(--cyan); }
.contact-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; background: var(--paper); overflow: hidden; }
.contact-strip a { display: flex; align-items: center; gap: 16px; padding: 26px 30px; text-decoration: none; transition: background-color .25s; min-width: 0; }
.contact-strip a + a { border-left: 1px solid var(--line); }
.contact-strip a:hover { background: var(--paper-2); }
.contact-strip .ico { color: var(--blue); }
.contact-strip span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-strip small { font-size: 13px; color: var(--muted); }
.contact-strip strong { font: 600 17px/1.2 var(--f-display); overflow-wrap: anywhere; }

/* ------------------------------------------------------------- seguros */
.insurers { background: var(--night); color: var(--white); padding-bottom: clamp(60px, 8vw, 100px); overflow: hidden; }
.insurers .h2 { color: var(--white); }
.insurers-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.vet-callout { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); text-decoration: none; transition: background-color .25s, border-color .25s; }
.vet-callout:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.vet-callout > .ico:first-child { color: var(--cyan); }
.vet-callout span { display: flex; flex-direction: column; gap: 4px; }
.vet-callout strong { font: 600 17px/1.1 var(--f-display); }
.vet-callout small { color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: .04em; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; gap: 14px; padding: 0 7px; margin: 0; list-style: none; animation: ticker 60s linear infinite; }
.marquee-track li { padding: 18px 28px; border-radius: 999px; border: 1px solid var(--line-dark); font: 600 16px/1 var(--f-display); white-space: nowrap; color: rgba(255, 255, 255, .86); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { animation-name: marquee; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------- instagram */
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-grid a { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.ig-grid picture, .ig-grid img { width: 100%; height: 100%; }
.ig-grid img { object-fit: cover; transition: transform .8s var(--ease); }
.ig-hover { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, rgba(18, 48, 107, .75), rgba(47, 196, 242, .55)); opacity: 0; transition: opacity .35s; }
.ig-grid a:hover img { transform: scale(1.08); }
.ig-grid a:hover .ig-hover, .ig-grid a:focus-visible .ig-hover { opacity: 1; }

/* ------------------------------------------------------------- urgencias */
.urgent { background: linear-gradient(120deg, #0b1d3d 0%, var(--navy) 50%, var(--blue) 100%); color: var(--white); padding: clamp(60px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.urgent::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47, 196, 242, .35), transparent 65%); }
.urgent-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.urgent .h2 { color: var(--white); margin-bottom: 14px; }
.urgent .h2 em { background: none; color: var(--cyan-2); -webkit-text-fill-color: var(--cyan-2); }
.urgent p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 18px; }
.urgent .kicker::before { display: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ig-title em { overflow-wrap: anywhere; }

/* 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 { background: var(--paper); }
.lang ul a[aria-current] { font-weight: 600; background: var(--paper); }
.lang ul .flag { width: 26px; height: 17px; }
.lang-mobile { display: none; }

/* ------------------------------------------------------------- pie */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); padding: 80px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 260px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.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(--cyan); color: var(--night); border-color: var(--cyan); }
.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 { display: inline-flex; align-items: flex-start; gap: 10px; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--cyan); }
.footer-list .ico { width: 17px; height: 17px; margin-top: 3px; color: var(--cyan); }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.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: #25d366; color: #fff; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa .ico { width: 30px; height: 30px; }

/* ------------------------------------------------------------- páginas internas */
.page-hero { position: relative; background: var(--night); color: var(--white); padding: clamp(56px, 8vw, 100px) 0 clamp(120px, 14vw, 170px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(22, 103, 166, .55), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(47, 196, 242, .16), transparent 70%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); 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(--cyan-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 { 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: 20px; 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(--blue); }
.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(--red); }
.side-portrait { display: flex; align-items: center; gap: 16px; }
.side-portrait img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.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(--blue); }
.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(--cyan); }
.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, veterans) */
.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 ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.content-card { background: var(--white); border-radius: 26px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }

/* Veterans */
.vet-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.vet-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.vet-badges li { padding: 10px 18px; border-radius: 999px; background: rgba(47, 196, 242, .12); color: var(--cyan-2); border: 1px solid rgba(47, 196, 242, .3); font: 600 14px/1 var(--f-display); letter-spacing: .04em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col .check-list { grid-template-columns: 1fr; margin-bottom: 0; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-list li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: 15.5px; }
.req-list .ico { color: var(--blue); }
.note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff7e6; color: #6b4a00; font-size: 14.5px; }
.vet-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--night); color: var(--white); padding: 120px 20px 80px; }
.not-found h1 { font-size: clamp(80px, 16vw, 180px); letter-spacing: -.06em; background: linear-gradient(100deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: rgba(255, 255, 255, .7); margin-bottom: 28px; }

/* =====================================================================
   Formulario de reserva (marcado generado por assets/js/reservas.js)
   ===================================================================== */
.ncr { --ncr-primary: var(--blue); font-size: 16px; }
.ncr-card { background: var(--white); border-radius: 26px; 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: 26px; 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; }
@keyframes spin { to { transform: rotate(360deg); } }

.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(--cyan); }
.ncr-steps li.current::before { background: var(--blue); }
.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(--blue); transform: translateY(-2px); }
.ncr-type.is-on { border-color: var(--blue); background: rgba(22, 103, 166, .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: #a7b2c3; border: 0; background: none; position: relative; }
.ncr-day.ncr-empty { visibility: hidden; }
.ncr-day.is-free { color: var(--ink); background: rgba(47, 196, 242, .12); cursor: pointer; font-weight: 600; transition: background-color .2s, color .2s; }
.ncr-day.is-free:hover { background: rgba(47, 196, 242, .28); }
.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(--blue); }
.ncr-day.is-on i { background: var(--cyan); }
.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(47, 196, 242, .25); }

.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(--blue); color: var(--blue); }
.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(--blue); box-shadow: 0 0 0 4px rgba(22, 103, 166, .12); }
.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(--blue); flex: none; }
.ncr-check a { color: var(--blue); }

.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: var(--cyan); color: var(--night); font: 600 15.5px/1 var(--f-display); cursor: pointer; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(47, 196, 242, .8); transition: transform .2s var(--ease), background-color .2s; }
.ncr-btn:hover:not(:disabled) { transform: translateY(-2px); background: #5fd3f6; }
.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); }
.ncr-btn-danger { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -12px rgba(229, 72, 77, .7); }
.ncr-btn-danger:hover:not(:disabled) { background: #d63a3f; }
.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(--navy); }

.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: #e7f3fb; color: #0e4470; }
.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(--blue); 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(--cyan), var(--blue)); color: var(--white); font-size: 36px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(22, 103, 166, .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; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .lang-desktop summary span { display: none; }
}

@media (max-width: 1100px) {
  .nav > ul a { padding: 10px 10px; font-size: 14px; }
  .header-urgent span:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-btn { display: grid; }
  .header-cta, .header-urgent { 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-media { width: 100%; }
  .hero-media img { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%); object-position: 60% 15%; opacity: .9; }
  .hero-shade { background: linear-gradient(180deg, rgba(5, 11, 23, .5) 0%, rgba(5, 11, 23, .15) 30%, rgba(5, 11, 23, .85) 62%, var(--night) 100%); }
  .hero-in { justify-content: flex-end; padding-top: calc(var(--header-h) + 24vh); }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 40px; }
  .hero-scroll { display: none; }

  .about-grid, .tab-panel, .feature-grid, .training-grid, .book-grid, .vet-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
  .about-badge { right: 12px; }
  .panel-media { position: static; }
  .panel-tall img { aspect-ratio: 4 / 3; object-position: 50% 20%; }
  .feature-media { margin: 0 0 40px; }
  .feature-media img.feature-inset { left: auto; right: -8px; bottom: -40px; width: 36%; }
  .training-side, .side { position: static; }
  .loc-grid { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip a + a { border-left: 0; border-top: 1px solid var(--line); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; }
  .b-1, .b-4 { grid-column: span 2; grid-row: span 1; }
  .b-2, .b-3 { grid-column: span 1; grid-row: span 1; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-icon { width: 30px; }
  .hero-title { font-size: clamp(50px, 15vw, 72px); }
  .hero-ctas .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .hero-facts strong { font-size: 15px; }
  .hero-facts { padding-right: 64px; }
  .contact-strip strong { font-size: 15px; }
  .tab .ico { display: none; }
  .check-list { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { flex-direction: row; align-items: center; gap: 18px; }
  .metric-n { min-width: 92px; font-size: 38px; min-height: 0; }
  .courses summary { padding: 22px; }
  .courses-grid { grid-template-columns: 1fr; padding: 0 22px 22px; }
  .timeline li { grid-template-columns: 40px 1fr; gap: 12px; }
  .training-portrait { width: 110px; }
  .training-portrait img { width: 110px; height: 110px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tab { padding: 12px 18px; font-size: 14.5px; }
  .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; }
  .vet-callout { width: 100%; }
  .ig-title em { display: block; font-size: .78em; }
}

@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-neurons { display: none; }
}
.ncr-msg .ncr-slots { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* =====================================================================
   Banner claro (inicio) y cabecera sobre fondo claro
   ===================================================================== */
.brand-icon-color { display: none; }

.hero-light { background: radial-gradient(110% 90% at 78% 35%, #dcecf8 0%, #eef5fb 45%, #f8fbfe 75%, #fff 100%); color: var(--ink); }
.hero-light .hero-media img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 42%);
  object-position: 55% 25%; animation-name: heroZoomLight;
}
@keyframes heroZoomLight { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero-light .hero-neurons { opacity: .55; }
.hero-light .hero-shade { background: linear-gradient(180deg, rgba(248, 251, 254, .55) 0%, rgba(248, 251, 254, 0) 20%, rgba(248, 251, 254, 0) 78%, rgba(248, 251, 254, .85) 100%); }
.hero-light .eyebrow { border-color: var(--line); background: rgba(255, 255, 255, .7); color: var(--ink-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-light .eyebrow .dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(22, 103, 166, .15); }
.hero-light .hero-title { color: var(--navy); }
.hero-light .hero-title .line:last-child { background: linear-gradient(95deg, var(--navy) 5%, var(--blue) 55%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-light .hero-lead { color: var(--ink-2); }
.hero-light .hero-lead em { color: var(--navy); -webkit-text-fill-color: var(--navy); }
.hero-light .hero-facts { border-top-color: var(--line); }
.hero-light .hero-facts strong { color: var(--navy); }
.hero-light .hero-facts span { color: var(--muted); }
.hero-light .hero-scroll { border-color: rgba(11, 21, 38, .3); }
.hero-light .hero-scroll span { background: var(--navy); }
.btn-glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: var(--white); border-color: var(--navy); }

/* Cabecera transparente con letras oscuras mientras está sobre el banner claro */
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) { color: var(--ink); }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .brand-icon-light { display: none; }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .brand-icon-color { display: block; }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .brand-text small { color: var(--blue); }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .nav > ul a { color: var(--ink-2); }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .nav > ul a:hover { color: var(--ink); background: rgba(11, 21, 38, .06); }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .lang-desktop summary { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .6); }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .header-urgent { color: var(--ink); }
.has-light-hero:not(.menu-open) .site-header:not(.is-scrolled) .menu-btn { border-color: var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); }

@media (max-width: 960px) {
  .hero-light .hero-media img {
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 90%); mask-image: linear-gradient(180deg, #000 45%, transparent 90%);
    opacity: 1; object-position: 62% 18%;
  }
  .hero-light .hero-shade { background: linear-gradient(180deg, rgba(248, 251, 254, .35) 0%, rgba(248, 251, 254, 0) 22%, rgba(248, 251, 254, .8) 52%, #f8fbfe 66%, #f8fbfe 100%); }
  /* Con el menú abierto el panel es oscuro: cabecera oscura también */
  .has-light-hero.menu-open .site-header { color: var(--white); }
}
