/* ══ TOKENS ══════════════════════════════════════════ */
:root {
  --navy:          #163a73;
  --navy-deep:     #0f2548;
  --blue:          #2f6fbe;
  --blue-deep:     #1e4f96;
  --blue-light:    #e3f0ff;
  --red:           #e53935;
  --red-deep:      #c62828;
  --red-soft:      #fdecea;
  --yellow:        #f2c94c;
  --yellow-deep:   #d4820a;
  --yellow-soft:   #fffbeb;
  --green:         #43a047;
  --green-deep:    #2e7d32;
  --green-soft:    #f0faf3;
  --pink:          #e91e8c;
  --ink:           #1a2f5b;
  --muted:         #4a5f86;
  --paper:         #fffdf9;
  --line:          rgba(30,79,150,.12);
  --shadow-sm:     0 4px 16px rgba(22,58,115,.09);
  --shadow:        0 12px 36px rgba(22,58,115,.13);
  --shadow-lg:     0 24px 56px rgba(22,58,115,.17);
  --r-sm:          14px;
  --r-md:          22px;
  --r-lg:          32px;
  --font-display:  "Baloo 2", sans-serif;
  --font-body:     "Nunito", sans-serif;
}

/* ══ RESET ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }
a    { color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ══ UTILITIES ═══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══ FLOATING WHATSAPP ═══════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .82rem 1.2rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(37,211,102,.42);
  animation: wa-pulse 2.8s ease-in-out infinite;
  transition: transform .18s;
}
.wa-float:hover { transform: translateY(-3px); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(37,211,102,.42); }
  50%       { box-shadow: 0 8px 36px rgba(37,211,102,.62), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ══ HEADER ══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.5rem .85rem;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, #fffefb 0%, #fff8e8 100%);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(242,201,76,.35), var(--shadow-sm);
}

/* franja de color institucional bajo el header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--yellow) 25%,
    var(--green) 50%, var(--blue) 75%, var(--pink) 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(30,79,150,.2));
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.05;
}
.brand small {
  display: block;
  color: var(--green-deep);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.site-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
  color: #fff;
  padding: .48rem .95rem;
  border-radius: 999px;
  transition: transform .18s, filter .18s, box-shadow .18s;
}
.site-nav a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(22,58,115,.18);
}
.nav-y { background: #e6a800; }
.nav-b { background: var(--blue); }
.nav-e { background: #e91e8c; }
.nav-g { background: var(--green); }
.nav-p { background: #d81b60; }
.nav-r { background: var(--navy); }
.nav-cta {
  background: var(--red) !important;
  box-shadow: 0 6px 16px rgba(229,57,53,.28);
  margin-left: .25rem;
}
.site-nav a.is-active {
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ══ BANNER ADMISIONES ═══════════════════════════════
   Las imágenes (~2.5:1) no caben en 200px × 100% sin
   cortar o distorsionar. Preferimos ancho completo y
   altura automática para ver el arte entero.
*/
.promo-banner {
  display: block;
  width: 100%;
  background: #fff;
  line-height: 0;
  overflow: hidden;
}
.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Variante compacta (sí fija 200px): llena el ancho
   pero recorta arriba/abajo. Actívala con class="is-compact"
   en el <a class="promo-banner"> si la prefieres. */
.promo-banner.is-compact {
  height: 200px;
}
.promo-banner.is-compact img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 42%;
}

/* ══ HERO ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero-media,
.hero-veil,
.hero-shapes { position: absolute; inset: 0; }

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 8s ease;
}
.hero-img.is-active { opacity: 1; transform: scale(1); }

/* Velo vivo: deja ver el color del aula */
.hero-veil {
  background:
    linear-gradient(105deg,
      rgba(22,58,115,.62) 0%,
      rgba(229,57,53,.28) 48%,
      rgba(242,201,76,.22) 100%),
    linear-gradient(180deg,
      rgba(15,37,72,.08) 0%,
      rgba(15,37,72,.42) 100%);
}

.hero-shapes { pointer-events: none; z-index: 1; overflow: hidden; }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
}
.ring-a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  right: 8%;
  top: 18%;
  border-color: rgba(242,201,76,.55);
  animation: ringpulse 6s ease-in-out infinite;
}
.ring-b {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  right: 18%;
  top: 28%;
  border-color: rgba(255,255,255,.28);
  animation: ringpulse 6s ease-in-out infinite .8s;
}

.blob-hero {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
}
.blob-h1 {
  width: 180px; height: 180px;
  left: -50px; bottom: 12%;
  background: rgba(229,57,53,.35);
}
.blob-h2 {
  width: 140px; height: 140px;
  right: -30px; bottom: 30%;
  background: rgba(67,160,71,.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 5rem 1.5rem 4.8rem;
  animation: rise .9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: .35rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  letter-spacing: -.02em;
  line-height: 1.02;
  text-shadow: 0 4px 18px rgba(0,0,0,.28);
}

.hero-motto {
  margin-top: .55rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

.lede {
  max-width: 30rem;
  margin-top: .7rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
  transition: transform .2s, background .2s;
}
.hero-dots button.is-active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* ══ EYEBROW ══════════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .32rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
/* por sección */
.matriculas .eyebrow  { background: rgba(242,201,76,.22); color: #8b5e00; }
.historia  .eyebrow   { background: rgba(22,58,115,.1);    color: var(--navy); }
.identidad .eyebrow   { background: #e8f5e9;               color: var(--green-deep); }
.sede      .eyebrow   { background: #e3f2fd;               color: var(--blue-deep); }
.contacto  .eyebrow   { background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); }

/* ══ BOTONES ══════════════════════════════════════════ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: .94rem;
  border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(229,57,53,.3);
}
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 12px 28px rgba(229,57,53,.42); }

.btn-cta {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(242,201,76,.4);
  font-size: 1.02rem;
  padding: .95rem 1.55rem;
}
.btn-cta:hover {
  background: #ffd666;
  box-shadow: 0 12px 28px rgba(242,201,76,.55);
}

.btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }

.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1ebe5d; box-shadow: 0 12px 28px rgba(37,211,102,.42); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-light:hover { background: rgba(255,255,255,.24); }

/* ══ STATS STRIP ══════════════════════════════════════ */
.stats-strip {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.4rem 1.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .5rem 2.8rem;
  color: #fff;
}
.stat b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.stat span {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .22rem;
}
.stat-sep {
  width: 1px;
  height: 3.2rem;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* ══ SECTIONS SHARED ══════════════════════════════════ */
.section { padding: 5rem 0; }

.section-intro {
  text-align: center;
  margin-bottom: 2.8rem;
}
.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
  color: var(--navy);
}
.section-copy {
  max-width: 36rem;
  margin: .8rem auto 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

/* ══ BANNER ═══════════════════════════════════════ */
/* Contenedor principal del enlace */
.banner-cta-container {
  display: block !important;
  width: 100% !important;
  height: 200px !important; /* Altura fija para computadores */
  max-height: 200px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

/* Comportamiento de la nueva imagen */
.banner-cta-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Llena el espacio perfectamente */
  object-position: center !important; /* Centra el diseño */
  display: block !important;
  transition: transform 0.3s ease, filter 0.3s ease !important; /* Suaviza el efecto hover */
}

/* Efecto Hover interactivo (Opcional, bórralo si no lo deseas) */
.banner-cta-container:hover img {
  transform: scale(1.015) !important; /* Hace un zoom mínimo muy elegante */
  filter: brightness(0.95) !important; /* Oscurece un 5% para simular un clic */
}

/* Adaptación para celulares y tablets pequeñas (Responsivo) */
@media (max-width: 768px) {
  .banner-cta-container {
    height: auto !important; /* En móviles deja que la altura baje proporcionalmente */
    max-height: 140px !important;
  }
  .banner-cta-container img {
    height: auto !important;
    object-fit: contain !important; /* Evita que se recorten los extremos en pantallas angostas */
  }
}

/* Contenedor del enlace (el botón invisible) */
.site-banner {
  display: block;
  width: 100%;
  max-height: 250px;
  overflow: hidden; /* Oculta cualquier sobrante de la imagen */
  cursor: pointer;
}

/* Comportamiento de la imagen dentro del enlace */
.site-banner img {
  width: 100%;
  height: 250px; /* Forzamos la altura a la que quieres limitar el banner */
  object-fit: cover; /* Evita que la imagen se estire o aplaste */
  object-position: center; /* Mantiene el centro del banner visible */
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease; /* Transición suave para el efecto hover */
}

/* Efecto visual al pasar el mouse (indica que es clicable) */
.site-banner:hover img {
  transform: scale(1.02); /* Un zoom muy sutil del 2% */
  filter: brightness(0.95); /* Se oscurece ligeramente */
}

/* Ajuste para celulares (opcional, pero muy recomendado) */
@media (max-width: 768px) {
  .site-banner img {
    height: 140px; /* Reducimos la altura en móviles para que no se recorten los textos de los lados */
  }
}

/* ══ MATRÍCULAS ═══════════════════════════════════════ */
.matriculas { background: var(--yellow-soft); }

.matriculas-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 2px solid rgba(242,201,76,.5);
  box-shadow: var(--shadow-lg);
}

.matriculas-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.3rem);
  line-height: 1;
  color: var(--navy);
  margin-top: .55rem;
  margin-bottom: .5rem;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin: 1.25rem 0;
}
.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .38rem;
  padding: .9rem .5rem 1rem;
  border-radius: var(--r-md);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: .82rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  transition: transform .22s, box-shadow .22s;
}
.level-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.lv-sym { font-size: 1.25rem; }

.lv-parvulos   { background: linear-gradient(145deg, var(--green),      var(--green-deep)); }
.lv-prejardin  { background: linear-gradient(145deg, var(--pink),       #c2185b); }
.lv-jardin     { background: linear-gradient(145deg, #f0a500,           var(--yellow-deep)); }
.lv-transicion { background: linear-gradient(145deg, var(--blue),       var(--blue-deep)); }

.matriculas-poster {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .3s;
}
.matriculas-poster:hover { transform: scale(1.02) rotate(.4deg); }
.matriculas-poster img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* ══ HISTORIA ════════════════════════════════════════ */
.historia { background: var(--blue-light); }

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: .8rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.persona-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .24s, box-shadow .24s;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.persona-acento {
  height: 6px;
  border-radius: 0;
}
.navy-acento { background: linear-gradient(90deg, var(--navy), var(--blue)); }
.red-acento  { background: linear-gradient(90deg, var(--red), #ff7043); }

.persona-photo {
  overflow: hidden;
  width: 100%;             /* Ocupa el ancho completo de la tarjeta */
  aspect-ratio: 3 / 4;     /* Forzar al contenedor a ser un rectángulo 3:4 */
  border-radius: 12px;     /* Opcional: si tus tarjetas llevan esquinas suaves */
}

.persona-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Encaja perfectamente al 100% porque la caja mide lo mismo que la foto */
  object-position: center; /* Centrado perfecto */
  transition: transform .4s ease;
}
.persona-card:hover .persona-photo img { 
  transform: scale(1.04); 
}
.persona-body { padding: 1.2rem 1.3rem 1.4rem; }
.persona-rol {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--navy);
  margin-bottom: .3rem;
}
.persona-rol.rojo { color: var(--red); }
.persona-body h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: .45rem;
}
.persona-body p { color: var(--muted); font-weight: 600; }

/* línea conectora entre los dos */
.historia-linea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1rem 0;
  align-self: stretch;
  justify-content: center;
}
.linea-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.linea-dot.top    { background: var(--navy); }
.linea-dot.bottom { background: var(--red); }
.linea-track {
  width: 3px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, var(--navy), var(--red));
  border-radius: 3px;
}

.momento-foto {
  max-width: 1100px;
  margin: 1.8rem auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.momento-foto img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.momento-foto figcaption {
  padding: .95rem 1.25rem 1.1rem;
  font-weight: 700;
  color: var(--muted);
  font-size: .95rem;
}

/* ══ IDENTIDAD ═══════════════════════════════════════ */
.identidad { background: #fff; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.value-photo {
  margin: 0;
  height: 160px;
  overflow: hidden;
}
.value-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.value-card:hover .value-photo img { transform: scale(1.05); }

.value-head {
  padding: 1.1rem 1.25rem .95rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
}
.value-sym {
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.value-head h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.mision-head    { background: linear-gradient(135deg, var(--red),       var(--red-deep)); }
.vision-head    { background: linear-gradient(135deg, #e6a200,          var(--yellow-deep)); }
.horizonte-head { background: linear-gradient(135deg, var(--green),     var(--green-deep)); }

.value-body { padding: 1.15rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.value-body > p { color: var(--muted); font-weight: 600; margin-bottom: .65rem; }
.value-detail {
  font-size: .95rem !important;
  color: var(--ink) !important;
  opacity: .85;
  margin-bottom: 1rem !important;
}
.pill-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: auto;
}
.pill-row li {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: .82rem;
}

/* ══ SEDE ════════════════════════════════════════════ */
.sede { background: var(--green-soft); }

.carousel { max-width: 1100px; margin: 0 auto; }

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid #fff;
  outline: 3px solid rgba(67,160,71,.2);
}
.carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.carousel-slide { min-width: 100%; margin: 0; }
.carousel-slide img {
  width: 100%;
  height: min(62vh, 540px);
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.1rem;
}
.carousel-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46,125,50,.25);
  transition: background .18s, transform .18s;
  display: grid;
  place-items: center;
}
.carousel-btn:hover { background: var(--navy); transform: scale(1.1); }

.carousel-dots { display: flex; gap: .4rem; align-items: center; }
.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #b2dfdb;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dots button.is-active {
  background: var(--green-deep);
  transform: scale(1.35);
}

/* ══ CONTACTO ════════════════════════════════════════ */
.contacto { background: var(--navy); color: #fff; }

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.8rem;
  align-items: start;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  line-height: 1.02;
  margin-top: .5rem;
}
.contact-copy .section-copy {
  margin-left: 0;
  color: rgba(255,255,255,.75);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.ci-label {
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow);
}
.contact-list a {
  text-decoration: none;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  transition: color .18s;
}
.contact-list a:hover { color: var(--yellow); }

.contact-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-escudo {
  width: 130px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)) brightness(1.1);
}
.contact-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 3px solid rgba(255,255,255,.2);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* ══ FOOTER ══════════════════════════════════════════ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.footer-brand img { width: 50px; height: auto; }
.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  display: block;
  margin-bottom: .22rem;
}
.footer-brand p {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  justify-content: center;
  padding-top: .3rem;
}
.footer-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .18s;
}
.footer-links a:hover { color: var(--yellow); }

.footer-datos {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: right;
}
.footer-datos a,
.footer-datos span {
  font-size: .86rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .18s;
}
.footer-datos a:hover { color: var(--yellow); }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
}
.footer-copy p {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  text-align: center;
}

/* ══ KEYFRAMES ═══════════════════════════════════════ */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes softbounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes ringpulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%       { transform: scale(1.06); opacity: 1; }
}

/* ══ RESPONSIVE ══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1020px) {
  .values-grid       { grid-template-columns: repeat(2, 1fr); }

  .historia-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
  }
  .historia-linea {
    flex-direction: row;
    padding: 0 1rem;
    height: 50px;
    align-self: auto;
  }
  .linea-track {
    width: auto;
    flex: 1;
    height: 3px;
    min-height: unset;
  }
  .linea-dot { width: 12px; height: 12px; }
}

/* Mobile landscape */
@media (max-width: 860px) {
  .matriculas-panel  { grid-template-columns: 1fr; }
  .contact-inner     { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-brand  { justify-content: center; }
  .footer-datos  { text-align: center; }
  .footer-links  { justify-content: center; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + .3rem);
    right: 1rem;
    left: 1rem;
    padding: .7rem;
    border-radius: 20px;
    background: #fffefb;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: .35rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    text-align: center;
    padding: .7rem .95rem;
  }
  .nav-cta { margin-left: 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero-content { padding-top: 4rem; }
  .stat { padding: .5rem 1.4rem; }
  .stat-sep { display: none; }

  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }

  .carousel-slide img { height: max(40vw, 220px); }

  .wa-float span { display: none; }
  .wa-float { padding: .88rem; }
}

/* ══ PÁGINA CONTACTO ═════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(22,58,115,.72) 0%, rgba(229,57,53,.35) 55%, rgba(242,201,76,.25) 100%),
    linear-gradient(180deg, rgba(15,37,72,.1) 0%, rgba(15,37,72,.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 1.5rem 2.4rem;
}
.breadcrumb {
  font-weight: 800;
  font-size: .86rem;
  margin-bottom: .55rem;
  color: rgba(255,255,255,.85);
}
.breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
}
.page-hero-content > p:last-child {
  margin-top: .55rem;
  max-width: 34rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}

.contact-page { background: var(--blue-light); }
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 1.4rem;
  align-items: start;
}
.contact-aside,
.contact-form-wrap {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-aside h2,
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-aside .contact-list { margin: 0 0 1.2rem; }
.contact-aside .ci-label { color: var(--red); }
.contact-aside .contact-list a { color: var(--ink); }
.aside-hours {
  margin-bottom: 1.2rem;
  padding: 1rem;
  border-radius: var(--r-md);
  background: var(--yellow-soft);
}
.aside-hours h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: .35rem;
}
.aside-hours p {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}

.form-lead {
  color: var(--muted);
  font-weight: 600;
  margin: -.4rem 0 1.1rem;
}
.form-alert {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  font-weight: 800;
}
.form-alert.ok {
  background: #e8f5e9;
  color: var(--green-deep);
}
.form-alert.err {
  background: #fdecea;
  color: var(--red-deep);
}
.contact-form {
  position: relative;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-weight: 800;
  color: var(--navy);
  font-size: .9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid #d7e6f7;
  border-radius: 14px;
  padding: .8rem .95rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,111,190,.15);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-bottom: .9rem;
}
.form-full { margin-bottom: .9rem; }
.form-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: .65rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  margin-bottom: 1.1rem;
}
.form-check input {
  width: auto;
  margin-top: .2rem;
  accent-color: var(--red);
}
.form-submit { width: 100%; justify-content: center; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

.value-sym .ojo-solido {
  width: 1.35rem;  /* Copia exactamente el tamaño de fuente de los otros símbolos */
  height: 1.35rem; /* Mantiene la proporción perfecta */
  display: block;  /* Evita espacios fantasmas debajo del vector */
}
