/* ==========================================
   ESCUELA BILINGÜE VILLAS DEL CAMPO
   styles.css — Rediseño completo
   Paleta: Verde logo + Café logo
   Tipografía: Poppins
   ========================================== */

/* ── VARIABLES ── */
:root {
  /* Colores del logo */
  --verde:         #3A8C40;
  --verde-oscuro:  #1E5C24;
  --verde-medio:   #2D7433;
  --verde-claro:   #EBF5EC;
  --verde-suave:   #F2FAF3;

  --cafe:          #7B4A26;
  --cafe-oscuro:   #5A3219;
  --cafe-medio:    #6B3F20;
  --cafe-claro:    #F5EDE6;
  --cafe-suave:    #FAF6F2;

  /* Neutros */
  --blanco:   #FFFFFF;
  --crema:    #FAFAF7;
  --gris:     #F0EDE8;
  --texto:    #1C2B1E;
  --texto-2:  #4A5C4D;
  --borde:    #DFD8D0;

  /* Sombras */
  --sombra-v: 0 4px 24px rgba(58,140,64,.14);
  --sombra-c: 0 4px 24px rgba(123,74,38,.12);
  --sombra:   0 4px 20px rgba(0,0,0,.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ANIMACIÓN DE ENTRADA ── */
/* NOTA: solo se anima la opacidad. Un transform en <body>
   rompe el position:fixed del video flotante (modal). */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  background: var(--crema);
  overflow-x: hidden;
  animation: pageEnter 0.45s ease forwards;
}

body.fade-out {
  animation: none !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--blanco);
  box-shadow: 0 2px 16px rgba(30,92,36,.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 2rem;
  border-bottom: 3px solid var(--verde);
}

.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-logo img {
  width: 58px; height: 58px;
  object-fit: contain;
  border-radius: 50%;
  border: 2.5px solid var(--verde);
  box-shadow: 0 2px 10px rgba(30,92,36,.25);
  background: #fff;
}
.nav-logo span {
  font-size: .98rem; font-weight: 700;
  color: var(--verde-oscuro); line-height: 1.2;
}
.nav-logo small {
  display: block; font-size: .67rem; font-weight: 500;
  color: var(--cafe); letter-spacing: .4px;
}

.nav-links { display: flex; gap: 1.4rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .88rem;
  color: var(--texto); transition: color .2s;
  padding-bottom: 3px; letter-spacing: .2px;
}
.nav-links a:hover { color: var(--verde); }
.nav-links a.active { color: var(--verde); border-bottom: 2px solid var(--verde); }

.nav-cta {
  background: var(--verde); color: #fff !important;
  padding: .42rem 1.2rem; border-radius: 30px;
  border-bottom: none !important;
  font-weight: 600 !important;
  transition: background .2s, transform .2s !important;
  box-shadow: 0 2px 10px rgba(58,140,64,.3);
}
.nav-cta:hover { background: var(--cafe) !important; transform: translateY(-1px) !important; }
.nav-cta.active { background: var(--cafe) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .4rem; }
.hamburger span { width: 24px; height: 3px; background: var(--verde-oscuro); border-radius: 3px; display: block; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO — fondo elegante verde
══════════════════════════════════════ */
.hero {
  min-height: 92vh;
  background: linear-gradient(145deg, #1A5220 0%, #1E5C24 35%, #2D7433 65%, #3A8C40 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem;
  position: relative; overflow: hidden;
}

/* Overlay verde encima de la foto — crea la ilusión óptica */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    145deg,
    rgba(26,82,32,.78) 0%,
    rgba(30,92,36,.68) 40%,
    rgba(45,116,51,.72) 75%,
    rgba(58,140,64,.65) 100%
  );
  z-index: 2;
}

/* Patrón de puntos sobre el hero */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.hero-content { position: relative; max-width: 780px; z-index: 5; }


/* logo.jpg ocupa TODO el hero como fondo fotográfico */
.hero-logo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  z-index: 1;
  max-width: none;
  margin: 0;
  display: block;
  filter: saturate(0.85) brightness(0.9);
  animation: none;
}

@keyframes logoFloat {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.95);
  font-size: .8rem; font-weight: 600; letter-spacing: 2px;
  padding: .4rem 1.4rem; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 1.4rem; text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero h1 span { color: #FFD580; }

.hero p {
  color: rgba(255,255,255,.88); font-size: 1.08rem; font-weight: 400;
  max-width: 540px; margin: 0 auto 2rem; line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Emojis flotantes */
.floats { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.float-item {
  position: absolute; font-size: 2rem; opacity: .12;
  animation: floatUp 7s ease-in-out infinite alternate;
}
.float-item:nth-child(1){ top:12%; left:7%;  animation-delay:0s;   }
.float-item:nth-child(2){ top:72%; left:5%;  animation-delay:1.2s; }
.float-item:nth-child(3){ top:18%; right:6%; animation-delay:.6s;  }
.float-item:nth-child(4){ top:76%; right:8%; animation-delay:1.8s; }
.float-item:nth-child(5){ top:48%; left:3%;  animation-delay:2.4s; }
.float-item:nth-child(6){ top:52%; right:4%; animation-delay:3s;   }
@keyframes floatUp {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-16px) rotate(4deg); }
}

/* ── BOTONES ── */
.btn-primary {
  background: #FFD580; color: var(--cafe-oscuro);
  padding: .85rem 2rem; border-radius: 40px;
  font-weight: 700; font-size: .97rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,200,80,.35);
  transition: transform .2s, box-shadow .2s; display: inline-block;
  letter-spacing: .3px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,200,80,.5); }

.btn-secondary {
  background: rgba(255,255,255,.12); color: #fff;
  padding: .85rem 2rem; border-radius: 40px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  border: 2px solid rgba(255,255,255,.45);
  transition: background .2s; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,.22); }

.btn-verde {
  background: var(--verde); color: #fff;
  padding: .85rem 2.2rem; border-radius: 40px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  box-shadow: var(--sombra-v); transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-verde:hover { background: var(--verde-oscuro); transform: translateY(-2px); }

.btn-cafe {
  background: var(--cafe); color: #fff;
  padding: .85rem 2.2rem; border-radius: 40px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  box-shadow: var(--sombra-c); transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-cafe:hover { background: var(--cafe-oscuro); transform: translateY(-2px); }

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.stats {
  background: var(--blanco);
  display: flex; flex-wrap: wrap; justify-content: center;
  border-bottom: 1px solid var(--borde);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.stat-item {
  padding: 1.8rem 2.5rem; text-align: center;
  border-right: 1px solid var(--borde); flex: 1 1 160px;
  transition: background .2s;
}
.stat-item:hover { background: var(--verde-suave); }
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
}
.stat-label { font-size: .8rem; font-weight: 500; color: var(--texto-2); margin-top: .3rem; }

/* ══════════════════════════════════════
   SECCIONES GENERAL
══════════════════════════════════════ */
section { padding: 5rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: .32rem 1rem; border-radius: 30px; margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}

.section-sub {
  color: var(--texto-2); font-size: 1rem;
  font-weight: 400; max-width: 580px; margin-bottom: 3rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   HOME — PREVIEW CARDS
══════════════════════════════════════ */
.home-sections {
  background: var(--crema);
  padding: 5.5rem 1.5rem;
  position: relative;
}

/* Decorativo sutil en la sección */
.home-sections::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--verde), var(--cafe), var(--verde));
}

.home-header { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.home-header .section-tag { background: var(--verde-claro); color: var(--verde-oscuro); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }

.preview-card {
  background: var(--blanco); border-radius: 18px;
  padding: 2rem 1.5rem; text-align: center;
  text-decoration: none; color: var(--texto);
  box-shadow: var(--sombra);
  transition: transform .28s, box-shadow .28s;
  border-top: 4px solid var(--ac, var(--verde));
  display: block; position: relative; overflow: hidden;
}

.preview-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--ac, var(--verde));
  transform: scaleX(0); transition: transform .28s;
}

.preview-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.preview-card:hover::after { transform: scaleX(1); }

.preview-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.preview-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.preview-card p  { font-size: .84rem; color: var(--texto-2); line-height: 1.6; margin-bottom: 1rem; }
.preview-link { font-weight: 700; font-size: .83rem; color: var(--ac, var(--verde)); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--cafe-oscuro) 0%, var(--cafe) 50%, #9B6035 100%);
  padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800;
  color: #fff; margin-bottom: 1rem; position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,.85); font-size: 1rem;
  max-width: 500px; margin: 0 auto 2rem;
  line-height: 1.7; position: relative;
}

/* ══════════════════════════════════════
   PAGE BANNER (páginas internas)
══════════════════════════════════════ */
.page-banner {
  padding: 5rem 1.5rem 4rem; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--bc1, var(--verde-oscuro)) 0%, var(--bc2, var(--verde)) 100%);
}

.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--crema);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-banner-inner {
  position: relative; max-width: 680px; margin: 0 auto; z-index: 1;
}

.banner-emoji {
  font-size: 3.5rem; display: block; margin-bottom: .8rem;
  animation: floatUp 4s ease-in-out infinite alternate;
}

.page-banner .section-tag {
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.page-banner h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: .8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.page-banner p { color: rgba(255,255,255,.87); font-size: 1.05rem; line-height: 1.6; }

.breadcrumb {
  margin-top: 1.2rem; font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.9); }

/* ══════════════════════════════════════
   NOSOTROS
══════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.about-video {
  width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 8px 32px rgba(30,92,36,.2); display: block;
  border: 3px solid var(--verde-claro);
}

.about-text .section-tag { background: var(--verde-claro); color: var(--verde-oscuro); }

.about-list { list-style: none; margin-top: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.about-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; font-weight: 500; }
.about-list li::before {
  content: '✓'; background: var(--verde); color: #fff;
  border-radius: 50%; width: 22px; height: 22px; min-width: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; margin-top: .1rem;
}

/* Misión / Visión */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv-card { border-radius: 20px; padding: 2.5rem 2rem; }
.mv-card.mision { background: var(--verde-claro); border-left: 5px solid var(--verde); }
.mv-card.vision  { background: var(--cafe-claro);  border-left: 5px solid var(--cafe); }
.mv-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .8rem; }
.mv-card p  { font-size: .93rem; line-height: 1.8; color: var(--texto-2); }

/* Valores */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.4rem; }
.value-card {
  background: var(--blanco); border-radius: 16px;
  padding: 1.8rem 1.4rem; text-align: center;
  box-shadow: var(--sombra); transition: transform .25s;
  border-bottom: 3px solid transparent;
}
.value-card:hover { transform: translateY(-5px); border-bottom-color: var(--verde); }
.value-icon { font-size: 2.3rem; margin-bottom: .8rem; display: block; }
.value-card h3 { font-weight: 700; font-size: .97rem; margin-bottom: .4rem; color: var(--verde-oscuro); }
.value-card p  { font-size: .84rem; color: var(--texto-2); line-height: 1.5; }

/* ══════════════════════════════════════
   PROGRAMAS
══════════════════════════════════════ */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }

.prog-card {
  border-radius: 18px; padding: 2rem 1.6rem; text-align: center;
  box-shadow: var(--sombra); transition: transform .25s, box-shadow .25s;
  border-top: 5px solid var(--verde); background: var(--blanco);
}

.prog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(58,140,64,.15); }
.prog-card .emoji { font-size: 2.6rem; margin-bottom: .8rem; }
.prog-card h3    { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; color: var(--verde-oscuro); }
.prog-card .age  { font-size: .75rem; font-weight: 600; color: var(--cafe); margin-bottom: .6rem; letter-spacing: .5px; }
.prog-card p     { font-size: .86rem; line-height: 1.6; color: var(--texto-2); }

/* Alternancia verde / café */
.prog-card.c1 { border-top-color: var(--verde);        background: var(--verde-suave); }
.prog-card.c2 { border-top-color: var(--cafe);         background: var(--cafe-suave); }
.prog-card.c3 { border-top-color: var(--verde-medio);  background: var(--verde-claro); }
.prog-card.c4 { border-top-color: var(--cafe-medio);   background: var(--cafe-claro); }
.prog-card.c5 { border-top-color: var(--verde-oscuro); background: var(--verde-suave); }

/* Video preschool */
.preschool-video-wrap {
  margin-top: 3.5rem; background: var(--verde-claro);
  border-radius: 24px; padding: 2.5rem;
  display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap;
  border: 1px solid rgba(58,140,64,.2);
}
.preschool-video-wrap video { flex: 1 1 300px; border-radius: 16px; width: 100%; box-shadow: var(--sombra-v); }
.preschool-video-text { flex: 1 1 260px; }
.preschool-video-text .section-tag { background: var(--blanco); color: var(--verde-oscuro); }
.preschool-video-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; color: var(--verde-oscuro); }
.preschool-video-text p  { color: var(--texto-2); line-height: 1.7; font-size: .94rem; }

/* Features / Diferenciadores */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: 14px; transition: background .2s; }
.feature-item:hover { background: var(--verde-suave); }
.feature-icon { font-size: 1.8rem; min-width: 46px; text-align: center; }
.feature-item h4 { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; color: var(--verde-oscuro); }
.feature-item p  { font-size: .84rem; color: var(--texto-2); line-height: 1.5; }

/* ══════════════════════════════════════
   GALERÍA
══════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }

.gal-item {
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem; box-shadow: var(--sombra);
  transition: transform .28s; cursor: pointer; position: relative;
}
.gal-item:hover { transform: scale(1.04); }

/* Verde y café alternados */
.gal-item:nth-child(1){ background: linear-gradient(135deg, #C8E6CA, #A5D6A7); }
.gal-item:nth-child(2){ background: linear-gradient(135deg, #D7C4B5, #C4A882); }
.gal-item:nth-child(3){ background: linear-gradient(135deg, #B8DEB8, #8DC58D); }
.gal-item:nth-child(4){ background: linear-gradient(135deg, #E8D5C4, #D4A882); }
.gal-item:nth-child(5){ background: linear-gradient(135deg, #C5E1C5, #95C595); }
.gal-item:nth-child(6){ background: linear-gradient(135deg, #C9B8A8, #B89070); }
.gal-item:nth-child(7){ background: linear-gradient(135deg, #A8D5A8, #78C578); }
.gal-item:nth-child(8){ background: linear-gradient(135deg, #DBC8B5, #C4956A); }
.gal-item:nth-child(9){ background: linear-gradient(135deg, #B5D5B5, #6DB56D); }

.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,92,36,.7));
  color: #fff; font-size: .8rem; font-weight: 600;
  padding: 1.5rem .8rem .8rem;
  opacity: 0; transition: opacity .25s;
}
.gal-item:hover .gal-caption { opacity: 1; }
.gallery-note { margin-top: 1.5rem; color: var(--texto-2); font-size: .87rem; text-align: center; }

/* ══════════════════════════════════════
   DOCENTES
══════════════════════════════════════ */
.staff-photo {
  width: 100%; max-width: 680px; height: auto;
  display: block; margin: 0 auto 2.5rem;
  border-radius: 20px; box-shadow: 0 8px 32px rgba(123,74,38,.2);
  border: 4px solid var(--cafe-claro);
  object-fit: cover;
}

.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.8rem; }

.teacher-card {
  background: var(--blanco); border-radius: 18px;
  padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--sombra); transition: transform .25s;
  border-bottom: 3px solid var(--verde);
}
.teacher-card:hover { transform: translateY(-5px); }

.teacher-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  border: 3px solid var(--verde-claro);
}
.teacher-card h3    { font-weight: 700; margin-bottom: .25rem; color: var(--verde-oscuro); }
.teacher-card .role { font-size: .8rem; font-weight: 600; color: var(--cafe); margin-bottom: .5rem; }
.teacher-card p     { font-size: .84rem; color: var(--texto-2); line-height: 1.5; }

/* ══════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════ */
.testi-section {
  background: linear-gradient(145deg, var(--verde-oscuro) 0%, var(--verde-medio) 50%, #3A8C40 100%);
  padding: 5rem 1.5rem;
  position: relative; overflow: hidden;
}

.testi-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; position: relative; z-index: 1; }

.testi-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px; padding: 2rem;
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.testi-card:hover { background: rgba(255,255,255,.15); }

.testi-stars { color: #FFD580; font-size: 1rem; margin-bottom: .8rem; letter-spacing: 2px; }
.testi-card p { color: rgba(255,255,255,.9); font-size: .92rem; line-height: 1.75; margin-bottom: 1.1rem; }
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-author .av { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.testi-author strong { color: #fff; font-size: .9rem; display: block; font-weight: 600; }
.testi-author span   { color: rgba(255,255,255,.6); font-size: .78rem; }

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }

.contact-info .section-tag { background: var(--verde-claro); color: var(--verde-oscuro); }

.info-items { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.info-item  { display: flex; gap: 1rem; align-items: flex-start; }

.info-icon {
  width: 46px; height: 46px; min-width: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.info-icon.az { background: var(--verde-claro); }
.info-icon.gn { background: var(--cafe-claro); }
.info-icon.yl { background: var(--verde-suave); }
.info-icon.rd { background: var(--cafe-suave); }

.info-item strong { font-weight: 700; font-size: .88rem; display: block; margin-bottom: .15rem; color: var(--texto); }
.info-item span   { font-size: .85rem; color: var(--texto-2); }

.contact-form {
  background: var(--blanco); border-radius: 22px;
  padding: 2.5rem; box-shadow: 0 8px 32px rgba(0,0,0,.08);
  border-top: 4px solid var(--verde);
}
.contact-form h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--verde-oscuro); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }

.form-group label { font-size: .82rem; font-weight: 600; display: block; margin-bottom: .4rem; color: var(--texto-2); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .72rem 1rem; border-radius: 10px;
  border: 2px solid var(--borde); font-family: 'Poppins', sans-serif;
  font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s;
  background: var(--crema); color: var(--texto);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(58,140,64,.1);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  width: 100%; background: linear-gradient(135deg, var(--verde-oscuro), var(--verde));
  color: #fff; border: none; border-radius: 40px;
  padding: 1rem; font-size: .97rem; font-weight: 700;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: opacity .2s, transform .2s;
  letter-spacing: .3px;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }

.form-success {
  display: none; text-align: center; padding: 1.5rem;
  color: var(--verde); font-weight: 600; font-size: 1rem;
  background: var(--verde-claro); border-radius: 12px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: linear-gradient(145deg, #1A3D1E 0%, #1E5C24 100%);
  color: rgba(255,255,255,.75); padding: 3.5rem 1.5rem 1.5rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cafe), var(--verde), var(--cafe));
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  max-width: 1100px; margin: 0 auto; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand-top {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem;
}

/* Logo en lugar del emoji */
.footer-logo-img {
  width: 125x; height: 125px;
  object-fit: contain; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}

.footer-brand-name { color: #fff; font-weight: 700; font-size: .98rem; }

.footer-brand p {
  font-size: .84rem; line-height: 1.7; max-width: 280px; margin-top: .4rem;
  color: rgba(255,255,255,.65);
}

/* ── COLUMNAS DE LINKS — animación al hover ── */
.footer-col h4 {
  color: #fff; font-weight: 700; font-size: .9rem;
  margin-bottom: .9rem; letter-spacing: .3px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }

.footer-col ul a {
  color: rgba(255,255,255,.6);
  text-decoration: none; font-size: .85rem;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: color .22s, transform .22s, gap .22s;
  padding: .15rem 0;
}

/* Flecha que aparece al hover */
.footer-col ul a::before {
  content: '›';
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .22s, transform .22s;
  font-size: 1rem; font-weight: 700;
  color: #FFD580;
}

.footer-col ul a:hover {
  color: #FFD580;
  transform: translateX(6px);
}

.footer-col ul a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .78rem; }

/* ── REDES SOCIALES — iconos Font Awesome con colores de marca ── */
.social-links { display: flex; gap: .7rem; }

.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff;
  transition: background .25s, transform .25s, box-shadow .25s;
  font-size: .95rem;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.12);
}

/* Color de marca por red social */
.social-links a.fb:hover { background: #1877F2; box-shadow: 0 6px 18px rgba(24,119,242,.4); }
.social-links a.wa:hover { background: #25D366; box-shadow: 0 6px 18px rgba(37,211,102,.4); }
.social-links a.ig:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 6px 18px rgba(225,48,108,.4); }
.social-links a.yt:hover { background: #FF0000; box-shadow: 0 6px 18px rgba(255,0,0,.4); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   PLATAFORMAS EDUCATIVAS
══════════════════════════════════════ */
.platforms-section {
  background: var(--blanco);
  padding: 5rem 1.5rem;
}

.plat-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }

/* Línea decorativa "ALIADOS EDUCATIVOS" */
.plat-divider {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem; margin-bottom: .7rem;
}
.plat-divider::before,
.plat-divider::after { content: ''; height: 2px; width: 36px; background: var(--cafe); }
.plat-divider span {
  font-size: .72rem; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase; color: var(--cafe);
}

/* Grid — 4 columnas x 2 filas */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  justify-items: center;
}

/* Tarjeta */
.platform-card {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; cursor: pointer;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
.platform-card:not(.platform-placeholder):hover { transform: translateY(-8px); }

/* Círculo principal */
.platform-wrap {
  width: 152px; height: 152px; border-radius: 50%;
  background: var(--blanco);
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .32s;
}
.platform-card:not(.platform-placeholder):hover .platform-wrap {
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
}

/* Anillo punteado giratorio */
.platform-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2.5px dashed rgba(0,0,0,.13);
  transition: border-color .35s;
  pointer-events: none;
}
.platform-card:not(.platform-placeholder):hover .platform-ring {
  border-color: var(--pc);
  animation: spinRing 5s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

/* Contenido dentro del círculo */
.platform-inner { text-align: center; line-height: 1; position: relative; z-index: 1; }

/* Imagen real del logo dentro del círculo */
.platform-img {
  width: 90px; height: 90px;
  object-fit: contain;
  display: block; margin: 0 auto;
}

.p-abbr { font-size: 3.8rem; font-weight: 900; display: block; line-height: .9; }
.p-sub  { font-size: 1rem;   font-weight: 700; display: block; margin-top: .1rem; }
.p-text { font-size: 1.25rem; font-weight: 800; display: block; line-height: 1.2; }

/* Overlay "Visitar" al hover */
.platform-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.68);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem;
  gap: .35rem; opacity: 0; transition: opacity .3s; z-index: 2;
}
.platform-card:not(.platform-placeholder):hover .platform-overlay { opacity: 1; }

/* Badge de color en la parte inferior */
.platform-label {
  margin-top: -17px; position: relative; z-index: 1;
  padding: .42rem 1rem; border-radius: 30px;
  text-align: center; min-width: 110px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.platform-card:not(.platform-placeholder):hover .platform-label {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.platform-label b     { display: block; color: #fff; font-size: .73rem; font-weight: 800; line-height: 1.25; }
.platform-label small { display: block; color: rgba(255,255,255,.75); font-size: .6rem; }

/* Placeholders deshabilitados */
.platform-placeholder { opacity: .38; cursor: default; }

/* ══════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanco); flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    box-shadow: 0 6px 20px rgba(30,92,36,.12);
    gap: 0; z-index: 99;
    border-top: 2px solid var(--verde-claro);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--verde-claro); }
  .nav-links a  { padding: .75rem 0; display: block; }

  .about-grid, .mv-grid, .contact-wrap, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .form-row     { grid-template-columns: 1fr; }
  .stat-item    { flex: 1 1 130px; padding: 1.5rem 1rem; }
  .hero-logo    { max-width: 85%; }
  .preschool-video-wrap { flex-direction: column; }
  .page-banner  { padding: 3.5rem 1.5rem 3rem; }
  .platforms-grid { grid-template-columns: repeat(2,1fr); gap: 1.8rem 1rem; }
  .platform-wrap  { width: 120px; height: 120px; }
  .p-abbr { font-size: 2.8rem; }
  .p-text { font-size: 1rem; }
}
.teachers-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 30px;
}

.teacher-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
}

.teacher-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.gal-item {
    width: 100%;
    aspect-ratio: 1 / 1; /* cuadrado perfecto */
    overflow: hidden;
    border-radius: 20px;
}

.gal-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
}

.hero-banner img {
    width: 200%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
}

.banner-image {
    width: 95%;
    margin: 0 auto 40px auto;
}

.banner-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.map-container {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    border: 4px solid white;
}
/* ══════════════════════════════════════
   CARRUSEL DEL BANNER (Nosotros)
   Ocupa TODO el fondo azul del banner,
   con transparencia para que el texto se lea.
══════════════════════════════════════ */
.banner-carousel {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  z-index: 0;
}

.bc-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

/* Las fotos/videos se ven con sus colores reales */
.bc-slide.active { opacity: .88; }

.bc-slide img,
.bc-slide video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Oscurecido NEUTRO (no azul) para que el texto se lea
   sin cambiar los colores de las fotos */
.banner-carousel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,20,25,.30) 0%,
    rgba(20,20,25,.45) 55%,
    rgba(20,20,25,.55) 100%);
}

.bc-dots {
  position: absolute; bottom: 74px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center;
  z-index: 4;
}

.bc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; cursor: pointer; padding: 0;
  pointer-events: auto;
  transition: transform .3s, background .3s;
}
.bc-dot.active { background: #fff; transform: scale(1.3); }

/* El texto y la onda inferior van POR ENCIMA del carrusel */
.page-banner .page-banner-inner { z-index: 3; }
.page-banner::after { z-index: 2; }

/* Banner un poco más alto SOLO cuando tiene carrusel de fondo */
.page-banner:has(.banner-carousel) {
  min-height: 460px;
  display: flex; flex-direction: column; justify-content: center;
}

/* Texto con sombra reforzada para leerse sobre cualquier foto */
.page-banner:has(.banner-carousel) h1 {
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.page-banner:has(.banner-carousel) p,
.page-banner:has(.banner-carousel) .breadcrumb {
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

@media (max-width: 768px) {
  .bc-dots { bottom: 64px; }
}

/* ══════════════════════════════════════
   MODAL DE VIDEO FLOTANTE (Galería)
══════════════════════════════════════ */
.video-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.video-modal.open { display: flex; animation: modalFade .3s ease; }

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.video-modal-box {
  position: relative;
  display: flex;
  align-items: center; justify-content: center;
  animation: modalZoom .3s ease;
}

@keyframes modalZoom {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.video-modal-box video {
  width: auto; height: auto;
  max-width: min(900px, 90vw);
  max-height: 82vh;
  display: block;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  background: #000;
}

.video-modal-close {
  position: absolute; top: -18px; right: -14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--verde, #2E7D32); color: #fff;
  border: 3px solid #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .25s;
  z-index: 2;
}
.video-modal-close:hover { transform: rotate(90deg) scale(1.08); background: #B00020; }

@media (max-width: 600px) {
  .video-modal-close { top: -14px; right: 2px; width: 36px; height: 36px; font-size: 1.2rem; }
}

/* ══════════════════════════════════════
   CARRUSEL DE DOCENTES
══════════════════════════════════════ */
.teachers-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex; align-items: center; gap: .8rem;
}

.tc-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--sombra, 0 8px 24px rgba(0,0,0,.12));
}

.tc-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}

.tc-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.tc-slide img {
  width: 100%; height: 520px;
  object-fit: cover; object-position: center top;
  display: block;
}

.tc-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  flex: 0 0 46px;
  background: var(--verde, #2E7D32); color: #fff;
  border: none; cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: background .25s, transform .25s;
  z-index: 2;
}
.tc-arrow:hover { background: var(--verde-oscuro, #1E5C24); transform: scale(1.1); }

.tc-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center;
  z-index: 2;
}

.tc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: transform .3s, background .3s;
}
.tc-dot.active { background: #fff; transform: scale(1.3); }

@media (max-width: 768px) {
  .tc-slide img { height: 380px; }
  .tc-arrow { width: 38px; height: 38px; flex: 0 0 38px; font-size: 1rem; }
}

/* ══════════════════════════════════════
   TESTIMONIOS + FAQ (estilo doble columna)
══════════════════════════════════════ */
.tf-section {
  background: var(--blanco);
  padding: 5rem 1.5rem;
}

.tf-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

/* Encabezado de cada columna: rayita + palabra */
.tf-kicker {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: 2px;
  color: var(--verde); text-transform: uppercase;
  margin-bottom: .4rem;
}
.tf-kicker span { width: 26px; height: 3px; background: var(--verde); border-radius: 2px; display: inline-block; }

.tf-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; color: var(--verde-oscuro);
  margin-bottom: 1.8rem;
}

/* ── Burbuja del testimonio ── */
.testi-burbuja {
  position: relative;
  background: linear-gradient(145deg, var(--verde-oscuro), var(--verde-medio));
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 14px 36px rgba(30,92,36,.28);
  min-height: 270px;
  transition: opacity .35s ease, transform .35s ease;
}
.testi-burbuja.cambiando { opacity: 0; transform: translateY(8px); }

/* flechita de la burbuja apuntando a los avatares */
.testi-burbuja::after {
  content: '';
  position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top-color: var(--verde-medio);
  border-bottom: 0;
}

.testi-nombre strong { color: #FFD580; font-size: 1.05rem; font-weight: 700; }
.testi-nombre span   { color: rgba(255,255,255,.75); font-size: .85rem; margin-left: .3rem; }

.testi-estrellas { color: #FFC94A; letter-spacing: 3px; margin: .4rem 0 1rem; font-size: 1rem; }

.testi-burbuja p {
  color: rgba(255,255,255,.94);
  font-size: .95rem; line-height: 1.85;
  font-style: italic;
}

/* ── Fila de avatares ── */
.testi-avatares {
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; margin-top: 2rem;
}

.testi-av {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: var(--verde-claro);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  filter: grayscale(.4); opacity: .75;
}
.testi-av.activo {
  transform: scale(1.28);
  border-color: var(--verde);
  box-shadow: 0 6px 18px rgba(58,140,64,.35);
  filter: none; opacity: 1;
}
.testi-av:hover { transform: scale(1.15); opacity: 1; }
.testi-av.activo:hover { transform: scale(1.28); }

/* ── Acordeón FAQ ── */
.faq-lista { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  border: 2px solid var(--faq-color, var(--verde));
  border-radius: 14px;
  background: var(--blanco);
  overflow: hidden;
  transition: box-shadow .25s;
}
.faq-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }

.faq-pregunta {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: none; border: none; cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-family: 'Poppins', sans-serif;
  font-size: .93rem; font-weight: 600;
  color: var(--texto);
  text-align: left;
}
.faq-pregunta i {
  color: var(--faq-color, var(--verde));
  transition: transform .35s ease;
  flex-shrink: 0;
}

.faq-respuesta {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
}
.faq-respuesta p {
  padding: 0 1.3rem 1.2rem;
  font-size: .89rem; line-height: 1.75;
  color: var(--texto-2);
}
.faq-respuesta a { color: var(--verde); font-weight: 600; }

.faq-item.abierto .faq-pregunta i { transform: rotate(180deg); }

/* Responsive: una columna en tablet/celular */
@media (max-width: 900px) {
  .tf-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ══════════════════════════════════════
   REDISEÑO PREMIUM — PÁGINA PROGRAMAS
   (anula los estilos antiguos de las
   tarjetas de nivel y de features)
══════════════════════════════════════ */

/* ── Tarjetas de niveles educativos ── */
.programs-grid { counter-reset: nivel; gap: 1.8rem; }

/* color de acento propio por tarjeta */
.prog-card.c1 { --ac: #3A8C40; }
.prog-card.c2 { --ac: #7B4A26; }
.prog-card.c3 { --ac: #1A73E8; }
.prog-card.c4 { --ac: #7C3AED; }
.prog-card.c5 { --ac: #B45309; }

.prog-card {
  counter-increment: nivel;
  position: relative; overflow: hidden;
  background: var(--blanco) !important;
  border: 1px solid var(--borde);
  border-top: 1px solid var(--borde);
  border-radius: 22px;
  padding: 2.6rem 1.7rem 2.1rem;
  transition: transform .4s cubic-bezier(.2,.8,.3,1.15),
              box-shadow .4s ease, border-color .4s ease;
}

/* número de nivel gigante de marca de agua (01, 02, 03...) */
.prog-card::before {
  content: "0" counter(nivel);
  position: absolute; top: .4rem; right: 1rem;
  font-size: 4.2rem; font-weight: 800; line-height: 1;
  color: var(--ac);
  opacity: .09;
  transition: opacity .4s, transform .4s;
}

/* barra de gradiente que crece de izquierda a derecha al hover */
.prog-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ac), #FFD580);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
  border-radius: 22px 22px 0 0;
}

.prog-card:hover {
  transform: translateY(-10px);
  border-color: var(--ac);
  box-shadow: 0 20px 44px rgba(0,0,0,.13);
}
.prog-card:hover::after  { transform: scaleX(1); }
.prog-card:hover::before { opacity: .18; transform: scale(1.1); }

/* emoji dentro de una cápsula de color que flota */
.prog-card .emoji {
  width: 76px; height: 76px;
  margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.3rem;
  border-radius: 24px;
  background: color-mix(in srgb, var(--ac) 12%, white);
  border: 2px solid color-mix(in srgb, var(--ac) 28%, white);
  animation: capsulaFlota 3.6s ease-in-out infinite alternate;
  transition: transform .4s ease;
}
.prog-card.c1 .emoji { animation-delay: 0s; }
.prog-card.c2 .emoji { animation-delay: .4s; }
.prog-card.c3 .emoji { animation-delay: .8s; }
.prog-card.c4 .emoji { animation-delay: 1.2s; }
.prog-card.c5 .emoji { animation-delay: 1.6s; }

@keyframes capsulaFlota {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}
.prog-card:hover .emoji {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-6deg);
}

/* edad como pastilla de color */
.prog-card .age {
  display: inline-block;
  background: color-mix(in srgb, var(--ac) 12%, white);
  color: var(--ac);
  padding: .28rem .85rem;
  border-radius: 50px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: .8rem;
}

.prog-card h3 { color: var(--ac); font-size: 1.1rem; }

/* respeto por usuarios con "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .prog-card .emoji { animation: none; }
}

/* ── Video de preescolar: toque premium ── */
.preschool-video-wrap video {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(30,92,36,.22);
  transition: transform .4s ease, box-shadow .4s ease;
}
.preschool-video-wrap video:hover {
  transform: scale(1.015);
  box-shadow: 0 18px 40px rgba(30,92,36,.3);
}

/* ── ¿Por Qué Elegirnos? — tarjetas con vida ── */
.features-grid { gap: 1.6rem; }

.feature-item:nth-child(1) { --fc: #3A8C40; }
.feature-item:nth-child(2) { --fc: #1A73E8; }
.feature-item:nth-child(3) { --fc: #7C3AED; }
.feature-item:nth-child(4) { --fc: #B45309; }
.feature-item:nth-child(5) { --fc: #C0392B; }
.feature-item:nth-child(6) { --fc: #7B4A26; }

.feature-item {
  position: relative; overflow: hidden;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 3px 14px rgba(0,0,0,.05);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* barra lateral de color que crece al hover */
.feature-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--fc), #FFD580);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s ease;
}

.feature-item:hover {
  background: var(--blanco);
  transform: translateY(-7px);
  border-color: var(--fc);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}
.feature-item:hover::before { transform: scaleY(1); }

/* ícono en chip de color con giro al hover */
.feature-icon {
  min-width: 58px; width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--fc) 12%, white);
  border: 2px solid color-mix(in srgb, var(--fc) 25%, white);
  transition: transform .4s cubic-bezier(.2,.8,.3,1.3), background .35s;
}
.feature-item:hover .feature-icon {
  transform: rotate(-10deg) scale(1.15);
  background: color-mix(in srgb, var(--fc) 22%, white);
}

.feature-item h4 { color: var(--fc); transition: color .3s; }

/* ══════════════════════════════════════
   REDISEÑO PREMIUM — TARJETAS DE TODO EL SITIO
   (mismo lenguaje de diseño que Programas:
   cápsulas flotantes, barras de gradiente,
   colores de identidad y hover con vida)
══════════════════════════════════════ */

/* ── INDEX: tarjetas "Explora la Escuela" (.preview-card) ── */
.preview-card {
  border-top: 1px solid var(--borde) !important;
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 2.3rem 1.5rem 2rem;
  transition: transform .4s cubic-bezier(.2,.8,.3,1.15),
              box-shadow .4s ease, border-color .4s ease;
}

/* barra superior de gradiente que crece al hover */
.preview-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ac, var(--verde)), #FFD580);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
  border-radius: 22px 22px 0 0;
}
.preview-card:hover::before { transform: scaleX(1); }

/* apagar la barrita inferior del diseño viejo */
.preview-card::after { display: none; }

.preview-card:hover {
  transform: translateY(-10px);
  border-color: var(--ac, var(--verde));
  box-shadow: 0 20px 44px rgba(0,0,0,.13);
}

/* ícono en cápsula flotante */
.preview-icon {
  width: 74px; height: 74px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  border-radius: 24px;
  background: color-mix(in srgb, var(--ac, var(--verde)) 12%, white);
  border: 2px solid color-mix(in srgb, var(--ac, var(--verde)) 28%, white);
  animation: capsulaFlota 3.6s ease-in-out infinite alternate;
  transition: transform .4s ease;
}
.preview-card:nth-child(1) .preview-icon { animation-delay: 0s; }
.preview-card:nth-child(2) .preview-icon { animation-delay: .4s; }
.preview-card:nth-child(3) .preview-icon { animation-delay: .8s; }
.preview-card:nth-child(4) .preview-icon { animation-delay: 1.2s; }
.preview-card:nth-child(5) .preview-icon { animation-delay: 1.6s; }
.preview-card:hover .preview-icon {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-6deg);
}

.preview-card h3 { color: var(--ac, var(--verde)); }

/* ── INDEX: estadísticas con toque vivo ── */
.stat-item { transition: transform .35s ease; }
.stat-item:hover { transform: translateY(-5px) scale(1.04); }

/* ── NOSOTROS: tarjetas de Valores (.value-card) ── */
.value-card:nth-child(1) { --vc: #3A8C40; }
.value-card:nth-child(2) { --vc: #B45309; }
.value-card:nth-child(3) { --vc: #1A73E8; }
.value-card:nth-child(4) { --vc: #7C3AED; }
.value-card:nth-child(5) { --vc: #0D9488; }
.value-card:nth-child(6) { --vc: #C0392B; }

.value-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  border-radius: 20px;
  padding: 2.2rem 1.4rem 1.9rem;
  transition: transform .4s cubic-bezier(.2,.8,.3,1.15),
              box-shadow .4s ease, border-color .4s ease;
}

.value-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vc, var(--verde)), #FFD580);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
}
.value-card:hover::before { transform: scaleX(1); }

.value-card:hover {
  transform: translateY(-9px);
  border-color: var(--vc, var(--verde));
  border-bottom-color: var(--vc, var(--verde));
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
}

.value-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1rem;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 2rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--vc, var(--verde)) 12%, white);
  border: 2px solid color-mix(in srgb, var(--vc, var(--verde)) 28%, white);
  animation: capsulaFlota 3.6s ease-in-out infinite alternate;
  transition: transform .4s ease;
}
.value-card:nth-child(odd)  .value-icon { animation-delay: .3s; }
.value-card:nth-child(even) .value-icon { animation-delay: .9s; }
.value-card:hover .value-icon {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-6deg);
}

.value-card h3 { color: var(--vc, var(--verde-oscuro)); }

/* ── NOSOTROS: Misión y Visión (.mv-card) ── */
.mv-card {
  position: relative;
  border-left-width: 5px;
  transition: transform .4s ease, box-shadow .4s ease, border-left-width .3s ease;
}
.mv-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(0,0,0,.13);
  border-left-width: 10px;
}
.mv-card h3 { transition: transform .3s ease; display: inline-block; }
.mv-card:hover h3 { transform: scale(1.06); }

/* ── CONTACTO: datos de contacto (.info-item) ── */
.info-item:nth-child(1) { --ic: #1A73E8; }
.info-item:nth-child(2) { --ic: #3A8C40; }
.info-item:nth-child(3) { --ic: #B45309; }
.info-item:nth-child(4) { --ic: #C0392B; }

.info-item {
  position: relative; overflow: hidden;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.info-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ic, var(--verde)), #FFD580);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s ease;
}
.info-item:hover {
  transform: translateY(-5px);
  border-color: var(--ic, var(--verde));
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
}
.info-item:hover::before { transform: scaleY(1); }

.info-item .info-icon { transition: transform .4s cubic-bezier(.2,.8,.3,1.3); }
.info-item:hover .info-icon { transform: rotate(-10deg) scale(1.15); }

/* Respeto por "reducir movimiento" en todas las cápsulas nuevas */
@media (prefers-reduced-motion: reduce) {
  .preview-icon, .value-icon { animation: none; }
}

/* ══════════════════════════════════════
   FONDOS CON VIDA — INDEX
   (adiós al blanco infinito: degradados
   suaves + capa de decoraciones escolares)
══════════════════════════════════════ */
.home-sections {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F8F2 55%, #FBF6EC 100%);
}

.platforms-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FBF6EC 0%, #FFFFFF 50%, #F2F8F2 100%) !important;
}

.tf-section {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #F2F8F2 0%, #FFFFFF 45%, #FAF3E3 100%);
}

/* el contenido de esas secciones siempre por encima de las decoraciones */
.home-sections > *:not(.deco-capa),
.platforms-section > *:not(.deco-capa),
.tf-section > *:not(.deco-capa) {
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════
   ORDEN DE CUADRÍCULAS
   · Valores (Nosotros): 2 filas de 3
   · Por qué elegir (Programas): 2 filas de 3
   · Niveles (Programas): 4 arriba + 5.ª centrada
   Tarjetas del mismo tamaño en cada grupo.
══════════════════════════════════════ */

/* Valores: 3 columnas exactas, tarjetas de igual altura */
.values-grid { grid-template-columns: repeat(3, 1fr) !important; }
.values-grid > * { display: flex; }
.values-grid .value-card { width: 100%; }

/* Por qué elegirnos: 3 columnas exactas, igual altura */
.features-grid { grid-template-columns: repeat(3, 1fr) !important; }
.features-grid > * { display: flex; }
.features-grid .feature-item { width: 100%; }

/* Niveles: rejilla de 8 columnas invisibles;
   cada tarjeta ocupa 2 → caben 4 por fila,
   y la 5.ª arranca en la columna 4 → queda centrada */
.programs-grid { grid-template-columns: repeat(8, 1fr) !important; }
.programs-grid > * { grid-column: span 2; display: flex; }
.programs-grid > *:nth-child(5) { grid-column: 4 / span 2; }
.programs-grid .prog-card { width: 100%; }

/* Tablet: valores/features a 2 columnas; niveles 2+2 y la 5.ª centrada */
@media (max-width: 1000px) {
  .values-grid, .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .programs-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .programs-grid > *:nth-child(5) { grid-column: 2 / span 2; }
}

/* Celular: todo a una columna */
@media (max-width: 620px) {
  .values-grid, .features-grid, .programs-grid { grid-template-columns: 1fr !important; }
  .programs-grid > * { grid-column: auto !important; }
}

.wayground-section{
  padding: 50px 20px;
  background:#fff;
}

.wayground-card{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
  background:#ffffff;
  border-radius:22px;
  padding:30px;
  box-shadow:0 12px 35px rgba(0,0,0,.12);
}

.wayground-video video{
  width:100%;
  height:300px;
  object-fit:cover;
  border-radius:18px;
}

.wayground-tag{
  display:inline-block;
  background:#e8f5e9;
  color:#166534;
  font-size:13px;
  font-weight:700;
  padding:8px 14px;
  border-radius:20px;
  margin-bottom:12px;
}

.wayground-content h2{
  font-size:32px;
  line-height:1.2;
  color:#16351f;
  margin:0 0 15px;
}

.wayground-content p{
  font-size:16px;
  line-height:1.6;
  color:#444;
}

.wayground-icons{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  margin-top:18px;
}

.wayground-icons div{
  font-size:22px;
}

.wayground-icons span{
  display:block;
  font-size:13px;
  color:#333;
}

.wayground-btn{
  display:inline-block;
  margin-top:20px;
  background:#166534;
  color:white;
  padding:12px 24px;
  border-radius:30px;
  text-decoration:none;
  font-weight:700;
}

@media(max-width:900px){
  .wayground-card{
    grid-template-columns:1fr;
  }

  .wayground-content h2{
    font-size:26px;
  }

  .wayground-video video{
    height:240px;
  }
}
