/* =========================================================
   ABC FOR KIDS — style.css
   Academia de inglés infantil · La Araucanía
   HTML5 + CSS3 nativo · Sin frameworks ni librerías externas
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,600&display=swap');

/* -------------------- 1. VARIABLES -------------------- */
:root{
  /* Colores institucionales */
  --color-primary:        #d43ece;   /* fucsia institucional */
  --color-primary-dark:   #ad2ea3;   /* hover / texto sobre fondos claros */
  --color-primary-tint:   #f6dcf4;   /* fondos muy suaves con el fucsia */
  --color-pink:           #fad0d0;   /* rosado suave institucional */
  --color-pink-soft:      #fef4f4;   /* rosado casi blanco, fondo de secciones */

  --color-white:          #ffffff;
  --color-gray-bg:        #faf9fb;   /* gris muy claro, secciones alternas */
  --color-gray-line:      #eee6ea;

  --color-text:           #322c34;   /* antracita, texto principal */
  --color-text-muted:     #726a72;   /* gris cálido, texto secundario */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(50, 20, 45, .06);
  --shadow-md: 0 14px 34px rgba(212, 62, 206, .16);
  --shadow-card: 0 10px 26px rgba(50, 20, 45, .08);

  --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: all .3s ease;
  --container: 1180px;
}

/* -------------------- 2. RESET BASE -------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3,h4,p{ margin:0; }

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

section{ padding: 88px 0; }
.section-alt{ background: var(--color-gray-bg); }
.section-pink{ background: var(--color-pink-soft); }

.eyebrow{
  display:inline-block;
  font-weight:800;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

h1{ font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight:900; line-height:1.12; letter-spacing:-.01em; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight:900; line-height:1.2; letter-spacing:-.01em; }
h3{ font-size: 1.25rem; font-weight:800; }
.section-head{ max-width: 640px; margin: 0 auto 48px; text-align:center; }
.section-head p{ color: var(--color-text-muted); margin-top:14px; font-size:1.05rem; }
.text-muted{ color: var(--color-text-muted); }

/* -------------------- 3. ANIMACIONES -------------------- */
@keyframes fadeSlideUp{
  from{ opacity:0; transform: translateY(15px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes gentlePulse{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.06); }
}
@keyframes floatSlow{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-10px) rotate(2deg); }
}

.fade-up{
  animation: fadeSlideUp .7s ease both;
}
.fade-up.delay-1{ animation-delay:.12s; }
.fade-up.delay-2{ animation-delay:.24s; }
.fade-up.delay-3{ animation-delay:.36s; }

/* Reveal on scroll (JS añade .is-visible) */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal{ opacity:1; transform:none; }
}

/* -------------------- 4. BOTONES -------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight:800;
  font-size: .98rem;
  transition: var(--transition);
  will-change: transform;
}
.btn-primary{
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover{
  transform: scale(1.03);
  background: var(--color-primary-dark);
  box-shadow: 0 18px 36px rgba(212,62,206,.26);
}
.btn-outline{
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover{
  transform: scale(1.03);
  background: var(--color-primary-tint);
}
.btn-whatsapp{
  background:#25D366;
  color:#fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.28);
}
.btn-whatsapp:hover{
  transform: scale(1.03);
  background:#1fb959;
}
.btn-play{
  width:64px; height:64px; border-radius:50%;
  background: var(--color-white);
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md);
  animation: gentlePulse 2.4s ease-in-out infinite;
}
.btn-play svg{ margin-left:3px; }

/* -------------------- 5. TOP BAR -------------------- */
.topbar{
  background: var(--color-primary-dark);
  color: #fff;
  font-size: .82rem;
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:8px;
  padding-bottom:8px;
  gap:16px;
  flex-wrap:wrap;
}
.topbar-locations{ display:flex; align-items:center; gap:8px; font-weight:700; }
.topbar-channels{ display:flex; align-items:center; gap:18px; }
.topbar-channels a{ display:inline-flex; align-items:center; gap:6px; opacity:.92; transition: var(--transition); }
.topbar-channels a:hover{ opacity:1; transform: translateY(-1px); }

/* -------------------- 6. HEADER -------------------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:1.15rem; color: var(--color-primary-dark); }
.brand img{ height:44px; width:auto; }

.main-nav ul{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  position:relative;
  font-weight:700;
  font-size:.96rem;
  padding: 6px 0;
}
.main-nav a::after{
  content:'';
  position:absolute; left:50%; bottom:0;
  width:0; height:2px;
  background: var(--color-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ width:100%; }
.main-nav a[aria-current="page"]{ color: var(--color-primary-dark); }

.header-actions{ display:flex; align-items:center; gap:18px; }

.hamburger{
  display:none;
  width:40px; height:40px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.hamburger span{
  width:24px; height:2.5px; background: var(--color-text);
  border-radius:2px; transition: var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* -------------------- 7. HERO -------------------- */
.hero{
  position:relative;
  min-height: 640px;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding: 60px 0;
}
.hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-media picture, .hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* leve velo oscuro para que el texto y el halo mantengan contraste sobre cualquier foto */
.hero-media::after{
  content:'';
  position:absolute; inset:0;
  background: rgba(50,20,45,.08);
}
.hero .container{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
}
.hero-copy{
  position:relative;
  max-width: 640px;
  width:100%;
  text-align:center;
  padding: 56px 48px;
}
/* halo blanco suave y difuminado detrás del texto */
.hero-copy::before{
  content:'';
  position:absolute;
  inset:-30px;
  z-index:-1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,0) 100%);
  filter: blur(6px);
}
.hero-copy .eyebrow{ margin-bottom:18px; }
.hero-copy h1{ margin-bottom:20px; }
.hero-copy p{
  font-size:1.12rem;
  color: var(--color-text-muted);
  max-width:520px;
  margin: 0 auto 32px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }

@media (max-width: 640px){
  .hero{ min-height: 560px; padding: 40px 0; }
  .hero-copy{ padding: 34px 22px; }
}
.hero-simple{ padding: 56px 0 64px; text-align:center; }
.hero-simple .container{ max-width:760px; }
.hero-simple p{ color: var(--color-text-muted); font-size:1.08rem; margin-top:16px; }

/* -------------------- 8. TARJETAS / CARDS -------------------- */
.card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--color-gray-line);
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon{
  width:56px; height:56px; border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.card h3{ margin-bottom:10px; }
.card p{ color: var(--color-text-muted); font-size:.96rem; }

.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:26px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:32px; }

/* Ruta de aprendizaje: elemento firma — sendero punteado que conecta las etapas */
.path-track{ position:relative; }
.path-track::before{
  content:'';
  position:absolute;
  top:28px; left:12.5%; right:12.5%;
  height:0;
  border-top: 3px dashed var(--color-pink);
  z-index:0;
}
.path-step{ position:relative; z-index:1; text-align:center; }
.path-dot{
  width:56px; height:56px; margin:0 auto 18px;
  border-radius:50%;
  background: var(--color-white);
  border:3px solid var(--color-primary);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}
.path-step .age{
  display:inline-block; margin-top:10px;
  font-size:.8rem; font-weight:800; color:var(--color-primary-dark);
  background: var(--color-primary-tint); padding:3px 12px; border-radius: var(--radius-pill);
}

@media (max-width:900px){
  .path-track::before{ display:none; }
}

/* -------------------- 9. UBICACIONES -------------------- */
.location-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.location-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.location-card .loc-media{ aspect-ratio: 4/3; overflow:hidden; }
.location-card .loc-media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.location-card:hover .loc-media img{ transform: scale(1.05); }
.location-card .loc-body{ padding:24px; }

/* -------------------- 10. TESTIMONIOS / COMUNIDAD -------------------- */
.testimonial{
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap:44px;
  align-items:center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.testimonial img{ border-radius: var(--radius-md); }
.testimonial blockquote{
  font-size:1.2rem;
  font-style: italic;
  font-weight:700;
  color: var(--color-text);
  margin:0 0 14px;
}
.testimonial cite{ font-style:normal; color: var(--color-text-muted); font-weight:700; font-size:.9rem; }

/* -------------------- 11. VIDEO ENFOQUE -------------------- */
.video-block{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
}
.video-block video{ width:100%; aspect-ratio:16/9; object-fit:cover; background:#111; }
.video-play-overlay{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(50,20,45,.18);
  transition: var(--transition);
}
.video-play-overlay:hover{ background: rgba(50,20,45,.28); }

/* -------------------- 12. FAQ ACCORDION -------------------- */
.faq-item{
  border-bottom:1px solid var(--color-gray-line);
  padding: 6px 0;
}
.faq-item summary{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 4px;
  font-weight:800;
  font-size:1.02rem;
  list-style:none;
  cursor:pointer;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chevron{
  flex:none; width:22px; height:22px;
  transition: transform .3s ease;
  color: var(--color-primary);
}
.faq-item[open] summary .chevron{ transform: rotate(180deg); }
.faq-item .faq-answer{
  padding: 0 4px 20px;
  color: var(--color-text-muted);
  animation: fadeSlideUp .35s ease both;
}

/* -------------------- 13. GALERÍA -------------------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap:14px;
}
.gallery-grid a{ border-radius: var(--radius-md); overflow:hidden; display:block; }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery-grid a:hover img{ transform: scale(1.05); }
.gallery-grid .tall{ grid-row: span 2; }

/* -------------------- 14. TIENDA / PRODUCTOS -------------------- */
.product-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display:flex; flex-direction:column;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media{ aspect-ratio:1/1; overflow:hidden; background: var(--color-pink-soft); }
.product-media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.product-card:hover .product-media img{ transform: scale(1.05); }
.product-body{ padding:22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-meta{ display:flex; gap:8px; flex-wrap:wrap; margin:4px 0 10px; }
.tag{
  font-size:.74rem; font-weight:800; color: var(--color-primary-dark);
  background: var(--color-primary-tint); padding:4px 10px; border-radius: var(--radius-pill);
}
.product-price{ font-weight:900; font-size:1.2rem; color: var(--color-primary-dark); margin-top:auto; }
.product-card .btn{ margin-top:14px; justify-content:center; }

/* -------------------- 15. INSCRIPCIONES / CTA DESTACADO -------------------- */
.cta-highlight{
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color:#fff;
  text-align:center;
  box-shadow: var(--shadow-md);
}
.cta-highlight h2{ color:#fff; margin-bottom:14px; }
.cta-highlight p{ color: rgba(255,255,255,.9); max-width:560px; margin:0 auto 30px; }
.cta-highlight .btn-whatsapp{ background:#fff; color:#128C4A; }
.cta-highlight .btn-whatsapp:hover{ background:#f4f4f4; }

.status-banner{
  display:flex; align-items:center; gap:14px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-weight:800;
  padding:14px 22px;
  border-radius: var(--radius-md);
  margin-bottom:36px;
}

/* -------------------- 16. PILARES / METODOLOGÍA -------------------- */
.pillar-card{ text-align:center; }
.pillar-card .card-icon{ margin-left:auto; margin-right:auto; }

.founder-block{
  display:grid; grid-template-columns: .8fr 1.2fr; gap:48px; align-items:center;
}
.founder-block img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.monthly-strip{
  display:flex; gap:20px; overflow-x:auto; padding-bottom:12px; scroll-snap-type:x mandatory;
}
.monthly-strip::-webkit-scrollbar{ height:6px; }
.monthly-strip::-webkit-scrollbar-thumb{ background: var(--color-pink); border-radius:4px; }
.month-card{
  flex:0 0 220px; scroll-snap-align:start;
  background: var(--color-white); border-radius: var(--radius-md);
  padding:20px; box-shadow: var(--shadow-card);
}
.month-card .eyebrow{ margin-bottom:10px; }

/* -------------------- 17. FOOTER -------------------- */
.site-footer{
  background: #2b1229;
  color: rgba(255,255,255,.86);
  padding-top: 72px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4{ color:#fff; font-size:1rem; font-weight:800; margin-bottom:18px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{
  position:relative; opacity:.82; font-size:.94rem; transition: var(--transition);
}
.footer-col a::after{
  content:''; position:absolute; left:50%; bottom:-2px; width:0; height:1px;
  background:#fff; transition: var(--transition); transform: translateX(-50%);
}
.footer-col a:hover{ opacity:1; }
.footer-col a:hover::after{ width:100%; }
.footer-brand p{ opacity:.78; font-size:.94rem; max-width:280px; margin-top:14px; }
.footer-social{ display:flex; gap:14px; margin-top:20px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  background: rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  transition: var(--transition);
}
.footer-social a:hover{ background: var(--color-primary); transform: translateY(-3px); }
.sub-footer{
  padding: 20px 0 26px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:.82rem; opacity:.65; flex-wrap:wrap; gap:10px;
}

/* -------------------- 18. WHATSAPP FLOTANTE -------------------- */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:90;
  width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: var(--transition);
}
.whatsapp-float:hover{ transform: scale(1.08); }

/* -------------------- 19. UTILIDADES -------------------- */
.text-center{ text-align:center; }
.mt-lg{ margin-top:48px; }
.flex-center{ display:flex; justify-content:center; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------- 20. RESPONSIVE -------------------- */
@media (max-width: 1020px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(3,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-media{ order:-1; }
  .testimonial, .founder-block{ grid-template-columns:1fr; }
  .founder-block img{ order:-1; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns:1fr; }

  .main-nav{
    position:fixed; inset: 68px 0 0 0;
    background:#fff;
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y:auto;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:22px; }
  .header-actions .btn-primary{ display:none; }
  .hamburger{ display:flex; }
  .topbar-locations span:not(:first-child){ display:none; }
}

@media (max-width: 640px){
  section{ padding: 60px 0; }
  .grid-4, .grid-3{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .footer-grid{ grid-template-columns: 1fr; gap:32px; }
  .cta-highlight{ padding: 38px 24px; }
  .path-track::before{ display:none; }
}
