/* VORVEX Preescolar — cielo claro, colores de crayola, letra redonda y botones para dedos pequeños. */
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url(../ingles/fonts/baloo-2-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(../ingles/fonts/baloo-2-latin-800-normal.woff2) format('woff2'); }
:root {
  --cielo: #E8F5FF; --cielo2: #D3ECFF; --tinta: #1B2A6B; --suave: #4A5890; --blanco: #fff;
  --sol: #FFC93C; --oro: #F6C445; --oro2: #FFE08A; --verde: #2BB673; --rojo: #FF5A4E; --rosa: #FF5FA2; --azul: #3DA5FF;
  --radio: 26px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--tinta);
  font: 600 18px/1.35 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  background: radial-gradient(circle at 15% 8%, #fff 0 60px, transparent 61px), radial-gradient(circle at 85% 4%, #fff 0 40px, transparent 41px), linear-gradient(var(--cielo), var(--cielo2));
  background-attachment: fixed;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 4px solid var(--azul); outline-offset: 3px; }

.barra { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--blanco); box-shadow: 0 3px 0 #c9e3f7; position: sticky; top: 0; z-index: 10; }
.volver { font-size: 26px; text-decoration: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--cielo); }
.marca { font-weight: 800; font-size: 22px; text-decoration: none; flex: 1; }
.estrellas { background: var(--oro2); border-radius: 999px; padding: 6px 14px; font-weight: 800; }

main { max-width: 860px; margin: 0 auto; padding: 14px 16px 60px; outline: none; }
.cargando { text-align: center; margin-top: 60px; color: var(--suave); }
.migas { margin: 4px 0 8px; } .migas a { color: var(--suave); text-decoration: none; font-size: 17px; }
.tit { font-size: clamp(26px, 6vw, 36px); margin: 10px 0 4px; line-height: 1.1; }
.tit small { font-size: 18px; color: var(--suave); font-weight: 600; }
.tit2 { font-size: 22px; font-weight: 800; margin: 6px 0; text-align: center; }
.adulto { font-size: 15px; color: var(--suave); line-height: 1.45; max-width: 62ch; }
.mini { font-size: 14px; color: var(--suave); }

/* Profe Búho: lo único que se mueve solo, y solo cuando habla */
.guia { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.buho { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--blanco); font-size: 48px; line-height: 1; box-shadow: 0 4px 0 #c9e3f7; }
.buho.habla { animation: bobo .5s ease-in-out infinite alternate; }
@keyframes bobo { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-6px) rotate(4deg); } }
.globo { position: relative; margin: 0; background: var(--blanco); border-radius: 20px; padding: 10px 16px; font-size: 19px; box-shadow: 0 3px 0 #c9e3f7; }
.globo::before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); border: 10px solid transparent; border-right-color: var(--blanco); border-left: 0; }

/* Inicio y listas */
.grados, .cursos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 10px 0 16px; }
.grado, .curso { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; text-decoration: none; text-align: center;
  background: var(--blanco); border-radius: var(--radio); border: 4px solid var(--c); box-shadow: 0 6px 0 var(--c); }
.grado:active, .curso:active, .paso:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--c); }
.gic, .cic { font-size: 64px; line-height: 1; }
.grado b, .curso b { font-size: 22px; line-height: 1.15; }
.barrita { width: 80%; height: 10px; background: #eef4fa; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.barrita i { display: block; height: 100%; background: var(--c); }

/* Camino de lecciones */
.camino { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.paso { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--blanco); border-radius: 22px; text-decoration: none; border: 3px solid #e3edf7; box-shadow: 0 4px 0 #e3edf7; }
.paso.sig { border-color: var(--c); box-shadow: 0 4px 0 var(--c); }
.paso.hecho { background: #f3fff8; }
.pic { font-size: 40px; text-align: center; }
.pnom { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.pst { font-size: 16px; white-space: nowrap; }
.pcand { font-size: 13px; background: var(--oro2); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pcand.gratis { background: #d8f7e7; }

/* Lección */
.progreso { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.salir { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--blanco); text-decoration: none; font-size: 20px; }
.pbar { flex: 1; height: 16px; background: var(--blanco); border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 99px; transition: width .3s; }
.mira { display: grid; place-items: center; width: 100%; min-height: 240px; border: 0; background: var(--blanco); border-radius: 32px; box-shadow: 0 6px 0 #c9e3f7; margin: 8px 0 16px; }
.mira span { font-size: clamp(72px, 22vw, 140px); line-height: 1.1; letter-spacing: 8px; text-align: center; }
.arranque { background: var(--blanco); border-radius: 32px; padding: 26px 16px; text-align: center; box-shadow: 0 6px 0 #c9e3f7; }
.aic { font-size: 110px; line-height: 1; }
.fila { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 3px solid var(--tinta); background: var(--blanco); font-weight: 800; font-size: 19px; text-decoration: none; box-shadow: 0 4px 0 var(--tinta); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }
.btn.grande { min-width: 140px; min-height: 76px; font-size: 32px; background: var(--verde); color: #fff; border-color: #1b7a4c; box-shadow: 0 6px 0 #1b7a4c; }
.btn.oro { background: var(--oro); color: var(--tinta); border-color: var(--tinta); }

.zona { background: var(--blanco); border-radius: 32px; padding: 16px; box-shadow: 0 6px 0 #c9e3f7; transition: background .3s; }
.zona.logrado { background: #f0fff7; }
.ops { display: grid; gap: 12px; margin-top: 10px; }
.ops.n2 { grid-template-columns: repeat(2, 1fr); }
.ops.n3 { grid-template-columns: repeat(3, 1fr); }
.ops.n4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .ops.n4 { grid-template-columns: repeat(4, 1fr); } }
.op { min-height: 110px; border-radius: 24px; border: 4px solid #dfe9f3; background: #fbfdff; font-size: clamp(44px, 12vw, 64px); line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 5px 0 #dfe9f3; padding: 6px; }
.op:active { transform: translateY(3px); }
.op small { font-size: 20px; font-weight: 800; }
.op.num { font-size: clamp(48px, 13vw, 70px); font-weight: 800; color: var(--tinta); }
.op.ok { border-color: var(--verde); background: #e3f9ee; box-shadow: 0 5px 0 var(--verde); }
.op:disabled:not(.ok) { opacity: .35; }
.op.usado { opacity: .25; }
.sino .si { border-color: #9fe0bd; } .sino .no { border-color: #ffc2bd; }
.sacude { animation: sacude .35s; }
@keyframes sacude { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.ver { text-align: center; font-size: clamp(70px, 20vw, 120px); line-height: 1.15; letter-spacing: 6px; }
.cosas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cosa { border: 0; background: transparent; font-size: clamp(40px, 11vw, 58px); width: 1.45em; height: 1.45em; border-radius: 18px; position: relative; padding: 0; }
.cosas.muchas .cosa { font-size: clamp(32px, 8vw, 44px); }
.cosa.contada { background: #fff5cc; }
.cosa.contada::after { content: attr(data-n); position: absolute; right: -2px; top: -4px; font-size: 16px; font-weight: 800; background: var(--azul); color: #fff; border-radius: 99px; min-width: 24px; line-height: 24px; }
.fila-orden { display: flex; gap: 10px; justify-content: center; margin-bottom: 6px; }
.hueco { width: 76px; height: 76px; border-radius: 20px; border: 3px dashed #b9cfe4; display: grid; place-items: center; font-size: 44px; }
.hueco.lleno { border-style: solid; border-color: var(--verde); background: #e3f9ee; }
.pares { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pares .col { display: grid; gap: 12px; }
.op.par { min-height: 92px; }
.op.elegido { border-color: var(--azul); background: #e6f3ff; box-shadow: 0 5px 0 var(--azul); }
.serie { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: clamp(36px, 10vw, 54px); }
.serie .falta { border: 3px dashed var(--azul); border-radius: 16px; padding: 0 6px; }
.pie { min-height: 90px; text-align: center; }
.yupi { font-size: 22px; font-weight: 800; color: #17804d; margin: 12px 0 6px; }

/* Final */
.final { text-align: center; background: var(--blanco); border-radius: 32px; padding: 20px; box-shadow: 0 6px 0 #c9e3f7; }
.final .big { font-size: 54px; letter-spacing: 4px; }
.estampa { font-size: 96px; width: 150px; height: 150px; margin: 6px auto; border-radius: 30px; display: grid; place-items: center; background: var(--oro2); transform: rotate(-4deg); box-shadow: 0 6px 0 #d8b13a; }
.confeti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confeti span { position: absolute; top: -40px; font-size: 30px; animation: cae 2.2s ease-in forwards; }
@keyframes cae { to { transform: translateY(110vh) rotate(360deg); } }

/* Para adultos: listón y pase */
.liston { background: var(--tinta); color: #fff; border-radius: 22px; padding: 12px 16px; margin: 4px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 3px dashed var(--oro); font-family: system-ui, sans-serif; font-weight: 500; font-size: 15px; }
.liston p { margin: 0; flex: 1 1 260px; } .liston b { color: var(--oro2); }
.liston .btn { min-height: 46px; font-size: 16px; box-shadow: 0 3px 0 #b88a12; }
.pase { display: grid; grid-template-columns: 110px 1fr; background: var(--blanco); border: 3px solid var(--tinta); border-radius: 24px; overflow: hidden; }
.talon { background: var(--oro); border-right: 3px dashed var(--tinta); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 40px; padding: 14px 6px; }
.talon b { font-size: 22px; } .talon small { font-size: 14px; }
.pcuerpo { padding: 18px 20px; }
.pcuerpo h1 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.pcuerpo p { font-family: system-ui, sans-serif; font-weight: 500; font-size: 16px; }
@media (max-width: 560px) {
  .pase { grid-template-columns: 1fr; } .talon { flex-direction: row; gap: 10px; border-right: 0; border-bottom: 3px dashed var(--tinta); }
  .buho { width: 64px; height: 64px; font-size: 40px; } .globo { font-size: 17px; }
  .hueco { width: 64px; height: 64px; font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .buho.habla, .sacude { animation: none; } .pbar i { transition: none; } }
/* Varias imágenes en una sola opción o escena: que bajen de renglón en vez de salirse */
.ver, .op, .mira span { overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.op { font-size: clamp(34px, 10vw, 64px); }
.ver { letter-spacing: 2px; font-size: clamp(56px, 16vw, 120px); }
