/*
  ============================================================
  infantil.css — El Mundo de Manu / Infantil
  ============================================================
  Este es el CSS más alegre y colorido de todo mi sitio.
  Diseñado para que los niños sonrían apenas lo vean.

  La dirección estética es completamente opuesta al resto
  del sitio: fondos claros y cálidos, colores primarios
  vibrantes, tipografía redondeada (Nunito + Fredoka One),
  bordes gruesos, sombras juguetonas y animaciones
  rebotantes que invitan a interactuar.

  REGLA DE ORO de esta sección:
  Todo debe ser grande, claro, accesible y divertido.
  Los niños navegan principalmente con tactil — los
  botones deben ser grandes y fáciles de tocar.

  Prefijo: inf- (infantil)

  Estructura:
  01. Variables locales — paleta infantil
  02. Reset específico de esta página
  03. Navbar versión infantil
  04. Hero mágico (cielo, sol, arcoíris, nubes)
  05. Nuestros amigos
  06. Cuentitos
  07. Aprendo y juego
  08. Valores del corazón
  09. Canciones
  10. Mensaje especial
  11. Footer infantil
  12. Botones del sistema infantil
  13. Animaciones y keyframes
  14. Responsive

  Autor: Carlos Manuel Turizo Hernández
  Versión: 1.0.0
  ============================================================
*/

/* ============================================================
  01. VARIABLES LOCALES — PALETA INFANTIL
  Una paleta completamente diferente al resto del sitio.
  Colores cálidos, vivos y alegres.
  ============================================================ */
.page-infantil {
  /* Paleta principal */
  --inf-sky:        #87CEEB;
  --inf-sky-dark:   #5BA3D9;
  --inf-sky-light:  #C8E8F8;
  --inf-grass:      #5CB85C;
  --inf-grass-dark: #449D44;
  --inf-yellow:     #FFD700;
  --inf-orange:     #FF8C00;
  --inf-pink:       #FF69B4;
  --inf-purple:     #9B59B6;
  --inf-red:        #E74C3C;
  --inf-green:      #27AE60;
  --inf-teal:       #1ABC9C;
  --inf-white:      #FFFEF0;

  /* Tipografías */
  --font-inf-title: 'Fredoka One', 'Nunito', cursive;
  --font-inf-body:  'Nunito', 'DM Sans', sans-serif;

  /* Radios grandes y juguetones */
  --inf-radius:    20px;
  --inf-radius-lg: 32px;
  --inf-radius-xl: 48px;

  /* Sombras juguetonas con color */
  --inf-shadow-yellow:  0 6px 0 #E6C000, 0 8px 20px rgba(0,0,0,0.15);
  --inf-shadow-green:   0 6px 0 #1E8449, 0 8px 20px rgba(0,0,0,0.15);
  --inf-shadow-orange:  0 6px 0 #CC6600, 0 8px 20px rgba(0,0,0,0.15);
  --inf-shadow-purple:  0 6px 0 #7D3C98, 0 8px 20px rgba(0,0,0,0.15);
  --inf-shadow-pink:    0 6px 0 #C0397A, 0 8px 20px rgba(0,0,0,0.15);
  --inf-shadow-card:    0 8px 24px rgba(0,0,0,0.12), 0 3px 0 rgba(0,0,0,0.1);
}


/* ============================================================
  02. RESET ESPECÍFICO DE ESTA PÁGINA
  Sobreescribo el fondo oscuro del sitio global.
  Esta sección tiene su propio mundo visual.
  ============================================================ */
.page-infantil {
  background-color: var(--inf-white);
  color: #333;
  font-family: var(--font-inf-body);

  /*
    BUG FIX #1 — Cursor desaparecido en escritorio:
    Mi style.css global tiene la regla:
      @media (pointer: fine) { body { cursor: none; } }
    Esa regla oculta el cursor en TODOS los dispositivos con mouse,
    incluyendo esta página. Pero en la sección infantil NO quiero
    el cursor personalizado — los niños necesitan ver su cursor
    normal del sistema para poder navegar sin confusión.
    Con cursor: auto !important cancelo esa regla global
    específicamente para .page-infantil y todos sus hijos.
  */
  cursor: auto !important;
}

/*
  Me aseguro de que ningún elemento hijo herede un cursor: none.
  El !important garantiza que mi regla gana sobre la del global
  sin importar el orden de carga de los archivos CSS.
*/
.page-infantil *,
.page-infantil *::before,
.page-infantil *::after {
  cursor: auto !important;
}

/*
  Excepción: los elementos interactivos (botones, links, tarjetas)
  deben mostrar el cursor de "mano" (pointer) para indicar
  que se puede hacer clic — esto es especialmente importante
  para los niños que no entienden aún los patrones de UI.
*/
.page-infantil a,
.page-infantil button,
.page-infantil [role="button"],
.page-infantil .inf-friend-card,
.page-infantil .inf-btn,
.page-infantil .inf-story-card__btn,
.page-infantil .inf-song-card__play {
  cursor: pointer !important;
}

/* Reseteo el scrollbar para que sea más amigable */
.page-infantil ::-webkit-scrollbar { width: 8px; }
.page-infantil ::-webkit-scrollbar-track { background: var(--inf-sky-light); }
.page-infantil ::-webkit-scrollbar-thumb {
  background: var(--inf-purple);
  border-radius: 20px;
}

/* Reseteo la selección de texto */
.page-infantil ::selection {
  background: var(--inf-yellow);
  color: #333;
}


/* ============================================================
  03. NAVBAR VERSIÓN INFANTIL
  El navbar global se ve demasiado oscuro para esta sección.
  Lo sobreescribo para que sea claro y colorido.
  ============================================================ */
.inf-navbar {
  background: rgba(255, 254, 240, 0.95) !important;
  border-bottom: 3px solid var(--inf-yellow);
}
.inf-navbar.is-scrolled {
  background: rgba(255, 254, 240, 0.97) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  backdrop-filter: none !important;
}
.inf-navbar .navbar__link,
.inf-navbar .navbar__logo-text { color: #555 !important; }
.inf-navbar .navbar__link:hover { color: var(--inf-purple) !important; background: rgba(155,89,182,0.08) !important; }
.inf-navbar .navbar__link--active { color: var(--inf-purple) !important; }
.inf-navbar .navbar__toggle-bar { background: #555 !important; }
.inf-navbar .navbar__mobile { background: rgba(255,254,240,0.98) !important; border-color: var(--inf-yellow) !important; }
.inf-navbar .navbar__mobile-link { color: #555 !important; border-color: rgba(0,0,0,0.08) !important; }
.inf-navbar .navbar__link--cta { color: var(--inf-purple) !important; border-color: rgba(155,89,182,0.3) !important; background: rgba(155,89,182,0.08) !important; }

.inf-logo-mark {
  background: linear-gradient(135deg, var(--inf-purple), var(--inf-pink)) !important;
  box-shadow: 0 4px 12px rgba(155,89,182,0.3) !important;
}


/* ============================================================
  04. HERO MÁGICO
  El cielo con todos sus elementos decorativos.
  ============================================================ */
.inf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px; /* altura del navbar */
}

/* ── Cielo de fondo ── */
.inf-hero__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    #4FACDE 0%,
    var(--inf-sky) 40%,
    #A8D8EA 70%,
    #C8F0C8 100%
  );
}

/* ── Sol ── */
.inf-sun {
  position: absolute;
  top: 90px;
  right: 8%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inf-sun__core {
  font-size: 3.5rem;
  animation: sunRotate 20s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.6));
  line-height: 1;
  z-index: 1;
  position: relative;
}
@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Arcoíris ── */
.inf-rainbow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  overflow: hidden;
}
.inf-rainbow__arc {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  border-style: solid;
  border-bottom: none;
  opacity: 0.75;
}
.inf-rainbow__arc--1 { width: 500px; height: 250px; border-width: 18px; border-color: #FF0000; }
.inf-rainbow__arc--2 { width: 460px; height: 230px; border-width: 18px; border-color: #FF7F00; }
.inf-rainbow__arc--3 { width: 420px; height: 210px; border-width: 18px; border-color: #FFFF00; }
.inf-rainbow__arc--4 { width: 380px; height: 190px; border-width: 18px; border-color: #00CC00; }
.inf-rainbow__arc--5 { width: 340px; height: 170px; border-width: 18px; border-color: #0000FF; }
.inf-rainbow__arc--6 { width: 300px; height: 150px; border-width: 18px; border-color: #4B0082; }
.inf-rainbow__arc--7 { width: 260px; height: 130px; border-width: 18px; border-color: #8B00FF; }

/* ── Nubes ── */
.inf-cloud {
  position: absolute;
  opacity: 0.92;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.inf-cloud svg { width: 100%; height: 100%; }
.inf-cloud--1 { width: 140px; top: 120px; left: 5%;  animation: cloudFloat 8s ease-in-out infinite; }
.inf-cloud--2 { width: 100px; top: 160px; right: 18%; animation: cloudFloat 10s ease-in-out infinite 2s; }
.inf-cloud--3 { width: 120px; top: 90px;  left: 35%; animation: cloudFloat 12s ease-in-out infinite 4s; }
@keyframes cloudFloat {
  0%, 100% { transform: translateX(0) translateY(0); }
  33%       { transform: translateX(12px) translateY(-4px); }
  66%       { transform: translateX(-8px) translateY(3px); }
}

/* ── Estrellas ── */
.inf-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Globos ── */
.inf-balloon {
  position: absolute;
  font-size: 2.5rem;
  animation: balloonFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  line-height: 1;
}
.inf-balloon--red    { bottom: 30%; left: 4%;   animation-delay: 0s; }
.inf-balloon--yellow { bottom: 25%; right: 5%;  animation-delay: 1.5s; }
.inf-balloon--blue   { bottom: 35%; left: 15%;  animation-delay: 0.8s; }
@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}

/* ── Contenido del hero ── */
.inf-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 800px;
}

/* Fila de emojis rebotantes */
.inf-hero__emoji-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.inf-emoji-bounce {
  font-size: 2rem;
  display: inline-block;
  animation: emojiBounce 2s ease-in-out infinite;
  line-height: 1;
}
.inf-emoji-bounce--1 { animation-delay: 0.0s; }
.inf-emoji-bounce--2 { animation-delay: 0.2s; }
.inf-emoji-bounce--3 { animation-delay: 0.4s; }
.inf-emoji-bounce--4 { animation-delay: 0.6s; }
.inf-emoji-bounce--5 { animation-delay: 0.8s; }
@keyframes emojiBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-12px) scale(1.1); }
  60%       { transform: translateY(-8px) scale(1.05); }
}

/* Título del hero — cada palabra un color diferente */
.inf-hero__title {
  font-family: var(--font-inf-title);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.inf-title-word--1 { color: var(--inf-orange); }
.inf-title-word--2 { color: var(--inf-purple); display: block; }
.inf-title-word--3 { color: var(--inf-green);  display: block; }

.inf-hero__subtitle {
  font-family: var(--font-inf-body);
  font-size: clamp(var(--text-base), 2.5vw, var(--text-lg));
  color: #444;
  line-height: 1.7;
  background: rgba(255,255,255,0.6);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--inf-radius-xl);
  backdrop-filter: blur(4px);
}
.inf-hero__subtitle strong { color: var(--inf-purple); }

/* Botones del hero */
.inf-hero__buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Suelo: césped y flores ── */
.inf-hero__ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.inf-grass {
  height: 60px;
  background: linear-gradient(180deg, var(--inf-grass) 0%, var(--inf-grass-dark) 100%);
  border-radius: 50% 50% 0 0 / 30px 30px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.inf-flowers {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 var(--space-8);
}
.inf-flower {
  font-size: 1.75rem;
  display: inline-block;
  animation: flowerSway 3s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.inf-flower--1 { animation-delay: 0.0s; }
.inf-flower--2 { animation-delay: 0.3s; }
.inf-flower--3 { animation-delay: 0.6s; }
.inf-flower--4 { animation-delay: 0.9s; }
.inf-flower--5 { animation-delay: 1.2s; }
.inf-flower--6 { animation-delay: 1.5s; }
.inf-flower--7 { animation-delay: 1.8s; }
@keyframes flowerSway {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}


/* ============================================================
  UTILIDADES DE LAYOUT INFANTIL
  ============================================================ */
.inf-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header de cada sección */
.inf-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.inf-section-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: var(--inf-yellow);
  border-radius: var(--inf-radius-xl);
  font-family: var(--font-inf-title);
  font-size: var(--text-sm);
  color: #333;
  box-shadow: 0 3px 0 #CC9900;
}
.inf-section-title {
  font-family: var(--font-inf-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--inf-purple);
  line-height: 1.1;
  text-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
.inf-section-desc {
  font-size: var(--text-base);
  color: #666;
  max-width: 520px;
  line-height: 1.7;
}


/* ============================================================
  05. NUESTROS AMIGOS
  ============================================================ */
.inf-friends {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, #E8F5FF 0%, var(--inf-white) 100%);
}

.inf-friends__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (min-width: 640px)  { .inf-friends__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .inf-friends__grid { grid-template-columns: repeat(6, 1fr); } }

.inf-friend-card {
  background: white;
  border-radius: var(--inf-radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--inf-shadow-card);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.2s ease, box-shadow 0.2s ease;
  /* Área de toque grande para móvil */
  min-height: 180px;
}
.inf-friend-card:hover,
.inf-friend-card:focus {
  transform: translateY(-8px) scale(1.04);
  border-color: var(--inf-purple);
  box-shadow: 0 12px 32px rgba(155,89,182,0.2), 0 3px 0 rgba(0,0,0,0.1);
  outline: none;
}
.inf-friend-card:active {
  transform: translateY(-2px) scale(0.98);
}

.inf-friend-card__emoji {
  font-size: 3.5rem;
  line-height: 1;
  animation: friendIdle 3s ease-in-out infinite;
  display: block;
}
/* Cada personaje tiene su animación diferente */
.inf-friend-card:nth-child(1) .inf-friend-card__emoji { animation-delay: 0.0s; }
.inf-friend-card:nth-child(2) .inf-friend-card__emoji { animation-delay: 0.3s; }
.inf-friend-card:nth-child(3) .inf-friend-card__emoji { animation-delay: 0.6s; }
.inf-friend-card:nth-child(4) .inf-friend-card__emoji { animation-delay: 0.9s; }
.inf-friend-card:nth-child(5) .inf-friend-card__emoji { animation-delay: 1.2s; }
.inf-friend-card:nth-child(6) .inf-friend-card__emoji { animation-delay: 1.5s; }
@keyframes friendIdle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30%       { transform: scale(1.08) rotate(-3deg); }
  60%       { transform: scale(1.05) rotate(3deg); }
}

.inf-friend-card__name {
  font-family: var(--font-inf-title);
  font-size: var(--text-sm);
  color: var(--inf-purple);
}
.inf-friend-card__trait {
  font-size: var(--text-xs);
  color: #888;
  font-style: italic;
}

/* Burbuja de mensaje del personaje */
.inf-friend-card__bubble {
  background: var(--inf-yellow);
  color: #333;
  font-family: var(--font-inf-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--inf-radius-xl);
  box-shadow: 0 3px 0 #CC9900;
  transition: all 0.3s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
.inf-friend-card.is-talking .inf-friend-card__bubble {
  background: var(--inf-purple);
  color: white;
  box-shadow: 0 3px 0 #5A2D7E;
  animation: bubblePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bubblePop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


/* ============================================================
  06. CUENTITOS
  ============================================================ */
.inf-stories {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, #FFF8E7 0%, var(--inf-white) 100%);
}

.inf-stories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) { .inf-stories__grid { grid-template-columns: repeat(3, 1fr); } }

.inf-story-card {
  background: white;
  border-radius: var(--inf-radius-lg);
  overflow: hidden;
  box-shadow: var(--inf-shadow-card);
  border: 3px solid #F0E6FF;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.inf-story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(155,89,182,0.15), 0 3px 0 rgba(0,0,0,0.1);
}

/* Portada del cuento */
.inf-story-card__cover {
  background: linear-gradient(135deg, #FFE0F7 0%, #E8F0FF 100%);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
}
.inf-story-card__cover-emoji {
  font-size: 5rem;
  line-height: 1;
  display: block;
  animation: storyEmojiFloat 4s ease-in-out infinite;
}
@keyframes storyEmojiFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}
.inf-story-card__cover-stars {
  font-size: var(--text-lg);
  letter-spacing: 4px;
  margin-top: var(--space-2);
}

/* Cuerpo del cuento */
.inf-story-card__body { padding: var(--space-6); }

.inf-story-card__title {
  font-family: var(--font-inf-title);
  font-size: var(--text-xl);
  color: var(--inf-purple);
  margin-bottom: var(--space-3);
}
.inf-story-card__preview {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #666;
  margin-bottom: var(--space-4);
}

/* Recuadro de enseñanza */
.inf-story-card__moral {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: #FFF3CD;
  border-radius: var(--inf-radius);
  border-left: 4px solid var(--inf-yellow);
  font-size: var(--text-xs);
  color: #555;
  margin-bottom: var(--space-5);
  line-height: 1.5;
}
.inf-story-card__moral-label {
  font-weight: 800;
  font-family: var(--font-inf-title);
  color: #333;
}

/* Cuento completo expandible */
.inf-story-card__full {
  padding-top: var(--space-5);
  border-top: 2px dashed #F0E6FF;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.inf-story-card__full p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: #555;
}


/* ============================================================
  07. APRENDO Y JUEGO
  ============================================================ */
.inf-games {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, #E8FFE8 0%, var(--inf-white) 100%);
}

.inf-games__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) { .inf-games__grid { grid-template-columns: repeat(3, 1fr); } }

.inf-game-card {
  background: white;
  border-radius: var(--inf-radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--inf-shadow-card);
  border: 3px solid #E0F7E0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.25s ease;
}
.inf-game-card:hover { transform: translateY(-4px); }
.inf-game-card__icon { font-size: 3rem; line-height: 1; }
.inf-game-card__title {
  font-family: var(--font-inf-title);
  font-size: var(--text-lg);
  color: var(--inf-green);
}
.inf-game-card__desc {
  font-size: var(--text-sm);
  color: #666;
  line-height: 1.6;
}

/* ── Juego de colores ── */
.inf-color-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #F8F8F8;
  border-radius: var(--inf-radius);
  border: 2px dashed #DDD;
}
.inf-color-box {
  width: 80px;
  height: 80px;
  border-radius: var(--inf-radius);
  background: #EEE;
  transition: background-color 0.5s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.inf-color-box.is-popping { transform: scale(1.2); }
.inf-color-name {
  font-family: var(--font-inf-title);
  font-size: var(--text-xl);
  color: #333;
  transition: color 0.4s ease;
}

/* ── Contador de animales ── */
.inf-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #F8F8F8;
  border-radius: var(--inf-radius);
  border: 2px dashed #DDD;
  min-height: 100px;
}
.inf-counter__animals {
  font-size: 1.6rem;
  line-height: 1.3;
  min-height: 36px;
  word-break: break-all;
  letter-spacing: 2px;
}
.inf-counter__number {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
#counterNum {
  font-family: var(--font-inf-title);
  font-size: var(--text-3xl);
  color: var(--inf-purple);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
#counterNum.is-counting { transform: scale(1.3); }
.inf-counter__label {
  font-size: var(--text-sm);
  color: #888;
  font-style: italic;
}
.inf-counter__btns {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

/* ── Adivinanza ── */
.inf-riddle {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.inf-riddle__text {
  font-family: var(--font-inf-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: #555;
  padding: var(--space-4);
  background: #F0F4FF;
  border-radius: var(--inf-radius);
  border-left: 4px solid var(--inf-purple);
  line-height: 1.6;
}
.inf-riddle__answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: #FFF0F8;
  border-radius: var(--inf-radius);
  animation: answerReveal 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes answerReveal {
  from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.inf-riddle__answer-emoji { font-size: 3rem; line-height: 1; }
.inf-riddle__answer p { font-size: var(--text-sm); color: #555; font-weight: 600; }


/* ============================================================
  08. VALORES DEL CORAZÓN
  ============================================================ */
.inf-values {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, #FFF0FF 0%, var(--inf-white) 100%);
}

.inf-values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (min-width: 640px)  { .inf-values__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .inf-values__grid { grid-template-columns: repeat(6, 1fr); } }

.inf-value-card {
  background: white;
  border-radius: var(--inf-radius-lg);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--inf-shadow-card);
  border-top: 6px solid var(--inf-purple);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.inf-value-card:hover { transform: translateY(-6px) scale(1.02); }

/* Cada valor tiene su propio color de borde */
.inf-value-card--amor       { border-top-color: #E74C3C; }
.inf-value-card--respeto    { border-top-color: #3498DB; }
.inf-value-card--honestidad { border-top-color: #F39C12; }
.inf-value-card--valentía   { border-top-color: #E67E22; }
.inf-value-card--gratitud   { border-top-color: #1ABC9C; }
.inf-value-card--amistad    { border-top-color: #9B59B6; }

.inf-value-card__emoji { font-size: 3rem; line-height: 1; }
.inf-value-card__name {
  font-family: var(--font-inf-title);
  font-size: var(--text-md);
  color: #333;
}
.inf-value-card__desc {
  font-size: var(--text-xs);
  color: #777;
  line-height: 1.5;
}


/* ============================================================
  09. CANCIONES Y RONDAS
  ============================================================ */
.inf-songs {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, #E8F8FF 0%, var(--inf-white) 100%);
}

.inf-songs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) { .inf-songs__grid { grid-template-columns: repeat(2, 1fr); } }

.inf-song-card {
  background: white;
  border-radius: var(--inf-radius-lg);
  overflow: hidden;
  box-shadow: var(--inf-shadow-card);
  border: 3px solid #E0F0FF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.inf-song-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(52,152,219,0.15), 0 3px 0 rgba(0,0,0,0.1);
}

.inf-song-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, #E8F4FF 0%, #F0E8FF 100%);
  border-bottom: 2px solid #E0EEFF;
}
.inf-song-card__emoji {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.inf-song-card__title {
  font-family: var(--font-inf-title);
  font-size: var(--text-md);
  color: var(--inf-purple);
  flex: 1;
}
.inf-song-card__type {
  display: block;
  font-size: var(--text-xs);
  color: #888;
  margin-top: 2px;
}

/* Botón de play */
.inf-song-card__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--inf-purple);
  color: white;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              background-color 0.2s ease;
  box-shadow: 0 4px 0 #5A2D7E;
}
.inf-song-card__play:hover { transform: scale(1.12); background: #8E44AD; }
.inf-song-card__play.is-playing { background: var(--inf-orange); box-shadow: 0 4px 0 #CC6600; }
.inf-song-card__play.is-playing::before { content: '⏸'; }
.inf-song-card__play.is-playing { font-size: 0; }

/* Letra de la canción */
.inf-song-card__lyrics {
  padding: var(--space-6);
  animation: lyricsReveal 0.4s ease;
}
@keyframes lyricsReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inf-song-card__lyrics p {
  font-family: var(--font-inf-body);
  font-size: var(--text-sm);
  line-height: 2;
  color: #555;
  margin-bottom: var(--space-4);
}
.inf-song-card__lyrics p:last-child { margin-bottom: 0; }


/* ============================================================
  10. MENSAJE ESPECIAL
  ============================================================ */
.inf-message {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #FFE8F5 0%, #E8F0FF 50%, #E8FFE8 100%);
}

.inf-message__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: white;
  border-radius: var(--inf-radius-xl);
  padding: var(--space-12) var(--space-10);
  box-shadow: 0 20px 60px rgba(155,89,182,0.15),
              0 6px 0 rgba(155,89,182,0.2);
  border: 4px solid #F0E6FF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.inf-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.inf-message__emoji-big {
  font-size: 5rem;
  line-height: 1;
  animation: heartBeat 2s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15%       { transform: scale(1.2); }
  30%       { transform: scale(1); }
  45%       { transform: scale(1.15); }
  60%       { transform: scale(1); }
}

.inf-message__title {
  font-family: var(--font-inf-title);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--inf-purple);
}

.inf-message__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 500px;
}
.inf-message__text p {
  font-size: clamp(var(--text-base), 2vw, var(--text-md));
  line-height: 1.8;
  color: #555;
}
.inf-message__text strong { color: var(--inf-purple); }

.inf-message__back {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Pieza de confetti (generada en JS) ── */
.inf-confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  opacity: 0;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(400px) rotate(720deg); }
}


/* ============================================================
  11. FOOTER INFANTIL
  ============================================================ */
.inf-footer {
  background: linear-gradient(135deg, #4A235A, #6C3483) !important;
  border-top: 4px solid var(--inf-yellow);
}
.inf-footer .footer__copy,
.inf-footer .footer__tagline,
.inf-footer .footer__nav-title { color: rgba(255,255,255,0.7) !important; }
.inf-footer .footer__link { color: rgba(255,255,255,0.6) !important; }
.inf-footer .footer__link:hover,
.inf-footer .footer__link--active { color: var(--inf-yellow) !important; }
.inf-footer .footer__logo  { color: white !important; }
.inf-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) {
  .inf-footer__inner { grid-template-columns: 2fr 1fr; }
}


/* ============================================================
  12. SISTEMA DE BOTONES INFANTIL
  Todos son grandes, coloridos, con sombra "3D" y
  área de toque generosa para móvil.
  ============================================================ */
.inf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-7);
  border-radius: var(--inf-radius-xl);
  font-family: var(--font-inf-title);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.15s ease;
  /* Área mínima de toque para móvil */
  min-height: 52px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  color: white;
}
.inf-btn:hover  { transform: translateY(-3px); }
.inf-btn:active { transform: translateY(2px); }

/* Variantes de color */
.inf-btn--green  { background: var(--inf-green);  box-shadow: var(--inf-shadow-green);  }
.inf-btn--orange { background: var(--inf-orange); box-shadow: var(--inf-shadow-orange); }
.inf-btn--purple { background: var(--inf-purple); box-shadow: var(--inf-shadow-purple); }
.inf-btn--yellow { background: var(--inf-yellow); box-shadow: var(--inf-shadow-yellow); color: #333; }
.inf-btn--pink   { background: var(--inf-pink);   box-shadow: var(--inf-shadow-pink);   }
.inf-btn--red    { background: var(--inf-red);    box-shadow: 0 6px 0 #A93226, 0 8px 20px rgba(0,0,0,0.15); }
.inf-btn--white  { background: white; color: var(--inf-purple); box-shadow: 0 6px 0 #DDD, 0 8px 20px rgba(0,0,0,0.12); }
.inf-btn--rainbow{
  background: linear-gradient(135deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #C77DFF);
  box-shadow: 0 6px 0 rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.15);
  font-size: var(--text-md);
}

/* Tamaños */
.inf-btn--sm  { padding: var(--space-2) var(--space-5); font-size: var(--text-sm); min-height: 40px; }
.inf-btn--lg  { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); min-height: 60px; }
.inf-btn--full{ width: 100%; }
.inf-btn--icon{ padding: var(--space-3); width: 52px; height: 52px; font-size: var(--text-lg); }


/* ============================================================
  13. ANIMACIONES DE ENTRADA
  Las secciones se revelan con un efecto de "pop" al hacer scroll.
  ============================================================ */
[data-animate="inf-pop"] {
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
[data-animate="inf-pop"].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}


/* ============================================================
  14. RESPONSIVE
  ============================================================ */
@media (max-width: 640px) {
  .inf-hero { padding-top: 70px; }
  .inf-hero__content { padding: var(--space-6) var(--space-4); }
  .inf-hero__buttons { flex-direction: column; align-items: center; width: 100%; }
  .inf-hero__buttons .inf-btn { width: 100%; }
  .inf-hero__subtitle { font-size: var(--text-base); }
  .inf-cloud--3 { display: none; }
  .inf-rainbow { width: 320px; }
  .inf-message__inner { padding: var(--space-8) var(--space-5); }
  .inf-message__back { flex-direction: column; align-items: center; width: 100%; }
  .inf-message__back .inf-btn { width: 100%; }
}