/* ============================================================
   Mi Escuela Infantil — hoja de estilos
   Paleta cálida infantil · diseño original 2026
   ============================================================ */

:root {
  --crema:      #FFF8F0;
  --crema-2:    #FFF1E3;
  --coral:      #FF7A59;
  --coral-700:  #ED5E3B;
  --melocoton:  #FFD8A8;
  --salvia:     #7FB069;
  --salvia-700: #5E9150;
  --cielo:      #6EC1E4;
  --amarillo:   #FFC94D;
  --tinta:      #3D3A4B;
  --tinta-soft: #6B6880;
  --blanco:     #ffffff;
  --linea:      #F0E5D8;

  --radio:      18px;
  --radio-lg:   28px;
  --sombra:     0 10px 30px rgba(61,58,75,.08);
  --sombra-lg:  0 20px 50px rgba(61,58,75,.12);
  --max:        1140px;
  --t:          .25s ease;

  --ff-title: "Baloo 2", system-ui, sans-serif;
  --ff-body:  "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--ff-title); line-height: 1.15; color: var(--tinta); font-weight: 700; }
a { color: var(--coral-700); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

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

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ff-title); font-weight: 600; font-size: 1rem;
  padding: .72em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap; text-align: center;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(255,122,89,.35); }
.btn-primary:hover { background: var(--coral-700); color: #fff; }
.btn-soft   { background: var(--melocoton); color: var(--coral-700); }
.btn-soft:hover { background: #ffcb8e; color: var(--coral-700); }
.btn-ghost  { background: transparent; border-color: var(--linea); color: var(--tinta); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-700); }
.btn-sm  { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg  { padding: .9em 1.8em; font-size: 1.08rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--ff-title); font-weight: 600;
  color: var(--coral-700); background: var(--crema-2);
  padding: .35em 1em; border-radius: 999px; font-size: .82rem;
  letter-spacing: .02em; margin-bottom: .9rem;
}
.hl { color: var(--coral); position: relative; white-space: nowrap; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; }
.logo-mark { display: inline-flex; filter: drop-shadow(0 4px 8px rgba(255,122,89,.3)); }
.logo-text { font-family: var(--ff-title); font-weight: 800; font-size: 1.18rem; color: var(--tinta); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-list a { font-family: var(--ff-title); font-weight: 600; color: var(--tinta); font-size: .98rem; transition: color var(--t); }
.nav-list a:hover { color: var(--coral); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--tinta); border-radius: 3px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, var(--crema-2) 0%, var(--crema) 55%);
  padding: 64px 0 90px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: .6rem; }
.lead { font-size: 1.16rem; color: var(--tinta-soft); margin-bottom: 1.6rem; max-width: 38ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.trust-inline { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; color: var(--tinta-soft); font-size: .95rem; }
.trust-inline strong { color: var(--tinta); font-family: var(--ff-title); }
.trust-inline li { position: relative; padding-left: 1.4rem; }
.trust-inline li::before { content: "✓"; position: absolute; left: 0; color: var(--salvia-700); font-weight: 800; }

.hero-art { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.blob { position: absolute; border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%; filter: blur(2px); opacity: .8; animation: float 8s ease-in-out infinite; }
.blob-1 { width: 320px; height: 320px; background: var(--melocoton); top: 10%; left: 8%; }
.blob-2 { width: 220px; height: 220px; background: #BfE3C9; bottom: 6%; right: 8%; animation-delay: -3s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-18px) } }

/* Placeholders de foto */
.photo-ph {
  position: relative; border-radius: var(--radio-lg);
  background: linear-gradient(135deg, #FFE6CC 0%, #FBD3B4 45%, #C9E7D2 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; color: var(--coral-700); text-align: center; padding: 1rem;
  box-shadow: var(--sombra-lg); overflow: hidden; min-height: 160px;
}
.photo-ph .ph-emoji { font-size: 2.6rem; }
.photo-ph .ph-label { font-family: var(--ff-title); font-weight: 600; font-size: .85rem; color: #B6633F; opacity: .85; }
.hero-photo { width: 100%; max-width: 420px; aspect-ratio: 4/3; z-index: 2; }
.photo-ph.tall { aspect-ratio: 3/4; height: 100%; min-height: 380px; }
.photo-ph.round { width: 110px; height: 110px; min-height: 0; border-radius: 50%; margin: 0 auto .9rem; }
.photo-ph.round .ph-emoji { font-size: 2.6rem; }

/* Olas divisorias */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; }
.wave-bottom { bottom: -1px; }
.wave svg { width: 100%; height: 60px; }

/* ---------------- Barra de confianza ---------------- */
.trust-bar { background: #fff; padding: 8px 0 4px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; align-items: center; gap: .7rem; background: var(--crema);
  border: 1px solid var(--linea); border-radius: var(--radio);
  padding: .9rem 1rem; font-size: .92rem; font-weight: 600; color: var(--tinta);
}
.trust-item .ti-ico { font-size: 1.4rem; }

/* ---------------- Secciones ---------------- */
.section { padding: 78px 0; }
.section-tint { background: var(--crema); }
.section-cta { background: linear-gradient(135deg, #FFE9D6, #FCEFE0); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: .6rem; }
.section-sub { color: var(--tinta-soft); font-size: 1.08rem; }

/* Grids de tarjetas */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card, .aula-card, .team-card, .quote, .step {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-lg);
  padding: 1.8rem 1.5rem; box-shadow: var(--sombra); transition: transform var(--t), box-shadow var(--t);
}
.card:hover, .aula-card:hover, .quote:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); }
.card-ico { font-size: 2.4rem; margin-bottom: .6rem; }
.card h3 { font-size: 1.22rem; margin-bottom: .3rem; }
.card p, .aula-card p, .quote p { color: var(--tinta-soft); }

/* Aulas */
.aula-card { text-align: left; }
.aula-band { display: inline-block; font-family: var(--ff-title); font-weight: 700; color: #fff; padding: .3em 1em; border-radius: 999px; font-size: .85rem; margin-bottom: .9rem; }
.band-a { background: var(--coral); }
.band-b { background: var(--salvia); }
.band-c { background: var(--cielo); }
.aula-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }

/* Split (proyecto / contacto) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .8rem; }
.split-copy p { color: var(--tinta-soft); margin-bottom: 1.2rem; }
.check-list { list-style: none; margin-bottom: 1.6rem; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--tinta); }
.check-list li::before { content: "🌟"; position: absolute; left: 0; }

/* Timeline */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 54px; top: 10px; bottom: 10px; width: 3px; background: var(--melocoton); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: start; padding: .7rem 0; position: relative; }
.t-hour { font-family: var(--ff-title); font-weight: 700; color: var(--coral-700); background: #fff; border: 2px solid var(--melocoton); border-radius: 999px; padding: .25em .1em; text-align: center; font-size: .9rem; z-index: 1; }
.timeline h4 { font-size: 1.12rem; margin-bottom: .15rem; }
.timeline p { color: var(--tinta-soft); font-size: .98rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.gallery .photo-ph { min-height: 0; height: 100%; }
.gallery .g1 { grid-column: span 2; grid-row: span 2; }
.gallery .g2 { grid-column: span 2; }
.gallery .g3 { grid-column: span 1; }
.gallery .g4 { grid-column: span 1; }
.gallery .g5 { grid-column: span 2; }

/* Equipo */
.team-card { text-align: center; }
.team-card h3 { font-size: 1.15rem; }
.team-role { color: var(--tinta-soft); font-size: .92rem; }

/* Testimonios */
.quote { display: flex; flex-direction: column; gap: .7rem; }
.stars { color: var(--amarillo); font-size: 1.1rem; letter-spacing: 2px; }
.quote p { font-size: 1.04rem; font-style: italic; }
.quote footer { font-family: var(--ff-title); font-weight: 600; color: var(--tinta); }

/* Steps matrícula */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; position: relative; background: #fff; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--ff-title); font-weight: 800; font-size: 1.3rem; margin-bottom: .7rem; box-shadow: 0 8px 16px rgba(255,122,89,.3); }
.step h4 { font-size: 1.15rem; margin-bottom: .3rem; }
.step p { color: var(--tinta-soft); }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: .2rem 1.2rem; box-shadow: var(--sombra); }
.faq summary { font-family: var(--ff-title); font-weight: 600; font-size: 1.05rem; padding: 1rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.5rem; line-height: 1; transition: var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--tinta-soft); padding-bottom: 1rem; }

/* Contacto */
.contact-list { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; color: var(--tinta); }
.contact-list a { color: var(--tinta); }
.contact-list a:hover { color: var(--coral-700); }
.social-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-row a { font-family: var(--ff-title); font-weight: 600; color: var(--coral-700); border: 1px solid var(--linea); padding: .4em 1em; border-radius: 999px; background: #fff; transition: var(--t); }
.social-row a:hover { background: var(--crema-2); }
.social-row.light a { background: transparent; }

/* Formulario */
.visit-form { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-lg); padding: 2rem; box-shadow: var(--sombra-lg); }
.visit-form h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border: 2px solid var(--linea); border-radius: 14px;
  font-family: var(--ff-body); font-size: 1rem; background: var(--crema); color: var(--tinta);
  transition: border var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); background: #fff; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--tinta-soft); margin: .4rem 0 1.1rem; }
.consent input { margin-top: .25rem; }
.form-note { margin-top: .8rem; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: var(--salvia-700); }
.form-note.err { color: var(--coral-700); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--tinta); color: #E9E6F0; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; display: block; margin-bottom: .6rem; }
.footer-brand p { color: #B8B3C7; font-size: .95rem; margin-bottom: 1rem; }
.footer-brand .social-row a { color: #fff; border-color: rgba(255,255,255,.2); }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: #B8B3C7; font-size: .95rem; transition: color var(--t); }
.footer-col a:hover { color: var(--melocoton); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #948FA8; font-size: .88rem; }

/* ---------------- WhatsApp flotante ---------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45); transition: transform var(--t);
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0%{ box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4) } 70%{ box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0) } 100%{ box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0) } }

/* ---------------- Animación reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.hide-mobile { display: inline-flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; order: -1; }
  .lead { max-width: none; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .photo-ph.tall { min-height: 300px; }
}

@media (max-width: 760px) {
  /* Menú móvil */
  .nav-toggle { display: flex; }
  .main-nav { position: static; }
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--linea);
    padding: 1rem 22px 1.4rem; box-shadow: var(--sombra-lg);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { padding: .3rem 0; border-bottom: 1px solid var(--crema-2); }
  .nav-cta-mobile { display: block; padding-top: .8rem; border: 0; }
  .nav-cta-mobile .btn { width: 100%; }
  .hide-mobile { display: none; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery .g1 { grid-column: span 2; grid-row: span 2; }
  .gallery .g5 { grid-column: span 2; }
  .footer-bottom { justify-content: center; text-align: center; }
  .section { padding: 56px 0; }
}

@media (max-width: 420px) {
  .cards-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1rem; }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}
