/* ==========================================================================
   Club Pediátrico 5+ — hoja de estilos
   Tokens y reglas: DESIGN.md (raíz del repo). Sin frameworks. Tema fijo claro.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Marca (del logo) */
  --navy: #011750;
  --navy-hover: #0a2a7a;
  --teal: #01918d;
  --teal-700: #016d6a;
  --teal-50: #e6f4f4;
  --coral: #fd4f4e;
  --coral-700: #be3b3a;
  --coral-50: #ffeded;
  --amber: #fca402;
  --amber-50: #fff6e6;
  /* Neutros */
  --ink: var(--navy);
  --ink-2: #5b6480;
  --ink-3: #6b7390;
  --line: #e6e9f0;
  --surface: #f4f6fa;
  --bg: #ffffff;
  /* Tipografía */
  --font-display: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Forma y profundidad */
  --r-card: 20px;
  --r-input: 14px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(1, 23, 80, .06), 0 4px 12px rgba(1, 23, 80, .06);
  --sh-2: 0 8px 24px rgba(1, 23, 80, .10), 0 2px 6px rgba(1, 23, 80, .06);
  /* Ritmo */
  --gutter: 20px;
  --container: 1200px;
  --sec: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1024px) { :root { --gutter: 40px; --sec: 112px; } }
@media (min-width: 640px) and (max-width: 1023px) { :root { --gutter: 28px; --sec: 80px; } }

/* --- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal-50); color: var(--navy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); z-index: 100; text-decoration: none; }
.skip:focus { top: 16px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
h3 { font-size: clamp(20px, 2vw, 22px); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.55; }
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.muted { color: var(--ink-2); }
/* Contraste AA: --ink-3 (#6b7390) da 4.7:1 sobre blanco, pero solo 4.33:1 sobre --surface.
   En los bloques con ese fondo se oscurece a 4.9:1 sin tocar el token de DESIGN.md. */
.footer, .sec--surface, .chat__log, .empty, .aviso, .tarifa { --ink-3: #626a86; }
.small { font-size: 14px; line-height: 1.5; }
.mark { color: var(--teal); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--surface { background: var(--surface); }
.sec--teal { background: var(--teal-50); }
.sec--navy { background: var(--navy); color: #fff; }
.sec--navy h2, .sec--navy h3 { color: #fff; }
.sec--navy .lead, .sec--navy .muted { color: rgba(255, 255, 255, .78); }
.sec-head { max-width: 62ch; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 56px; } }

.hero__in > *, .manifesto > *, .split > *, .tarifas > *, .excl > *, .equipo > *, .contacto > *, .svc-detail > *, .grid-2 > *, .form__row > *, .field > * { min-width: 0; }
.field select { max-width: 100%; }
.contacto__side > *, .panel > * { min-width: 0; }
a[href^="mailto:"], .panel__row span, .footer li { overflow-wrap: anywhere; }

/* --- Iconos ------------------------------------------------------------ */
.ic { width: 1em; height: 1em; flex: none; }
.chip {
  width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-50); color: var(--teal-700);
}
.chip .ic { width: 22px; height: 22px; }
.chip--coral { background: var(--coral-50); color: var(--coral-700); }
.chip--amber { background: var(--amber-50); color: var(--navy); }
.chip--navy { background: var(--navy); color: #fff; }

/* --- Botones ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--surface); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--teal-50); border-color: var(--teal-50); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .btn-row .btn { width: 100%; } }

/* --- Píldoras y avisos ------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--teal-50); color: var(--teal-700);
}
.pill--coral { background: var(--coral-50); color: var(--coral-700); }
.pill--amber { background: var(--amber-50); color: var(--navy); }
.aviso {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0;
  padding: 14px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5;
}
.aviso .ic { width: 20px; height: 20px; color: var(--coral-700); margin-top: 2px; }
.aviso strong { color: var(--navy); }
.aviso--compact { display: inline-flex; padding: 8px 14px; font-size: 14px; border-radius: 0 12px 12px 0; }

/* --- Navegación -------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-stuck { box-shadow: var(--sh-1); border-color: var(--line); }
.nav__in { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__iso { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.brand__name small { display: block; font-size: 11px; letter-spacing: .18em; font-weight: 700; margin-bottom: 3px; }
.brand__name .five { color: var(--teal); }
.brand__name .plus { color: var(--coral); }
.nav__links { display: none; margin-left: auto; gap: 26px; }
.nav__links a { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.is-active { border-bottom-color: var(--teal); }
.nav__cta { display: none; }
.nav__burger { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nav__burger .ic { width: 26px; height: 26px; }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; flex-direction: column; padding: 20px var(--gutter) 40px; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.menu__close { width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: 12px; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu__links { display: flex; flex-direction: column; margin-top: 32px; }
.menu__links a { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--navy); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu__foot { margin-top: auto; display: grid; gap: 12px; }

/* --- Hero -------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%); overflow: hidden; }
.hero__in { display: grid; gap: 40px; padding-block: 40px 56px; align-items: center; }
.hero__copy { display: grid; gap: 22px; max-width: 640px; }
.hero__copy h1 { max-width: 19ch; }
.hero__copy .lead { max-width: 52ch; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__visual::before { content: ""; position: absolute; inset: 8% -4% -6% -4%; background: #fff; border-radius: 42% 58% 55% 45% / 45% 45% 55% 55%; box-shadow: var(--sh-2); }
.hero__visual img { position: relative; width: 100%; height: auto; padding: 8% 10% 0; }
.hero__badge {
  position: absolute; right: -4px; bottom: 6%; background: var(--navy); color: #fff; border-radius: 18px; padding: 14px 18px;
  font-family: var(--font-display); line-height: 1.1; box-shadow: var(--sh-2);
}
.hero__badge strong { display: block; font-size: 26px; font-weight: 800; }
.hero__badge span { font-size: 13px; color: rgba(255, 255, 255, .78); }
@media (min-width: 1024px) {
  .hero__in { grid-template-columns: 7fr 5fr; gap: 64px; padding-block: 64px 96px; }
  .hero__visual { width: min(100%, 480px); justify-self: end; }
}

/* --- Qué es: bloque manifiesto + cifras ------------------------------- */
.manifesto { display: grid; gap: 32px; }
.manifesto__text { max-width: 60ch; }
.stats { display: grid; gap: 14px; }
.stat { border-top: 3px solid var(--teal); padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1; color: var(--navy); white-space: nowrap; }
.stat span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; } .stat { display: block; } .stat span { display: block; margin-top: 8px; } }
.stat:nth-child(2) { border-color: var(--coral); }
.stat:nth-child(3) { border-color: var(--amber); }
@media (min-width: 1024px) { .manifesto { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; } }
.mensajes { display: grid; gap: 12px; margin-top: 28px; }
.mensajes li { list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); padding-left: 28px; position: relative; }
.mensajes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 3px; border-radius: 2px; background: var(--teal); }
.mensajes { padding: 0; margin-block: 28px 0; }

/* --- Beneficios: bento ------------------------------------------------- */
.bento { display: grid; gap: 16px; }
.bento__cell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.bento__cell h3 { font-size: 20px; }
.bento__cell p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.bento__cell--teal { background: var(--teal-50); border-color: transparent; }
.bento__cell--coral { background: var(--coral-50); border-color: transparent; }
.bento__cell--amber { background: var(--amber-50); border-color: transparent; }
.bento__cell--navy { background: var(--navy); border-color: transparent; }
.bento__cell--navy h3 { color: #fff; }
.bento__cell--navy p { color: rgba(255, 255, 255, .8); }
.bento__cell--navy .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.bento__cell .iso-bg { position: absolute; right: -10%; bottom: -14%; width: 56%; opacity: .12; pointer-events: none; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell--wide { grid-column: span 2; }
  .bento__cell--wide p { max-width: 46ch; }
}

/* --- Servicios --------------------------------------------------------- */
.featured { display: grid; gap: 16px; margin-bottom: 20px; }
.featured__card { display: grid; gap: 16px; padding: 28px; border-radius: var(--r-card); background: var(--navy); color: #fff; }
.featured__card h3 { color: #fff; font-size: 22px; }
.featured__card p { color: rgba(255, 255, 255, .8); font-size: 16px; }
.featured__card .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.featured__card--teal { background: var(--teal-700); }
.featured__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.featured__card a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
@media (min-width: 768px) { .featured { grid-template-columns: 1fr 1fr; } }
.svc-grid { display: grid; gap: 12px; }
.svc {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  color: var(--navy); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.svc:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: transparent; }
.svc .chip { width: 40px; height: 40px; border-radius: 12px; }
.svc strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.svc small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.svc .ic--go { margin-left: auto; color: var(--teal); width: 20px; height: 20px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Tarifas (bloque navy) -------------------------------------------- */
.tarifas { display: grid; gap: 32px; }
.tarifas__card { background: #fff; color: var(--navy); border-radius: var(--r-card); padding: 8px; box-shadow: var(--sh-2); }
.tarifas__vig { display: flex; align-items: center; gap: 8px; padding: 14px 20px 6px; font-size: 14px; color: var(--ink-2); }
.tarifas__vig .ic { width: 18px; height: 18px; color: var(--teal-700); }
.tarifa { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 20px; border-radius: 14px; }
.tarifa:nth-child(even) { background: var(--surface); }
.tarifa__nombre { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.25; }
.tarifa__nota { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.tarifa__precio { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-align: right; white-space: nowrap; }
.tarifa__precio small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--ink-3); }
.tarifa__precio--texto { font-size: 15px; font-weight: 700; color: var(--teal-700); max-width: 16ch; white-space: normal; }
.membresia {
  display: grid; gap: 6px; padding: 28px; border-radius: var(--r-card); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
}
.membresia strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 56px); line-height: 1; }
.membresia span { color: rgba(255, 255, 255, .78); }
.tarifas__notas { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .78); }
.tarifas__notas li { padding-left: 22px; position: relative; }
.tarifas__notas li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--amber); }
@media (min-width: 1024px) { .tarifas { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* --- Cómo funciona: pasos --------------------------------------------- */
.pasos { display: grid; gap: 24px; counter-reset: paso; }
.paso { position: relative; padding-top: 16px; border-top: 2px solid var(--line); }
.paso::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--teal); display: block; margin-bottom: 14px; }
.paso h3 { font-size: 20px; margin-bottom: 8px; }
.paso p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 768px) { .pasos { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .pasos { grid-template-columns: repeat(4, 1fr); } }

/* --- Teleorientación: texto + panel ----------------------------------- */
.split { display: grid; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 18px; }
.panel__row { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.panel__row .ic { width: 22px; height: 22px; color: var(--teal-700); flex: none; margin-top: 3px; }
.panel__precio { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel__precio strong { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; }
.panel__precio span { color: var(--ink-3); font-size: 14px; }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; gap: 64px; } .split--rev { grid-template-columns: 5fr 7fr; } }

/* --- Exclusiones ------------------------------------------------------- */
.excl { display: grid; gap: 40px; }
.excl__list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.excl__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.excl__list .ic { width: 22px; height: 22px; color: var(--coral-700); flex: none; margin-top: 2px; }
@media (min-width: 768px) { .excl__list { grid-template-columns: 1fr 1fr; gap: 14px 32px; } }
@media (min-width: 1024px) { .excl { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* --- Equipo ------------------------------------------------------------ */
.equipo { display: grid; gap: 24px; }
.medico { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.medico__foto { width: 96px; height: 96px; border-radius: 24px; background: var(--teal-50); display: grid; place-items: center; overflow: hidden; }
.medico__foto img { width: 100%; height: 100%; object-fit: cover; }
.medico__foto .ic { width: 40px; height: 40px; color: var(--teal-700); }
.medico h3 { font-size: 20px; }
.medico p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 768px) { .equipo { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; } }

/* --- FAQ --------------------------------------------------------------- */
.faq-groups { display: grid; gap: 40px; }
.faq-group h2 { font-size: 18px; color: var(--teal-700); margin-bottom: 8px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--coral); flex: none; transition: transform .25s var(--ease); }
.faq[open] summary .ic { transform: rotate(45deg); }
.faq__a { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
@media (min-width: 1024px) { .faq-groups { grid-template-columns: 1fr 1fr; gap: 24px 64px; } }

/* --- Contacto ---------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-input);
  font: inherit; font-size: 16px; color: var(--navy); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--r-input); }
.field small { color: var(--ink-3); font-size: 13px; }
.field .error { color: var(--coral-700); font-size: 13px; font-weight: 600; display: none; }
.field.is-invalid input { border-color: var(--coral-700); }
.field.is-invalid .error { display: block; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 24px; height: 24px; margin-top: 0; accent-color: var(--navy); flex: none; }
.form__ok { display: none; padding: 20px 24px; border-radius: 16px; background: var(--teal-50); color: var(--navy); font-weight: 600; }
.form__ok .ic { width: 22px; height: 22px; color: var(--teal-700); vertical-align: -5px; margin-right: 6px; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__ok { display: block; }
.contacto { display: grid; gap: 40px; }
.contacto__side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) { .contacto { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* --- CTA final --------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta__in { display: grid; gap: 24px; justify-items: start; max-width: 640px; position: relative; }
.cta .iso-bg { position: absolute; right: -6%; top: -10%; width: min(52%, 520px); opacity: .18; pointer-events: none; }

/* --- Footer ------------------------------------------------------------ */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 14px; color: var(--ink-2); }
.footer__grid { display: grid; gap: 32px; }
.footer h2 { font-size: 15px; margin-bottom: 8px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer li { display: flex; align-items: center; min-height: 26px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer ul a { display: inline-flex; align-items: center; min-height: 26px; padding-block: 4px; }
.footer a:hover { color: var(--navy); text-decoration: underline; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 13px; color: var(--ink-3); }
.footer__brand img { width: 220px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* --- Página interior (servicio, legal, blog) ---------------------------- */
.page-head { padding-block: 40px 32px; background: linear-gradient(180deg, #fff, var(--teal-50)); }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); max-width: 20ch; }
.page-head .lead { margin-top: 14px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--teal-700); }
.svc-detail { display: grid; gap: 40px; }
.svc-detail__aside { display: grid; gap: 16px; align-content: start; }
.svc-block h2 { font-size: 24px; margin-bottom: 12px; }
.svc-block + .svc-block { margin-top: 32px; }
@media (min-width: 1024px) { .svc-detail { grid-template-columns: 7fr 5fr; gap: 64px; } }
.related { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related { grid-template-columns: repeat(3, 1fr); } }
.pend { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--amber-50); color: var(--navy); font-size: 12px; font-weight: 700; }
.posts { display: grid; gap: 20px; }
.post-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--navy); }
.post-card time { font-size: 13px; color: var(--ink-3); }
.post-card p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(2, 1fr); } }
.empty { padding: 40px; border-radius: var(--r-card); background: var(--surface); text-align: center; color: var(--ink-2); }

/* --- Chat -------------------------------------------------------------- */
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat__panel { width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2); overflow: hidden; display: flex; flex-direction: column; }
.chat__head { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat__head .chip { background: rgba(255, 255, 255, .12); color: #fff; width: 40px; height: 40px; }
.chat__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.chat__sub { font-size: 12px; color: rgba(255, 255, 255, .72); }
.chat__close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat__log { padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; max-height: 46dvh; overscroll-behavior: contain; min-height: 200px; overflow-y: auto; }
.chat__msg { max-width: 88%; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.chat__msg--me { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 16px 16px 4px 16px; }
.chat__msg--typing { color: var(--ink-3); }
.chat__msg a { display: inline-block; margin-top: 8px; font-weight: 700; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__chips button { font: inherit; font-size: 13px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border: 0; border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; }
.chat__form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 0 16px; font: inherit; font-size: 15px; color: var(--navy); }
.chat__form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.chat__form input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--r-pill); }
.chat__send { width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat__wa { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 0 12px; font-size: 13px; font-weight: 700; }
.chat__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: var(--r-pill); background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; box-shadow: var(--sh-2); cursor: pointer; }
.chat__toggle .ic { width: 22px; height: 22px; }

/* --- Motion (contenido) ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  [data-reveal-stagger].in > * { opacity: 1; transform: none; }
  .hero__copy > * { animation: rise .7s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  .hero__copy > *:nth-child(4) { animation-delay: .24s; }
  .hero__visual { animation: rise .8s var(--ease) .2s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* --- Utilidades -------------------------------------------------------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.flow > * + * { margin-top: 16px; }

/* ==========================================================================
   v3 — capa inmersiva (video, parallax, contadores, marquee, tilt)
   Todo el movimiento se apaga bajo prefers-reduced-motion.
   ========================================================================== */

/* --- Barra de progreso de lectura ------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal), var(--coral), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* --- Hero v3: video a sangre ------------------------------------------- */
.hero-v3 { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.hero-v3__media { position: absolute; inset: 0; z-index: -2; }
.hero-v3__media picture, .hero-v3__media video { position: absolute; inset: 0; display: block; }
.hero-v3__media video, .hero-v3__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-v3__media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-v3__media video.is-ready { opacity: 1; }
.hero-v3::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(1, 23, 80, .88) 0%, rgba(1, 23, 80, .72) 45%, rgba(1, 23, 80, .35) 100%); }
.hero-v3__in { display: grid; gap: 40px; padding-block: 56px 120px; align-items: center; min-height: min(760px, 92dvh); }
.hero-v3__copy { display: grid; gap: 22px; max-width: 640px; }
.hero-v3 h1 { color: #fff; max-width: 17ch; }
.hero-v3 h1 .mark { color: var(--amber); }
.hero-v3 .lead { color: rgba(255, 255, 255, .85); max-width: 48ch; }
.hero-v3 .aviso--compact { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); border-left-color: var(--amber); backdrop-filter: blur(6px); }
.hero-v3 .aviso--compact strong { color: #fff; }
.hero-v3 .aviso--compact .ic { color: var(--amber); }
.hero-v3__iso { display: none; justify-self: end; width: min(100%, 440px); }
/* El isotipo va a color sobre el video; el halo blanco lo separa del fondo oscuro. */
.hero-v3__iso svg { width: 100%; height: auto; overflow: hidden; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .85)) drop-shadow(0 0 8px rgba(255, 255, 255, .3)) drop-shadow(0 16px 34px rgba(1, 23, 80, .5)); }
@media (min-width: 1024px) {
  .hero-v3__in { grid-template-columns: 7fr 5fr; gap: 64px; padding-block: 72px 140px; }
  .hero-v3__iso { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-v3__iso svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards; }
  .hero-v3__iso svg path:nth-of-type(2) { animation-delay: .25s; }
  .hero-v3__iso svg path:nth-of-type(3) { animation-delay: .5s; }
  .hero-v3__iso svg path:nth-of-type(4) { animation-delay: .75s; }
  .hero-v3__iso svg path:nth-of-type(5) { animation-delay: 1s; }
  .hero-v3__iso svg path:nth-of-type(6) { animation-delay: 1.2s; }
  .hero-v3__iso svg path:nth-of-type(7) { animation-delay: 1.4s; }
  .hero-v3__iso svg path:nth-of-type(n+8) { animation-delay: 1.6s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* --- Texto que se revela palabra por palabra --------------------------- */
.words .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .words .w { opacity: 0; transform: translateY(.6em) rotate(2deg); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms); }
  .words.in .w { opacity: 1; transform: none; }
}

/* --- Banda de cifras superpuesta al hero ------------------------------ */
.statband { position: relative; z-index: 2; margin-top: -72px; }
.statband__in { display: grid; gap: 4px; background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-2); padding: 8px; }
.statband .stat { border-top: 0; border-left: 3px solid var(--teal); padding: 16px 20px; border-radius: 14px; display: grid; grid-template-columns: 1fr; gap: 4px; }
.statband .stat:nth-child(2) { border-color: var(--coral); }
.statband .stat:nth-child(3) { border-color: var(--amber); }
.statband .stat:nth-child(4) { border-color: var(--navy); }
.statband .stat strong { font-size: clamp(28px, 3vw, 36px); white-space: nowrap; }
.statband .stat span { font-size: 13px; }
@media (min-width: 640px) { .statband__in { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .statband__in { grid-template-columns: repeat(4, 1fr); } .statband { margin-top: -84px; } }

/* --- Imagen con parallax y marco -------------------------------------- */
.photo { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--teal-50); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .photo[data-parallax] img { height: 118%; margin-top: -9%; animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
  }
}
.photo__quote { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: 16px; padding: 16px 18px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); box-shadow: var(--sh-2); }
.photo__quote::before { content: ""; display: block; width: 28px; height: 3px; background: var(--coral); border-radius: 2px; margin-bottom: 10px; }
@media (min-width: 1024px) { .photo__quote { left: auto; right: -24px; bottom: 32px; max-width: 300px; } .photo--overflow { overflow: visible; } .photo--overflow img { border-radius: var(--r-card); } }

/* --- Bento con foto ---------------------------------------------------- */
.bento__cell--photo { padding: 0; min-height: 280px; color: #fff; border-color: transparent; }
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__cell--photo:hover img { transform: scale(1.04); }
.bento__cell--photo .bento__over { position: absolute; inset: 0; display: grid; align-content: end; gap: 8px; padding: 28px; background: linear-gradient(180deg, rgba(1, 23, 80, 0) 30%, rgba(1, 23, 80, .85) 100%); }
.bento__cell--photo h3 { color: #fff; }
.bento__over > .pill { justify-self: start; }
.bento__cell--photo p { color: rgba(255, 255, 255, .85); }

/* --- Marquee (uno por página) ------------------------------------------ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; padding-left: 48px; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 30px); color: var(--navy); white-space: nowrap; }
.marquee__item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.marquee__item:nth-child(3n+2) .dot { background: var(--teal); }
.marquee__item:nth-child(3n) .dot { background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

/* --- Banda inmersiva (video/foto a sangre con texto) ------------------- */
.band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--navy); min-height: 70dvh; display: grid; align-items: center; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media picture, .band__media video { position: absolute; inset: 0; display: block; }
.band__media video, .band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media video { opacity: 0; transition: opacity 1s var(--ease); }
.band__media video.is-ready { opacity: 1; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 23, 80, .25), rgba(1, 23, 80, .75)); }
.band__in { padding-block: 96px; display: grid; gap: 24px; justify-items: start; }
.band__in > * { max-width: 760px; }
.band h2 { color: #fff; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }
.band .lead { color: rgba(255, 255, 255, .85); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band__media img { height: 120%; margin-top: -10%; animation: drift linear both; animation-timeline: view(); }
  }
}

/* --- Pasos con línea de progreso -------------------------------------- */
.pasos { position: relative; }
.pasos__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.pasos__line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--coral)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.pasos.in .pasos__line i { transform: scaleX(1); }
@media (max-width: 767px) { .pasos__line { display: none; } }
.paso { border-top-color: transparent; }

/* --- Tilt y magnetismo (solo puntero fino) ----------------------------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tilt] { transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }
  [data-magnet] { transition: transform .25s var(--ease); }
}

/* --- Servicios en fila deslizable (móvil) ------------------------------ */
.svc-scroll { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.svc-scroll::-webkit-scrollbar { display: none; }
.svc-scroll .svc { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 640px) { .svc-scroll .svc { flex-basis: 46%; } }
@media (min-width: 1024px) { .svc-scroll { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } .svc-scroll .svc { flex: none; } }

/* --- Cabecera de página con foto -------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media picture { position: absolute; inset: 0; display: block; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(1, 23, 80, .9) 0%, rgba(1, 23, 80, .55) 60%, rgba(1, 23, 80, .3) 100%); }
.page-hero__in { padding-block: 72px 80px; display: grid; gap: 16px; justify-items: start; }
.page-hero__in > * { max-width: 720px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, .85); }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255, 255, 255, .75); }
@media (min-width: 1024px) { .page-hero__in { padding-block: 104px 112px; } }

/* --- Blog ---------------------------------------------------------------- */
.post-card { padding: 0; overflow: hidden; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-50); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 20px 24px 24px; display: grid; gap: 10px; }
.post-card__body h3 { font-size: 20px; }
.posts--featured .post-card:first-child { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .posts { grid-template-columns: repeat(3, 1fr); }
  .posts--featured .post-card:first-child { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
  .posts--featured .post-card:first-child .post-card__img { aspect-ratio: 4 / 3; height: 100%; }
  .posts--featured .post-card:first-child .post-card__body { padding: 40px; }
  .posts--featured .post-card:first-child h3 { font-size: 28px; }
}
.post-hero { aspect-ratio: 21 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--teal-50); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-3); }
.post-body { max-width: 68ch; font-size: 18px; }
.post-body h2 { font-size: 26px; margin-top: 1.5em; margin-bottom: .4em; }
.post-body h3 { font-size: 20px; margin-top: 1.2em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .35em; }
.post-body blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--teal); background: var(--teal-50); border-radius: 0 14px 14px 0; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.post-cta { display: grid; gap: 14px; padding: 28px; border-radius: var(--r-card); background: var(--navy); color: #fff; margin-top: 40px; }
.post-cta h3 { color: #fff; }
.post-cta p { color: rgba(255, 255, 255, .8); }
.post-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 7fr) 4fr; gap: 64px; align-items: start; } .post-aside { position: sticky; top: 96px; display: grid; gap: 16px; } }

/* --- CTA final ----------------------------------------------------------- */
.cta-final { position: relative; overflow: hidden; background: var(--teal-50); }
.cta-final__in { position: relative; display: grid; gap: 24px; justify-items: start; max-width: 640px; padding-block: var(--sec); }
.cta-final .iso-bg { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(46%, 520px); opacity: .16; pointer-events: none; }
