/* =========================================================
   Home (index.html): versión "más viva": secciones de color con olas,
   dibujos que flotan, ejemplos que suenan y un minijuego.
   Se carga DESPUÉS de styles.css. Colores del logo + tipografías del sitio.
   ========================================================= */

.home {
  background: #fff8ee;
  overflow-x: hidden;
}

.home h1,
.home h2,
.home h3 {
  font-family: var(--font-titulo);
}

.home section {
  padding: 0;
}

/* ---------- Aparición al hacer scroll ---------- */
.js .revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.js .revelar.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Olas entre secciones ---------- */
.h-ola {
  display: block;
  width: 100%;
  height: 60px;
  position: absolute;
  left: 0;
  bottom: -1px;
}

.h-ola-arriba {
  top: -1px;
  bottom: auto;
}

.h-seccion {
  position: relative;
  padding: 110px 0 120px !important;
}

.h-crema { background: #fff8ee; }
.h-teal { background: #78bcb2; color: #fff; }
.h-blanco { background: #ffffff; }
.h-dorado { background: #fbe6bd; }
.h-durazno { background: var(--color-hero-bg); }

/* ---------- Títulos de sección ---------- */
.h-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.h-head h2,
.h-proba-texto h2,
.h-contacto-grid h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 8px 0 16px;
  color: var(--color-header-bg);
}

.h-head p {
  color: var(--color-texto-suave);
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.h-eyebrow {
  display: inline-block;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-logo-rosa);
  padding: 5px 14px;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.h-eyebrow-claro {
  background: #fff;
  color: #3f7f77;
}

/* ---------- Botones ---------- */
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.h-btn:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.h-btn:active {
  transform: translateY(2px);
}

.h-btn-rosa {
  background: var(--color-logo-rosa);
  color: #fff;
  box-shadow: 0 6px 0 var(--color-logo-rosa-dark);
}

.h-btn-linea {
  border: 3px solid var(--color-outline-oscuro);
  color: var(--color-outline-oscuro);
  background: rgba(255, 255, 255, 0.35);
}

.h-btn-blanco {
  background: #fff;
  color: #3f7f77;
  box-shadow: 0 6px 0 #4f8f86;
}

/* =========================================================
   HERO
   ========================================================= */
.home .h-hero {
  position: relative;
  background-color: var(--color-hero-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 2px, transparent 2.5px);
  background-size: 28px 28px;
  padding: 56px 0 140px;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.h-pastilla {
  display: inline-block;
  font-family: var(--font-titulo);
  font-weight: 600;
  background: #fff;
  color: var(--color-header-bg);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 18px;
  box-shadow: 0 4px 0 rgba(77, 66, 50, 0.12);
}

.h-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--color-outline-oscuro);
}

.h-multicolor {
  white-space: nowrap;
}

.h-multicolor span {
  display: inline-block;
  animation: saltito 2.8s ease-in-out infinite;
}

.h-multicolor span:nth-child(1) { color: #eb5c5e; animation-delay: 0s; }
.h-multicolor span:nth-child(2) { color: #e0a23c; animation-delay: 0.1s; }
.h-multicolor span:nth-child(3) { color: #5fa89d; animation-delay: 0.2s; }
.h-multicolor span:nth-child(4) { color: #b6aa37; animation-delay: 0.3s; }
.h-multicolor span:nth-child(5) { color: #eb5c5e; animation-delay: 0.4s; }
.h-multicolor span:nth-child(6) { color: #e0a23c; animation-delay: 0.5s; }
.h-multicolor span:nth-child(7) { color: #5fa89d; animation-delay: 0.6s; }

@keyframes saltito {
  0%, 70%, 100% { transform: translateY(0); }
  80% { transform: translateY(-10px); }
  90% { transform: translateY(2px); }
}

.h-subrayado {
  position: relative;
  white-space: nowrap;
}

.h-subrayado::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 25 1 50 7 T 100 7 T 150 7 T 198 6' fill='none' stroke='%23edb758' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.h-lead {
  font-size: 1.15rem;
  color: #6f5d51;
  max-width: 46ch;
  margin: 0 0 28px;
}

.h-acciones {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.h-datos {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.h-datos li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-header-bg);
}

.h-dato-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: var(--color-logo-teal);
}

.h-datos li:nth-child(2) .h-dato-num { background: var(--color-logo-gold); }
.h-datos li:nth-child(3) .h-dato-num { background: var(--color-logo-rosa); }

.h-hero-visual {
  position: relative;
  padding: 30px 20px;
}

/* Tablero animado del hero: palmas, rimas y comienzos */
.h-tablero {
  position: relative;
  transform: rotate(2deg);
  background-color: #fffdf9;
  background-image: radial-gradient(rgba(237, 183, 88, 0.22) 1.6px, transparent 2px);
  background-size: 20px 20px;
  border: 6px solid #fff;
  outline: 3px solid var(--color-logo-rosa);
  border-radius: 34px;
  padding: 18px 22px 20px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 0 #e2b99a, 0 30px 44px -22px rgba(77, 66, 50, 0.55);
}

.h-tab-cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h-tab-luces {
  display: flex;
  gap: 6px;
}

.h-tab-luces i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-logo-rosa);
  animation: luz 1.8s ease-in-out infinite;
}

.h-tab-luces i:nth-child(2) { background: var(--color-logo-gold); animation-delay: 0.3s; }
.h-tab-luces i:nth-child(3) { background: var(--color-logo-teal); animation-delay: 0.6s; }

@keyframes luz {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.h-tab-etiqueta {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--color-header-bg);
  padding: 6px 16px;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.h-tab-escena {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 4px;
}

.h-tab-escena.sale {
  animation: escena-sale 0.35s ease-in forwards;
}

.h-tab-escena.entra {
  animation: escena-entra 0.45s cubic-bezier(0.3, 1.5, 0.6, 1) both;
}

@keyframes escena-sale {
  to { opacity: 0; transform: translateX(-30px) scale(0.96); }
}

@keyframes escena-entra {
  from { opacity: 0; transform: translateX(30px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.h-tab-dibujos {
  display: flex;
  align-items: center;
  gap: 22px;
}

.h-tab-dibujo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fde8e5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.h-tab-dibujo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.h-tab-dibujos.dos .h-tab-dibujo {
  width: 124px;
  height: 124px;
}

.h-tab-dibujos.dos .h-tab-dibujo:nth-child(3) {
  background: #e3f2ef;
}

.h-tab-mas {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-logo-gold);
}

.h-tab-silabas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}

.h-tab-silabas span {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  padding: 6px 16px;
  border-radius: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.14);
  background: var(--color-logo-rosa);
}

.h-tab-silabas span:nth-child(4n + 2) { background: var(--color-logo-gold); }
.h-tab-silabas span:nth-child(4n + 3) { background: var(--color-logo-teal); }
.h-tab-silabas span:nth-child(4n + 4) { background: var(--color-logo-oliva); }

.h-tab-silabas.palabras span {
  background: #fff;
  color: var(--color-header-bg);
  box-shadow: 0 5px 0 #efe3cf;
  border: 2px solid #efe3cf;
}

.h-tab-silabas.palabras b {
  color: var(--color-logo-rosa);
}

.h-tab-silabas.palabras.inicio b {
  color: var(--color-logo-teal);
}

.js .h-tab-silabas span {
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
}

.js .h-tab-silabas span.pop {
  opacity: 1;
  transform: none;
  transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.6, 1), opacity 0.2s;
}

.h-tab-resultado {
  margin: 0;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-logo-rosa-dark);
  min-height: 1.6em;
}

.js .h-tab-resultado {
  opacity: 0;
  transform: translateY(8px);
}

.js .h-tab-resultado.pop {
  opacity: 1;
  transform: none;
  transition: 0.35s ease-out;
}

/* Estallido de "palma" sobre el dibujo */
.h-plas {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 4px solid var(--color-logo-gold);
  opacity: 0;
  pointer-events: none;
  animation: plas 0.5s ease-out;
}

@keyframes plas {
  from { opacity: 1; transform: scale(0.85); }
  to { opacity: 0; transform: scale(1.25); }
}

.h-tab-pie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.h-tab-puntos {
  display: flex;
  gap: 7px;
}

.h-tab-puntos i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #efe3cf;
  transition: 0.3s;
}

.h-tab-puntos i.on {
  width: 26px;
  border-radius: 999px;
  background: var(--color-logo-gold);
}

.h-cinta {
  position: absolute;
  width: 90px;
  height: 26px;
  background: rgba(237, 183, 88, 0.85);
  z-index: 2;
}

.h-cinta-1 { top: -10px; left: 24px; transform: rotate(-8deg); }
.h-cinta-2 { top: -10px; right: 24px; transform: rotate(7deg); background: rgba(120, 188, 178, 0.85); }

.h-flota {
  position: absolute;
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 10px 20px -8px rgba(77, 66, 50, 0.4);
  z-index: 3;
  animation: flotar 5s ease-in-out infinite;
}

.h-flota-1 { top: -18px; left: -14px; }
.h-flota-2 { top: -34px; right: 30%; width: 74px; height: 74px; animation-delay: -1.2s; }
.h-flota-3 { bottom: -46px; right: -22px; animation-delay: -2.4s; }
.h-flota-4 { bottom: -34px; left: 14%; width: 78px; height: 78px; animation-delay: -3.3s; }

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

.h-burbuja {
  position: absolute;
  z-index: 3;
  font-family: var(--font-titulo);
  font-weight: 700;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  animation: flotar 6s ease-in-out infinite;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.h-burbuja-1 { background: var(--color-logo-rosa); top: 40%; left: -34px; animation-delay: -0.8s; }
.h-burbuja-2 { background: var(--color-logo-teal); top: 20%; right: -26px; animation-delay: -2s; }
.h-burbuja-3 { background: var(--color-logo-oliva); bottom: 24%; right: -30px; animation-delay: -3.5s; }

/* =========================================================
   CINTA QUE SE MUEVE
   ========================================================= */
.h-cinta-sonidos {
  background: #eb5c5e;
  overflow: hidden;
  padding: 6px 0 30px;
  margin-top: -1px;
}

.h-cinta-pista {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: desfile 38s linear infinite;
}

.h-cinta-pista span {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.h-cinta-pista img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 7px;
}

@keyframes desfile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   NIVELES (con ejemplo que suena)
   ========================================================= */
.h-instruccion {
  font-family: var(--font-titulo);
  font-weight: 600;
  color: var(--color-header-bg);
  margin: 0 0 18px;
}

.h-niveles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.h-nivel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-l);
  border: 3px solid var(--c);
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 0 var(--c-suave);
  transition: transform 0.2s ease;
}

.js .h-nivel.revelar.visible:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.h-nivel-num {
  position: absolute;
  top: -20px;
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
}

.h-nivel h3 {
  font-size: 1.2rem;
  margin: 8px 0 6px;
  color: var(--color-header-bg);
}

.h-nivel p {
  font-size: 0.92rem;
  color: var(--color-texto-suave);
  margin: 0 0 16px;
  flex: 1;
}

.h-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  background: var(--c-suave);
  border-radius: var(--radius-m);
  padding: 10px;
  margin-bottom: 14px;
}

.h-demo-dibujo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.h-ficha {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
  color: var(--color-header-bg);
  border-radius: 10px;
  padding: 5px 10px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.h-ficha b {
  color: var(--c);
}

.h-ficha.activa {
  background: var(--c);
  color: #fff;
  transform: translateY(-5px) scale(1.12);
}

.h-ficha.activa b {
  color: #fff;
}

.h-escuchar {
  align-self: center;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--c);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease;
}

.h-escuchar:active {
  transform: translateY(3px);
}

.h-escuchar.sonando {
  animation: latido-h 0.8s ease-in-out infinite;
}

@keyframes latido-h {
  50% { transform: scale(1.08); }
}

/* =========================================================
   PROBÁ UN JUEGO
   ========================================================= */
.h-proba-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.h-proba-texto h2 {
  color: #fff;
}

.h-proba-texto p {
  font-size: 1.1rem;
  color: #f4fbfa;
  margin: 0 0 26px;
}

.h-resalte {
  background: var(--color-logo-gold);
  color: var(--color-header-bg);
  padding: 0 10px;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-2deg);
}

.h-mini {
  position: relative;
  background: #fff;
  color: var(--color-texto);
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 14px 0 #4f8f86;
  text-align: center;
  overflow: hidden;
}

.h-mini-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.h-mini-parlante {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--color-logo-rosa);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 var(--color-logo-rosa-dark);
  flex-shrink: 0;
}

.h-mini-parlante svg {
  width: 28px;
  height: 28px;
}

.h-mini-parlante.sonando {
  animation: latido-h 0.8s ease-in-out infinite;
}

.h-mini-consigna {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-header-bg);
  margin: 0;
}

.h-mini-modelo {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
  border-radius: 24px;
  border: 5px solid var(--color-logo-rosa);
  background: #fde8e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-mini-modelo img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.h-mini-opciones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.h-mini-op {
  aspect-ratio: 1;
  background: #fff;
  border: 4px solid var(--color-borde);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--color-borde);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.h-mini-op img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.h-mini-op:hover {
  transform: translateY(-4px);
  border-color: var(--color-logo-teal);
}

.h-mini-op.bien {
  border-color: #5aa469;
  background: #eaf7ec;
  box-shadow: 0 6px 0 #3f7f4d;
  animation: festejo-h 0.6s ease;
}

.h-mini-op.mal {
  animation: sacudir-h 0.45s ease;
  opacity: 0.4;
}

@keyframes festejo-h {
  30% { transform: scale(1.12) rotate(-3deg); }
  60% { transform: scale(0.97) rotate(2deg); }
}

@keyframes sacudir-h {
  20% { transform: translateX(-9px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.h-mini-estrellas {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  min-height: 26px;
}

.h-mini-estrellas svg {
  width: 26px;
  height: 26px;
  animation: aparecer-h 0.4s ease;
}

@keyframes aparecer-h {
  from { transform: scale(0) rotate(-90deg); }
  to { transform: scale(1); }
}

.h-mini-cartel {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 4;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 2.4rem;
  color: #fff;
  background: var(--color-logo-gold);
  padding: 8px 26px;
  border-radius: 999px;
  box-shadow: 0 7px 0 #c9953a;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
}

.h-mini-cartel.mostrar {
  animation: cartel-h 1.5s ease forwards;
}

@keyframes cartel-h {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-6deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-3deg); }
  30% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -70%) rotate(-3deg); }
}

.h-mini-fin p {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-header-bg);
  margin: 8px 0 18px;
}

.h-mini-fin .h-btn + .h-btn {
  margin-left: 10px;
}

.h-mini-otra {
  background: var(--color-logo-teal);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #4f8f86;
}

.h-confeti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

/* =========================================================
   EL TALLER: tarjetas tipo sticker
   ========================================================= */
.h-stickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.h-sticker {
  background: #fff8ee;
  border-radius: var(--radius-l);
  padding: 30px 26px;
  border: 3px dashed var(--c);
  text-align: center;
}

.js .h-sticker.revelar.visible {
  transform: rotate(var(--giro));
}

.js .h-sticker.revelar.visible:hover {
  transform: rotate(0deg) scale(1.03);
  transition: transform 0.2s ease;
}

.h-sticker-icono {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.h-sticker-icono i {
  display: inline-flex;
}

.h-sticker-icono img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.h-sticker h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: var(--color-header-bg);
}

.h-sticker p {
  color: var(--color-texto-suave);
  margin: 0;
}

/* =========================================================
   FECHAS
   ========================================================= */
.h-calendario {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 999px;
  padding: 12px 14px 12px 28px;
  margin-bottom: 30px;
  box-shadow: 0 8px 0 #f0cf8e;
  width: fit-content;
  max-width: 100%;
}

.h-cal-mes {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-header-bg);
}

.h-cal-dias {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.h-cal-dias li {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  color: #fff;
  background: var(--color-logo-rosa);
}

.h-cal-dias li:nth-child(2) { background: var(--color-logo-gold); }
.h-cal-dias li:nth-child(3) { background: var(--color-logo-teal); }
.h-cal-dias li:nth-child(4) { background: var(--color-logo-oliva); }
.h-cal-dias li:nth-child(5) { background: #6c8ec9; }

.h-cal-dias small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.h-grupos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.h-grupo {
  background: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(77, 66, 50, 0.1);
}

.h-grupo-cabeza {
  background: var(--c);
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 24px;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.3rem;
}

.h-grupo-edad,
.h-grupo-costo {
  font-size: 2.6rem;
  line-height: 1;
}

.h-grupo-cuerpo {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-grupo .dato {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h-grupo .dato strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-texto-suave);
}

.h-grupo .dato span {
  font-size: 1rem;
  color: var(--color-texto);
}

.h-grupo .dato-destacado {
  background: #fdf1dc;
  border-radius: var(--radius-s);
  padding: 10px 12px;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.h-contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.h-contacto-texto {
  color: #6f5d51;
  font-size: 1.1rem;
}

.h-contacto-dibujos {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.h-contacto-dibujos img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 9px;
  animation: flotar 5s ease-in-out infinite;
}

.h-contacto-dibujos img:nth-child(2) { animation-delay: -1.6s; }
.h-contacto-dibujos img:nth-child(3) { animation-delay: -3.2s; }

.h-contacto-botones {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h-contacto-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 26px 10px 10px;
  text-decoration: none;
  color: var(--color-texto);
  box-shadow: 0 6px 0 rgba(77, 66, 50, 0.14);
  transition: transform 0.15s ease;
}

.h-contacto-btn:hover {
  transform: translateX(6px) rotate(-1deg);
}

.h-contacto-btn .icono {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.h-contacto-btn .icono i {
  display: inline-flex;
}

.h-contacto-btn b {
  display: block;
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  color: var(--color-header-bg);
}

.h-contacto-btn small {
  color: var(--color-texto-suave);
  font-size: 0.92rem;
}

.home .site-footer {
  margin-top: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .h-niveles {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }
  .h-proba-grid,
  .h-hero-grid,
  .h-contacto-grid {
    grid-template-columns: 1fr;
  }
  .h-hero-visual {
    max-width: 520px;
    margin: 20px auto 0;
  }
}

@media (max-width: 760px) {
  .h-stickers,
  .h-grupos {
    grid-template-columns: 1fr;
  }
  .h-seccion {
    padding: 84px 0 96px !important;
  }
  .h-calendario {
    border-radius: var(--radius-l);
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .h-niveles {
    grid-template-columns: 1fr;
  }
  .home .h-hero {
    padding: 36px 0 110px;
  }
  .h-flota {
    width: 64px;
    height: 64px;
    padding: 8px;
  }
  .h-flota-2,
  .h-flota-4 {
    width: 56px;
    height: 56px;
  }
  .h-burbuja-1 { left: -6px; }
  .h-burbuja-2 { right: -6px; }
  .h-burbuja-3 { display: none; }
  .h-tablero {
    min-height: 370px;
    padding: 14px 14px 16px;
  }
  .h-tab-dibujo {
    width: 120px;
    height: 120px;
  }
  .h-tab-dibujos.dos .h-tab-dibujo {
    width: 96px;
    height: 96px;
  }
  .h-tab-dibujos {
    gap: 10px;
  }
  .h-tab-silabas span {
    font-size: 1.35rem;
    padding: 5px 12px;
  }
  .h-tab-etiqueta {
    font-size: 1rem;
  }
  .h-cal-dias li {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .h-cinta-pista span {
    font-size: 1.25rem;
  }
  .h-cinta-pista img {
    width: 44px;
    height: 44px;
  }
  .h-mini {
    padding: 18px 14px;
  }
  .h-mini-consigna {
    font-size: 1.15rem;
  }
  .h-mini-fin .h-btn + .h-btn {
    margin: 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h-multicolor span,
  .h-flota,
  .h-burbuja,
  .h-tab-luces i,
  .h-tab-escena,
  .h-plas,
  .h-cinta-pista,
  .h-contacto-dibujos img {
    animation: none;
  }
  .js .revelar {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.h-mini-op.nombrando {
  border-color: var(--color-logo-teal);
  transform: translateY(-5px) scale(1.04);
}

.h-grupo .precio-pack {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-header-bg);
}

.h-grupo .precio-pack small {
  display: block;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-texto-suave);
}

.pack-incluye {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--color-texto);
}

.pack-incluye li {
  position: relative;
  padding-left: 24px;
}

.pack-incluye li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-logo-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Folleto descargable (sección El taller) ---------- */
.h-folleto {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  background: #fde8e5;
  border: 3px solid var(--color-logo-rosa);
  border-radius: var(--radius-l);
  padding: 22px 28px;
  box-shadow: 0 8px 0 #f6c3bf;
}

.h-folleto-dibujo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flotar 5s ease-in-out infinite;
}

.h-folleto-dibujo img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.h-folleto h3 {
  font-size: 1.45rem;
  margin: 10px 0 4px;
  color: var(--color-header-bg);
}

.h-folleto p {
  margin: 0;
  color: #6f5d51;
}

.h-folleto-btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .h-folleto {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .h-folleto .h-eyebrow {
    margin: 0 auto;
  }
}

/* Pausa del minijuego */
.h-mini-pausa {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--color-borde);
  background: #fff;
  color: var(--color-header-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-mini-pausa svg {
  width: 20px;
  height: 20px;
}

.h-mini-pausa.activo {
  background: var(--color-header-bg);
  border-color: var(--color-header-bg);
  color: #fff;
}

/* Patrones de fondo divertidos (secciones "Probá un juego" y "El taller") */
.h-teal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='0.16'%3E%3Cpath d='M22 40q12-14 24 0t24 0'/%3E%3Cpath d='M150 30l6 12 13 2-9 9 2 13-12-6-12 6 2-13-9-9 13-2z'/%3E%3Ccircle cx='200' cy='110' r='10'/%3E%3Cpath d='M40 150v-26l20-5v26'/%3E%3Ccircle cx='34' cy='150' r='6'/%3E%3Ccircle cx='54' cy='145' r='6'/%3E%3Cpath d='M120 190q10-12 20 0t20 0t20 0'/%3E%3Cpath d='M100 92l10 10M110 92l-10 10'/%3E%3Cpath d='M190 200a10 10 0 1 1 0 .1'/%3E%3Cpath d='M206 20q6 6 0 12t0 12'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='0.16'%3E%3Ccircle cx='90' cy='30' r='4'/%3E%3Ccircle cx='230' cy='160' r='4'/%3E%3Ccircle cx='70' cy='210' r='5'/%3E%3Ccircle cx='140' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.h-blanco {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg opacity='0.22'%3E%3Ccircle cx='40' cy='60' r='6' fill='%23edb758'/%3E%3Ccircle cx='220' cy='40' r='4' fill='%2378bcb2'/%3E%3Cpath d='M140 170q9-10 18 0t18 0' fill='none' stroke='%23eb5c5e' stroke-width='3.5' stroke-linecap='round'/%3E%3Ccircle cx='310' cy='200' r='5' fill='%23eb5c5e'/%3E%3Ccircle cx='70' cy='290' r='4' fill='%2378bcb2'/%3E%3Ccircle cx='250' cy='320' r='6' fill='%23b6aa37'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 360px;
}
