/* =========================================================================
   Colegio Mandalay — hoja de estilos principal
   Diseñada primero para celular; luego se ajusta para tableta y computador.
   Para cambiar un color en TODO el sitio, cámbialo solo en :root (abajo).
   ========================================================================= */

/* ---------- 1. Colores y medidas (tomados del escudo del colegio) ---------- */
:root {
  --rojo: #bc1c10;          /* rojo exacto del escudo */
  --rojo-oscuro: #96160c;   /* rojo para cuando el botón se toca o se pasa el mouse */
  --rojo-suave: #fbebe9;
  --azul: #3c2898;          /* azul exacto del escudo */
  --azul-oscuro: #221859;   /* mismo azul, más profundo, para fondos */
  --azul-suave: #eeecf8;
  --blanco: #ffffff;
  --crema: #f8f5f0;         /* fondo cálido para alternar secciones */
  --tinta: #1d1a2b;         /* color del texto */
  --gris: #57536b;          /* texto secundario */
  --borde: #e4e0ea;
  --verde-whatsapp: #1fa855;
  --vino: #7b1525;          /* vino tinto institucional */
  --vino-claro: #9b1f33;
  --tinte-fondo: linear-gradient(135deg, #e8ebfa 0%, #f3eefa 50%, #f8e8ec 100%);  /* fondo suave azul → vino */
  --dibujos-fondo: 0.11;    /* qué tanto se ven los dibujos del fondo en celular (en computador: ver más abajo) */

  --fuente-titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --fuente-texto: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --ancho-max: 1160px;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(34, 24, 89, 0.10);
}

/* Aviso de la copia de revisión: solo se ve si esta hoja de estilos NO cargó
   (por ejemplo, al abrir index.html desde el .zip sin extraerlo) */
.aviso-sin-extraer { display: none !important; }

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;      /* 17 px: cómodo de leer en celular */
  line-height: 1.6;
}

img, video, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }   /* lo marcado como oculto nunca se muestra */
img { height: auto; }

a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--rojo); }

h1, h2, h3 {
  font-family: var(--fuente-titulos);
  line-height: 1.15;
  color: var(--azul-oscuro);
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

/* Se ve solo al navegar con teclado: salta directo al contenido */
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--azul-oscuro); color: var(--blanco);
  padding: 10px 16px; border-radius: 8px;
}
.saltar:focus { top: 12px; color: var(--blanco); }

:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

.contenedor { width: 100%; max-width: var(--ancho-max); margin: 0 auto; padding: 0 16px; }

.seccion { padding: 64px 0; }
[id] { scroll-margin-top: 84px; }   /* el menú fijo no tapa el título al saltar a una sección */
.seccion--crema { background: var(--crema); }
.seccion--azul { background: var(--azul-oscuro); color: #e9e6f7; }
.seccion--azul h2, .seccion--azul h3 { color: var(--blanco); }

/* Antetítulo con la "franja" azul y roja del escudo */
.antetitulo {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rojo); margin: 0 0 12px;
}
.antetitulo::before {
  content: ""; width: 28px; height: 8px; flex: none;
  background: linear-gradient(var(--azul) 0 50%, var(--rojo) 50% 100%);
  border-radius: 2px;
}
.seccion--azul .antetitulo { color: #ffb4ad; }
.seccion--azul .antetitulo::before { background: linear-gradient(#8e80e0 0 50%, #ff7b70 50% 100%); }

.intro { max-width: 680px; color: var(--gris); font-size: 1.125rem; }
.seccion--azul .intro { color: #d5d0f0; }

/* ---------- 3. Botones (grandes y fáciles de tocar: mínimo 48 px) ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 10px; border: 2px solid transparent;
  font-family: var(--fuente-texto); font-size: 1.05rem; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.boton:active { transform: translateY(1px); }
.boton--rojo { background: var(--rojo); color: var(--blanco); }
.boton--rojo:hover { background: var(--rojo-oscuro); color: var(--blanco); }
.boton--borde { background: transparent; color: var(--azul-oscuro); border-color: var(--azul); }
.boton--borde:hover { background: var(--azul); color: var(--blanco); }
.boton--blanco { background: var(--blanco); color: var(--azul-oscuro); }
.boton--blanco:hover { background: var(--rojo-suave); color: var(--rojo-oscuro); }
.boton svg { width: 22px; height: 22px; flex: none; }

/* Botón grande y llamativo: ocupa todo el ancho, con degradado, brillo y flecha */
.boton--grande {
  position: relative; overflow: hidden; display: flex; width: 100%;
  min-height: 72px; padding: 18px 28px; border-radius: 14px;
  font-size: clamp(1.25rem, 3vw, 1.5rem); letter-spacing: .01em;
  background: linear-gradient(100deg, var(--rojo-oscuro), var(--rojo) 45%, #d8361f);
  box-shadow: 0 12px 28px rgba(188, 28, 16, .3);
}
.boton--grande::after { content: "→"; font-size: 1.2em; transition: transform .25s ease; }
.boton--grande:hover { background: linear-gradient(100deg, #7f1209, var(--rojo-oscuro) 45%, var(--rojo)); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(188, 28, 16, .38); }
.boton--grande:hover::after { transform: translateX(6px); }
.boton--grande::before {      /* brillo que cruza el botón cada pocos segundos */
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); animation: brillo-boton 4.5s ease-in-out infinite;
}
@keyframes brillo-boton { 0%, 60% { left: -40%; } 100% { left: 130%; } }

.enlace-flecha { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.enlace-flecha::after { content: "→"; transition: transform .2s; }
.enlace-flecha:hover::after { transform: translateX(4px); }

/* Marca para datos que el colegio aún debe entregar */
.pendiente {
  display: inline-block; margin-top: 6px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px dashed #b7791f; background: #fff6dc; color: #6b4300;
  font-size: 0.85rem; font-weight: 600; line-height: 1.4;
}

/* ---------- 4. Encabezado y menú fijo ---------- */
.franja-superior { height: 6px; background: linear-gradient(var(--azul) 0 50%, var(--rojo) 50% 100%); }

.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--borde);
  backdrop-filter: saturate(160%) blur(6px);
}
.encabezado__barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }

.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--azul-oscuro); }
.marca img { width: 48px; height: 48px; }
.marca__nombre { font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.2rem; line-height: 1.1; display: block; }
.marca__lema { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rojo); }

.boton-menu {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 14px;
  border: 2px solid var(--borde); border-radius: 10px; background: var(--blanco);
  font: 700 1rem var(--fuente-texto); color: var(--azul-oscuro); cursor: pointer;
}
.boton-menu svg { width: 22px; height: 22px; }

.menu { border-top: 1px solid var(--borde); }
.menu ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.menu a {
  display: flex; align-items: center; min-height: 52px; padding: 0 4px;
  font-weight: 600; font-size: 1.1rem; color: var(--tinta); text-decoration: none;
  border-bottom: 1px solid var(--borde);
}
.menu a:hover { color: var(--rojo); }
.menu .menu__cta { margin-top: 12px; border-bottom: 0; }
.menu .menu__cta a { justify-content: center; border-radius: 10px; background: var(--rojo); color: var(--blanco); border: 0; }
.menu .menu__cta a:hover { background: var(--rojo-oscuro); color: var(--blanco); }

/* Con JavaScript activo, el menú del celular se abre y cierra con el botón.
   Sin JavaScript, el menú queda siempre visible (nada se pierde). */
.menu--escritorio { display: none; }          /* el menú de computador se oculta en celular */
.js .menu--movil { display: none; }
.js .menu--movil.abierto { display: block; }
.no-js .boton-menu { display: none; }

/* ---------- 5. Portada (sección principal) ---------- */
.portada { background: var(--crema); padding: 40px 0 56px; overflow: hidden; }
.portada__grilla { display: grid; gap: 40px; align-items: center; }
.portada__etiqueta {
  display: inline-block; margin-bottom: 16px; padding: 6px 12px;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; color: var(--azul-oscuro);
}
.portada h1 { margin-bottom: 18px; }
.portada h1 em { font-style: normal; color: var(--rojo); }
.portada__texto { font-size: 1.15rem; color: var(--gris); max-width: 560px; }
.portada__botones { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 22px; }
/* Lema y PEI: dos tarjetas con ícono */
.portada__lema { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 560px; }
.lema-tarjeta {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--blanco); border: 1px solid var(--borde); border-left: 5px solid var(--rojo);
  border-radius: 14px; box-shadow: 0 8px 22px rgba(34, 24, 89, .08);
}
.lema-tarjeta--pei { border-left-color: var(--azul); }
.lema-tarjeta__icono { flex: none; width: 44px; height: 44px; }
.lema-tarjeta__icono--svg { display: grid; place-items: center; border-radius: 50%; background: var(--azul-suave); color: var(--azul); }
.lema-tarjeta__icono--svg svg { width: 28px; height: 28px; }
.lema-tarjeta__titulo { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rojo); }
.lema-tarjeta__frase { display: block; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.12rem; line-height: 1.25; color: var(--azul-oscuro); }
@media (min-width: 600px) { .portada__lema { grid-template-columns: 1fr 1.25fr; } }

/* Tarjeta del video, con las bandas del escudo detrás */
.video-tarjeta { position: relative; max-width: 290px; margin: 0 auto; }
.video-tarjeta::before,
.video-tarjeta::after {
  content: ""; position: absolute; left: -40px; right: -40px; height: 22px; z-index: 0; border-radius: 4px;
}
.video-tarjeta::before { top: 38%; background: var(--azul); }
.video-tarjeta::after { top: calc(38% + 22px); background: var(--rojo); }
.video-tarjeta__marco {
  position: relative; z-index: 1; overflow: hidden;
  border: 6px solid var(--blanco); border-radius: 22px; background: #000;
  box-shadow: 0 20px 50px rgba(34, 24, 89, 0.25);
}
.video-tarjeta video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.video-tarjeta figcaption { position: relative; z-index: 1; margin-top: 14px; font-size: 0.95rem; color: var(--gris); text-align: center; }

details.transcripcion { margin-top: 10px; text-align: left; }
details.transcripcion summary { cursor: pointer; font-weight: 700; color: var(--azul); min-height: 44px; display: flex; align-items: center; justify-content: center; }
details.transcripcion p { font-size: 0.95rem; background: var(--blanco); padding: 14px 16px; border-radius: 10px; border: 1px solid var(--borde); }

/* ---------- 6. Cifras ---------- */
.cifras { background: var(--blanco); border-bottom: 1px solid var(--borde); }
.cifras__lista { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.cifras__numero { display: block; font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--rojo); line-height: 1.1; }
.cifras__texto { display: block; font-size: 0.98rem; color: var(--gris); line-height: 1.35; margin-top: 4px; }

/* ---------- 7. Accesos para familias ---------- */
.accesos { display: grid; gap: 12px; margin-top: 28px; }
.acceso {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  text-decoration: none; color: var(--tinta); transition: border-color .2s, box-shadow .2s;
}
.acceso:hover { border-color: var(--azul); box-shadow: var(--sombra); color: var(--tinta); }
.acceso__icono { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--azul-suave); color: var(--azul); }
.acceso__icono svg { width: 26px; height: 26px; }
.acceso strong { display: block; font-size: 1.08rem; color: var(--azul-oscuro); }
.acceso span span { display: block; font-size: 0.93rem; color: var(--gris); line-height: 1.35; }

/* ---------- 8. Por qué elegirnos ---------- */
.razones__grilla { display: grid; gap: 36px; align-items: start; }
.razones { list-style: none; margin: 0; padding: 0; counter-reset: razon; }
.razones li { position: relative; padding: 0 0 22px 58px; margin-bottom: 22px; border-bottom: 1px solid var(--borde); counter-increment: razon; }
.razones li:last-child { border-bottom: 0; margin-bottom: 0; }
.razones li::before {
  content: counter(razon, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.7rem; color: var(--rojo);
}
.razones h3 { margin-bottom: 6px; }
.razones p { margin: 0; color: var(--gris); }

.foto-con-pie { margin: 0 0 28px; }
.foto-con-pie img { border-radius: var(--radio); box-shadow: var(--sombra); width: 100%; }
.foto-con-pie figcaption { font-size: 0.92rem; color: var(--gris); margin-top: 10px; }

/* ---------- 9. Niveles ---------- */
.niveles { display: grid; gap: 18px; margin-top: 32px; }
.nivel {
  background: var(--blanco); border-radius: var(--radio); padding: 26px 22px;
  border-top: 6px solid var(--azul); box-shadow: var(--sombra);
}
.nivel:nth-child(2) { border-top-color: var(--rojo); }
.nivel:nth-child(3) { border-top-color: var(--azul-oscuro); }
.nivel__sede { font-weight: 700; color: var(--rojo); font-size: 0.95rem; margin-bottom: 4px; }
.nivel dl { margin: 14px 0 0; font-size: 0.97rem; }
.nivel dt { font-weight: 700; color: var(--azul-oscuro); }
.nivel dd { margin: 0 0 10px; color: var(--gris); }
.niveles__nota { margin-top: 22px; font-size: 0.97rem; color: var(--gris); max-width: 820px; }

/* ---------- 10. Servicios ---------- */
.servicios { display: grid; gap: 18px; margin-top: 32px; }
.servicio { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; }
.servicio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.servicio__cuerpo { padding: 20px 20px 22px; }
.servicio__cuerpo p { margin: 0; color: var(--gris); }
.servicio--destacado { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: #e2def6; }
.servicio--destacado h3 { color: var(--blanco); }
.servicio--destacado p { color: #d5d0f0; }
.servicio__sello { margin: 20px 20px 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--rojo); color: var(--blanco); }
.servicio__sello svg { width: 30px; height: 30px; }

/* ---------- 11. Vida escolar ---------- */
.galeria { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; margin-top: 32px; }
.galeria figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--borde); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria figure:hover img { transform: scale(1.04); }
.galeria figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(18, 12, 48, 0.88));
  color: var(--blanco); font-weight: 700; font-size: 0.95rem; line-height: 1.25;
}
.galeria__ancha { grid-column: 1 / -1; }

/* ---------- 12. Admisiones 2027 ---------- */
.admisiones__grilla { display: grid; gap: 40px; }
.pasos { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: paso; }
.pasos li { position: relative; padding: 0 0 20px 56px; counter-increment: paso; }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rojo); color: var(--blanco); font-weight: 700;
}
.pasos li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: rgba(255, 255, 255, 0.18); }
.pasos li:last-child::after { display: none; }
.pasos strong { color: var(--blanco); display: block; }
.pasos .pendiente { font-size: 0.82rem; }
.admisiones__video { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding: 14px; border-radius: var(--radio); background: rgba(255, 255, 255, 0.07); }
.admisiones__video video { width: 120px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.admisiones__video p { margin: 0; font-size: 0.97rem; }

/* Formulario "Curso 2027" */
.formulario { background: var(--blanco); color: var(--tinta); border-radius: 18px; padding: 26px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.formulario h3 { color: var(--azul-oscuro); font-size: 1.5rem; margin-bottom: 4px; }
.formulario__ayuda { color: var(--gris); font-size: 0.97rem; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--azul-oscuro); }
.campo label small { font-weight: 400; color: var(--gris); }
.campo input,
.campo textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--borde); border-radius: 10px; background: var(--blanco);
  font: 1.05rem var(--fuente-texto); color: var(--tinta);
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus,
.campo textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 4px var(--azul-suave); }
.casilla { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px; border-radius: 10px; background: var(--crema); margin-bottom: 18px; font-size: 0.95rem; }
.casilla input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--rojo); }
.casilla label { cursor: pointer; }
.formulario .boton { width: 100%; }
.formulario__error { display: none; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--rojo-suave); color: var(--rojo-oscuro); font-weight: 600; }
.formulario__error.visible { display: block; }
.formulario__nota { margin: 12px 0 0; font-size: 0.88rem; color: var(--gris); text-align: center; }

/* ---------- 13. Contacto ---------- */
.sedes { display: grid; gap: 18px; margin-top: 32px; }
.sede { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.sede__cuerpo { padding: 20px; }
.sede__nivel { font-weight: 700; color: var(--rojo); font-size: 0.95rem; }
.sede address { font-style: normal; font-size: 1.1rem; margin: 4px 0 12px; }
.sede iframe { width: 100%; height: 240px; border: 0; background: var(--azul-suave); }

.contacto__grilla { display: grid; gap: 18px; margin-top: 18px; }
.tarjeta { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px 20px; }
.lista-contacto { list-style: none; margin: 0; padding: 0; }
.lista-contacto li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.lista-contacto li:last-child { border-bottom: 0; }
.lista-contacto svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--azul); }
.lista-contacto a { font-weight: 700; overflow-wrap: anywhere; }
.lista-contacto small { display: block; color: var(--gris); font-size: 0.9rem; }
.horario { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.horario th, .horario td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--borde); vertical-align: top; }
.horario th { color: var(--azul-oscuro); padding-right: 12px; }
.horario tr:last-child th, .horario tr:last-child td { border-bottom: 0; }

/* ---------- 14. Pie de página ---------- */
.pie { background: var(--azul-oscuro); color: #d5d0f0; padding: 56px 0 110px; font-size: 0.97rem; }
.pie a { color: var(--blanco); }
.pie a:hover { color: #ffb4ad; }
.pie__grilla { display: grid; gap: 32px; }
.pie__marca { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pie__marca img { width: 64px; height: 64px; border-radius: 12px; background: var(--blanco); padding: 4px; }
.pie__marca strong { font-family: var(--fuente-titulos); font-size: 1.35rem; color: var(--blanco); display: block; }
.pie h3, .pie__titulo { color: var(--blanco); font-family: var(--fuente-texto); font-size: 0.85rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: 6px; }
.pie li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.pie__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.88rem; color: #b9b3dc; }

/* ---------- 15. Botón flotante de WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-whatsapp); color: var(--blanco);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform .2s;
}
.whatsapp-flotante:hover { transform: scale(1.06); color: var(--blanco); }
.whatsapp-flotante svg { width: 32px; height: 32px; }

/* ---------- 16. Páginas internas ---------- */
/* Cabecera de cada página interna */
.pagina-titulo { background: var(--crema); padding: 36px 0 32px; border-bottom: 1px solid var(--borde); }
.migas { font-size: 0.92rem; color: var(--gris); margin-bottom: 14px; }
.migas a { color: var(--gris); }
.pagina-titulo h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
.pagina-titulo .intro { margin-bottom: 0; }

/* Índice de secciones (se desliza de lado en celular) */
.indice { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 2px; margin: 0; list-style: none; scrollbar-width: thin; }
.indice a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border: 1px solid var(--borde); border-radius: 999px; background: var(--blanco);
  text-decoration: none; font-weight: 600; color: var(--azul-oscuro);
}
.indice a:hover { border-color: var(--azul); color: var(--azul); }

.bloque { padding: 56px 0; border-bottom: 1px solid var(--borde); }
.bloque:last-of-type { border-bottom: 0; }
.bloque--crema { background: var(--crema); }
.bloque__grilla { display: grid; gap: 28px; align-items: start; }
.texto { max-width: 720px; }
.texto p { font-size: 1.08rem; }
.texto ul, .texto ol { padding-left: 1.3em; }
.texto li { margin-bottom: 8px; }

/* Cita grande para misión y visión */
.cita {
  margin: 0 0 20px; padding: 6px 0 6px 22px; border-left: 6px solid var(--rojo);
  font-family: var(--fuente-titulos); font-weight: 600; font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  line-height: 1.4; color: var(--azul-oscuro);
}

/* Fotos con pie de foto, en rejilla */
.fotos { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.fotos figure { margin: 0; }
.fotos img { width: 100%; border-radius: 12px; box-shadow: var(--sombra); }
.fotos figcaption { font-size: 0.92rem; color: var(--gris); margin-top: 8px; }

/* Tarjetas genéricas en rejilla automática */
.tarjetas { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tarjeta h3 { margin-bottom: 8px; }
.tarjeta p:last-child { margin-bottom: 0; }
/* ---------- Escenas animadas de la página Servicios (una por servicio) ---------- */
.con-escena { display: grid; gap: 20px; }
.con-escena > .fotos { grid-column: 1 / -1; }
.escena {
  justify-self: center; width: 100%; max-width: 360px; padding: 10px;
  border-radius: 22px; background: rgba(255, 255, 255, .75); border: 1px solid var(--borde);
  box-shadow: 0 10px 30px rgba(34, 24, 89, .08);
}
.escena-svg { display: block; width: 100%; height: auto; overflow: visible; }
.escena-svg * { transform-box: fill-box; transform-origin: center; }
@media (min-width: 960px) {
  .con-escena { grid-template-columns: 1fr 380px; align-items: center; column-gap: 48px; }
}

/* Transporte: la línea de la ruta avanza y la bandera ondea (la buseta se mueve sola) */
.ruta-trazo { animation: ruta 1.2s linear infinite; }
@keyframes ruta { to { stroke-dashoffset: -34; } }
.bandera { transform-origin: left center; animation: bandera .8s ease-in-out infinite alternate; }
@keyframes bandera { to { transform: scaleX(.75) skewY(6deg); } }

/* Restaurante: vapor que sube y cubiertos que se balancean */
.vapor { opacity: 0; animation: vapor 2.6s ease-in-out infinite; }
.vapor.v2 { animation-delay: .8s; } .vapor.v3 { animation-delay: 1.6s; }
@keyframes vapor { 0% { opacity: 0; transform: translateY(12px) scaleX(.8); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(-18px) scaleX(1.1); } }
.cubierto { transform-origin: center bottom; animation: balanceo 2.4s ease-in-out infinite alternate; }
.cubierto--der { animation-delay: -1.2s; }
@keyframes balanceo { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }

/* Biblioteca: la página pasa y las letras salen flotando */
.hoja { transform-origin: left center; animation: hojear 4.5s ease-in-out infinite; }
@keyframes hojear {
  0%, 15% { transform: scaleX(1); opacity: 1; }
  50%     { transform: scaleX(-1); opacity: 1; }
  60%     { transform: scaleX(-1); opacity: 0; }
  61%, 80% { transform: scaleX(1); opacity: 0; }
  100%    { transform: scaleX(1); opacity: 1; }
}
.letra { opacity: 0; animation: letra-sube 3.2s ease-out infinite; }
.letra.l2 { animation-delay: .8s; } .letra.l3 { animation-delay: 1.6s; } .letra.l4 { animation-delay: 2.4s; }
@keyframes letra-sube { 0% { opacity: 0; transform: translateY(24px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) rotate(12deg) scale(1.1); } }

/* Sala de sistemas: el código se escribe, el cursor parpadea y el puntero hace clic */
.codigo { stroke-dasharray: 1; stroke-dashoffset: 1; animation: escribir 6s ease-in-out infinite; }
.codigo.k2 { animation-delay: .5s; } .codigo.k3 { animation-delay: 1s; } .codigo.k4 { animation-delay: 1.5s; } .codigo.k5 { animation-delay: 2s; }
@keyframes escribir { 0% { stroke-dashoffset: 1; } 15%, 80% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 1; } }
.cursor-texto { animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.puntero { transform-box: view-box; transform-origin: 0 0; animation: puntero 5s ease-in-out infinite; }
@keyframes puntero {
  0%, 100% { transform: translate(236px, 150px); }
  40%      { transform: translate(196px, 88px); }
  48%      { transform: translate(196px, 88px) scale(.85); }
  56%      { transform: translate(196px, 88px); }
  80%      { transform: translate(248px, 120px); }
}
.simbolo-flota { animation: flotar 3s ease-in-out infinite alternate; }
.simbolo-flota.s2 { animation-delay: -1s; } .simbolo-flota.s3 { animation-delay: -2s; }

/* Política de no tareas: tiempo libre (corazón, cometa, pelota y sol) */
.corazon { animation: late 1.4s ease-in-out infinite; }
@keyframes late { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.cometa { transform-box: view-box; transform-origin: 214px 196px; animation: cometa 3.5s ease-in-out infinite alternate; }
@keyframes cometa { from { transform: rotate(-9deg); } to { transform: rotate(7deg); } }
.pelota { animation: rebote .9s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
@keyframes rebote { from { transform: translateY(0) scaleY(.92); } to { transform: translateY(-46px) scaleY(1); } }
.sol { animation: girar 14s linear infinite; }

/* Texto y foto lado a lado, centrados entre sí */
.bloque__grilla--centro { align-items: center; }
/* Dos fotos del mismo tamaño, una al lado de la otra */
.fotos--pareja { grid-template-columns: 1fr 1fr; margin-top: 28px; }
.fotos--pareja img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Bloque de texto que usa todo el ancho, y números que no se parten en dos líneas */
.texto.texto--ancho { max-width: var(--ancho-max); }
.sin-corte { white-space: nowrap; }

/* Párrafo que no se corta en computador */
@media (min-width: 960px) { .texto .una-linea { max-width: none; white-space: nowrap; } .texto:has(.una-linea) { max-width: none; } }

/* Mosaico de Nuestros grados (Vida escolar) */
.mosaico-grados { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: 1fr 1fr; }
.mosaico-grados figure { margin: 0; overflow: hidden; border-radius: 16px; box-shadow: var(--sombra); background: var(--borde); }
.mosaico-grados img, .mosaico-grados video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-collage { aspect-ratio: 4 / 5; }
.mg-video { aspect-ratio: 9 / 16; background: #000; }
.mg-foto { grid-column: 1 / -1; aspect-ratio: 960 / 587; }
.mg-dato {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 22px; border-radius: 16px; color: var(--blanco); text-align: center;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul) 60%, var(--rojo));
  box-shadow: var(--sombra); position: relative; overflow: hidden;
}
.mg-dato::after {   /* estrellitas de fondo */
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(#ffd166 1.5px, transparent 1.6px); background-size: 22px 22px;
}
.mg-dato__icono { width: 54px; height: 54px; color: #ffd166; animation: flotar 3s ease-in-out infinite alternate; }
.mg-dato__numero { font-family: var(--fuente-titulos); font-weight: 700; font-size: 3.4rem; line-height: 1; }
.mg-dato__texto { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: #ffd8d3; }
@media (min-width: 960px) {
  .mosaico-grados { grid-template-columns: 1.1fr 1.15fr .8fr; grid-template-rows: 250px 200px; }
  .mg-collage { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .mg-foto { grid-column: 2; grid-row: 1; aspect-ratio: auto; }
  .mg-dato { grid-column: 2; grid-row: 2; }
  .mg-video { grid-column: 3; grid-row: 1 / 3; aspect-ratio: auto; }
}

/* Galería "Más videos del colegio": mosaico sin espacios */
.galeria-videos { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: 1fr; }
.galeria-videos figure { margin: 0; overflow: hidden; border-radius: 16px; background: #000; box-shadow: var(--sombra); }
.galeria-videos video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gv-vertical { aspect-ratio: 9 / 16; max-height: 640px; justify-self: center; width: 100%; max-width: 360px; }
.gv-horizontal { aspect-ratio: 16 / 9; }
.gv-tarjeta {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 28px 30px; border-radius: 16px; text-decoration: none; color: var(--blanco);
  background: linear-gradient(135deg, var(--rojo) 0%, #d8361f 45%, var(--azul) 100%);
  box-shadow: 0 14px 34px rgba(188, 28, 16, .25); transition: transform .25s ease, box-shadow .25s ease;
}
.gv-tarjeta::after {   /* confeti de puntos */
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: radial-gradient(#ffd166 2px, transparent 2.2px), radial-gradient(#fff 1.5px, transparent 1.7px);
  background-size: 34px 34px, 22px 22px; background-position: 0 0, 11px 13px;
}
.gv-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(188, 28, 16, .32); color: var(--blanco); }
.gv-tarjeta__icono { width: 46px; height: 46px; color: #ffd166; animation: girar 10s linear infinite; }
.gv-tarjeta__icono svg { width: 100%; height: 100%; }
.gv-tarjeta__sobre { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd166; font-size: .9rem; }
.gv-tarjeta__titulo { font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; max-width: 85%; }
.gv-tarjeta__accion { margin-top: 8px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--blanco); color: var(--rojo); font-weight: 700; }
.gv-tarjeta__deco { position: absolute; right: -6px; bottom: -6px; width: 120px; height: 120px; color: rgba(255, 255, 255, .22); transform: rotate(-20deg); }
@media (min-width: 760px) {
  .galeria-videos { grid-template-columns: 1fr 1.55fr; grid-template-rows: auto 1fr; }
  .gv-vertical { grid-row: 1 / 3; max-width: none; max-height: none; }
  .gv-horizontal { grid-column: 2; }
  .gv-tarjeta { grid-column: 2; }
}

/* Día de cometas: foto + banner animado en la columna derecha */
.cometas-fotos { align-items: stretch; }
.cometas-columna { display: flex; flex-direction: column; gap: 16px; }
.banner-cometas {
  position: relative; flex: 1; min-height: 130px; overflow: hidden; border-radius: 12px; box-shadow: var(--sombra);
  background: linear-gradient(180deg, #4aa3df, #8ecae6 70%, #c7e9f7);
  display: flex; align-items: center; padding: 18px 22px;
}
.banner-cometas__cielo { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-cometas__cielo * { transform-box: fill-box; transform-origin: center; }
.banner-cometas__texto { position: relative; z-index: 1; max-width: 62%; }
.banner-cometas__frase { margin: 0; font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; color: var(--azul-oscuro); }
.banner-cometas__dato { margin: 8px 0 0; display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--rojo); color: var(--blanco);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cometa-vuela { animation: cometa-vuela 3.2s ease-in-out infinite alternate; }
.cv-2 { animation-duration: 2.6s; animation-delay: -1s; }
.cv-3 { animation-duration: 3.8s; animation-delay: -2s; }
@keyframes cometa-vuela { 0% { transform: translate(0, 0) rotate(-8deg); } 100% { transform: translate(-10px, -12px) rotate(8deg); } }
.cola { transform-origin: top center; animation: cola 1.2s ease-in-out infinite alternate; }
@keyframes cola { to { transform: skewX(14deg); } }
.nube { animation: nube 14s linear infinite; }
.nube-2 { animation-duration: 18s; animation-delay: -6s; }
.nube-3 { animation-duration: 22s; animation-delay: -11s; }
@keyframes nube { from { transform: translateX(-80px); } to { transform: translateX(560px); } }
@media (max-width: 599px) { .banner-cometas__texto { max-width: 70%; } }

/* Mosaico de fotos del Día de la Ciencia (Vida escolar) */
.mosaico-ciencia { position: relative; display: grid; gap: 14px; grid-template-rows: auto auto; padding: 14px 14px 22px; }
.mosaico-ciencia figure { margin: 0; overflow: hidden; border-radius: 16px; box-shadow: var(--sombra); background: var(--borde); }
.mosaico-ciencia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaico-ciencia__grande { aspect-ratio: 4 / 3; transform: rotate(-1.5deg); }
.mosaico-ciencia__collage { aspect-ratio: 16 / 9; transform: rotate(1.5deg); border: 5px solid var(--blanco); }
/* Sellos decorativos que cubren las esquinas */
.mosaico-ciencia__sello {
  position: absolute; z-index: 2; top: -6px; right: -4px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 104px; padding: 12px 8px; border-radius: 50%; aspect-ratio: 1; justify-content: center;
  background: var(--azul-oscuro); color: #ffd166; text-align: center; box-shadow: 0 10px 24px rgba(34, 24, 89, .3);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15;
  transform: rotate(10deg);
}
.sello-atomo { width: 38px; height: 38px; color: #8ecae6; animation: girar 8s linear infinite; }
.mosaico-ciencia__sello--matraz { top: auto; right: auto; bottom: -4px; left: -6px; width: 84px; padding: 14px; background: var(--blanco); border: 3px solid #e4e0ea; transform: rotate(-10deg); }
.matraz { width: 48px; height: 48px; overflow: visible; }
.matraz .burbuja { transform-box: fill-box; animation: burbuja 2.4s ease-in infinite; opacity: 0; }
.matraz .b2 { animation-delay: .8s; } .matraz .b3 { animation-delay: 1.6s; }
@keyframes burbuja { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-38px); } }
@media (min-width: 960px) {
  #dia-de-la-ciencia .bloque__grilla { align-items: stretch; }
  .mosaico-ciencia { grid-template-rows: 1.35fr 1fr; height: 100%; min-height: 380px; }
  .mosaico-ciencia__grande, .mosaico-ciencia__collage { aspect-ratio: auto; min-height: 0; }
  .mosaico-ciencia img { position: absolute; inset: 0; }   /* la foto se ajusta al recuadro sin agrandarlo */
  .mosaico-ciencia figure { position: relative; }
}

/* Tarjeta "Política de no tareas" del Inicio: texto + escena animada */
.notareas { display: grid; gap: 18px; padding: 24px; align-items: center;
  background: linear-gradient(135deg, var(--azul-oscuro), #2d2170 60%, var(--azul)); }
.notareas h3 { color: var(--blanco); font-size: 1.5rem; margin-bottom: 8px; }
.notareas p { color: #d5d0f0; margin: 0 0 14px; }
.notareas__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notareas__chips li { padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--azul-oscuro); background: #ffd166; }
.notareas__chips li:nth-child(2) { background: #8ecae6; }
.notareas__chips li:nth-child(3) { background: #ff8fa3; }
.notareas__chips li:nth-child(4) { background: #b9f0dd; }
.notareas__chips li:nth-child(5) { background: var(--blanco); }
.notareas__escena { background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
@media (min-width: 760px) { .notareas { grid-template-columns: 1.05fr 1fr; padding: 28px 30px; } }

/* Ventanas de información que se abren sobre la página */
.ventana {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto;
  padding: 32px 28px 28px; border: 0; border-top: 6px solid var(--rojo); border-radius: 18px;
  background: var(--blanco); color: var(--tinta); box-shadow: 0 30px 80px rgba(18, 12, 48, .35);
}
.ventana::backdrop { background: rgba(18, 12, 48, .55); backdrop-filter: blur(3px); }
.ventana[open] { animation: ventana-entra .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes ventana-entra { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.ventana h2 { font-size: 1.7rem; }
.ventana p { color: var(--gris); font-size: 1.05rem; }
.ventana .cita { color: var(--azul-oscuro); font-size: 1.2rem; }
.ventana .boton { margin-top: 8px; }
.ventana__cerrar {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--crema); color: var(--azul-oscuro); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.ventana__cerrar:hover { background: var(--rojo-suave); color: var(--rojo); }

/* Valores institucionales: lista desplegable (Nuestro Colegio) */
.valores { max-width: 820px; margin: 28px auto 0; display: grid; gap: 12px; }
.valor {
  --color: var(--rojo);
  background: var(--blanco); border: 1px solid var(--borde); border-left: 6px solid var(--color);
  border-radius: var(--radio); box-shadow: 0 4px 14px rgba(34, 24, 89, .06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.valor:nth-child(2) { --color: var(--azul); }
.valor:nth-child(3) { --color: #e0a526; }
.valor:nth-child(4) { --color: #1f9e9a; }
.valor:nth-child(5) { --color: var(--azul-oscuro); }
.valor:hover { box-shadow: var(--sombra); }
.valor[open] { box-shadow: var(--sombra); }
.valor summary {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px;
  cursor: pointer; list-style: none; user-select: none;
}
.valor summary::-webkit-details-marker { display: none; }
.valor summary::after {          /* flecha que gira al abrir */
  content: ""; margin-left: auto; flex: none; width: 12px; height: 12px;
  border-right: 3px solid var(--color); border-bottom: 3px solid var(--color);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s ease;
}
.valor[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.valor__letra {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color); color: var(--blanco); font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.15rem;
}
.valor__nombre { font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.3rem; color: var(--azul-oscuro); }
.valor p { margin: 0; padding: 0 22px 20px 72px; color: var(--gris); font-size: 1.05rem; line-height: 1.7; }
.valor[open] p { animation: desplegar .35s ease; }
@keyframes desplegar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .valor p { padding-left: 18px; } .valor__nombre { font-size: 1.15rem; } }

/* Cinco tarjetas (valores): sin huecos. Celular: una debajo de otra.
   Tableta: de a dos, y la última ocupa toda la fila. Computador: las cinco en una fila. */
.tarjetas--cinco { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .tarjetas--cinco { grid-template-columns: repeat(2, 1fr); }
  .tarjetas--cinco > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .tarjetas--cinco { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .tarjetas--cinco > :last-child { grid-column: auto; }
  .tarjetas--cinco .tarjeta { padding: 20px 16px; }
}
.tarjeta--valor { border-top: 5px solid var(--rojo); }
.tarjeta--valor:nth-child(even) { border-top-color: var(--azul); }

/* Personas (fundadores) */
.persona { display: grid; gap: 20px; margin-top: 28px; }
.persona img { width: 100%; max-width: 280px; border-radius: 16px; box-shadow: var(--sombra); }
.persona__cargo { color: var(--rojo); font-weight: 700; margin: -4px 0 12px; }

/* Himno */
.himno__titulo { text-align: center; margin-top: 48px; }
.himno__titulo h3 { font-size: 1.6rem; margin-bottom: 4px; }
.himno__titulo p { color: var(--gris); margin: 0; }
.himno { display: grid; gap: 18px; margin-top: 22px; }
/* Coro y estrofas: recuadros parejos, con la letra centrada */
.estrofa { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px 20px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.estrofa h3 { font-family: var(--fuente-texto); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rojo); margin-bottom: 8px; }
.estrofa p { margin: 0; font-size: 1.08rem; line-height: 1.7; }
.estrofa--coro { background: var(--azul-suave); border-color: transparent; }

/* Símbolos */
.simbolos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 24px; }
.simbolo { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; min-height: 230px; }
/* Título de cada recuadro: siempre arriba, en letras pequeñas rojas y espaciadas */
.simbolo__titulo {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--fuente-texto); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rojo);
}
.simbolo__titulo::before, .simbolo__titulo::after { content: ""; width: 18px; height: 2px; background: currentColor; opacity: .5; }
/* El contenido ocupa el resto del recuadro y queda centrado */
.simbolo__contenido { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.simbolo img { margin: 0 auto; max-height: 150px; width: auto; }
.simbolo__frase { margin: 0; font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.3; color: var(--azul-oscuro); }

/* Videos */
.video-caja { margin: 0; }
.video-caja video { width: 100%; height: auto; border-radius: 12px; background: #000; }
.video-caja--vertical { max-width: 300px; }
.video-caja--vertical video { aspect-ratio: 9 / 16; object-fit: cover; }
.video-caja figcaption { font-size: 0.95rem; color: var(--gris); margin-top: 10px; }
.videos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; align-items: start; }

/* Documentos para descargar */
.documentos { display: grid; gap: 18px; margin-top: 8px; }
.documento { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; }
.documento img { width: 96px; border-radius: 8px; border: 1px solid var(--borde); }
.documento__icono { width: 96px; height: 120px; border-radius: 8px; display: grid; place-items: center; background: var(--azul-suave); color: var(--azul); }
.documento__icono svg { width: 40px; height: 40px; }
.documento h2 { font-size: 1.35rem; margin-bottom: 6px; }
.documento__datos { color: var(--gris); font-size: 0.95rem; margin-bottom: 12px; }
.documento .boton { min-height: 48px; padding: 10px 18px; font-size: 1rem; }

/* Listas con viñeta de verificación */
.lista-check { list-style: none; padding: 0; margin: 16px 0; counter-reset: req; }
.lista-check li { position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--borde); counter-increment: req; }
.lista-check li::before {
  content: counter(req); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; background: var(--azul-suave); color: var(--azul); font-weight: 700; font-size: 0.9rem;
}

/* Guía paso a paso (Sistema Saberes) */
.guia { list-style: none; padding: 0; margin: 20px 0; counter-reset: guia; display: grid; gap: 14px; }
/* Las cajas de pasos y requisitos se alinean con el título, el texto y el botón (sin sangría) */
.texto .guia, .texto .lista-check { padding-left: 0; }
.guia li { position: relative; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 18px 18px 70px; counter-increment: guia; }
.guia li::before {
  content: counter(guia); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rojo); color: var(--blanco); font-weight: 700;
}

.aviso { padding: 16px 18px; border-radius: var(--radio); background: var(--azul-suave); color: var(--azul-oscuro); margin: 20px 0; }
.ver-mas { margin-top: 28px; }
.seccion--azul .enlace-flecha { color: var(--blanco); }

/* Página "no encontrada" y redirecciones */
.centrado { text-align: center; padding: 80px 16px; }

/* ---------- 17. Vida y movimiento: fondos y animaciones con tema escolar ---------- */
/* Todas las animaciones se apagan solas si la persona pidió "reducir movimiento"
   en su celular o computador (ver el final de este archivo). */

/* Fondo de dibujos escolares (lápiz, libro, átomo, birrete, regla, globo...)
   en las secciones color crema. Se mueve muy despacio. */
.seccion--crema, .bloque--crema, .pagina-titulo { position: relative; overflow: hidden; isolation: isolate; }
.seccion--crema::before, .bloque--crema::before, .pagina-titulo::before {
  content: ""; position: absolute; inset: -280px; z-index: -1; pointer-events: none; opacity: var(--dibujos-fondo, 0.11);
  /* Dibujos en los colores del escudo (azul y rojo) más dorado y turquesa */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><g stroke='%233c2898' transform='translate(24 44) rotate(-35)'><rect width='46' height='10' rx='2'/><path d='M46 0l12 5-12 5M8 0v10'/></g><path stroke='%23bc1c10' d='M150 46c-8-6-18-6-26-3v30c8-3 18-3 26 3 8-6 18-6 26-3V43c-8-3-18-3-26 3zM150 46v30'/><path stroke='%23e0a526' fill='%23e0a526' fill-opacity='.35' d='M232 18l4 9 10 1-7.5 6.5 2 10-8.5-5.5-8.5 5.5 2-10L218 28l10-1z'/><g stroke='%231f9e9a' transform='translate(60 172)'><ellipse rx='22' ry='8'/><ellipse rx='22' ry='8' transform='rotate(60)'/><ellipse rx='22' ry='8' transform='rotate(120)'/><circle r='2.5' fill='%231f9e9a'/></g><path stroke='%233c2898' d='M170 160l28-12 28 12-28 12zM184 166v12c8 6 20 6 28 0v-12M226 160v14'/><g stroke='%23e0a526' transform='translate(104 236) rotate(12)'><rect width='60' height='14' rx='2'/><path d='M10 0v5M20 0v8M30 0v5M40 0v8M50 0v5'/></g><g stroke='%23bc1c10' transform='translate(252 118)'><circle r='14'/><ellipse rx='6' ry='14'/><path d='M-14 0h28'/></g><path stroke='%23e0a526' d='M96 112a12 12 0 1 1 16 11v5h-10v-5a12 12 0 0 1-6-11zM102 134h10'/><text x='226' y='252' font-family='Georgia,serif' font-size='24' fill='%231f9e9a' stroke='none'>Aa</text><text x='18' y='112' font-family='Georgia,serif' font-size='18' fill='%23bc1c10' stroke='none'>1+2=3</text><circle cx='200' cy='96' r='3' fill='%23bc1c10' stroke='none'/><circle cx='30' cy='240' r='3' fill='%233c2898' stroke='none'/><circle cx='130' cy='190' r='2.5' fill='%23e0a526' stroke='none'/></svg>");
  background-size: 280px 280px;
  animation: deriva 90s linear infinite;
}
@keyframes deriva { to { transform: translate(280px, 280px); } }

/* Manchas de color tipo acuarela que se mueven despacio (azul, rojo, dorado, turquesa) */
.seccion--crema::after, .bloque--crema::after, .pagina-titulo::after, .portada::after,
.seccion:not(.seccion--crema):not(.seccion--azul)::before, .bloque:not(.bloque--crema)::before {
  content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(28% 34% at 12% 22%, rgba(60, 40, 152, 0.16), transparent 70%),
    radial-gradient(24% 30% at 88% 18%, rgba(188, 28, 16, 0.13), transparent 70%),
    radial-gradient(26% 32% at 78% 82%, rgba(224, 165, 38, 0.18), transparent 70%),
    radial-gradient(22% 28% at 22% 86%, rgba(31, 158, 154, 0.14), transparent 70%);
  animation: manchas 24s ease-in-out infinite alternate;
}
/* En las secciones blancas las manchas son más suaves, para no cansar la vista */
.seccion:not(.seccion--crema):not(.seccion--azul)::before, .bloque:not(.bloque--crema)::before { opacity: 0.6; animation-duration: 30s; }
.seccion:not(.seccion--crema):not(.seccion--azul), .bloque:not(.bloque--crema) { position: relative; overflow: hidden; isolation: isolate; }
@keyframes manchas {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(4%, -3%) scale(1.08) rotate(4deg); }
  100% { transform: translate(-4%, 3%) scale(0.96) rotate(-3deg); }
}

/* Secciones blancas: hoja de cuaderno cuadriculado, muy suave */
.seccion:not(.seccion--crema):not(.seccion--azul),
.bloque:not(.bloque--crema),
.cifras {
  background-color: var(--blanco);
  background-image:
    linear-gradient(rgba(60, 40, 152, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 40, 152, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Admisiones: fondo de tablero con dibujos de tiza */
.seccion--azul { position: relative; overflow: hidden; isolation: isolate; }
.seccion--azul::before {
  content: ""; position: absolute; inset: -260px -320px; z-index: -1; pointer-events: none; opacity: 0.16;
  /* Tiza blanca, amarilla, rosada y celeste */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='260' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><text x='20' y='50' font-family='Georgia,serif' font-size='26' fill='white' stroke='none'>2 x 3 = 6</text><text x='190' y='210' font-family='Georgia,serif' font-size='28' fill='%23ffd166' stroke='none'>ABC</text><path stroke='%23ff8fa3' d='M210 40l20-8 20 8-20 8zM220 44v8c6 4 14 4 20 0v-8'/><g stroke='%238ecae6'><circle cx='70' cy='160' r='26'/><path d='M44 160h52M70 134c-12 14-12 38 0 52M70 134c12 14 12 38 0 52'/></g><path stroke='white' d='M150 90l40 0M170 70v40'/><path stroke='%23ffd166' d='M260 120l6 12 13 2-9 9 2 13-12-6-12 6 2-13-9-9 13-2z'/><path stroke='%23ff8fa3' d='M120 230c10-12 20 12 30 0s20 12 30 0'/></svg>");
  background-size: 320px 260px;
  animation: tiza 80s linear infinite;
}
@keyframes tiza { to { transform: translate(320px, 260px); } }

/* Portada: dibujos que flotan y avión de papel */
.portada { position: relative; isolation: isolate;
  background-image:
    linear-gradient(rgba(60, 40, 152, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 40, 152, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.portada > .contenedor { position: relative; z-index: 1; }
.dibujos { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dibujo { position: absolute; width: 44px; height: 44px; color: var(--azul); opacity: 0.16; animation: flotar 7s ease-in-out infinite alternate; }
.dibujo--1 { top: 4%;  right: 5%;  width: 58px; height: 58px; color: var(--rojo); }
.dibujo--2 { top: 34%; left: 2%;  animation-delay: -2s; }
.dibujo--3 { bottom: 4%; left: 40%; width: 52px; height: 52px; animation-delay: -4s; }
.dibujo--4 { top: 3%; left: 38%; width: 30px; height: 30px; color: var(--rojo); animation-delay: -1s; animation-duration: 5s; }
.dibujo--5 { bottom: 12%; right: 3%; width: 56px; height: 56px; animation-delay: -3s; animation-duration: 9s; }
.dibujo--6 { top: 55%; right: 46%; width: 40px; height: 40px; color: var(--rojo); animation-delay: -5s; }
.dibujo--7 { bottom: 30%; left: 6%; width: 24px; height: 24px; animation-delay: -6s; animation-duration: 6s; }
@keyframes flotar {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-16px) rotate(6deg); }
}
.avion { position: absolute; width: 38px; height: 38px; color: var(--rojo); opacity: 0.55; left: -60px; top: 80%;
  animation: volar 16s ease-in-out infinite; }
@keyframes volar {
  0%   { left: -60px; top: 82%; transform: rotate(-12deg); }
  20%  { top: 55%; transform: rotate(-24deg); }
  35%  { top: 62%; transform: rotate(4deg); }
  55%  { left: 105%; top: 18%; transform: rotate(-20deg); }
  100% { left: 105%; top: 18%; transform: rotate(-20deg); }
}

/* Dibujos que el JavaScript reparte por todas las secciones (ver js/animaciones.js) */
.con-vida > .contenedor, .con-vida > .contenedor-lectura { position: relative; z-index: 1; }
.decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.decor svg, .dibujos .titila { position: absolute; width: var(--t, 40px); height: var(--t, 40px); opacity: var(--o, 0.3); color: var(--c, var(--azul)); }
.decor .flota  { animation: flotar var(--d, 7s) ease-in-out infinite alternate; animation-delay: var(--r, 0s); }
.decor .gira   { animation: girar var(--d, 24s) linear infinite; animation-delay: var(--r, 0s); }
.decor .vaiven { animation: vaiven var(--d, 9s) ease-in-out infinite; animation-delay: var(--r, 0s); }
.decor .titila, .dibujos .titila { animation: titilar var(--d, 3s) ease-in-out infinite; animation-delay: var(--r, 0s); }
.decor .avion  { width: 34px; height: 34px; opacity: .6; color: var(--rojo); animation: volar var(--d, 20s) ease-in-out infinite; animation-delay: var(--r, 0s); }
@keyframes girar   { to { transform: rotate(360deg); } }
@keyframes vaiven  { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(14px, -10px) rotate(4deg); }
                     50% { transform: translate(0, -18px) rotate(10deg); } 75% { transform: translate(-14px, -8px) rotate(0deg); } }
@keyframes titilar { 0%, 100% { transform: scale(.4) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: var(--o, .6); } }

/* Para ahorrar batería: lo que no está en pantalla se queda quieto */
.fuera, .fuera *, .fuera::before, .fuera::after { animation-play-state: paused !important; }

/* Colores de acento para las cifras del Inicio */
.cifras__lista li:nth-child(2) .cifras__numero { color: var(--azul); }
.cifras__lista li:nth-child(3) .cifras__numero { color: #b7791f; }
.cifras__lista li:nth-child(4) .cifras__numero { color: #17807c; }

/* Barra de lectura: se llena azul y rojo mientras se baja por la página */
.encabezado { position: sticky; }
.progreso { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progreso__barra {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--azul), #1f9e9a, #e0a526, var(--rojo));
  transform-origin: left center; transform: scaleX(var(--avance, 0));
}

/* Aparición suave al bajar por la página (solo con JavaScript activo) */
.js .revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--retraso, 0s); }
.js .revelar.visible { opacity: 1; transform: none; }

/* La franja del antetítulo se "dibuja" al aparecer */
.js .antetitulo.revelar::before { transform: scaleX(0); transform-origin: left; transition: transform .6s ease .25s; }
.js .antetitulo.revelar.visible::before { transform: scaleX(1); }

/* Tarjetas que se levantan un poco al pasar el mouse o tocar */
.tarjeta, .servicio, .nivel, .acceso, .sede, .documento, .estrofa {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tarjeta:hover, .servicio:hover, .nivel:hover, .sede:hover, .documento:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.acceso:hover { transform: translateY(-3px); }
.acceso:hover .acceso__icono { animation: saltito .5s ease; }
@keyframes saltito { 40% { transform: translateY(-5px) rotate(-6deg); } }

/* Botón de WhatsApp: un latido suave cada tanto para que se note */
.whatsapp-flotante::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--verde-whatsapp); animation: latido 3.5s ease-out infinite;
}
@keyframes latido { 0% { transform: scale(1); opacity: .7; } 60%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- 17b. Colores institucionales: azul, vino tinto y blanco ---------- */
/* Secciones que antes eran crema: tono suave que va del azul al vino tinto */
.seccion--crema, .bloque--crema, .portada { background-color: #f1eef9; }
.seccion--crema, .bloque--crema { background-image: var(--tinte-fondo); }
.portada { background-image:
  linear-gradient(rgba(60, 40, 152, 0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(60, 40, 152, 0.05) 1px, transparent 1px),
  var(--tinte-fondo);
  background-size: 28px 28px, 28px 28px, auto; }

/* Manchas de acuarela en azul y vino tinto */
.seccion--crema::after, .bloque--crema::after, .pagina-titulo::after, .portada::after,
.seccion:not(.seccion--crema):not(.seccion--azul)::before, .bloque:not(.bloque--crema)::before {
  background:
    radial-gradient(30% 36% at 10% 20%, rgba(60, 40, 152, 0.18), transparent 70%),
    radial-gradient(26% 32% at 90% 15%, rgba(123, 21, 37, 0.16), transparent 70%),
    radial-gradient(28% 34% at 80% 85%, rgba(60, 40, 152, 0.14), transparent 70%),
    radial-gradient(24% 30% at 20% 88%, rgba(123, 21, 37, 0.14), transparent 70%);
}

/* Encabezado de cada página interna: azul intenso con letras blancas */
.pagina-titulo { background: linear-gradient(120deg, var(--azul-oscuro) 0%, var(--azul) 55%, var(--vino) 100%); border-bottom: 6px solid var(--vino); }
.pagina-titulo::before { --dibujos-fondo: 0.14; }
.pagina-titulo h1 { color: var(--blanco); }
.pagina-titulo .intro { color: #e3defa; }
.pagina-titulo .migas, .pagina-titulo .migas a { color: #cfc8f2; }
.pagina-titulo .antetitulo { color: #ffc2bb; }
.pagina-titulo .antetitulo::before { background: linear-gradient(#fff 0 50%, #ff8a80 50% 100%); }
.pagina-titulo .indice a { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: var(--blanco); }
.pagina-titulo .indice a:hover { background: var(--blanco); color: var(--azul-oscuro); }
.pagina-titulo .aviso { background: rgba(255, 255, 255, .95); }

/* Franja de cifras del Inicio: vino tinto con números blancos y dorados */
.cifras { background: linear-gradient(120deg, var(--vino) 0%, var(--vino-claro) 60%, var(--rojo) 100%); border-bottom: 0; }
.cifras .cifras__numero, .cifras__lista li:nth-child(n) .cifras__numero { color: var(--blanco); }
.cifras__lista li:nth-child(odd) .cifras__numero { color: #ffd9a0; }
.cifras .cifras__texto { color: #f6d6dc; }
.cifras__lista li + li { border-left-color: rgba(255, 255, 255, .25) !important; }

/* Admisiones (tablero): azul con un toque de vino tinto */
.seccion--azul { background: linear-gradient(135deg, var(--azul-oscuro) 0%, #2a1d72 60%, #4a1636 100%); }

/* Pie de página con franja vino tinto */
.pie { border-top: 6px solid var(--vino); }

/* ---------- 17c. El escudo repetido como identidad (lo inserta js/animaciones.js) ---------- */
/* Sello redondo con el escudo y texto que gira alrededor */
.sello-escudo {
  position: absolute; z-index: 1; right: 4%; top: 50%; width: 170px; height: 170px; margin-top: -85px;
  display: grid; place-items: center; pointer-events: none;
}
.sello-escudo__anillo { position: absolute; inset: 0; width: 100%; height: 100%; animation: girar 28s linear infinite; }
.sello-escudo__anillo text { font: 700 13.5px var(--fuente-texto); letter-spacing: 3.2px; fill: rgba(255, 255, 255, .85); }
.sello-escudo img {
  width: 104px; height: 104px; border-radius: 50%; background: var(--blanco); padding: 8px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 12px 30px rgba(0, 0, 0, .3);
  animation: latir-sello 3.5s ease-in-out infinite;
}
@keyframes latir-sello { 50% { transform: scale(1.05); } }
.pagina-titulo .contenedor { position: relative; z-index: 2; }
.seccion--azul .sello-escudo { top: 26px; right: 3%; margin-top: 0; width: 130px; height: 130px; opacity: .9; }
.seccion--azul .sello-escudo img { width: 78px; height: 78px; padding: 6px; }
.seccion--azul .sello-escudo__anillo text { font-size: 15px; }
@media (max-width: 959px) {
  .pagina-titulo .sello-escudo { display: none; }
  .seccion--azul .sello-escudo { top: 14px; right: 10px; width: 90px; height: 90px; opacity: .55; }
  .seccion--azul .sello-escudo img { width: 52px; height: 52px; padding: 4px; }
}
/* Los textos del encabezado no pasan por debajo del sello */
@media (min-width: 960px) { .pagina-titulo .contenedor { padding-right: 220px; } }

/* Marca de agua del escudo en secciones blancas (el blanco de la imagen desaparece) */
.marca-agua-escudo {
  position: absolute; z-index: -1; right: -60px; bottom: -40px; width: 340px; height: 340px; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply; transform: rotate(-12deg);
}
.marca-agua-escudo--izq { right: auto; left: -60px; transform: rotate(12deg); }
@media (max-width: 599px) { .marca-agua-escudo { width: 200px; height: 200px; } }

/* Pequeño escudo que separa las secciones */
.separador-escudo {
  position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; pointer-events: none;
}
.separador-escudo::before, .separador-escudo::after { content: ""; width: 90px; height: 2px; background: linear-gradient(90deg, transparent, var(--vino)); }
.separador-escudo::after { background: linear-gradient(90deg, var(--azul), transparent); }
.separador-escudo img { width: 44px; height: 44px; border-radius: 50%; background: var(--blanco); padding: 4px; box-shadow: 0 4px 14px rgba(34, 24, 89, .18); }
main > section { position: relative; }

/* ---------- 18. Instagram ---------- */
.instagram { position: relative; }
.instagram__cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.instagram__cuenta { display: flex; align-items: center; gap: 14px; }
.instagram__logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--blanco); flex: none;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.instagram__logo svg { width: 30px; height: 30px; }
.instagram__cuenta strong { display: block; font-size: 1.15rem; color: var(--azul-oscuro); }
.instagram__cuenta span { color: var(--gris); font-size: 0.95rem; }
.boton--instagram { background: linear-gradient(90deg, #d6249f, #fd5949); color: var(--blanco); }
.boton--instagram:hover { filter: brightness(0.92); color: var(--blanco); }
.instagram__grilla { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: 1fr; justify-items: center; }
.instagram__grilla .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 400px !important; }
/* Mientras no haya publicaciones, se muestra un mosaico de fotos del colegio */
.instagram__mosaico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 28px; border-radius: var(--radio); overflow: hidden; }
.instagram__mosaico a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--borde); }
.instagram__mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.instagram__mosaico a:hover img { transform: scale(1.06); filter: brightness(0.8); }
.instagram__mosaico a::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: center / 34px no-repeat url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/></svg>");
}
.instagram__mosaico a:hover::after { opacity: 1; }
.instagram__nota { margin-top: 14px; font-size: 0.92rem; color: var(--gris); }

/* ---------- 19. Bienvenida animada del Inicio (js/intro.js) ---------- */
/* Tapa azul que cubre la página desde el primer instante, mientras se arma la
   bienvenida. Por seguridad se quita sola a los 4,5 segundos aunque algo falle. */
.intro body { overflow: hidden; }
.intro body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; background: var(--azul-oscuro);
  animation: tapa-fuera .3s ease 4.5s forwards;
}
@keyframes tapa-fuera { to { opacity: 0; visibility: hidden; } }

.intro-capa { position: fixed; inset: 0; z-index: 300; }
.intro-escena { position: absolute; inset: 0; overflow: hidden; cursor: pointer; }
.intro-mitad {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background-color: var(--azul-oscuro);
  background-image: radial-gradient(60% 50% at 50% 50%, rgba(60, 40, 152, .9), transparent 75%);
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}
.intro-mitad--izq { left: 0; background-position: 100% 50%; background-size: 200% 100%; }
.intro-mitad--der { right: 0; background-position: 0% 50%; background-size: 200% 100%; }
/* Franja azul y roja del escudo en el borde de cada mitad (como el lomo de un libro) */
.intro-mitad--izq::after, .intro-mitad--der::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(var(--azul) 0 50%, var(--rojo) 50% 100%);
  transform: scaleY(0); animation: lomo .7s ease .1s forwards;
  /* no pasa por detrás del escudo ni del nombre */
  -webkit-mask-image: linear-gradient(#000 0 18%, transparent 26% 74%, #000 82%);
          mask-image: linear-gradient(#000 0 18%, transparent 26% 74%, #000 82%);
}
.intro-mitad--izq::after { right: 0; transform-origin: top; }
.intro-mitad--der::after { left: 0; transform-origin: bottom; }
@keyframes lomo { to { transform: scaleY(1); } }

.intro-cielo { position: absolute; inset: 0; }
.intro-brillo { position: absolute; width: var(--t); height: var(--t); color: var(--c); opacity: 0;
  animation: titilar 1.8s ease-in-out infinite; animation-delay: var(--r); --o: .9; }

.intro-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; text-align: center; color: var(--blanco); transition: opacity .35s ease, transform .5s ease; }
.intro-sello { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.intro-anillo { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.intro-anillo circle { fill: none; stroke: #ffd166; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 654; stroke-dashoffset: 654; animation: dibujar-anillo 1.1s ease .15s forwards; }
.intro-anillo .intro-anillo--rojo { stroke: var(--rojo); stroke-width: 3; stroke-dasharray: 604; stroke-dashoffset: 604; animation-delay: .35s; }
@keyframes dibujar-anillo { to { stroke-dashoffset: 0; } }
.intro-escudo {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden; background: var(--blanco); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .35);
  transform: scale(.2) rotate(-200deg); opacity: 0;
  animation: entra-escudo .9s cubic-bezier(.2, 1.5, .4, 1) .25s forwards, latir-escudo 1.6s ease-in-out 1.3s infinite;
}
.intro-escudo img { width: 132px; height: 132px; }
@keyframes entra-escudo { to { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes latir-escudo { 50% { box-shadow: 0 0 0 16px rgba(255, 209, 102, .18), 0 18px 50px rgba(0, 0, 0, .35); } }

.intro-nombre { margin: 26px 0 6px; font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.1; white-space: nowrap; }
.intro-nombre span { display: inline-block; opacity: 0; transform: translateY(26px) rotate(8deg);
  animation: letra .5s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(.85s + var(--i) * .045s); }
@keyframes letra { to { opacity: 1; transform: none; } }
.intro-lema { margin: 0; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; color: #ffd166;
  opacity: 0; animation: aparece .6s ease 1.6s forwards; }
.intro-frase { margin: 12px 0 0; max-width: 420px; color: #d5d0f0; font-size: 1.05rem;
  opacity: 0; animation: aparece .6s ease 1.9s forwards; }
@keyframes aparece { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.intro-vuela { position: absolute; left: 50%; top: 42%; width: 40px; height: 40px; margin: -20px 0 0 -20px; color: var(--c); opacity: 0;
  animation: vuela 1.5s cubic-bezier(.15, .8, .3, 1) forwards; animation-delay: var(--r); }
@keyframes vuela {
  0%   { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); }
  25%  { opacity: 1; }
  100% { opacity: .55; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--g)); }
}

.intro-saltar {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: var(--blanco);
  font: 700 1rem var(--fuente-texto); cursor: pointer; opacity: 0; animation: aparece .4s ease .6s forwards;
}
.intro-saltar:hover { background: rgba(255, 255, 255, .2); }

/* Apertura: el centro se aleja y las dos mitades se abren como un libro */
.intro-abriendo .intro-centro { opacity: 0; transform: scale(1.15); }
.intro-abriendo .intro-cielo, .intro-abriendo .intro-saltar { opacity: 0; transition: opacity .3s; }
.intro-abriendo .intro-mitad--izq { transform: translateX(-102%); }
.intro-abriendo .intro-mitad--der { transform: translateX(102%); }
.intro-abriendo .intro-escena { cursor: default; pointer-events: none; }

/* Entrada de la portada justo después de la bienvenida */
.intro-fin .portada__grilla > div > *,
.intro-fin .video-tarjeta { animation: entra-portada .8s cubic-bezier(.2, .9, .3, 1) both; }
.intro-fin .portada__grilla > div > :nth-child(1) { animation-delay: .25s; }
.intro-fin .portada__grilla > div > :nth-child(2) { animation-delay: .35s; }
.intro-fin .portada__grilla > div > :nth-child(3) { animation-delay: .45s; }
.intro-fin .portada__grilla > div > :nth-child(4) { animation-delay: .55s; }
.intro-fin .portada__grilla > div > :nth-child(5) { animation-delay: .65s; }
.intro-fin .video-tarjeta { animation-name: entra-video; animation-delay: .5s; }
@keyframes entra-portada { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes entra-video { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(.95); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Tableta (desde 600 px)
   ========================================================================= */
@media (min-width: 600px) {
  .contenedor { padding: 0 24px; }
  .portada__botones { flex-direction: row; flex-wrap: wrap; }
  .cifras__lista { grid-template-columns: repeat(4, 1fr); }
  .cifras__lista li + li { border-left: 1px solid var(--borde); padding-left: 16px; }
  .accesos { grid-template-columns: 1fr 1fr; }
  .servicios { grid-template-columns: 1fr 1fr; }
  .servicio--destacado { grid-column: 1 / -1; }   /* "No tareas" ocupa toda la fila */
  .razones__foto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cifras__numero { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
  .portada__grilla { grid-template-columns: 1.3fr 1fr; gap: 32px; }
  .galeria { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; gap: 14px; }
  .galeria__ancha { grid-column: span 2; }
  .galeria__ancha:last-child { grid-column: 1 / -1; }   /* en tableta, la última foto ancha ocupa toda la fila */
  .sedes { grid-template-columns: 1fr 1fr; }
  .contacto__grilla { grid-template-columns: 1fr 1fr; }
  .pie__grilla { grid-template-columns: 1fr 1fr; }
  .formulario { padding: 32px 30px; }
  .fotos { grid-template-columns: 1fr 1fr; }
  .instagram__grilla { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .instagram__mosaico { grid-template-columns: repeat(6, 1fr); }
  .dibujo { opacity: 0.2; }
  .persona { grid-template-columns: 240px 1fr; align-items: start; }
  .himno { grid-template-columns: 1fr 1fr; }
  .estrofa--coro { grid-column: 1 / -1; }
  .documento { grid-template-columns: 120px 1fr; }
  .documento img, .documento__icono { width: 120px; }
}

/* =========================================================================
   Computador (desde 960 px)
   ========================================================================= */
@media (min-width: 960px) {
  :root { --dibujos-fondo: 0.16; }   /* dibujos del fondo en computador */
  .seccion { padding: 96px 0; }

  /* El menú se muestra completo en una sola línea */
  .boton-menu { display: none; }
  .menu--movil, .js .menu--movil.abierto { display: none; }
  .menu--escritorio { display: block; border-top: 0; }
  .menu--escritorio ul { display: flex; align-items: center; gap: 2px; padding: 0; }
  .menu--escritorio a { min-height: 44px; padding: 0 10px; font-size: 0.98rem; border-bottom: 0; border-radius: 8px; }
  .menu--escritorio a:hover { background: var(--crema); }
  .menu--escritorio .menu__cta { margin: 0 0 0 8px; }
  .menu--escritorio .menu__cta a { padding: 0 18px; }
  .encabezado__barra { min-height: 80px; }
  .marca img { width: 56px; height: 56px; }

  .portada { padding: 40px 0 44px; }
  .portada__grilla { grid-template-columns: 1.25fr 0.9fr; gap: 64px; }
  .video-tarjeta { max-width: 300px; margin-right: 24px; }

  .accesos { grid-template-columns: repeat(4, 1fr); }
  .acceso { flex-direction: column; align-items: flex-start; min-height: 0; padding: 22px 20px; }

  .razones__grilla { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .razones__foto { display: block; align-self: center; }   /* fotos centradas a lo alto junto al texto */

  .niveles { grid-template-columns: repeat(3, 1fr); }
  .servicios { grid-template-columns: repeat(3, 1fr); }
  .servicio--destacado { grid-column: span 2; }
  .galeria { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .galeria__ancha:last-child { grid-column: span 2; }
  .admisiones__grilla { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .contacto__grilla { grid-template-columns: 1.2fr 1fr; }
  .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .pie { padding-bottom: 56px; }
  .pagina-titulo { padding: 56px 0 40px; }
  .bloque { padding: 80px 0; }
  .bloque__grilla { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .fotos--tres { grid-template-columns: repeat(3, 1fr); }
  .himno { grid-template-columns: repeat(3, 1fr); }      /* coro y estrofas, uno al lado del otro */
  .estrofa--coro { grid-column: auto; }
  .instagram__grilla { grid-template-columns: repeat(3, 1fr); }
  .dibujo { width: 64px; height: 64px; }
  .dibujo--4, .dibujo--7 { width: 34px; height: 34px; }
  .fotos--cuatro { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   20. Mejoras de la revisión general (noviembre de 2026)
   ========================================================================= */

/* El nombre del colegio en el menú nunca se parte en dos líneas */
.marca__nombre { white-space: nowrap; }
/* La etiqueta de la portada se ve pareja aunque ocupe dos líneas en el celular */
@media (max-width: 599px) { .portada__etiqueta { border-radius: 14px; line-height: 1.35; } }

/* --- Portada: fotos "pegadas en el tablero" detrás del video y sello de inscripciones --- */
.video-tarjeta__foto {
  position: absolute; z-index: 0; display: none; width: 200px; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border: 7px solid var(--blanco); border-radius: 6px; box-shadow: 0 14px 34px rgba(34, 24, 89, .22);
}
.video-tarjeta__foto--izq { left: -150px; top: 8%; transform: rotate(-9deg); animation: foto-flota 7s ease-in-out infinite alternate; }
.video-tarjeta__foto--der { right: -64px; bottom: 16%; width: 180px; transform: rotate(8deg); animation: foto-flota-der 8s ease-in-out infinite alternate; }
@keyframes foto-flota { to { transform: rotate(-6deg) translateY(-10px); } }
@keyframes foto-flota-der { to { transform: rotate(5deg) translateY(10px); } }
@media (min-width: 1180px) { .video-tarjeta__foto { display: block; } }

.video-tarjeta__sello {
  position: absolute; z-index: 3; top: -20px; left: -36px; width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 30% 28%, #e5402f, var(--rojo) 58%, #8f150c);
  color: var(--blanco); text-decoration: none; line-height: 1.05;
  box-shadow: 0 12px 26px rgba(188, 28, 16, .42);
  transform: rotate(-12deg); animation: sello-salta 3.2s ease-in-out infinite;
}
.video-tarjeta__sello::before { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(255, 255, 255, .6); border-radius: 50%; }
.video-tarjeta__sello span { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.video-tarjeta__sello strong { font-family: var(--fuente-titulos); font-size: 1.75rem; color: #ffd166; margin: 1px 0; }
.video-tarjeta__sello:hover, .video-tarjeta__sello:focus-visible { color: var(--blanco); animation: none; transform: rotate(-4deg) scale(1.08); }
@keyframes sello-salta { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-7deg) scale(1.07); } }
@media (max-width: 599px) {
  .video-tarjeta__sello { top: -14px; left: -12px; width: 88px; height: 88px; }
  .video-tarjeta__sello strong { font-size: 1.45rem; }
  .video-tarjeta__sello span { font-size: .58rem; }
  /* Las bandas azul y roja no se salen de la pantalla en el celular */
  .video-tarjeta::before, .video-tarjeta::after { left: -14px; right: -14px; }
}

/* --- Niveles: un dibujo propio para cada nivel --- */
.nivel { position: relative; }
.nivel__dibujo {
  position: absolute; top: 18px; right: 18px; width: 62px; height: 62px; padding: 12px; border-radius: 50%;
  background: var(--azul-suave); color: var(--azul); animation: flotar-suave 3.4s ease-in-out infinite alternate;
}
@keyframes flotar-suave { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-6px) rotate(4deg); } }
.nivel:nth-child(2) .nivel__dibujo { background: var(--rojo-suave); color: var(--rojo); animation-delay: -1.2s; }
.nivel:nth-child(3) .nivel__dibujo { background: #fdf3dc; color: #b7791f; animation-delay: -2.4s; }
.nivel__sede, .nivel h2, .nivel h3 { padding-right: 70px; }

/* --- Niveles: tarjetas de "Lo que comparten nuestros estudiantes" con un dibujo cada una --- */
.tarjeta__icono { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 14px; background: var(--azul-suave); color: var(--azul); }
.tarjeta__icono svg { width: 28px; height: 28px; }
.tarjetas--iconos .tarjeta:nth-child(4n+2) .tarjeta__icono { background: var(--rojo-suave); color: var(--rojo); }
.tarjetas--iconos .tarjeta:nth-child(4n+3) .tarjeta__icono { background: #fdf3dc; color: #b7791f; }
.tarjetas--iconos .tarjeta:nth-child(4n+4) .tarjeta__icono { background: #e2f4f3; color: #1f7f7b; }
.tarjetas--iconos .tarjeta { border-top: 4px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tarjetas--iconos .tarjeta:hover { border-top-color: var(--rojo); }

/* --- Admisiones: "¿Por qué elegirnos?" en tarjetas con dibujo --- */
.razones--tarjetas { display: grid; gap: 18px; margin-top: 28px; }
.razones--tarjetas li {
  margin: 0; padding: 26px 24px 24px; border: 1px solid var(--borde); border-radius: var(--radio);
  background: var(--blanco); box-shadow: 0 6px 18px rgba(34, 24, 89, .06); transition: transform .25s ease, box-shadow .25s ease;
}
.razones--tarjetas li:last-child { border-bottom: 1px solid var(--borde); }
.razones--tarjetas li:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.razones--tarjetas li::before { left: auto; right: 22px; top: 18px; font-size: 1.6rem; opacity: .3; }
.razon__icono { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 16px; background: var(--rojo-suave); color: var(--rojo); }
.razon__icono svg { width: 32px; height: 32px; }
.razones--tarjetas li:nth-child(2) .razon__icono { background: var(--azul-suave); color: var(--azul); }
.razones--tarjetas li:nth-child(3) .razon__icono { background: #fdf3dc; color: #b7791f; }
.razones--tarjetas li:nth-child(4) .razon__icono { background: #e2f4f3; color: #1f7f7b; }
.razones--tarjetas li:nth-child(5) .razon__icono { background: #f6e6ea; color: var(--vino); }
.razones--tarjetas h3 { padding-right: 40px; }
.razones__cta { text-align: center; }
@media (min-width: 760px) {
  .razones--tarjetas { grid-template-columns: repeat(2, 1fr); }
  .razones--tarjetas li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .razones--tarjetas { grid-template-columns: repeat(6, 1fr); }
  .razones--tarjetas li { grid-column: span 2; }
  .razones--tarjetas li:nth-child(4), .razones--tarjetas li:last-child { grid-column: span 3; }
}

/* --- Admisiones: documentos para la matrícula en dos columnas (computador) --- */
.requisitos__intro { max-width: 760px; }
.texto--ancho .aviso { max-width: 760px; }
@media (min-width: 760px) {
  .lista-check--dos { columns: 2; column-gap: 48px; }
  .lista-check--dos li { break-inside: avoid; }
}

/* --- Formulario: etiqueta superior, textos de ejemplo y aviso de "¡Listo!" --- */
.formulario__sobre { margin: 0 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rojo); }
.campo input::placeholder, .campo textarea::placeholder { color: #736e89; opacity: 1; }
.formulario__ok { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #e6f6ec; color: #11592f; font-weight: 600; }
.formulario__ok a { color: #0b4423; }
.admisiones__video strong { display: block; color: var(--blanco); }

/* --- Preguntas frecuentes (Admisiones) --- */
.preguntas { display: grid; gap: 12px; margin-top: 28px; }
.pregunta {
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: 0 4px 14px rgba(34, 24, 89, .05); transition: box-shadow .25s ease, border-color .25s ease;
}
.pregunta[open] { box-shadow: var(--sombra); border-color: #d3cdea; }
.pregunta summary {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 18px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: var(--azul-oscuro);
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::before {
  content: "?"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rojo); color: var(--blanco); font-family: var(--fuente-titulos); font-size: 1.05rem;
}
.pregunta summary::after {
  content: ""; margin-left: auto; flex: none; width: 10px; height: 10px;
  border-right: 3px solid var(--azul); border-bottom: 3px solid var(--azul);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s ease;
}
.pregunta[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.pregunta summary:hover { color: var(--rojo); }
.pregunta p { margin: 0; padding: 0 22px 18px 62px; color: var(--gris); }
.pregunta[open] p { animation: desplegar .35s ease; }
@media (max-width: 599px) { .pregunta p { padding-left: 18px; } }
@media (min-width: 960px) { .preguntas { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --- Contacto: Sistema Saberes en dos columnas y tarjetas de Pagos / Trabaja con nosotros --- */
.saberes__cabecera { display: grid; gap: 4px 32px; align-items: end; }
.saberes__cabecera > p { margin: 0 0 8px; }
@media (min-width: 760px) {
  .saberes__cabecera { grid-template-columns: 1fr auto; }
  .guia--dos { grid-template-columns: 1fr 1fr; }
}
.dos-tarjetas { display: grid; gap: 18px; }
@media (min-width: 760px) { .dos-tarjetas { grid-template-columns: 1fr 1fr; } }
.tarjeta-accion {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px;
  border-radius: 20px; background: var(--blanco); border: 1px solid var(--borde); box-shadow: var(--sombra);
}
.tarjeta-accion h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.tarjeta-accion p { color: var(--gris); font-size: 1.05rem; }
.tarjeta-accion__boton { margin: auto 0 0; }
.tarjeta-accion__icono { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--azul-suave); color: var(--azul); margin-bottom: 16px; }
.tarjeta-accion__icono svg { width: 30px; height: 30px; }
.tarjeta-accion--vino { background: linear-gradient(140deg, var(--vino) 0%, #4f0d19 100%); border-color: transparent; }
.tarjeta-accion--vino h2 { color: var(--blanco); }
.tarjeta-accion--vino p { color: #f6e3e7; }
.tarjeta-accion--vino a { color: var(--blanco); }
.tarjeta-accion--vino .antetitulo { color: #ffd0c9; }
.tarjeta-accion--vino .antetitulo::before { background: linear-gradient(#fff 0 50%, #ff9b90 50% 100%); }
.tarjeta-accion--vino .tarjeta-accion__icono { background: rgba(255, 255, 255, .14); color: var(--blanco); }

/* Horario de atención: botones para escribir o llamar al final del recuadro */
.tarjeta--horario { display: flex; flex-direction: column; }
.horario__acciones { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.horario__acciones .boton { flex: 1 1 240px; min-height: 50px; padding: 10px 16px; font-size: 1rem; white-space: nowrap; }

/* --- Nuestro Colegio: línea de tiempo de la historia --- */
.linea-tiempo__titulo { margin: 44px 0 0; font-size: 1.35rem; }
.linea-tiempo { list-style: none; margin: 22px 0 0; padding: 0; display: grid; position: relative; }
.linea-tiempo li { position: relative; padding: 0 0 22px 44px; }
.linea-tiempo li::before {
  content: ""; position: absolute; z-index: 1; left: 7px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blanco); border: 4px solid var(--rojo); box-sizing: border-box;
}
.linea-tiempo li:nth-child(even)::before { border-color: var(--azul); }
.linea-tiempo li:last-child::before { background: var(--rojo); box-shadow: 0 0 0 5px var(--rojo-suave); }
.linea-tiempo li::after { content: ""; position: absolute; left: 16px; top: 24px; bottom: -4px; width: 2px; background: linear-gradient(var(--rojo), var(--azul)); }
.linea-tiempo li:last-child::after { display: none; }
.linea-tiempo__anio { display: block; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--azul-oscuro); }
.linea-tiempo li:last-child .linea-tiempo__anio { color: var(--rojo); }
.linea-tiempo p { margin: 6px 0 0; color: var(--gris); font-size: .98rem; line-height: 1.5; }
@media (min-width: 960px) {
  .linea-tiempo { grid-template-columns: repeat(6, 1fr); gap: 22px; }
  .linea-tiempo::before {
    content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--rojo), var(--azul) 60%, var(--vino));
  }
  .linea-tiempo li { padding: 40px 0 0; }
  .linea-tiempo li::before { left: 0; top: 2px; width: 24px; height: 24px; }
  .linea-tiempo li::after { display: none; }
}

/* --- Nuestro Colegio: en el celular, los recuadros de símbolos no dejan espacio vacío --- */
@media (max-width: 599px) { .simbolo { min-height: 0; } }

/* --- Instagram en el celular: las publicaciones se pasan deslizando el dedo --- */
@media (max-width: 599px) {
  .instagram__grilla {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; justify-items: initial;
    margin: 22px -16px 0; padding: 4px 16px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .instagram__grilla::-webkit-scrollbar { display: none; }
  .instagram__grilla > * { flex: 0 0 86%; scroll-snap-align: center; }
  .instagram__grilla .instagram-media { max-width: none !important; }
  .instagram:has(.instagram__grilla:not([hidden])) .instagram__cabecera::after {
    content: "Desliza para ver más publicaciones →"; flex-basis: 100%; font-size: .92rem; font-weight: 700; color: var(--azul);
  }
}

/* --- Visor de fotos (js/main.js) --- */
.ampliable { cursor: zoom-in; }
.ampliable:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
html:has(.visor[open]) { overflow: hidden; }
.visor {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden; color: var(--blanco);
}
.visor::backdrop { background: rgba(14, 10, 38, .93); }
.visor[open] { display: grid; place-items: center; animation: visor-entra .3s ease; }
@keyframes visor-entra { from { opacity: 0; } to { opacity: 1; } }
.visor__figura { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 80px; }
.visor__foto {
  display: block; width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100% - 60px);
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #1c1838;
}
.visor__pie { margin-top: 14px; max-width: 760px; color: #f1eefb; text-align: center; font-size: 1rem; line-height: 1.45; }
.visor__contador { position: absolute; top: 22px; left: 20px; margin: 0; color: #cfc9ee; font-weight: 700; font-size: .95rem; }
.visor__boton {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: var(--blanco); cursor: pointer; transition: background .2s;
}
.visor__boton:hover, .visor__boton:focus-visible { background: var(--rojo); outline: none; }
.visor__boton svg { width: 26px; height: 26px; }
.visor__cerrar { top: 12px; right: 12px; }
.visor__anterior { left: 14px; top: 50%; transform: translateY(-50%); }
.visor__siguiente { right: 14px; top: 50%; transform: translateY(-50%); }
.visor--una .visor__anterior, .visor--una .visor__siguiente, .visor--una .visor__contador { display: none; }
@media (max-width: 759px) {
  .visor__anterior, .visor__siguiente { top: auto; bottom: 16px; transform: none; }
  .visor__anterior { left: calc(50% - 66px); }
  .visor__siguiente { right: calc(50% - 66px); }
}

/* --- Botón "volver arriba" --- */
.volver-arriba {
  position: fixed; z-index: 59; right: 22px; bottom: 90px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--azul-oscuro); color: var(--blanco);
  box-shadow: 0 10px 24px rgba(34, 24, 89, .3); transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.volver-arriba svg { width: 24px; height: 24px; }
.volver-arriba:hover, .volver-arriba:focus-visible { background: var(--rojo); color: var(--blanco); }
.js .volver-arriba { opacity: 0; visibility: hidden; transform: translateY(16px); }
.js .volver-arriba.visible { opacity: 1; visibility: visible; transform: none; }

/* --- Barra de accesos rápidos en el celular (Inscripciones y WhatsApp) --- */
.barra-movil { display: none; }
@media (max-width: 759px) {
  .barra-movil {
    position: fixed; z-index: 58; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--borde);
    box-shadow: 0 -8px 24px rgba(34, 24, 89, .12); transition: transform .35s ease;
  }
  .js .barra-movil { transform: translateY(110%); }
  .js .barra-movil.visible { transform: none; }
  .barra-movil a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--blanco);
  }
  .barra-movil a:hover { color: var(--blanco); }
  .barra-movil__inscripciones { background: var(--rojo); }
  .barra-movil__whatsapp { background: #0f7a3f; }
  .barra-movil svg { width: 22px; height: 22px; }
  .whatsapp-flotante { display: none; }
  .volver-arriba { right: 14px; bottom: 80px; }
  body { padding-bottom: 72px; }   /* el pie de página no queda tapado por la barra */
}

/* =========================================================================
   21. Mejoras extra (funciones en js/extras.js)
   ========================================================================= */

/* --- Confeti --- */
.confeti { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.confeti span {
  position: absolute; width: 9px; height: 14px; margin: -7px 0 0 -4px; border-radius: 2px; opacity: 0;
  animation: confeti 1.9s cubic-bezier(.15, .65, .35, 1) forwards;
}
@keyframes confeti {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  45%  { transform: translate(calc(var(--dx) * .75), var(--dy)) rotate(calc(var(--giro) * .5)); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 340px)) rotate(var(--giro)); opacity: 0; }
}

/* --- Botón y panel de accesibilidad --- */
.a11y { position: fixed; z-index: 61; left: 16px; bottom: 16px; }
.a11y__boton {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--blanco); display: grid; place-items: center;
  background: var(--azul); color: var(--blanco); cursor: pointer; box-shadow: 0 8px 20px rgba(34, 24, 89, .3);
  transition: transform .2s, background .2s;
}
.a11y__boton:hover, .a11y__boton:focus-visible { background: var(--rojo); transform: scale(1.06); }
.a11y__boton svg { width: 26px; height: 26px; }
.a11y--activa .a11y__boton { background: var(--rojo); }
.a11y__panel {
  position: absolute; left: 0; bottom: 60px; width: 260px; padding: 14px; border-radius: 16px;
  background: var(--blanco); color: var(--tinta); border: 1px solid var(--borde); box-shadow: 0 18px 44px rgba(18, 12, 48, .28);
}
.a11y__titulo { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); }
.a11y__opcion {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-bottom: 8px; padding: 8px 12px;
  border: 2px solid var(--borde); border-radius: 12px; background: var(--blanco); color: var(--azul-oscuro);
  font: 600 1rem var(--fuente-texto); text-align: left; cursor: pointer;
}
.a11y__opcion svg { width: 22px; height: 22px; flex: none; color: var(--azul); }
.a11y__opcion:hover { border-color: var(--azul); }
.a11y__opcion[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.a11y__opcion[aria-pressed="true"] svg { color: var(--blanco); }
.a11y__opcion[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 700; }
.a11y__restablecer {
  width: 100%; min-height: 40px; border: 0; background: none; color: var(--gris);
  font: 600 .95rem var(--fuente-texto); text-decoration: underline; cursor: pointer;
}
@media (max-width: 759px) {
  .a11y { left: 14px; bottom: 80px; }
  .a11y__boton { width: 44px; height: 44px; }
}
/* Letra más grande: todo el sitio crece un 12,5 % */
.a11y-texto { font-size: 112.5%; }
.menu--escritorio a { white-space: nowrap; }
@media (min-width: 960px) {
  .a11y-texto .menu--escritorio a { padding: 0 7px; font-size: .9rem; }
  .a11y-texto .menu--escritorio .menu__cta a { padding: 0 12px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .a11y-texto .menu--escritorio a { padding: 0 5px; font-size: .8rem; }
  .a11y-texto .marca__lema { display: none; }
}
/* Más contraste: textos más oscuros, sin dibujos de fondo, enlaces subrayados y foco bien visible */
.a11y-contraste { --gris: #24212f; --borde: #8f8aa6; --tinta: #000; }
.a11y-contraste .decor, .a11y-contraste .dibujos, .a11y-contraste .marca-agua-escudo { display: none !important; }
.a11y-contraste .seccion::before, .a11y-contraste .bloque::before, .a11y-contraste .pagina-titulo::before { display: none !important; }
.a11y-contraste main p a, .a11y-contraste main li a, .a11y-contraste main td a { text-decoration: underline; text-underline-offset: 3px; }
.a11y-contraste :focus-visible { outline: 3px solid #ffbf00 !important; outline-offset: 2px !important; }
/* Detener animaciones */
.a11y-quieto *, .a11y-quieto *::before, .a11y-quieto *::after { animation: none !important; transition: none !important; }
.a11y-quieto { scroll-behavior: auto; }
.a11y-quieto .revelar { opacity: 1 !important; transform: none !important; }
.a11y-quieto .avion { display: none; }

/* --- Barra fija con las secciones de la página --- */
.barra-secciones {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 49;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--borde); box-shadow: 0 8px 18px rgba(34, 24, 89, .08);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
}
.barra-secciones.visible { opacity: 1; visibility: visible; transform: none; }
.barra-secciones__lista {
  display: flex; gap: 6px; overflow-x: auto; margin: 0 auto; padding: 8px 16px; list-style: none; scrollbar-width: none;
}
.barra-secciones__lista::-webkit-scrollbar { display: none; }
.barra-secciones__lista li { flex: none; }
.barra-secciones__lista a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 700; color: var(--azul-oscuro); text-decoration: none; white-space: nowrap;
}
.barra-secciones__lista a:hover { background: var(--azul-suave); color: var(--azul-oscuro); }
.barra-secciones__lista a.actual { background: var(--azul); color: var(--blanco); }
@media (min-width: 600px) { .barra-secciones__lista { padding: 8px 24px; } }
.con-barra-secciones [id] { scroll-margin-top: 140px; }

/* --- Lista de documentos para marcar (Admisiones) --- */
.mis-documentos {
  display: grid; gap: 10px 24px; align-items: center; margin: 22px 0 8px; padding: 18px 20px;
  border-radius: var(--radio); background: var(--blanco); border: 1px solid var(--borde); box-shadow: 0 6px 18px rgba(34, 24, 89, .06);
}
@media (min-width: 760px) { .mis-documentos { grid-template-columns: 1fr auto; } .mis-documentos__nota { grid-column: 1 / -1; } }
.mis-documentos__texto { margin: 0 0 8px; color: var(--azul-oscuro); font-size: 1.05rem; }
.mis-documentos__texto strong { font-size: 1.2rem; }
.mis-documentos__barra { height: 12px; border-radius: 999px; background: var(--azul-suave); overflow: hidden; }
.mis-documentos__barra span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azul), var(--rojo)); transition: width .45s ease; }
.mis-documentos--completa .mis-documentos__barra span { background: linear-gradient(90deg, #1f9e5a, #3cc47c); }
.mis-documentos--completa .mis-documentos__texto { color: #11592f; }
.mis-documentos__botones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mis-documentos__imprimir { min-height: 46px; padding: 8px 16px; font-size: .98rem; }
.mis-documentos__borrar {
  min-height: 44px; border: 0; background: none; color: var(--gris); font: 600 .95rem var(--fuente-texto);
  text-decoration: underline; cursor: pointer;
}
.mis-documentos__nota { margin: 0; font-size: .92rem; color: var(--gris); }
.lista-check--marcable li { padding: 0; }
.lista-check--marcable li::before { content: none; }
.lista-check--marcable input { position: absolute; left: 0; top: 8px; width: 30px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.lista-check--marcable label { position: relative; display: block; padding: 10px 0 10px 44px; cursor: pointer; transition: color .2s; }
.lista-check--marcable label::before {
  content: counter(req); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; border: 2px solid transparent; background: var(--azul-suave); color: var(--azul);
  font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.lista-check--marcable li:hover label::before { border-color: var(--azul); }
.lista-check--marcable input:focus-visible + label::before { outline: 3px solid var(--rojo); outline-offset: 2px; }
.lista-check--marcable input:checked + label {
  color: var(--gris); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(31, 158, 90, .55);
}
.lista-check--marcable input:checked + label::before { content: "✓"; background: #1f9e5a; color: var(--blanco); font-size: 1.05rem; transform: scale(1.06); }

/* --- Juego "¿Cuánto sabes del Colegio Mandalay?" (Nuestro Colegio) --- */
.juego .sello-escudo { display: none; }   /* el escudo giratorio no queda detrás del juego */
.juego__caja h3 { color: var(--azul-oscuro); }   /* dentro de la tarjeta blanca, los títulos van oscuros */
.juego__grilla { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .juego__grilla { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.juego__dibujos { display: flex; gap: 16px; margin-top: 18px; color: #ffd166; }
.juego__dibujos svg { width: 44px; height: 44px; animation: flotar-suave 3s ease-in-out infinite alternate; }
.juego__dibujos svg:nth-child(2) { color: #8ecae6; animation-delay: -1s; }
.juego__dibujos svg:nth-child(3) { color: #ff8fa3; animation-delay: -2s; }
.juego__caja {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 380px;
  padding: 26px 22px; border-radius: 22px; border-top: 6px solid var(--rojo);
  background: var(--blanco); color: var(--tinta); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
@media (min-width: 600px) { .juego__caja { padding: 32px 34px; } }
.juego__inicio, .juego__resultado { text-align: center; }
.juego__escudo {
  width: 124px; height: 124px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--azul-suave); box-shadow: 0 0 0 8px rgba(60, 40, 152, .08); animation: latir-sello 3s ease-in-out infinite;
}
.juego__escudo img { width: 90px; height: 90px; border-radius: 50%; }
.juego__datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.juego__datos span { padding: 6px 14px; border-radius: 999px; background: var(--crema); color: var(--azul-oscuro); font-weight: 700; font-size: .9rem; }
.juego__empezar { display: inline-flex; width: auto; padding: 16px 34px; min-height: 64px; }
.juego__progreso { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; color: var(--gris); }
.juego__puntos { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fdf3dc; color: #7a4f08; }
.juego__puntos svg { width: 18px; height: 18px; }
.juego__barra { height: 8px; margin: 10px 0 20px; border-radius: 999px; background: var(--azul-suave); overflow: hidden; }
.juego__barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azul), var(--rojo)); transition: width .4s ease; }
.juego__texto { margin-bottom: 18px; font-size: clamp(1.3rem, 3vw, 1.6rem); color: var(--azul-oscuro); outline: none; }
.juego__opciones { display: grid; gap: 10px; }
.juego__opcion {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 16px; text-align: left;
  border: 2px solid var(--borde); border-radius: 14px; background: var(--blanco); color: var(--tinta);
  font: 600 1.05rem/1.3 var(--fuente-texto); cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.juego__opcion:hover:not(:disabled) { border-color: var(--azul); background: var(--azul-suave); transform: translateX(3px); }
.juego__opcion:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.juego__opcion:disabled { cursor: default; }
.juego__letra { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--azul); color: var(--blanco); font-weight: 700; }
.juego__opcion:nth-child(2) .juego__letra { background: var(--rojo); }
.juego__opcion:nth-child(3) .juego__letra { background: #b7791f; }
.juego__opcion:nth-child(4) .juego__letra { background: #1f7f7b; }
.juego__opcion--bien { border-color: #1f9e5a !important; background: #e6f6ec !important; animation: juego-bien .5s ease; }
.juego__opcion--bien .juego__letra { background: #1f9e5a !important; }
.juego__opcion--mal { border-color: var(--rojo) !important; background: var(--rojo-suave) !important; animation: juego-mal .4s ease; }
.juego__opcion:disabled:not(.juego__opcion--bien):not(.juego__opcion--mal) { opacity: .55; }
@keyframes juego-bien { 40% { transform: scale(1.03); } }
@keyframes juego-mal { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.juego__respuesta { margin-top: 16px; padding: 14px 16px; border-radius: 14px; }
.juego__respuesta:empty { display: none; }
.juego__respuesta p { margin: 0 0 12px; }
.juego__respuesta--bien { background: #e6f6ec; color: #11592f; }
.juego__respuesta--mal { background: var(--rojo-suave); color: #7a120a; }
.juego__siguiente { min-height: 48px; padding: 8px 20px; font-size: 1rem; background: var(--azul-oscuro); color: var(--blanco); }
.juego__siguiente:hover { background: var(--azul); color: var(--blanco); }
.juego__trofeo {
  width: 86px; height: 86px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  background: #fdf3dc; color: #b7791f; animation: flotar-suave 2.6s ease-in-out infinite alternate;
}
.juego__trofeo svg { width: 46px; height: 46px; }
.juego__estrellas { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.juego__estrellas span { width: 34px; height: 34px; color: #d3cee3; }
.juego__estrellas span.llena { color: #e0a526; }
.juego__estrellas svg { width: 100%; height: 100%; }
.juego__puntaje { margin: 4px 0 6px; font-size: clamp(2.4rem, 7vw, 3.4rem); color: var(--azul-oscuro); outline: none; }
.juego__mensaje { max-width: 420px; margin: 0 auto 20px; color: var(--gris); font-size: 1.1rem; }
.juego__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.juego__acciones .boton { min-height: 50px; }
.juego__acciones .boton--blanco { border-color: var(--azul); }
/* Invitación al juego desde el Inicio */
.juego-invitacion {
  display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 22px; border-radius: 18px;
  text-decoration: none; color: var(--blanco); box-shadow: 0 14px 30px rgba(34, 24, 89, .25);
  background: linear-gradient(120deg, var(--azul-oscuro), var(--azul) 55%, var(--vino)); transition: transform .25s, box-shadow .25s;
}
.juego-invitacion:hover { color: var(--blanco); transform: translateY(-3px); box-shadow: 0 18px 38px rgba(34, 24, 89, .32); }
.juego-invitacion strong { display: block; font-family: var(--fuente-titulos); font-size: 1.25rem; line-height: 1.2; }
.juego-invitacion__icono { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #ffd166; }
.juego-invitacion__icono svg { width: 32px; height: 32px; }
.juego-invitacion::after { content: "→"; margin-left: auto; font-size: 1.5rem; transition: transform .2s; }
.juego-invitacion:hover::after { transform: translateX(5px); }

/* --- Compartir --- */
.compartir-linea { margin: 16px 0 0; }
.boton-compartir {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); color: var(--blanco); font-weight: 700; text-decoration: none;
}
.boton-compartir:hover { background: var(--blanco); color: var(--azul-oscuro); }
.boton-compartir svg { width: 20px; height: 20px; }

/* --- ¿Atiende hoy la secretaría? (Contacto) --- */
.horario-hoy { margin: -2px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--crema); }
.horario-hoy p { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--azul-oscuro); }
.horario-hoy small { display: block; margin-top: 3px; padding-left: 18px; font-size: .82rem; color: var(--gris); }
.horario-hoy__punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9a96ab; }
.horario-hoy--abierto { background: #e6f6ec; }
.horario-hoy--abierto p { color: #11592f; }
.horario-hoy--abierto .horario-hoy__punto { background: #1f9e5a; animation: punto-vivo 2s infinite; }
@keyframes punto-vivo { 0% { box-shadow: 0 0 0 0 rgba(31, 158, 90, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 158, 90, 0); } }

/* --- Sedes: foto de la fachada y botones de Google Maps y Waze --- */
.sede__cuerpo--foto { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; }
.sede__foto { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 16px rgba(34, 24, 89, .15); }
.sede__rutas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sede__rutas > span { margin-right: 2px; font-size: .95rem; font-weight: 700; color: var(--azul-oscuro); }
.sede__ruta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: 999px;
  border: 2px solid var(--azul); color: var(--azul-oscuro); font-size: .92rem; font-weight: 700; text-decoration: none;
}
.sede__ruta:hover { background: var(--azul); color: var(--blanco); }
.sede__ruta--waze { border-color: #33ccff; }
.sede__ruta--waze:hover { background: #33ccff; color: #05202b; }

/* --- Admisiones: botón para visitar el colegio --- */
.visita { margin: 6px 0 22px; }
.visita .boton { min-height: 50px; padding: 10px 20px; }

/* --- Página 404 (no encontrada) --- */
.error404 { text-align: center; }
.error404__caja { max-width: 760px; }
.error404__numero {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; color: var(--azul-oscuro);
}
.error404__numero span:last-child { color: var(--rojo); }
.error404__numero img {
  width: clamp(90px, 20vw, 140px); height: auto; border-radius: 50%; background: var(--blanco); padding: 6px;
  box-shadow: 0 12px 30px rgba(34, 24, 89, .2); animation: girar-escudo 6s ease-in-out infinite;
}
@keyframes girar-escudo { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 100% { transform: rotate(0); } }
.error404 .intro { margin: 0 auto 24px; }
.error404__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.error404__enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.error404__enlaces a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--borde); background: var(--blanco); color: var(--azul-oscuro); font-weight: 600; text-decoration: none;
}
.error404__enlaces a:hover { border-color: var(--azul); color: var(--azul); }

/* --- Impresión: la página sale limpia, sin menús, botones flotantes ni dibujos --- */
.solo-impresion { display: none; }
@media print {
  @page { margin: 14mm; }
  .franja-superior, .encabezado, .pie, .whatsapp-flotante, .volver-arriba, .barra-movil, .a11y, .barra-secciones,
  .decor, .dibujos, .sello-escudo, .marca-agua-escudo, .separador-escudo, .saltar, .indice, .progreso, .confeti,
  .mis-documentos__botones, .compartir-linea, video, iframe, .instagram, .visor { display: none !important; }
  html, body { background: #fff !important; }
  body { font-size: 11pt; padding: 0 !important; }
  main > section { padding: 8mm 0 !important; background: #fff !important; border: 0 !important; }
  main > section::before { display: none !important; }
  main * { color: #000 !important; box-shadow: none !important; }
  * { animation: none !important; transition: none !important; }
  .revelar { opacity: 1 !important; transform: none !important; }
  .imprimir-documentos main > section:not(#requisitos) { display: none !important; }
  .imprimir-documentos .solo-impresion { display: block; margin-bottom: 6mm; padding-bottom: 4mm; border-bottom: 2px solid #000; font-size: 10pt; line-height: 1.5; }
  .imprimir-documentos .mis-documentos { margin: 3mm 0; padding: 0; border: 0; }
  .imprimir-documentos .mis-documentos__barra, .imprimir-documentos .mis-documentos__nota { display: none; }
  .imprimir-documentos .lista-check--dos { columns: 2; column-gap: 10mm; }
  .imprimir-documentos .lista-check--marcable label { padding: 6px 0 6px 40px; font-size: 10.5pt; }
  .imprimir-documentos .lista-check--marcable label::before { top: 5px; width: 22px; height: 22px; }
  .imprimir-documentos #requisitos h2 { font-size: 20pt; margin-bottom: 3mm; }
  .lista-check--marcable label::before { content: "" !important; background: #fff !important; border: 2px solid #000 !important; }
  .lista-check--marcable input:checked + label::before { content: "✓" !important; }
  .lista-check--marcable input:checked + label { text-decoration: none; }
}

/* =========================================================================
   22. Datos entregados por el colegio (noviembre de 2026)
   ========================================================================= */

/* Fechas de matrícula: etiqueta dorada en el proceso de inscripción */
.fecha {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  background: #ffd166; color: #3d2a00; font-size: .85rem; font-weight: 700; line-height: 1.35;
}
.fecha::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); }
/* Aviso de fechas en el encabezado de Admisiones */
.fechas-matricula {
  display: inline-flex; align-items: center; gap: 10px; max-width: 680px; margin: 2px 0 4px; padding: 10px 16px;
  border-radius: 14px; background: rgba(255, 209, 102, .16); border: 1px solid rgba(255, 209, 102, .55); color: var(--blanco); font-size: 1rem;
}
.fechas-matricula svg { flex: none; width: 24px; height: 24px; color: #ffd166; }
.fechas-matricula strong { color: #ffd166; }

/* Niveles: descripción de cada etapa y frase de compromiso */
.nivel__descripcion { margin: 2px 0 12px; color: var(--tinta); font-size: 1.02rem; line-height: 1.55; }
.niveles__titulo { margin-bottom: .4em; }
.compromiso {
  margin-top: 32px; padding: 26px 28px; border-radius: 20px; text-align: center; color: #e9e6f7;
  background: linear-gradient(120deg, var(--azul-oscuro), var(--azul) 55%, var(--vino)); box-shadow: 0 14px 30px rgba(34, 24, 89, .22);
}
.compromiso p { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.compromiso .compromiso__frase {
  margin-top: 10px; font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; color: #ffd166;
}

/* Tratamiento de datos personales (Documentos y ventana del formulario) */
.datos__origen { padding: 12px 16px; border-radius: 12px; background: var(--azul-suave); color: var(--azul-oscuro); font-size: .98rem; }
.datos__lista { padding-left: 1.4em; }
.datos__lista li { margin-bottom: 8px; }
.datos__nota { padding-left: 12px; border-left: 4px solid var(--rojo); font-size: .95rem; color: var(--gris); }
.ventana--larga { width: min(720px, calc(100% - 32px)); }
.ventana--larga p, .ventana--larga li { font-size: 1rem; color: var(--tinta); }
.ventana--larga .datos__nota { color: var(--gris); }
.casilla label a { font-weight: 700; color: var(--azul); }

/* Vida escolar: mosaico de la entrega de chaquetas (sin huecos) */
.galeria--chaquetas { grid-auto-flow: dense; }
.galeria--chaquetas img { object-position: center 40%; }
.galeria__grande { grid-column: 1 / -1; grid-row: span 2; }
@media (min-width: 600px) { .galeria--chaquetas .galeria__grande { grid-column: span 2; } }

/* Para quien prefiere menos animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revelar { opacity: 1; transform: none; }
  .avion { display: none; }
}
