/* =====================================================================
   Frammy's School — styles.css
   Paleta derivada del logo institucional:
   Azul libro #1B3C87 · Verde hoja #3D9B35 · Naranja #F26B21 · Amarillo sol #F5B301
   ===================================================================== */
:root {
  --azul: #1b3c87;
  --azul-oscuro: #12295f;
  --verde: #3d9b35;
  --verde-oscuro: #2e7a28;
  --naranja: #f26b21;
  --amarillo: #f5b301;
  --crema: #fffaf2;
  --blanco: #ffffff;
  --tinta: #22314f;
  --tinta-suave: #5a6a8a;
  --sombra: 0 10px 30px rgba(27, 60, 135, 0.12);
  --radio: 22px;
  --radio-sm: 14px;
  --fuente-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --fuente-cuerpo: "Nunito", system-ui, -apple-system, sans-serif;
  --ancho-max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente-cuerpo);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--azul); }

.contenedor {
  width: min(var(--ancho-max), 92%);
  margin-inline: auto;
}

/* ------------------------------ Header ------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--amarillo);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.marca img { width: 54px; height: auto; }

.marca__texto { line-height: 1.15; }

.marca__nombre {
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--azul);
  display: block;
}

.marca__eslogan {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-oscuro);
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tinta);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover, .nav a:focus-visible { background: var(--azul); color: #fff; }

.nav a.nav__cta {
  background: var(--naranja);
  color: #fff;
  box-shadow: 0 4px 0 #c9530f;
}

.nav a.nav__cta:hover { background: var(--verde); box-shadow: 0 4px 0 var(--verde-oscuro); }

.nav-toggle {
  display: none;
  background: var(--azul);
  color: #fff;
  border: 0;
  border-radius: 12px;
  width: 46px;
  height: 44px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* ------------------------------- Hero ------------------------------- */
.hero { position: relative; padding: 48px 0 90px; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--fuente-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--azul);
}

.hero h1 .resalte { color: var(--naranja); }

.hero__sub { margin-top: 18px; font-size: 1.08rem; color: var(--tinta-suave); max-width: 46ch; }

.hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.boton {
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.boton:active { transform: translateY(2px); }

.boton--primario { background: var(--azul); color: #fff; box-shadow: 0 5px 0 var(--azul-oscuro); }
.boton--primario:hover { background: var(--verde); box-shadow: 0 5px 0 var(--verde-oscuro); }

.boton--whatsapp { background: #25d366; color: #fff; box-shadow: 0 5px 0 #128c4b; }
.boton--whatsapp:hover { background: #1ebe5b; }

.boton--claro { background: #fff; color: var(--azul); box-shadow: 0 5px 0 #dfe6f5; }
.boton--claro:hover { background: var(--amarillo); color: var(--tinta); box-shadow: 0 5px 0 #c79100; }

.hero__insignias { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.insignia {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid;
}

.insignia--verde { color: var(--verde-oscuro); border-color: var(--verde); }
.insignia--azul { color: var(--azul); border-color: var(--azul); }
.insignia--naranja { color: var(--naranja); border-color: var(--naranja); }

/* ------------------------------ Slider ------------------------------ */
.slider {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 6px solid #fff;
  transform: rotate(1.5deg);
  aspect-ratio: 4 / 3;
  background: var(--azul);
}

.slider__pista { position: absolute; inset: 0; }

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider__slide.activo { opacity: 1; }

.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.slider__pie {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(transparent, rgba(18, 41, 95, 0.85));
  color: #fff;
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.slider__controles {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--azul);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.slider__btn:hover { background: var(--amarillo); }

.slider__puntos {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider__punto {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider__punto.activo { background: var(--amarillo); border-color: var(--amarillo); }

/* Hojas decorativas (firma visual, tomadas del árbol del logo) */
.hoja {
  position: absolute;
  width: 34px; height: 34px;
  background: var(--verde);
  border-radius: 0 60% 0 60%;
  opacity: 0.3;
  pointer-events: none;
}

.hoja--a { top: 8%; left: 3%; transform: rotate(20deg); }
.hoja--b { top: 20%; right: 5%; background: var(--amarillo); transform: rotate(-30deg); }
.hoja--c { bottom: 18%; left: 8%; background: var(--naranja); transform: rotate(65deg); width: 26px; height: 26px; }
.hoja--d { bottom: 6%; right: 12%; transform: rotate(-15deg); width: 24px; height: 24px; }

/* --------------------------- Onda divisoria -------------------------- */
.onda { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ----------------------------- Secciones ---------------------------- */
.seccion { padding: 72px 0; position: relative; }

.seccion--blanca { background: #fff; }
.seccion--azul { background: var(--azul); color: #fff; }
.seccion--verde-suave { background: #eef7ec; }

.seccion__eyebrow {
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 8px;
}

.seccion--azul .seccion__eyebrow { color: var(--amarillo); }

.seccion h2 {
  font-family: var(--fuente-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--azul);
  line-height: 1.15;
  margin-bottom: 16px;
}

.seccion--azul h2 { color: #fff; }

.seccion__intro { max-width: 68ch; color: var(--tinta-suave); }

.seccion--azul .seccion__intro { color: #d6e0f7; }

/* --------------------------- Quiénes somos --------------------------- */
.mv-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tarjeta {
  background: #fff;
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  border-top: 6px solid var(--verde);
}

.tarjeta--vision { border-top-color: var(--naranja); }

.tarjeta h3 {
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--azul);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tarjeta p { color: var(--tinta-suave); }

.valores { margin-top: 34px; }

.valores h3 {
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--azul);
  margin-bottom: 14px;
}

.valores__lista { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }

.valores__lista li {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff;
}

.valores__lista li:nth-child(4n + 1) { background: var(--azul); }
.valores__lista li:nth-child(4n + 2) { background: var(--verde); }
.valores__lista li:nth-child(4n + 3) { background: var(--naranja); }
.valores__lista li:nth-child(4n + 4) { background: var(--amarillo); color: var(--tinta); }

/* ------------------------------ Galería ------------------------------ */
.galeria {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.galeria figure {
  border-radius: var(--radio-sm);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 5px solid #fff;
  background: #fff;
  transition: transform 0.2s ease;
}

.galeria figure:nth-child(odd) { transform: rotate(-1.2deg); }
.galeria figure:nth-child(even) { transform: rotate(1.2deg); }
.galeria figure:hover { transform: rotate(0) scale(1.03); }

.galeria img { width: 100%; height: 220px; object-fit: cover; }

/* --------------------------- Oferta educativa ------------------------ */

.destacado-estimulacion {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  border: 4px solid #fff;
}

.destacado-estimulacion__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destacado-estimulacion__contenido {
  padding: 28px 28px 28px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.destacado-estimulacion__etiqueta {
  align-self: flex-start;
  background: #fdeee4;
  color: var(--naranja);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.destacado-estimulacion h3 {
  font-family: var(--fuente-display);
  color: var(--azul);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
}

.destacado-estimulacion p { color: var(--tinta-suave); }

.destacado-estimulacion__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}


.niveles {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.nivel {
  border-radius: var(--radio);
  padding: 22px;
  background: #fff;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 8px solid;
}

.nivel:nth-child(1) { border-color: #cf4aa5; }
.nivel:nth-child(2) { border-color: var(--verde); }
.nivel:nth-child(3) { border-color: var(--naranja); }
.nivel:nth-child(4) { border-color: var(--azul); }

.nivel__icono { font-size: 2rem; }

.nivel h3 { font-family: var(--fuente-display); font-weight: 800; font-size: 1.3rem; color: var(--azul); }

.nivel__edades { font-weight: 800; font-size: 0.85rem; color: var(--naranja); text-transform: uppercase; letter-spacing: 0.06em; }

.nivel__acreditacion {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  background: #eef7ec;
  color: var(--verde-oscuro);
  padding: 4px 12px;
  border-radius: 999px;
}

.nivel p { color: var(--tinta-suave); font-size: 0.97rem; }

.modalidades {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.modalidad {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radio-sm);
  padding: 22px;
}

.modalidad h4 {
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--amarillo);
  margin-bottom: 6px;
}

.modalidad p { font-size: 0.95rem; color: #e6ecfa; }

.sellos {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sello {
  background: #fff;
  border-radius: var(--radio-sm);
  padding: 22px;
  box-shadow: var(--sombra);
}

.sello__icono {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.sello:nth-child(1) .sello__icono { background: #e7edfb; }
.sello:nth-child(2) .sello__icono { background: #fdeee4; }
.sello:nth-child(3) .sello__icono { background: #eef7ec; }
.sello:nth-child(4) .sello__icono { background: #fdf4d8; }

.sello h4 { font-family: var(--fuente-display); font-weight: 800; color: var(--azul); margin-bottom: 6px; }

.sello p { font-size: 0.92rem; color: var(--tinta-suave); }

/* ----------------------------- Comunidad ----------------------------- */
.direccion-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.persona {
  background: #fff;
  border-radius: var(--radio-sm);
  padding: 22px;
  text-align: center;
  box-shadow: var(--sombra);
}

.persona__avatar {
  width: 66px; height: 66px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
}

.persona:nth-child(4n + 1) .persona__avatar { background: var(--azul); }
.persona:nth-child(4n + 2) .persona__avatar { background: var(--verde); }
.persona:nth-child(4n + 3) .persona__avatar { background: var(--naranja); }
.persona:nth-child(4n + 4) .persona__avatar { background: var(--amarillo); color: var(--tinta); }

.persona h4 { font-family: var(--fuente-display); font-weight: 800; font-size: 1.02rem; color: var(--tinta); }

.persona p { font-size: 0.82rem; color: var(--tinta-suave); margin-top: 4px; }

.equipos {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.equipo {
  background: #fff;
  border-left: 6px solid var(--verde);
  border-radius: var(--radio-sm);
  padding: 18px 20px;
  box-shadow: var(--sombra);
}

.equipo:nth-child(3n + 2) { border-color: var(--naranja); }
.equipo:nth-child(3n + 3) { border-color: var(--azul); }

.equipo h4 { font-family: var(--fuente-display); font-weight: 800; font-size: 0.98rem; color: var(--azul); }

.equipo p { font-size: 0.9rem; color: var(--tinta-suave); margin-top: 4px; }

/* ----------------------------- Admisiones ---------------------------- */
.admision-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.pasos { list-style: none; counter-reset: paso; display: grid; gap: 16px; margin-top: 18px; }

.pasos li {
  counter-increment: paso;
  background: #fff;
  border-radius: var(--radio-sm);
  padding: 16px 18px 16px 66px;
  position: relative;
  box-shadow: var(--sombra);
  font-weight: 700;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--naranja);
  color: #fff;
  font-family: var(--fuente-display);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.aviso-preinscripcion {
  margin-top: 22px;
  background: #fdf4d8;
  border: 2px dashed var(--amarillo);
  border-radius: var(--radio-sm);
  padding: 18px 20px;
  font-size: 0.95rem;
}

.aviso-preinscripcion strong { color: var(--azul); }

.documentos {
  background: #fff;
  border-radius: var(--radio);
  padding: 26px;
  box-shadow: var(--sombra);
}

.documentos h3 {
  font-family: var(--fuente-display);
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 14px;
}

.documentos ul { list-style: none; display: grid; gap: 9px; }

.documentos li { padding-left: 30px; position: relative; font-size: 0.94rem; color: var(--tinta-suave); }

.documentos li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  top: 3px;
}

.descargable {
  margin-top: 44px;
  background: linear-gradient(120deg, var(--azul), var(--azul-oscuro));
  color: #fff;
  border-radius: var(--radio);
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--sombra);
}

.descargable h3 { font-family: var(--fuente-display); font-weight: 800; font-size: 1.35rem; }

.descargable p { color: #cdd9f3; font-size: 0.95rem; max-width: 52ch; margin-top: 6px; }

/* ------------------------------ Contacto ----------------------------- */
.contacto-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.contacto-datos { display: grid; gap: 16px; align-content: start; }

.dato {
  background: #fff;
  border-radius: var(--radio-sm);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--sombra);
}

.dato__icono {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #e7edfb;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.dato h4 { font-family: var(--fuente-display); font-weight: 800; font-size: 0.95rem; color: var(--azul); }

.dato p, .dato a { font-size: 0.95rem; color: var(--tinta-suave); word-break: break-word; }

.rrss { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }

.rrss a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fuente-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
}

.rrss a.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.rrss a.fb { background: #1877f2; }
.rrss a.wa { background: #25d366; }

.mapa {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 6px solid #fff;
  min-height: 380px;
}

.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ------------------------------- Footer ------------------------------ */
.footer { background: var(--azul-oscuro); color: #c6d2ee; padding: 46px 0 26px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer .marca__nombre { color: #fff; }

.footer .marca__eslogan { color: var(--amarillo); }

.footer__col h4 {
  font-family: var(--fuente-display);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer__col ul { list-style: none; display: grid; gap: 8px; }

.footer__col a { color: #c6d2ee; text-decoration: none; font-size: 0.92rem; }

.footer__col a:hover { color: var(--amarillo); }

.footer__col p { font-size: 0.92rem; }

.footer__legal {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.footer__legal a { color: var(--amarillo); text-decoration: none; }

/* --------------------------- WhatsApp flotante ----------------------- */
.whatsapp-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 140, 75, 0.45);
  transition: transform 0.2s;
}

.whatsapp-flotante:hover { transform: scale(1.08); }

.whatsapp-flotante svg { width: 32px; height: 32px; }

/* --------------------------- Página legal --------------------------- */
.pagina-legal { padding: 60px 0 80px; }
.pagina-legal h1 { font-family: var(--fuente-display); color: var(--azul); margin-bottom: 20px; }
.pagina-legal h2 { font-size: 1.2rem; margin: 26px 0 8px; color: var(--azul); font-family: var(--fuente-display); }
.pagina-legal p, .pagina-legal li { color: var(--tinta-suave); }
.pagina-legal ul { padding-left: 22px; margin-top: 8px; }

/* ---------------------------- Animaciones ---------------------------- */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.revelar.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; transition: none; }
  .slider__slide { transition: none; }
}

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

/* ----------------------------- Responsive ---------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .destacado-estimulacion { grid-template-columns: 1fr; }
  .destacado-estimulacion__contenido { padding: 0 24px 24px; }
  .slider { transform: none; }
  .niveles, .modalidades, .equipos { grid-template-columns: 1fr 1fr; }
  .sellos, .direccion-grid { grid-template-columns: 1fr 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .admision-grid, .contacto-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 6px;
    border-bottom: 3px solid var(--amarillo);
    box-shadow: var(--sombra);
    display: none;
  }
  .nav.abierto { display: flex; }
  .nav a { text-align: center; }
  .nav-toggle { display: block; }
  .niveles, .modalidades, .sellos, .equipos, .direccion-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .seccion { padding: 56px 0; }
  .galeria img { height: 160px; }
}
