/* =========================================================
   Gimnasio Montessori Creativo — estilos
   Paleta tomada del logo y del manual de marca (versión Amigable)
   ========================================================= */
:root {
  /* Colores del logo */
  --yellow:  #f5be40;  /* sol */
  --orange:  #ee6340;  /* M */
  --salmon:  #ef8f86;  /* O */
  --pink:    #e8456b;  /* N / sonrisa */
  --magenta: #e5287a;  /* O */
  --blue:    #0e6da8;  /* T / I */
  --sky:     #2da9e0;  /* manual */
  --green:   #3aa276;  /* E / R */
  --teal:    #236e68;  /* manual */
  --purple:  #6b3a8e;  /* S / A / slogan */

  /* Pasteles (manual de marca) */
  --pastel-yellow: #fbf0d6;
  --pastel-coral:  #fde4dc;
  --pastel-lilac:  #e9eaf5;
  --pastel-mint:   #e3f1ee;

  --ink: #2b2140;
  --ink-soft: #625a72;
  --paper: #fffaf0;
  --line: rgba(43, 33, 64, .09);
  --shadow-soft: 0 12px 30px rgba(43, 33, 64, .08);
  --shadow-pop: 0 18px 40px rgba(107, 58, 142, .18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.section { padding: 96px 24px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-title { font-size: clamp(30px, 4vw, 44px); margin: 16px 0; }
.section-text { color: var(--ink-soft); font-size: 18px; margin-bottom: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--pastel-yellow); color: #8a5a00;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: none; border-radius: 999px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  white-space: nowrap; transition: transform .18s, box-shadow .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 14px 30px rgba(37, 211, 102, .28); }

/* ============ NAVBAR ============ */
/* Header translúcido sobre la portada (como la referencia) */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* Crayones animados colgando bajo el header (reemplazan las nubes) */
.crayons {
  position: absolute; left: 0; right: 0; top: 100%;
  pointer-events: none; background-repeat: repeat-x;
  background-image: url("../assets/crayones.svg");
}
.crayons-front {
  height: 64px; background-size: 300px 64px;
  filter: drop-shadow(0 6px 6px rgba(43, 33, 64, .14));
  animation: crayons-slide 26s linear infinite;
}
.crayons-back {
  height: 82px; background-size: 384px 82px; background-position-x: 140px;
  opacity: .45;
  animation: crayons-slide-back 48s linear infinite;
}
@keyframes crayons-slide      { from { background-position-x: 0; }     to { background-position-x: 300px; } }
@keyframes crayons-slide-back { from { background-position-x: 140px; } to { background-position-x: -244px; } }

/* Crayones animados al final de la portada, apuntando hacia arriba */
.hero-crayons {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 74px; pointer-events: none;
  background:
    url("../assets/crayones-arriba.svg") repeat-x 0 0 / 300px 64px,
    linear-gradient(transparent 64px, #fff 64px);
  animation: crayons-slide-hero 30s linear infinite;
}
@keyframes crayons-slide-hero { from { background-position: 0 0, 0 0; } to { background-position: -300px 0, 0 0; } }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 10px 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.logo-mark { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; }
.logo-text {
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--blue), var(--green), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 34px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #5a5466; }
.nav-links a { display: flex; flex-direction: column; align-items: center; gap: 2px; transition: color .15s; }
.nav-icon { width: 30px; height: 30px; fill: var(--c); transition: transform .25s; }
.nav-links a:hover { color: var(--c); }
.nav-links a:hover .nav-icon { transform: translateY(-4px) rotate(-8deg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Botón "¡Llámanos ahora!" */
.call-btn {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px 22px 8px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #f7a531, var(--orange)); color: #fff;
  box-shadow: 0 0 0 8px rgba(238, 99, 64, .12), 0 10px 22px rgba(238, 99, 64, .3);
  transition: transform .18s;
}
.call-btn:hover { transform: translateY(-2px); }
.call-btn::before {
  content: ""; position: absolute; inset: -8px; border-radius: inherit;
  border: 2px solid rgba(238, 99, 64, .35); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.call-icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; flex: none; }
.call-text { display: flex; flex-direction: column; line-height: 1.1; }
.call-text small { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .95; }
.call-text strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; white-space: nowrap; }

.menu-button { display: none; background: none; border: none; color: var(--ink); padding: 6px; }
.mobile-panel { display: flex; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; }
.mobile-panel[hidden] { display: none; }
.mobile-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: 190px 24px 150px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: 0; }
.blob1 { width: 380px; height: 380px; background: var(--yellow); top: -120px; right: -80px; }
.blob2 { width: 300px; height: 300px; background: var(--salmon); bottom: -100px; left: -80px; }
.blob3 { width: 240px; height: 240px; background: var(--sky); top: 40%; left: 45%; opacity: .25; }
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(38px, 5.6vw, 64px); margin: 20px 0; }
.rainbow {
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--purple), var(--blue), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { font-size: 19px; color: var(--ink-soft); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 40px; }
.stat-number { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--purple); line-height: 1; }
.stats > div:nth-child(2) .stat-number { color: var(--green); }
.stats > div:nth-child(3) .stat-number { color: var(--magenta); }
.stat-label { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

.art-wrap { position: relative; display: flex; justify-content: center; }
.art-circle {
  width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: #fff; display: grid; place-items: center; padding: 6%;
  box-shadow: 0 30px 60px rgba(43, 33, 64, .12), 0 0 0 14px var(--pastel-yellow), 0 0 0 28px var(--pastel-coral);
}
.art-circle img { width: 100%; height: auto; }
.floaty { position: absolute; font-size: 44px; animation: float 4s ease-in-out infinite; z-index: 2; }
.floaty1 { top: 0; left: 6%; }
.floaty2 { bottom: 10%; right: 2%; animation-delay: -1.3s; }
.floaty3 { bottom: -2%; left: 12%; animation-delay: -2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ============ NOSOTROS ============ */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { aspect-ratio: 1; border-radius: var(--radius-md); display: grid; place-items: center; font-size: clamp(30px, 4vw, 46px); transition: transform .2s; }
.tile:hover { transform: scale(1.06) rotate(-3deg); }
.tile:nth-child(1) { background: var(--pastel-yellow); }
.tile:nth-child(2) { background: var(--pastel-mint); }
.tile:nth-child(3) { background: var(--pastel-coral); }
.tile:nth-child(4) { background: var(--pastel-lilac); }
.tile:nth-child(5) { background: var(--yellow); }
.tile:nth-child(6) { background: var(--pastel-mint); }
.tile:nth-child(7) { background: var(--pastel-coral); }
.tile:nth-child(8) { background: var(--pastel-lilac); }
.tile:nth-child(9) { background: var(--pastel-yellow); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--accent); }
.pillar-icon { font-size: 26px; }
.pillar-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.pillar-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }

/* ============ PROGRAMAS ============ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.program-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 28px 22px; box-shadow: var(--shadow-soft); overflow: hidden;
  border-top: 7px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(43, 33, 64, .14); }
.card-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: color-mix(in srgb, var(--accent) 16%, white); margin-bottom: 16px;
}
.card-age {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--accent); color: #fff; margin-bottom: 10px;
}
.card-title { font-size: 22px; margin-bottom: 8px; }
.card-text { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.extra {
  margin-top: 40px; padding: 32px 36px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--pastel-lilac), var(--pastel-mint));
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.extra-title { font-size: 26px; margin-bottom: 6px; color: var(--purple); }
.extra-text { color: var(--ink-soft); max-width: 520px; }
.extra-link { display: inline-block; margin-top: 12px; font-family: var(--font-display); font-weight: 700; color: var(--green); }
.extra-link:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; padding: 10px 18px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-soft); }

/* ============ GALERÍA ============ */
.gallery { background: #fff; }
.gallery-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-link { font-family: var(--font-display); font-weight: 700; color: var(--magenta); }
.gallery-link:hover { text-decoration: underline; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  background-size: cover; background-position: center;
  display: grid; place-items: center; transition: transform .25s;
}
.g-card:hover { transform: scale(1.02); }
.g-card.big { grid-row: span 2; }
.g-emoji { font-size: 64px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.g-label {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); font-family: var(--font-display); font-weight: 700; font-size: 15px;
}

/* ============ BANNER ============ */
.banner-wrap { padding: 0 24px; margin: 96px 0 0; }
.banner {
  position: relative; overflow: hidden; max-width: 1120px; margin: 0 auto;
  padding: 44px 48px; border-radius: 36px; color: #fff;
  background: linear-gradient(110deg, var(--purple), var(--magenta) 55%, var(--orange));
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-pop);
}
.banner-title { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.banner-text { opacity: .92; margin-top: 6px; max-width: 520px; }
.banner-decor { position: absolute; right: -20px; top: -30px; font-size: 140px; opacity: .18; pointer-events: none; }

/* ============ CONTACTO ============ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; margin-top: 24px; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s; }
.c-card:hover { transform: translateX(6px); }
.c-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--accent) 16%, white); }
.c-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.c-value { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.map-card {
  border-radius: var(--radius-lg); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 32px;
  background:
    radial-gradient(circle at 20% 25%, rgba(245,190,64,.55) 0 60px, transparent 61px),
    radial-gradient(circle at 80% 75%, rgba(58,162,118,.35) 0 80px, transparent 81px),
    linear-gradient(135deg, var(--pastel-mint), var(--pastel-lilac));
  transition: transform .2s;
}
.map-card:hover { transform: translateY(-4px); }
.map-emoji { font-size: 64px; }
.map-title { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--purple); }
.map-text { color: var(--ink-soft); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 24px 28px; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.footer-tagline { margin-top: 14px; max-width: 360px; font-size: 15px; }
.footer-heading { font-family: var(--font-display); font-weight: 700; color: var(--yellow); margin-bottom: 12px; font-size: 17px; }
.footer-list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  max-width: 1120px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty, .crayons, .hero-crayons, .call-btn::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .hide-mobile { display: none; }
  .menu-button { display: flex; }
  .call-btn { padding: 6px; }
  .call-btn .call-text { display: none; }
  .logo-mark { width: 52px; height: 52px; }
  .crayons-front { height: 48px; background-size: 225px 48px; }
  .crayons-back { height: 62px; background-size: 290px 62px; }
  .hero { padding-top: 150px; padding-bottom: 120px; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .art-wrap { order: -1; max-width: 360px; margin: 0 auto; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section { padding: 64px 16px; }
  .hero { padding: 140px 16px 110px; }
  .nav-inner { padding: 8px 16px 2px; }
  .logo-text { font-size: 22px; }
  .program-grid, .pillars { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g-card.big { grid-column: span 2; grid-row: span 1; }
  .banner-wrap { padding: 0 16px; margin-top: 64px; }
  .banner { padding: 32px 24px; }
  .extra { padding: 26px 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}
