/* ============================================================
   CUNA JARDÍN CRISTO BLANCO — styles.css
   Archetype: Editorial Light (paleta institucional forzada)
   Paleta: Azul #0E6FB8 · Verde #0AA64A · Naranja #F28C00
           Amarillo #FFD33D · Blanco #FFFFFF · Celeste #EAF7FF
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue:       #0E6FB8;
  --blue-dark:  #0b5a96;
  --blue-light: #EAF7FF;
  --green:      #0AA64A;
  --green-dark: #088a3c;
  --green-wa:   #25D366;
  --green-wa-dark: #1da851;
  --orange:     #F28C00;
  --orange-dark:#d97a00;
  --yellow:     #FFD33D;
  --yellow-warm:#FFB703;
  --play-yellow:#FFD33D;
  --play-sky:   #79D3FF;
  --play-mint:  #7DE8A0;
  --play-coral: #FFA85C;
  --white:      #FFFFFF;
  --bg-alt:     #D4EEFF;
  --bg-gray:    #F5F7FA;
  --text:       #333333;
  --text-soft:  #555555;
  --text-mute:  #888888;
  --line:       rgba(14,111,184,0.12);

  --nav-h:      90px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Nunito", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TYPOGRAPHY ── */
.hero-title-brand { font-family: "Outfit", "Inter", system-ui, sans-serif; }
.section-title { font-family: "Fraunces", Georgia, serif; }
em { font-style: italic; }

/* ── CONTAINER ── */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety: data-split elements never hidden by reveal */
.reveal[data-split] { opacity: 1; transform: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(242,140,0,0.32);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 8px 28px rgba(242,140,0,0.45);
  }
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.8);
}
@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
  }
}
/* WhatsApp hero button */
.btn-wa {
  background: var(--green-wa);
  color: var(--white);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  box-shadow: 0 4px 22px rgba(37,211,102,0.42), 0 1px 4px rgba(0,0,0,0.1);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: all 0.28s var(--ease-out);
}
@media (hover: hover) {
  .btn-wa:hover {
    background: var(--green-wa-dark);
    box-shadow: 0 10px 34px rgba(37,211,102,0.52), 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-3px);
  }
}
/* Hero secondary button — premium glass */
.btn-hero-secondary {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 18px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.28);
  transition: all 0.28s var(--ease-out);
  letter-spacing: 0.01em;
}
@supports not (backdrop-filter: blur(12px)) {
  .btn-hero-secondary { background: rgba(255,255,255,0.26); }
}
@media (hover: hover) {
  .btn-hero-secondary:hover {
    background: rgba(255,255,255,0.26);
    border-color: rgba(255,255,255,0.82);
    box-shadow:
      0 8px 28px rgba(0,0,0,0.20),
      inset 0 1px 0 rgba(255,255,255,0.40);
    transform: translateY(-3px);
  }
}
.btn-cta {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(242,140,0,0.28);
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}
.btn-cta-mobile {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}
.btn-full { width: 100%; justify-content: center; }

/* ── SECTION LABELS ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}
.section-title em { color: var(--blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14,111,184,0.08);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
@supports not (backdrop-filter: blur(20px)) {
  .nav { background: rgba(255,255,255,0.97); }
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(14,111,184,0.18);
  box-shadow: 0 2px 14px rgba(14,111,184,0.16), 0 1px 4px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.nav-logo-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-text {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-family: "Nunito", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  position: relative;
  font-family: "Nunito", sans-serif;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.22s var(--ease-out), background 0.22s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .nav-link:hover { color: var(--blue); background: rgba(14,111,184,0.06); }
  .nav-link:hover::after { transform: scaleX(1); }
}
.nav-link.is-active { color: var(--blue); }
.nav-link.is-active::after { transform: scaleX(1); }

/* CTA button in nav */
.btn-cta {
  background: var(--orange);
  color: var(--white);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(242,140,0,0.32), 0 1px 4px rgba(0,0,0,0.08);
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  margin-left: 0.75rem;
  transition: all 0.26s var(--ease-out);
}
@media (hover: hover) {
  .btn-cta:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242,140,0,0.42), 0 2px 6px rgba(0,0,0,0.1);
  }
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  z-index: 99;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-link {
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--blue); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Ken Burns de llegada: la foto aterriza suavemente al cargar */
  animation: heroArrive 9s var(--ease-out) forwards;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
/* Overlay base — suave, protege lectura en bordes */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 30, 60, 0.22) 0%,
    rgba(10, 30, 60, 0.10) 42%,
    rgba(10, 30, 60, 0.48) 100%
  );
}
/* Profundidad localizada: scrim radial solo detrás del bloque de texto */
.hero-img-wrap::after {
  content: "";
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 780px;
  height: 65%;
  background: radial-gradient(ellipse at 50% 48%, rgba(5,15,50,0.42) 0%, rgba(5,15,50,0.18) 45%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}
/* ── Formas flotantes — acento juguetón en los bordes del hero ── */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.deco {
  position: absolute;
  display: block;
  opacity: 0;
}
.deco-1 {
  top: 24%; left: 8%;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--play-yellow);
  animation: decoIn 0.8s 1.5s forwards, floatY 6.5s 1.5s ease-in-out infinite alternate;
}
.deco-2 {
  top: 18%; right: 12%;
  font-size: 26px;
  line-height: 1;
  color: var(--play-sky);
  animation: decoIn 0.8s 1.7s forwards, floatSpin 8s 1.7s ease-in-out infinite alternate;
}
.deco-3 {
  bottom: 26%; left: 13%;
  width: 26px; height: 26px;
  border: 3px solid var(--play-coral);
  border-radius: 50%;
  animation: decoIn 0.8s 1.9s forwards, floatY 7.5s 1.9s ease-in-out infinite alternate-reverse;
}
.deco-4 {
  bottom: 30%; right: 9%;
  font-size: 18px;
  line-height: 1;
  color: var(--play-yellow);
  animation: decoIn 0.8s 2.1s forwards, floatSpin 7s 2.1s ease-in-out infinite alternate;
}
.deco-5 {
  top: 42%; right: 6%;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--play-mint);
  animation: decoIn 0.8s 2.3s forwards, floatY 6s 2.3s ease-in-out infinite alternate-reverse;
}

/* Bloque de contenido — centrado con offset visual hacia arriba */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  width: 92%;
  padding: 1rem 2rem 13vh;
  margin-top: calc(var(--nav-h) + 0.5rem);
}

/* Badge eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--yellow-warm);
  background: rgba(10,15,40,0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,183,3,0.45);
  padding: 0.38rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s var(--ease-out) forwards;
}
.hero-eyebrow::before { content: "✦"; font-size: 0.7rem; }

/* ── Cristo Blanco — protagonista del Hero, letras juguetonas ── */
.hero-title-brand {
  font-family: "Outfit", system-ui, sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.26em;
  font-size: clamp(3.6rem, 9.5vw, 7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow:
    0 3px 28px rgba(0,0,0,0.45),
    0 1px 6px rgba(0,0,0,0.25),
    0 0 60px rgba(0,0,0,0.18);
}
.hero-word { display: inline-flex; }
.hl {
  display: inline-block;
  opacity: 0;
  animation: letterPop 0.65s calc(0.32s + var(--i, 0) * 0.055s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: translate 0.25s var(--ease-out), scale 0.25s var(--ease-out);
}
/* Rotaciones sutiles — sensación hecha a mano */
.hero-word .hl:nth-child(3n+1) { --rot: -2.2deg; }
.hero-word .hl:nth-child(3n+2) { --rot: 1.6deg; }
.hero-word .hl:nth-child(3n)   { --rot: -0.8deg; }
/* Paleta de marca en versión brillante — legible sobre la foto */
.hl.c1 { color: var(--play-yellow); }
.hl.c2 { color: var(--play-sky); }
.hl.c3 { color: var(--play-mint); }
.hl.c4 { color: var(--play-coral); }
@media (hover: hover) {
  .hl:hover { translate: 0 -0.12em; scale: 1.14; }
}

/* ── Eslogan — subtítulo bajo la marca ── */
.hero-slogan {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.84);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.38);
  opacity: 0;
  animation: fadeUpSub 0.65s 1.05s var(--ease-out) forwards;
}

/* Subtítulo — Nunito */
.hero-sub {
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.97rem, 1.9vw, 1.13rem);
  font-weight: 500;
  max-width: 630px;
  margin-inline: auto;
  margin-bottom: 1.4rem;
  line-height: 1.82;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fadeUpSub 0.65s 1.2s var(--ease-out) forwards;
}

/* Prueba social / trust line */
.hero-trust {
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.36rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.9rem;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 0.6s 1.35s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.65s 1.5s var(--ease-out) forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.75);
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: bounce 2s 2.5s ease-in-out infinite;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroArrive {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
@keyframes letterPop {
  0%   { opacity: 0; transform: translateY(0.65em) scale(0.3) rotate(-14deg); }
  62%  { opacity: 1; transform: translateY(-0.06em) scale(1.06) rotate(var(--rot, 0deg)); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot, 0deg)); }
}
@keyframes decoIn {
  to { opacity: 0.55; }
}
@keyframes floatY {
  from { transform: translateY(10px); }
  to   { transform: translateY(-14px); }
}
@keyframes floatSpin {
  from { transform: translateY(8px) rotate(-10deg); }
  to   { transform: translateY(-12px) rotate(18deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpSub {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 0.93; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   VALORES
   ============================================================ */
.valores {
  padding: 5rem 0 4rem;
  background: var(--white);
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.valor-card {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) {
  .valor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14,111,184,0.12);
  }
}
.valor-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.valor-icon svg { width: 100%; height: 100%; }
.valor-title { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 0.5rem; }
.valor-desc { font-size: 0.875rem; color: var(--text-soft); line-height: 1.6; }

/* reveal stagger */
.valor-card:nth-child(1) { transition-delay: 0s; }
.valor-card:nth-child(2) { transition-delay: 0.1s; }
.valor-card:nth-child(3) { transition-delay: 0.2s; }
.valor-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   PROGRAMAS
   ============================================================ */
.programas {
  padding: 5rem 0;
  background: var(--bg-alt);
}
.programas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.programa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 2.5rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) {
  .programa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(14,111,184,0.14);
  }
}
.programa-badge {
  display: inline-block;
  background: var(--badge-color, var(--blue));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.programa-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.programa-name { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 0.75rem; }
.programa-desc { font-size: 0.875rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 1.25rem; }
.programa-highlights { display: flex; flex-direction: column; gap: 0.4rem; }
.programa-highlights li {
  font-size: 0.8rem;
  color: var(--text-soft);
  padding-left: 1.1em;
  position: relative;
}
.programa-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.programa-card:nth-child(1) { transition-delay: 0s; }
.programa-card:nth-child(2) { transition-delay: 0.1s; }
.programa-card:nth-child(3) { transition-delay: 0.2s; }
.programa-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  padding: 5rem 0;
  background: var(--white);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.servicio-item {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.22s var(--ease-out), background 0.22s, box-shadow 0.22s;
}
@media (hover: hover) {
  .servicio-item:hover {
    transform: translateY(-5px);
    background: var(--blue-light);
    box-shadow: 0 8px 24px rgba(14,111,184,0.12);
  }
}
.servicio-icon { font-size: 2rem; }
.servicio-name { font-size: 0.875rem; font-weight: 700; color: var(--blue); text-align: center; }
.servicio-age { font-size: 0.75rem; color: var(--text-mute); text-align: center; }

/* ============================================================
   GALERÍAS
   ============================================================ */
.galeria { padding: 5rem 0; }
.galeria-danza { background: var(--bg-alt); }
.galeria-instalaciones { background: var(--white); }
.galeria-actividades { background: var(--bg-gray); }

.galeria-grid {
  display: grid;
  gap: 1rem;
}
.galeria-danza-grid {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.galeria-danza-grid .galeria-item--large {
  grid-row: 1 / 3;
}
.galeria-inst-grid {
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: auto auto;
}
.galeria-inst-grid .galeria-item--large {
  grid-column: 3;
  grid-row: 1 / 3;
}
.galeria-act-grid {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.galeria-act-grid .galeria-item--large {
  grid-row: 1 / 3;
}

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  .galeria-item:hover img { transform: scale(1.06); }
}
.galeria-item figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}
.galeria-item:hover figcaption { opacity: 1; }
.galeria-item--large img { min-height: 400px; }

/* ============================================================
   POR QUÉ NOSOTROS
   ============================================================ */
.porquenosotros {
  padding: 5rem 0;
  background: var(--blue);
  color: var(--white);
}
.porquenosotros .section-eyebrow { color: var(--yellow); }
.porquenosotros .section-title { color: var(--white); }
.porquenosotros .section-title em { color: var(--yellow); }

.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.porque-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .porque-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
  }
}
.porque-num {
  font-family: "Fraunces", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 1rem;
}
.porque-name { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.porque-desc { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.7; }

.porque-card:nth-child(1) { transition-delay: 0s; }
.porque-card:nth-child(2) { transition-delay: 0.1s; }
.porque-card:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { padding: 5rem 0; background: var(--white); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
}
.info-card--cta {
  flex-direction: column;
  background: var(--bg-alt);
  border-color: var(--blue);
}
.info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-label { font-size: 0.75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.info-val { font-size: 0.95rem; color: var(--text); display: block; line-height: 1.6; }
.info-val--big { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.info-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.info-cta-text { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 1rem; }

.mapa-frame {
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(14,111,184,0.12);
}
.mapa-address {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-mute);
  text-align: center;
}
.btn-mapa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0.9rem auto 0;
  padding: 0.55rem 1.4rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 100px;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn-mapa:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}
.footer-slogan {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.footer-slogan em { color: var(--yellow); }
.footer-desc { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.65); }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact p, .footer-contact a { font-size: 0.875rem; color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  padding: 0.45rem 0.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--blue); color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem 0.85rem 1rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  animation: waPop 0.6s 1.5s var(--ease-out) both;
}
@keyframes waPop {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (hover: hover) {
  .whatsapp-float:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 36px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.15);
  }
}
.whatsapp-float-label { line-height: 1.2; }

/* Pulse ring */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid #25D366;
  opacity: 0;
  animation: waPulse 2.5s 2s ease-out infinite;
}
@keyframes waPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .programas-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .porque-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .galeria-danza-grid { grid-template-columns: 1fr 1fr; }
  .galeria-danza-grid .galeria-item--large { grid-column: 1 / -1; grid-row: auto; }
  .galeria-inst-grid { grid-template-columns: 1fr 1fr; }
  .galeria-inst-grid .galeria-item--large { grid-column: 1 / -1; grid-row: auto; }
  .galeria-act-grid { grid-template-columns: 1fr 1fr; }
  .galeria-act-grid .galeria-item--large { grid-column: 1 / -1; grid-row: auto; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  :root { --nav-h: 76px; }

  .nav-logo-img { width: 52px; height: 52px; }
  .nav-logo-text { font-size: 1rem; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .valores-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .programas-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }

  .galeria-danza-grid,
  .galeria-inst-grid,
  .galeria-act-grid { grid-template-columns: 1fr; }
  .galeria-item img { min-height: 220px; }
  .galeria-item--large img { min-height: 280px; }
  .galeria-item figcaption { opacity: 1; }

  .contacto-grid { gap: 2rem; }
  .mapa-frame { height: 280px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .whatsapp-float { bottom: 1rem; right: 1rem; padding: 0.75rem; border-radius: 50%; }
  .whatsapp-float-label { display: none; }

  .hero-content { padding-bottom: 8vh; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .btn-wa, .btn-hero-secondary { justify-content: center; width: 100%; }

  .porque-grid { gap: 0.75rem; }
}

/* ── TABLET hero ── */
@media (max-width: 768px) {
  .hero-title-brand { font-size: clamp(2.8rem, 11vw, 4.4rem); }
  .hero-slogan { font-size: clamp(1rem, 3.2vw, 1.25rem); }
  .deco-4, .deco-5 { display: none; }
  .deco-1 { width: 14px; height: 14px; }
  .deco-3 { width: 18px; height: 18px; border-width: 2.5px; }
  .hero-sub { font-size: 1rem; }
  .nav-logo-img { width: 56px; height: 56px; }
  .nav-links { gap: 0rem; }
  .nav-link { font-size: 0.9rem; padding: 0.4rem 0.6rem; }
}

/* ============================================================
   MODAL "CONOCE CADA ETAPA" — Programas
   ============================================================ */
.programas-hint {
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mute);
  margin: -1.5rem 0 2rem;
}
.programa-card[data-etapa] { cursor: pointer; }
.programa-card[data-etapa]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.programa-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--badge-color, var(--blue));
  transition: transform 0.2s var(--ease-out);
}
@media (hover: hover) {
  .programa-card:hover .programa-more { transform: translateX(4px); }
}

.etapa-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.etapa-modal.is-open { display: flex; }
.etapa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 45, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.etapa-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 100dvh - 2rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--etapa-color, var(--blue));
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: etapaIn 0.32s var(--ease-out);
}
@keyframes etapaIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .etapa-dialog { animation: none; }
}
.etapa-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.etapa-close:hover { background: var(--etapa-color, var(--blue)); color: var(--white); }
.etapa-badge {
  display: inline-block;
  margin-right: 3.25rem; /* deja espacio libre para el botón de cerrar */
  background: var(--etapa-color, var(--blue));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.etapa-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}
.etapa-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.etapa-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) {
  .etapa-cols { grid-template-columns: 1fr; }
  .etapa-dialog { padding: 1.75rem 1.25rem 1.5rem; }
}
.etapa-block {
  background: var(--blue-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.etapa-block h4 {
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--etapa-color, var(--blue));
  margin-bottom: 0.5rem;
}
.etapa-block p { font-size: 0.88rem; line-height: 1.7; color: var(--text-soft); }
.etapa-sub {
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.etapa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.etapa-chip {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
}
.etapa-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.etapa-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  /* las fotos son verticales: el recorte prioriza la parte alta (rostros) */
  object-position: center 22%;
  border-radius: var(--radius-md);
}
.etapa-cta { width: 100%; justify-content: center; }
