/* =========================================================
   NSD — Sistema de diseño compartido
   ---------------------------------------------------------
   Lo usan la escuela infantil y el campamento para verse como
   la web del colegio, que es la referencia. Tokens, tipografía
   y componentes están calcados de
   CLIENTE_COLEGIO/00_web_colegio/assets/css/styles.css, con los
   mismos nombres de clase, para que una sección del colegio y
   una de estas webs se escriban igual.

   ⚠ Esta es la copia maestra. No se edita dentro de cada web:
   se edita aquí y se reparte con `node _DISENO/sincronizar.js`.

   Cada web añade encima solo lo que es suyo (su hoja de página).
   ========================================================= */

:root {
  color-scheme: light dark;

  /* Rampa de marca: fija, no cambia entre temas */
  --brand-900: #04120A;
  --brand-800: #0B3A18;
  --brand-700: #10572C;
  --brand-600: #1A7040;
  --brand-500: #229050;
  --brand-400: #3FA858;
  --brand-300: #5EBF78;
  --brand-200: #9BD6AE;
  --brand-100: #D4EBE0;
  --brand-50:  #EAF5EF;

  --gold-700: #6A4700;
  --gold-500: #C49200;
  --gold-400: #D4A80E;
  --gold-300: #E3C254;
  --gold-100: #F2E6C4;

  /* Verde interactivo (adaptativo) */
  --green-900: #04120A;
  --green-800: #0B3A18;
  --green-700: #10572C;
  --green-600: #1A7040;
  --green-500: #229050;
  --green-400: #3FA858;
  --green-300: #5EBF78;
  --green-200: #9BD6AE;
  --green-100: #D4EBE0;
  --green-50:  #EAF5EF;

  /* Oro: acento único */
  --yellow-700: #6A4700;
  --yellow-500: #C49200;
  --yellow-400: #D4A80E;
  --yellow-100: #F2E6C4;

  /* Texto */
  --ink-900: #101810;
  --ink-800: #1C281C;
  --ink-700: #283828;
  --ink-600: #3A4E3D;
  --ink-500: #4C6450;
  --ink-400: #697F6C;
  --ink-300: #869E88;
  --ink-200: #A6BBA9;
  --ink-100: #C6D8CA;
  --ink-50:  #E6F0E8;

  /* Superficies: crema pergamino */
  --white:          #F5F1EA;
  --surface:        #F5F1EA;
  --surface-raised: #FFFCF7;
  --surface-sunken: #EDE8DF;
  --surface-subtle: #EDE8DF;
  --surface-overlay: rgba(245,241,234,.90);
  --border:        #DED8CC;
  --border-strong: #C7BFAE;

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(11,58,24,.07), 0 4px 10px -4px rgba(11,58,24,.06);
  --shadow:    0 2px 6px rgba(11,58,24,.07), 0 12px 28px -8px rgba(11,58,24,.12);
  --shadow-lg: 0 4px 12px rgba(11,58,24,.08), 0 28px 56px -16px rgba(11,58,24,.18);

  /* Carácter de cada web: las bandas oscuras, los halos que las tiñen
     y el anillo de foco. Por defecto son los del colegio; la escuela
     infantil y el campamento los cambian en su propia hoja. */
  --oscuro: #060f08;
  --sobre-oscuro: #b8ccbf;
  --sobre-oscuro-2: #c4d0c8;
  --sobre-oscuro-3: #e6ede8;
  --halo-1: rgba(16,87,44,.6);
  --halo-2: rgba(196,146,0,.08);
  --halo-3: rgba(31,164,44,.18);
  --halo-4: rgba(247,211,0,.12);
  --acento-velo: rgba(247,211,0,.16);
  --acento-velo-suave: rgba(247,211,0,.10);
  --foco: rgba(34,144,80,.55);

  --ease-out: cubic-bezier(.32,.72,0,1);
  --container: 1200px;

  /* Final dorado del titular con degradado. El oro de marca (#D4A80E) da
     2,1:1 sobre el crema; este tono da 3,8:1, por encima del 3:1 de titular. */
  --oro-titular: #9A7400;

  --font-sans: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

/* Tema oscuro: igual que el colegio. Dos veces a propósito: por
   preferencia del sistema (sin JS) y por atributo (si algún día se
   añade el selector de tema). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink-900: #ECEFEC; --ink-800: #D5DCD7; --ink-700: #BFC8C2; --ink-600: #A8B3AD;
    --ink-500: #93A099; --ink-400: #7D8C84; --ink-300: #68786F; --ink-200: #46564E;
    --ink-100: #2A3833; --ink-50: #1B2520;
    --white: #0F1814; --surface: #0F1814; --surface-raised: #17221D;
    --surface-sunken: #141E19; --surface-subtle: #1F2A24;
    --surface-overlay: rgba(15,24,20,.88);
    --border: #27332D; --border-strong: #35433B;
    --green-900: #9BD6AE; --green-700: #5EBF78; --green-600: #4FBA6B; --green-500: #3FA858;
    --green-400: #7FD196; --green-300: #9BD6AE; --green-200: #22382A; --green-100: #18291E;
    --green-50: #121C16;
    --yellow-700: #E8C97A; --yellow-100: #33240A;
    --rojo-aviso: #FF9B8F;
    --oro-titular: #E3C254;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 4px 10px -4px rgba(0,0,0,.45);
    --shadow:    0 2px 6px rgba(0,0,0,.5), 0 12px 28px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.5), 0 28px 56px -16px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink-900: #ECEFEC; --ink-800: #D5DCD7; --ink-700: #BFC8C2; --ink-600: #A8B3AD;
  --ink-500: #93A099; --ink-400: #7D8C84; --ink-300: #68786F; --ink-200: #46564E;
  --ink-100: #2A3833; --ink-50: #1B2520;
  --white: #0F1814; --surface: #0F1814; --surface-raised: #17221D;
  --surface-sunken: #141E19; --surface-subtle: #1F2A24;
  --surface-overlay: rgba(15,24,20,.88);
  --border: #27332D; --border-strong: #35433B;
  --green-900: #9BD6AE; --green-700: #5EBF78; --green-600: #4FBA6B; --green-500: #3FA858;
  --green-400: #7FD196; --green-300: #9BD6AE; --green-200: #22382A; --green-100: #18291E;
  --green-50: #121C16;
  --yellow-700: #E8C97A; --yellow-100: #33240A;
    --rojo-aviso: #FF9B8F;
  --oro-titular: #E3C254;
}

/* ============== BASE ============== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h, 77px) + 12px);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a   { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1em; color: var(--ink-700); line-height: 1.75; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--brand-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }
.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;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 800;
  color: var(--green-700);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px; flex-shrink: 0;
}
.eyebrow--light { color: var(--gold-300); }

.text-gradient {
  background: linear-gradient(120deg, var(--green-700) 0%, var(--oro-titular) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--ink-500); max-width: 540px; line-height: 1.8; }

/* ============== BOTONES ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 14px 22px; border-radius: 4px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg { padding: 16px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-900) 100%);
  color: #fff; letter-spacing: .02em;
  box-shadow: 0 8px 24px -8px rgba(10,74,30,.55);
}
.btn--primary:hover {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-700) 0%, #021509 100%);
  box-shadow: 0 14px 32px -10px rgba(10,74,30,.7);
}
.btn--ghost {
  background: transparent; color: var(--ink-700);
  border: 1.5px solid color-mix(in srgb, var(--green-700) 35%, transparent);
  padding: 12px 20px;
}
.btn--ghost:hover { background: color-mix(in srgb, var(--green-700) 8%, transparent); color: var(--green-700); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--brand-900);
  box-shadow: 0 8px 28px -8px rgba(191,140,0,.55);
}
.btn--gold:hover { color: var(--brand-900); transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(191,140,0,.7); }
.btn--on-dark { background: rgba(255,255,255,.07); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn--on-dark:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ============== CABECERA ============== */
/* El bloque entero es el que se pega; la barra de contacto sale al bajar
   y la navegación se queda (mismo mecanismo que el colegio). */
#site-header { position: sticky; top: calc(-1 * var(--topbar-h, 42px)); z-index: 50; }

.topbar {
  background: color-mix(in srgb, var(--brand-800) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  color: var(--sobre-oscuro); font-size: .85rem; border-bottom: 1px solid rgba(196,146,0,.20);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: var(--brand-800); }
}
.topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap;
}
.topbar__contact { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar a { color: var(--sobre-oscuro); display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.topbar a:hover { color: var(--gold-300); }
.topbar i { font-size: 1rem; }
.topbar__nota { display: none; white-space: nowrap; color: var(--sobre-oscuro); }
.topbar__nota strong { color: #fff; }
.topbar__correo { display: none !important; }
.topbar__pill {
  display: inline-flex !important; align-items: center; gap: 7px; flex-shrink: 0;
  min-height: 26px; padding: 3px 12px 3px 5px; border-radius: 999px;
  background: rgba(196,146,0,.16); border: 1px solid rgba(196,146,0,.38);
  color: var(--gold-300) !important; font-weight: 800; /* 5,0:1 sobre el granate y el verde */
  transition: background .2s, color .2s;
}
.topbar__pill:hover { background: var(--gold-400); color: var(--brand-900) !important; }
.topbar__pill:active { transform: scale(.98); }
.topbar__pill img { width: 18px; height: 18px; object-fit: contain; }
.topbar__pill-pre { display: none; font-weight: 600; }
@media (min-width: 640px)  { .topbar__pill-pre { display: inline; } }
@media (min-width: 768px)  { .topbar__correo { display: inline-flex !important; } }
@media (min-width: 1024px) { .topbar__nota { display: inline; } }
@media (max-width: 720px) {
  .topbar { font-size: .78rem; padding: 6px 0; }
  .topbar__inner { padding: 0 20px; }
}

.navbar {
  position: relative; z-index: 50;
  background: var(--surface-overlay);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-800) 10%, transparent);
  transition: box-shadow .2s;
}
.navbar.is-scrolled { box-shadow: 0 2px 20px rgba(11,58,24,.10); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-900); min-width: 0; }
.brand:hover { color: var(--ink-900); }
.brand__logo { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__text strong {
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  color: var(--green-900); letter-spacing: -.02em; white-space: nowrap;
}
.brand__text small {
  color: var(--ink-500); font-size: .73rem; letter-spacing: .05em; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 8px;
  font-weight: 600; font-size: .93rem; color: var(--ink-700);
  transition: background .2s, color .2s;
}
.nav a { white-space: nowrap; }
.nav a:hover, .nav a.is-active { background: var(--green-100); color: var(--green-900); }
/* Justo antes de pasar al menú móvil el espacio es escaso: menos aire */
@media (max-width: 1120px) {
  .nav a { padding: 10px 9px; font-size: .9rem; }
  .navbar__inner { gap: 12px; }
}
.nav-cta {
  margin-left: 6px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900)) !important;
  color: #fff !important; font-weight: 700 !important;
  box-shadow: 0 6px 20px -6px rgba(10,74,30,.55);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--brand-700), #021509) !important; color: #fff !important; }

.hamburger-x {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface-raised); border: 1px solid var(--border);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink-900);
  font-size: 1.5rem;
}
@media (max-width: 980px) {
  .nav { display: none; }
  .hamburger-x { display: inline-flex; }
  .navbar__inner { min-height: 64px; }
  .brand__logo { width: 52px; height: 52px; }
  .brand__text strong { font-size: 1rem; }
  .brand__text small { font-size: .68rem; }
}

/* Cajón móvil: panel oscuro desde la derecha, como el del colegio.
   Oculto de entrada en la propia hoja (sin esperar a JS) y
   inexistente en escritorio. */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 199;
  background: color-mix(in srgb, var(--oscuro) 60%, transparent); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(400px, 100vw);
  background: var(--oscuro); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s cubic-bezier(.22,1,.36,1), visibility .45s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 981px) { .drawer, .drawer-backdrop { display: none !important; } }
.drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer__header .brand__text strong { color: #fff; }
.drawer__header .brand__text small { color: rgba(255,255,255,.65); }
.drawer__header .brand__logo { width: 44px; height: 44px; }
.drawer__close {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff; font-size: 1.3rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer__nav { padding: 12px 16px; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.drawer__nav a {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px;
  border-radius: 12px; color: rgba(255,255,255,.88); font-weight: 600; font-size: 1.02rem;
}
.drawer__nav a i { color: var(--brand-300); font-size: 1.1rem; width: 20px; text-align: center; }
.drawer__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.drawer__footer { margin-top: auto; padding: 20px 24px 28px; display: grid; gap: 10px; }
.drawer__footer .btn { width: 100%; }
.drawer__contacto { display: grid; gap: 8px; font-size: .9rem; margin-top: 8px; }
.drawer__contacto a { color: rgba(255,255,255,.75); display: flex; gap: 10px; align-items: center; }
.drawer__contacto i { color: var(--gold-300); }

/* ============== PORTADA ============== */
.hero { position: relative; padding: 96px 0 116px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .18; }
.blob--1 { width: 600px; height: 600px; background: var(--brand-700); top: -180px; left: -220px; }
.blob--2 { width: 460px; height: 460px; background: var(--gold-100); bottom: -180px; right: -140px; opacity: .55; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0;
  background: rgba(191,140,0,.08); border: 1px solid rgba(191,140,0,.30);
  padding: 7px 16px 7px 7px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--yellow-700);
  letter-spacing: .06em; text-transform: uppercase;
}
.badge-pill i {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #fff;
  display: grid; place-items: center; font-size: .85rem; flex-shrink: 0;
}
.hero__cta { display: flex; gap: 12px; margin: 22px 0 24px; flex-wrap: wrap; }
.hero__cta .btn, .hero__cta .btn--lg { min-height: 0; padding: 14px 22px; font-size: .95rem; }
.hero__cta .btn--ghost { padding: 12px 20px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-raised); border: 1px solid rgba(191,140,0,.22);
  padding: 8px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-700);
}
.hero__chips i { color: var(--green-700); }

.hero__card { position: relative; }
.hero__card-inner {
  position: relative; aspect-ratio: 4/4.5; max-width: 520px; margin-left: auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  box-shadow: 0 8px 16px -4px rgba(14,27,20,.12), 0 24px 48px -16px rgba(14,27,20,.22);
}
.hero__photo {
  position: absolute; inset: 14px; border-radius: var(--radius-lg); overflow: hidden; z-index: 1;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; z-index: 5;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; font-size: .85rem;
  background: var(--surface-raised); border: 1px solid var(--border);
  box-shadow: 0 4px 8px rgba(14,27,20,.06), 0 12px 24px -6px rgba(14,27,20,.18), 0 28px 50px -12px rgba(14,27,20,.28);
}
.float-card__ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--green-100); color: var(--green-700);
}
.float-card__ic--gold { background: var(--yellow-100); color: var(--yellow-700); }
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); line-height: 1.15; }
.float-card span { color: var(--ink-500); font-size: .78rem; }
.float-card--1 { left: -36px; bottom: 56px; }
.float-card--2 { right: -20px; top: 36px; }
@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__card-inner { margin: 0 auto; max-width: 460px; }
  .float-card--1 { left: -8px; }
  .float-card--2 { right: -8px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero .lead { font-size: 1rem; }
  .hero__cta { gap: 10px; flex-wrap: nowrap; }
  .hero__cta .btn, .hero__cta .btn--lg { flex: 1 1 0; padding: 12px 14px; font-size: .85rem; min-width: 0; }
  .hero__chips { gap: 6px; }
  .hero__chips li { padding: 6px 10px; font-size: .78rem; }
}
@media (max-width: 540px) {
  .hero__cta .btn, .hero__cta .btn--lg { padding: 11px 12px; font-size: .8rem; }
}
@media (max-width: 420px) {
  .float-card { padding: 10px 12px; }
  .float-card__ic { width: 34px; height: 34px; font-size: 1rem; }
}

/* ============== BANDA DE CIFRAS ============== */
.stats { background: var(--brand-800); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 50%, var(--halo-1), transparent 55%),
    radial-gradient(ellipse at 100% 50%, var(--halo-2), transparent 55%);
}
.stats > .container { position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat {
  padding: 16px 24px; border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat:last-child { border-right: none; }
.stat__label {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-300); font-weight: 700; margin-bottom: 6px;
}
.stat__num {
  font-family: var(--font-display); font-weight: 900; color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; letter-spacing: -.04em;
}
.stat p { color: rgba(255,255,255,.78); margin: 8px 0 0; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 720px) {
  .stats { padding: 56px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 18px 10px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============== SECCIONES ============== */
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--surface-sunken); }
.section--dark { background: var(--brand-800); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p,
.section--dark .section__head p { color: rgba(255,255,255,.74); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--ink-500); font-size: 1.05rem; }
.section__head--left { margin-left: 0; text-align: left; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Tarjetas de contenido: mismas que las etapas del colegio */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-raised); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(14,27,20,.18); border-color: transparent; }
.card__ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.45rem;
  background: var(--green-100); color: var(--green-700);
}
.card__ic--gold { background: var(--yellow-100); color: var(--yellow-700); }
.card__tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 6px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .94rem; margin: 0; color: var(--ink-700); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-700); line-height: 1.5; }
.card li i { color: var(--green-600); margin-top: 2px; flex-shrink: 0; }

/* Tarjetas sobre fondo oscuro: los servicios del colegio */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services { grid-template-columns: 1fr; } }
.service {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 24px; border-radius: var(--radius); color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, background .25s, border-color .25s;
}
.service:hover { background: var(--acento-velo-suave); border-color: var(--gold-500); transform: translateY(-4px); }
.service__ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem;
  background: var(--acento-velo); color: var(--gold-300);
}
.service h3 { margin: 0; color: #fff; font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.service p { margin: 0; font-size: .9rem; color: var(--sobre-oscuro-2); }

/* Pasos (proceso de inscripción en tres pasos) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: paso; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius-lg);
  background: var(--surface-raised); border: 1px solid var(--ink-100);
}
.step::before {
  counter-increment: paso; content: counter(paso);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; font-size: .94rem; }

/* Línea de tiempo (un día tipo) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--green-200), var(--gold-100));
}
.timeline li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem;
  background: var(--surface-raised); border: 2px solid var(--green-200); color: var(--green-700);
}
.timeline__hora { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-700); }
.timeline h4 { margin: 2px 0 4px; }
.timeline p { margin: 0; font-size: .93rem; }

/* Tabla sobria (horarios) */
.tabla { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabla th, .tabla td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.tabla th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; }
.tabla td:first-child { font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.tabla-marco { background: var(--surface-raised); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 8px 10px; overflow-x: auto; }

/* Preguntas frecuentes: <details> nativo, accesible sin JS */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface-raised); border: 1px solid var(--ink-100); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; font-size: 1.02rem; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\F4FE"; font-family: "bootstrap-icons"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); color: var(--green-700); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-700); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Banda final de llamada a la acción (la del colegio) */
.cta { position: relative; background: var(--brand-800); color: #fff; padding: 110px 0; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, var(--halo-3), transparent 55%),
    radial-gradient(ellipse at 85% 30%, var(--halo-4), transparent 50%);
}
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.cta::after {
  content: "NSD";
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(255,255,255,.025);
  line-height: 1; pointer-events: none; user-select: none;
  letter-spacing: -.06em;
}
/* El alto util de la banda es el de la web del colegio: asi no encoge
   cuando el texto de una web ocupa una linea menos. */
@media (min-width: 881px) { .cta__inner { min-height: 222px; } }
.cta h2 { color: #fff; margin: 6px 0 12px; }
.cta p { color: rgba(255,255,255,.72); margin: 0; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 880px) { .cta__inner { grid-template-columns: 1fr; gap: 36px; } .cta__actions { justify-content: flex-start; } }

/* Contacto en tarjeta */
.contacto-lista { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contacto-lista li { display: flex; gap: 14px; align-items: flex-start; }
.contacto-lista i {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 1.05rem;
}
.contacto-lista strong { display: block; color: var(--ink-900); }
.contacto-lista span, .contacto-lista a { font-size: .95rem; }
.mapa { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius-lg); display: block; background: var(--surface-sunken); }

/* ============== PIE ============== */
.footer { background: var(--brand-800); color: #e6ede8; padding: 70px 0 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 50px; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: auto; } }
.footer .brand__text strong { color: #fff; }
.footer .brand__text small { color: rgba(255,255,255,.72); }
.footer .brand__logo { width: 64px; height: 64px; }
.footer__brand p { margin-top: 14px; max-width: 320px; color: var(--sobre-oscuro-3); font-size: .95rem; line-height: 1.65; }
.footer__col-title {
  font-family: var(--font-sans); font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.78); margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--sobre-oscuro-3); }
.footer a:hover { color: var(--gold-400); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.footer__contact i { color: var(--gold-400); margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .82rem; color: rgba(255,255,255,.72); }
.footer p, .footer__bottom p { color: rgba(255,255,255,.78); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__bottom ul { display: flex; gap: 16px; flex-wrap: wrap; }
.dd-fuera { font-size: .78em; opacity: .55; }

/* ============== PIEZAS COMUNES DE LAS DOS WEBS ============== */
/* Un día: la columna de texto se queda arriba mientras la línea avanza */
.dia { align-items: start; }
.llevar {
  margin-top: 8px; padding: 24px 26px; border-radius: var(--radius-lg);
  background: var(--yellow-100); border: 1px solid color-mix(in srgb, var(--gold-500) 30%, transparent);
}
.llevar h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 12px; }
.llevar h3 i { color: var(--yellow-700); }
.llevar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.llevar li { display: flex; gap: 10px; color: var(--ink-700); font-size: .95rem; line-height: 1.5; }
.llevar li i { color: var(--yellow-700); margin-top: 2px; }

/* Contacto */
.contacto { align-items: start; }
.contacto__tarjeta {
  display: grid; gap: 18px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface-raised); border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
}
.contacto__tarjeta h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0; }
.contacto__tarjeta h3 i { color: var(--green-700); }
.contacto__tarjeta .tabla-marco { border: 0; padding: 0; }
.contacto__tarjeta .btn { justify-self: start; }
.contacto-lista span > a { display: inline; }

/* Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal__volver { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 6px; }
.legal__fecha { color: var(--ink-500); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-700); line-height: 1.75; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1rem; }
.legal ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 1rem; }
.legal li::marker { color: var(--green-600); }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ============== FORMULARIOS ============== */
/* Etiqueta encima, ayuda o error debajo, 8px entre ellos. */
.form-card {
  background: var(--surface-raised); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .campo--ancho { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.campo { display: grid; gap: 8px; }
.campo label { font-weight: 700; font-size: .9rem; color: var(--ink-800); }
.campo .req { color: var(--rojo-aviso, #B42318); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem;
  color: var(--ink-900); background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-500) 20%, transparent);
}
.campo input:user-invalid, .campo select:user-invalid { border-color: #B42318; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-700); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex-shrink: 0; }
.form-err {
  margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem;
  background: rgba(180,35,24,.08); border: 1px solid rgba(180,35,24,.25); color: #B42318;
}
.form-ok { text-align: center; padding: 40px 20px; }
.form-ok:focus { outline: none; }
.form-ok i { font-size: 2.6rem; color: var(--green-600); }
.spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: giro .7s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }

/* ============== BARRA DE LLAMADA EN MÓVIL ============== */
/* Aparece al bajar (la portada ya tiene sus botones) y solo en móvil. */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: none; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
  background: var(--surface-overlay); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .35s var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 48px; padding: 12px 14px; font-size: .92rem; }
@media (max-width: 720px) {
  .mobile-cta { display: grid; }
  /* Hueco al final para que la barra no tape los enlaces legales del pie */
  body:has(.mobile-cta) .footer__bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ============== MOVIMIENTO ============== */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .05s; }
[data-reveal-delay="2"] { transition-delay: .10s; }
[data-reveal-delay="3"] { transition-delay: .15s; }
[data-reveal-delay="4"] { transition-delay: .20s; }
/* Sin JS no hay nada escondido */
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Parches del tema oscuro (lo que llevan colores fijos dentro). Dos veces:
   por preferencia del sistema y por el selector de tema. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blob--1 { opacity: .10; }
  :root:not([data-theme="light"]) .blob--2 { opacity: .06; }
  :root:not([data-theme="light"]) .hero__photo img { filter: brightness(.9); }
}
:root[data-theme="dark"] .blob--1 { opacity: .10; }
:root[data-theme="dark"] .blob--2 { opacity: .06; }
:root[data-theme="dark"] .hero__photo img { filter: brightness(.9); }

/* ============== SELECTOR DE TEMA ==============
   Calcado del colegio: claro / sistema / oscuro, en la barra superior
   (junto a la cápsula del colegio) y en el menú móvil. */
.topbar__lado { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-switch {
  position: relative; display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
.theme-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 30px; height: 26px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
  transition: transform .3s var(--ease-out); pointer-events: none;
}
.theme-switch[data-choice="system"] .theme-switch__thumb { transform: translateX(30px); }
.theme-switch[data-choice="dark"]   .theme-switch__thumb { transform: translateX(60px); }
.theme-switch__opt {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 26px; padding: 0; border: 0; background: none; border-radius: 999px;
  color: rgba(255,255,255,.72); font-size: .82rem; cursor: pointer;
  transition: color .2s, transform .2s; -webkit-tap-highlight-color: transparent;
}
.theme-switch__opt:hover { color: #fff; }
.theme-switch__opt:active { transform: scale(.92); }
.theme-switch__opt[aria-checked="true"] { color: var(--brand-800); }
.theme-switch__opt:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.drawer__theme {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.drawer__theme-label { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.78); }
/* En el móvil la barra superior no tiene sitio: el selector vive en el menú */
/* En móvil se queda en la barra, como en el colegio; el texto de la cápsula se acorta */
@media (max-width: 720px) { .topbar__lado { gap: 8px; } }
@media (max-width: 400px) { .topbar__contact a span { display: none; } }
@media (prefers-reduced-motion: reduce) { .theme-switch__thumb { transition: none; } }

/* Dianas táctiles: los enlaces de listas (pie, contacto) medían 19-20 px de
   alto, por debajo de los 24 px de WCAG 2.5.8. El relleno amplía la zona
   pulsable y el margen negativo igual evita que cambie la maquetación. */
.footer li a, .footer__contact a, .contacto-lista a {
  display: inline-block; padding-block: 7px; margin-block: -7px;
}

/* Enlaces de icono de la barra superior: 16 px de ancho se quedaban por
   debajo del mínimo de 24 px cuando se oculta el texto en móvil. */
.topbar a { min-width: 26px; }
.check input[type="checkbox"] { width: 24px; height: 24px; }

/* =========================================================
   Contacto: la misma sección al final de todas las páginas
   ========================================================= */
.contacto-band { padding: 72px 0; background: var(--surface-sunken); border-top: 1px solid var(--border); }
.contacto-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.contacto-band h2 { margin: 6px 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contacto-band__texto > p { margin: 0 0 20px; color: var(--ink-600); max-width: 48ch; }
.contacto-band__datos { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.contacto-band__datos li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--ink-700); }
.contacto-band__datos i { color: var(--green-700); font-size: 1rem; }
.contacto-band__botones { display: flex; flex-wrap: wrap; gap: 10px; }
.contacto-band__mapa {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--radio-dispositivo, 28px); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-raised); box-shadow: var(--shadow);
}
.contacto-band__mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.92); }
.contacto-band__ir {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface-raised); border: 1px solid var(--border); color: var(--ink-900);
  font-size: .88rem; font-weight: 700; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), background .2s;
}
.contacto-band__ir i { color: var(--green-700); }
.contacto-band__ir:hover { transform: translateY(-2px); background: var(--green-100); color: var(--green-900); }
@media (max-width: 900px) {
  .contacto-band { padding: 54px 0; }
  .contacto-band__in { grid-template-columns: 1fr; gap: 28px; }
  .contacto-band__mapa { aspect-ratio: 16 / 10; }
}

/* =========================================================
   Las webs del grupo, en botones
   ========================================================= */
.grupo-webs { padding: 54px 0; background: var(--surface); border-top: 1px solid var(--border); }
.grupo-webs__titulo {
  margin: 0 0 20px; font-family: var(--font-sans); font-size: .74rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-500); text-align: center;
}
.grupo-webs__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.grupo-web {
  height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface-raised); color: inherit;
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s;
}
.grupo-web:hover { transform: translateY(-3px); border-color: var(--green-300); box-shadow: var(--shadow); color: inherit; }
.grupo-web.es-aqui { border-color: var(--green-600); background: var(--green-50); }
.grupo-web__ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 1.1rem;
}
.grupo-web__txt { display: grid; line-height: 1.3; min-width: 0; }
.grupo-web__txt strong { font-size: .94rem; color: var(--ink-900); }
.grupo-web__txt span { font-size: .78rem; color: var(--ink-500); }
.grupo-web__ir { color: var(--green-700); font-size: .9rem; }
@media (max-width: 1080px) { .grupo-webs__lista { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grupo-webs__lista { grid-template-columns: 1fr; } }

/* El mapa dentro de la tarjeta de contacto de infantil y campamento */
.contacto__mapa { margin-top: 16px; aspect-ratio: 16 / 10; }

/* =========================================================
   Contacto con formulario: la misma pieza en las tres webs
   ---------------------------------------------------------
   A un lado lo que se rellena (formulario o pasos), al otro
   los datos, el horario y el mapa. Antes eran dos secciones
   que contaban lo mismo dos veces.
   ========================================================= */
.contacta {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 30px; align-items: start; margin-top: 36px;
}
.contacta__accion { min-width: 0; }
.contacta__datos {
  min-width: 0; display: grid; gap: 16px; align-content: start;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface-sunken); border: 1px solid var(--border);
}
.contacta__datos > h3 { margin: 0; font-size: 1.2rem; }
.contacta__nota { margin: 0; font-size: .92rem; color: var(--ink-600); line-height: 1.6; }
.contacta__datos .contacto-lista { margin: 0; }
.contacta__datos .contacto__tarjeta { padding: 0; background: none; border: 0; }
.contacta__datos .contacto__tarjeta h3 { font-size: 1.05rem; }
.contacta__datos .tabla-marco { margin-bottom: 0; }
/* El ancla invisible para que #inscripcion siga funcionando */
.ancla { display: block; position: relative; top: calc(var(--navbar-h, 77px) * -1); visibility: hidden; }
@media (max-width: 980px) {
  .contacta { grid-template-columns: 1fr; gap: 24px; }
  .contacta__datos { padding: 22px; }
}
/* Campamento: como no hay formulario, la columna de la acción lleva
   los dos caminos para apuntarse. */
.apuntarse {
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.apuntarse h3 { margin: 0 0 10px; font-size: 1.35rem; }
.apuntarse > p { margin: 0 0 20px; color: var(--ink-600); line-height: 1.65; }
.apuntarse__botones { display: flex; flex-wrap: wrap; gap: 10px; }
.apuntarse__nota { margin: 18px 0 0; font-size: .86rem; color: var(--ink-500); line-height: 1.6; }

/* La botonera del ecosistema dentro del pie oscuro */
.footer .grupo-webs { padding: 8px 0 34px; background: transparent; border: 0; }
.footer .grupo-webs__titulo { color: rgba(255,255,255,.62); }
.footer .grupo-webs__lista { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.footer .grupo-web {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
}
.footer .grupo-web:hover { border-color: var(--gold-400); background: rgba(255,255,255,.12); color: #fff; }
.footer .grupo-web.es-aqui { border-color: var(--gold-400); background: rgba(255,255,255,.12); }
.footer .grupo-web__ico { background: rgba(255,255,255,.12); color: var(--gold-300); }
.footer .grupo-web__txt strong { color: #fff; }
.footer .grupo-web__txt span { color: rgba(255,255,255,.66); }
.footer .grupo-web__ir { color: var(--gold-300); }
@media (max-width: 1080px) { .footer .grupo-webs__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer .grupo-webs__lista { grid-template-columns: 1fr; } }

/* Cabecera del formulario: la misma que en la web del colegio, para
   que las tres tengan el formulario con la misma cara. */
.form-card--cab { padding: 0; overflow: hidden; }
.form-card__cabecera {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; padding: 22px 28px;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
}
.form-card__cabecera::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% -20%, var(--halo-4), transparent 55%);
}
.form-card__ico {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.45rem;
}
.form-card__cabecera > div { position: relative; z-index: 1; }
.form-card__cabecera h3 { margin: 0 0 3px; color: #fff; font-size: 1.15rem; }
.form-card__cabecera p { margin: 0; color: rgba(255,255,255,.78); font-size: .8rem; }
.form-card__cuerpo { padding: 26px 28px 28px; }
@media (max-width: 600px) {
  .form-card__cabecera { padding: 18px 20px; gap: 12px; }
  .form-card__cuerpo { padding: 20px; }
}

/* Las dos columnas, del mismo tamaño y a la misma altura: antes una
   acababa mucho antes que la otra y la sección se veía torcida. */
.contacta { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.contacta--invertida { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contacta__accion { display: flex; flex-direction: column; gap: 18px; }
.contacta__accion > form,
.contacta__accion > .form-card,
.contacta__accion > .apuntarse { flex: 1 0 auto; display: flex; flex-direction: column; }
/* Cuando la columna lleva mas de una pieza (campamento: formulario + resumen),
   el que estira es el formulario; lo demas ocupa lo suyo. Y un bloque
   escondido sigue escondido aunque la columna sea flex. */
.contacta__accion > .apuntarse--resumen,
.contacta__accion > div.form-card { flex: 0 0 auto; }
.contacta__accion > [hidden] { display: none !important; }
.contacta__accion > form > .form-card__cuerpo,
.contacta__accion > form > .form-body { flex: 1; display: flex; flex-direction: column; }
.contacta__accion > form .form-grid { flex: 1; align-content: start; }
.contacta__datos { height: 100%; }
@media (max-width: 980px) {
  .contacta, .contacta--invertida { grid-template-columns: 1fr; }
  .contacta__accion > form, .contacta__accion > .form-card, .contacta__accion > .apuntarse { display: block; }
}

/* Botones del ecosistema: todos iguales, sin que ninguna palabra
   parta en dos líneas. Fuente algo menor y una sola línea por texto. */
.grupo-web { padding: 13px 14px; gap: 11px; align-items: center; }
.grupo-web__ico { width: 34px; height: 34px; border-radius: 11px; font-size: 1rem; }
.grupo-web__txt strong,
.grupo-web__txt span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grupo-web__txt strong { font-size: .88rem; line-height: 1.25; }
.grupo-web__txt span { font-size: .74rem; line-height: 1.3; }
.grupo-web__ir { font-size: .85rem; }
.footer .grupo-web { padding: 13px 14px; gap: 11px; }
@media (max-width: 1200px) and (min-width: 1081px) {
  .grupo-web__txt strong { font-size: .84rem; }
  .grupo-web__txt span { font-size: .71rem; }
}
/* Los pasos dentro de la tarjeta de apuntarse: en columna y compactos */
.apuntarse__pasos { grid-template-columns: 1fr; gap: 14px; margin: 22px 0 24px; }
.apuntarse__pasos .step { padding: 0 0 0 18px; border: 0; border-left: 2px solid var(--green-200); background: none; box-shadow: none; }
.apuntarse__pasos .step h3 { font-size: 1rem; margin-bottom: 4px; }
.apuntarse__pasos .step p { font-size: .9rem; margin: 0; }

/* La tarjeta de apuntarse reparte su alto: los botones quedan abajo */
.contacta__accion > .apuntarse > .apuntarse__botones { margin-top: auto; }
/* El mapa de la columna de datos, más bajo, para que las dos columnas
   midan parecido sin dejar un hueco grande a un lado. */
.contacta__datos .contacto__mapa { aspect-ratio: auto; height: 230px; width: 100%; }

/* El botón va justo después de la casilla, no pegado al fondo: si la
   otra columna es más alta, el hueco se queda debajo del botón, que es
   donde no molesta. */

/* Altura fija: así los cinco botones miden lo mismo en las tres webs,
   sin depender de cómo redondee cada hoja el alto del contenido. */
.grupo-web { min-height: 62px; }
.footer .grupo-web { min-height: 62px; margin-block: 0; }
/* Los datos prácticos dentro de la tarjeta de apuntarse */
.apuntarse__datos { margin: 22px 0 24px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.apuntarse__datos div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.apuntarse__datos dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.apuntarse__datos dd { margin: 0; font-size: .94rem; color: var(--ink-800); }
@media (max-width: 520px) { .apuntarse__datos div { grid-template-columns: 1fr; gap: 2px; } }

/* Aire entre los tres pasos y las dos columnas */
.steps + .contacta, .steps ~ .contacta { margin-top: 40px; }
.section__head + .steps { margin-top: 8px; }

/* El enlace dentro de un parrafo no puede distinguirse solo por el color:
   subrayado siempre (WCAG 1.4.1). */
.form-check a, .form-nota a, .check a, .nota a { text-decoration: underline; text-underline-offset: 2px; }

/* Un enlace metido en un parrafo no puede distinguirse solo por el color
   (WCAG 1.4.1). Solo los enlaces «desnudos», sin clase: los botones, la
   navegacion y las tarjetas ya se distinguen por su forma. */
p a:not([class]), .legal li a:not([class]) {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}

/* =========================================================
   ACTUALIDAD DEL COLEGIO
   ---------------------------------------------------------
   Las ultimas noticias del colegio, en la escuela infantil, el
   campamento y Dragons Den. Las pinta nsd-actualidad.js a partir de
   nsd-noticias.js, que es el mismo archivo en todas las webs.

   Carrusel horizontal (como el de Dolores Dragons): tarjetas que se
   deslizan con scroll-snap, flechas y puntos, y cada una abre su
   ficha completa en una ventana modal en vez de navegar a otra pagina.
   ========================================================= */
.act-nsd { position: relative; }
.act-nsd__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.act-nsd__filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.act-nsd__derecha { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.act-nsd__filtro {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-raised);
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-700, var(--ink-900));
  transition: background .18s, border-color .18s, color .18s;
}
.act-nsd__filtro i { font-size: .85rem; color: var(--green-600); }
.act-nsd__filtro span { font-size: .72rem; font-weight: 800; color: var(--ink-400, var(--ink-500)); }
.act-nsd__filtro:hover { border-color: var(--green-400, var(--green-600)); }
.act-nsd__filtro.is-activo { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.act-nsd__filtro.is-activo i, .act-nsd__filtro.is-activo span { color: var(--gold-300, #fff); }
.act-nsd__search {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-raised);
  color: var(--ink-500); transition: border-color .18s;
}
.act-nsd__search:focus-within { border-color: var(--green-400, var(--green-600)); }
.act-nsd__search input {
  border: 0; background: none; outline: none; font-family: inherit;
  font-size: .82rem; color: var(--ink-900); width: 108px; max-width: 32vw;
}
.act-nsd__search input::placeholder { color: var(--ink-400, var(--ink-500)); }
.act-nsd__vacio { margin: 10px 0 0; padding: 30px; text-align: center; color: var(--ink-500); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.act-nsd__nuevo {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  background: var(--gold-400, #D4A80E); color: #241a00; font-size: .68rem; font-weight: 800; letter-spacing: .03em;
}
@media (max-width: 480px) { .act-nsd__search input { width: 84px; } }
.act-nsd__pista {
  list-style: none; margin: 0; padding: 4px 4px 18px;
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  touch-action: pan-x;
  scrollbar-width: none;
}
.act-nsd__pista::-webkit-scrollbar { display: none; }
.act-nsd__item {
  flex: 0 0 auto; scroll-snap-align: start;
  width: min(320px, 82vw);
}
.act-nsd__enlace {
  display: flex; flex-direction: column; height: 100%; width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-raised); overflow: hidden;
  color: inherit; text-align: left; font: inherit; cursor: pointer; padding: 0;
  transition: transform .18s var(--muelle), box-shadow .18s, border-color .2s;
}
.act-nsd__enlace:hover, .act-nsd__enlace:focus-visible {
  transform: translateY(-3px); border-color: var(--green-600);
  box-shadow: var(--shadow-lg);
}
.act-nsd__portada { display: block; aspect-ratio: 16 / 10; }
.act-nsd__txt { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px 22px; flex: 1; }
.act-nsd__cat {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700);
}
.act-nsd__doc { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold-100, #FFEFD0); color: var(--gold-700, #7A4800); font-size: .72rem; font-weight: 800; }
.act-nsd__titulo {
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; color: var(--ink-900);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: calc(1.12rem * 1.25 * 2);
}
.act-nsd__resumen {
  font-size: .9rem; line-height: 1.6; color: var(--ink-600); flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  min-height: calc(.9rem * 1.6 * 3);
}
.act-nsd__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.act-nsd__fecha { font-size: .78rem; color: var(--ink-500); }
.act-nsd__leer {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .82rem; font-weight: 700; color: var(--green-700);
  transition: gap .18s var(--muelle);
}
.act-nsd__enlace:hover .act-nsd__leer { gap: 9px; }

/* Flechas y puntos, debajo del carrusel */
.act-nsd__nav { display: flex; gap: 8px; }
.act-nsd__flecha {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--ink-700, var(--ink-900));
  cursor: pointer; transition: border-color .18s, transform .12s var(--muelle);
}
.act-nsd__flecha:hover { border-color: var(--green-600); }
.act-nsd__flecha:active { transform: scale(.94); }
.act-nsd__flecha:disabled { opacity: .35; cursor: default; }
.act-nsd__flecha:disabled:hover { border-color: var(--border); }
.act-nsd__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.act-nsd__punto {
  width: 22px; height: 22px; padding: 0; border: none; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.act-nsd__punto::after {
  content: ''; display: block; height: 6px; width: 16px; border-radius: 999px;
  background: var(--border); transition: width .22s var(--muelle), background .22s;
}
.act-nsd__punto[aria-current="true"]::after { width: 28px; background: var(--green-600); }
@media (max-width: 620px) { .act-nsd__nav { display: none; } }

/* Ficha completa en ventana modal, igual que el resto de modales del sitio */
.act-nsd-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.act-nsd-modal[hidden] { display: none; }
.act-nsd-modal__fondo { position: absolute; inset: 0; background: rgba(10, 20, 15, .6); backdrop-filter: blur(3px); }
.act-nsd-modal__caja {
  position: relative; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--surface-raised); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  animation: act-nsd-modal-in .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes act-nsd-modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.act-nsd-modal__portada { display: block; aspect-ratio: 16 / 9; width: 100%; }
.act-nsd-modal__cerrar {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: none;
  background: rgba(10, 20, 15, .55); color: #fff; cursor: pointer; backdrop-filter: blur(2px);
  transition: background .18s;
}
.act-nsd-modal__cerrar:hover { background: rgba(10, 20, 15, .8); }
.act-nsd-modal__cuerpo { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.act-nsd-modal__cuerpo .act-nsd__cat { font-size: .76rem; }
.act-nsd-modal__cuerpo h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--ink-900); margin: 0; }
.act-nsd-modal__cuerpo p { font-size: 1rem; line-height: 1.7; color: var(--ink-700, var(--ink-600)); margin: 0; }
.act-nsd-modal__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
@media (max-width: 620px) {
  .act-nsd-modal { padding: 0; align-items: flex-end; }
  .act-nsd-modal__caja { max-height: 92vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation-name: act-nsd-modal-in-movil; }
  @keyframes act-nsd-modal-in-movil { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .act-nsd-modal__caja { animation: none; }
}

/* La portada de cada noticia: foto propia o, si no la hay, un color y el
   icono de su categoria. Misma pieza que en la web del colegio. */
.portada-noticia {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 16px; background: var(--surface-sunken);
}
.portada-noticia > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portada-noticia--pintada {
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: linear-gradient(145deg, var(--t1), var(--t2));
  color: #fff;
}
.portada-noticia--pintada::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.22), transparent 55%);
}
.portada-noticia--pintada > i { font-size: 2.4rem; opacity: .95; }
.portada-noticia--pintada > b { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }

/* =========================================================
   VIDEOS DEL CENTRO
   ---------------------------------------------------------
   Grabaciones propias, de poca resolucion: se muestran en un
   tamano contenido para que no se vea el pixelado.
   ========================================================= */
.videos-nsd {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.video-nsd {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-raised); overflow: hidden;
}
.video-nsd__pieza {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  background: var(--ink-900); object-fit: cover;
}
.video-nsd__txt { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 18px; }
.video-nsd__txt strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); }
.video-nsd__txt span { font-size: .9rem; line-height: 1.6; color: var(--ink-600); }
.video-nsd__dur {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: .8rem; color: var(--ink-500);
}
.video-nsd__dur i { color: var(--green-700); }
.videos-nsd__nota { margin-top: 16px; font-size: .84rem; color: var(--ink-500); }

/* =========================================================
   BARRA DE PROGRESO DE LECTURA
   ---------------------------------------------------------
   La misma que la web del colegio: una linea arriba del todo
   que marca cuanto queda de pagina. Decorativa: no aporta
   informacion que no este ya en la barra de desplazamiento,
   por eso va con aria-hidden.
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green-700), var(--gold-500, var(--yellow-500)));
  z-index: 100;
  transition: width .1s linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ---------- Barra de hoy ----------
   Debajo de la navegación: el día, la hora y lo que pasa hoy. Los
   mensajes pasan deslizándose; se paran al pasar el ratón y con el
   botón, que es lo que pide la norma para el contenido en movimiento. */
.barra-hoy {
  position: relative; z-index: 3;
  background: linear-gradient(90deg, var(--brand-800), var(--brand-700) 55%, var(--brand-600));
  border-bottom: 1px solid rgba(196,146,0,.3);
  color: #fff;
}
.barra-hoy__in {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  min-height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
}
.barra-hoy__fecha {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap;
}
.barra-hoy__fecha > i { color: var(--gold-300); font-size: .95rem; }
.barra-hoy__dia::first-letter { text-transform: uppercase; }
.barra-hoy__reloj {
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.12);
  font-variant-numeric: tabular-nums; font-weight: 700; color: #fff;
}
/* La rueda de mensajes: todos apilados, solo se ve el activo */
.barra-hoy__rueda { position: relative; list-style: none; margin: 0; padding: 0; height: 46px; overflow: hidden; }
.barra-hoy__msg {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  font-size: .86rem; min-width: 0;
  opacity: 0; transform: translateX(28px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.barra-hoy__msg.is-activa { opacity: 1; transform: none; pointer-events: auto; }
.barra-hoy__msg.is-saliendo { opacity: 0; transform: translateX(-28px); }
.barra-hoy__msg > i { color: var(--gold-300); font-size: .95rem; flex-shrink: 0; }
.barra-hoy__rotulo {
  flex-shrink: 0; padding: 2px 9px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.barra-hoy__texto { flex: 1 1 0; min-width: 0; color: rgba(255,255,255,.92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-hoy__texto a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.barra-hoy__texto a:hover { text-decoration-color: var(--gold-300); }
.barra-hoy__texto b { color: var(--gold-300); font-weight: 700; }
.barra-hoy__msg.es-hoy .barra-hoy__rotulo { background: var(--gold-400); color: var(--brand-900); }
.barra-hoy__msg.es-urgente .barra-hoy__rotulo { background: #E4572E; color: #fff; }
.barra-hoy__msg.es-aviso .barra-hoy__rotulo { background: rgba(227,194,84,.24); color: var(--gold-300); }
.barra-hoy__msg.es-cita .barra-hoy__texto { font-style: italic; }
.barra-hoy__mandos { display: flex; align-items: center; gap: 24px; }
.barra-hoy__pausa {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; cursor: pointer; font-size: .8rem;
  transition: background .2s;
}
.barra-hoy__pausa:hover { background: rgba(255,255,255,.14); }
.barra-hoy__agenda {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--gold-300); white-space: nowrap;
}
.barra-hoy__agenda:hover { background: rgba(255,255,255,.1); color: var(--gold-300); }
@media (max-width: 860px) {
  .barra-hoy__in { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 8px 20px; }
  .barra-hoy__rueda { grid-column: 1 / -1; grid-row: 2; height: 42px; }
  .barra-hoy__msg { flex-wrap: nowrap; font-size: .8rem; }
  .barra-hoy__texto { flex: 1; min-width: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  /* Con poco sitio sobra la flecha, no la palabra */
  .barra-hoy__agenda { font-size: .76rem; padding: 6px 8px; }
  .barra-hoy__agenda i { display: none; }
  .barra-hoy__fecha { min-width: 0; overflow: hidden; }
  .barra-hoy__dia { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
  .barra-hoy__agenda span, .barra-hoy__rotulo { font-size: .64rem; }
  .barra-hoy__fecha { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .barra-hoy__msg { transition: opacity .2s linear; transform: none !important; }
}
.barra-hoy__msg.es-promo .barra-hoy__rotulo { background: var(--gold-400); color: var(--brand-900); }

/* Procedencia de las fotos de la portada. Va dentro de la tarjeta, debajo
   de la foto, para no quedar tapada por las tarjetas flotantes. Misma
   pieza en las tres webs. */
.hero__credito {
  max-width: 520px; margin: 40px 0 0 auto; padding: 0 2px;
  font-size: .76rem; line-height: 1.55; color: var(--ink-500); text-align: right;
}
@media (max-width: 980px) { .hero__credito { margin: 26px auto 0; text-align: center; } }

/* =========================================================
   PORTADAS ALINEADAS
   ---------------------------------------------------------
   Las tres webs colocan el distintivo, el titular, la
   entradilla, los botones y la foto en la misma vertical.
   Para eso: la rejilla arranca por arriba en vez de centrar
   cada columna por su cuenta, y el titular reserva siempre
   las cuatro lineas que ocupa el mas largo, el del colegio.
   ========================================================= */
@media (min-width: 981px) {
  .hero__grid { align-items: start; }
  .hero__titular {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem); line-height: 1.05;
    min-height: 282px; min-height: 4lh;
    display: flex; align-items: center;
  }
  .hero__titular h1 { width: 100%; }
  .hero__credito { min-height: 38px; min-height: 2lh; }
}

/* =========================================================
   Mapa que se carga al pulsar (.mapa-diferido)
   Google Maps no entra en la página hasta que la familia lo pide:
   antes, el iframe mandaba la IP a Google y podía dejar cookies en la
   primera visita. La ficha estática da lo esencial (dirección y «Cómo
   llegar») y el botón inyecta el iframe (nsd-mapa.js).
   ========================================================= */
.mapa-diferido { position: relative; width: 100%; height: 100%; min-height: 100%; }
.mapa-diferido.is-cargado iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }
.mapa-diferido__ficha {
  display: grid; gap: 10px; align-content: center; justify-items: start;
  height: 100%; padding: 20px 22px;
  background: var(--surface-sunken); color: var(--ink-700);
}
.mapa-diferido__ico { width: 26px; height: 26px; color: var(--green-700); }
.mapa-diferido__dir { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-700); }
.mapa-diferido__dir strong { display: block; color: var(--ink-900); font-size: 1rem; }
.mapa-diferido__botones { display: flex; flex-wrap: wrap; gap: 8px; }
.mapa-diferido__botones .btn { min-height: 44px; padding: 10px 16px; font-size: .9rem; }
.mapa-diferido__aviso { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--ink-600); max-width: 52ch; }
.mapa-diferido__aviso a { color: inherit; text-decoration: underline; }
.mapa-diferido__flota {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface-raised); border: 1px solid var(--border); color: var(--ink-900);
  font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-sm); text-decoration: none;
}
/* Mientras solo está la ficha, el recuadro crece con su contenido en vez
   de imponerle la proporción o el alto pensados para el mapa. */
.map-card:has(> .mapa-diferido:not(.is-cargado)),
.contacto-band__mapa:has(> .mapa-diferido:not(.is-cargado)),
.contacta__datos .map-card:has(> .mapa-diferido:not(.is-cargado)),
.contacta__datos .contacto__mapa:has(> .mapa-diferido:not(.is-cargado)) { aspect-ratio: auto; height: auto; }

/* =========================================================
   Primera capa de información de protección de datos (RGPD art. 13),
   justo encima de la casilla y el botón de cada formulario.
   ========================================================= */
.aviso-datos {
  margin: 14px 0 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  font-size: .8rem; line-height: 1.5; color: var(--ink-700);
}
.aviso-datos__titulo { margin: 0 0 6px; font-weight: 700; color: var(--ink-900); font-size: .82rem; }
.aviso-datos dl { margin: 0; display: grid; gap: 4px; }
.aviso-datos dl > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; }
.aviso-datos dt { font-weight: 700; color: var(--ink-900); }
.aviso-datos dd { margin: 0; }
.aviso-datos a { color: inherit; text-decoration: underline; }
@media (max-width: 520px) { .aviso-datos dl > div { grid-template-columns: 1fr; gap: 0; } }

/* Protección de la infancia (LOPIVI): franja fija en el pie de las tres webs */
.footer__infancia { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer__infancia p { margin: 0; font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 110ch; }
.footer__infancia strong { color: #fff; }
.footer__infancia a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
