/* ZooApp — página de lanzamiento
   Layout: hero de selva con teléfonos → funciones en tarjetas → banda oscura del juego → progreso → preguntas → cierre.
   Tokens tomados del sistema de diseño de la App (verde para sol). */
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 500; font-display: swap; src: url("../fonts/noto-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --bosque: #053D1E; --esmeralda: #06733A; --lima: #B8F25C; --hoja: #D3EBDB; --niebla: #EEF4F0;
  --tinta: #0B2416; --tinta-2: #234A33; --borde: #A9C7B3; --papel: #FFFFFF; --selva: #163C2C;
  --comun: #4F6B5A; --especial: #8A5D00;
  --display: "Barlow", "Arial Narrow", Arial, sans-serif;
  --texto: "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 17px; line-height: 1.6; font-weight: 500; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--esmeralda); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--lima); color: var(--bosque); padding: 8px 14px; border-radius: 10px; font-weight: 800; z-index: 50; }
.saltar:focus { left: 12px; }

.envoltura { max-width: var(--ancho); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.etiqueta { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--esmeralda); }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0; font: 700 17px/1 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.boton:hover { transform: translateY(-1px); }
.boton-primario { background: var(--esmeralda); color: #fff; border-bottom: 3px solid var(--bosque); }
.boton-primario:hover { background: #075F31; }
.boton-lima { background: var(--lima); color: var(--bosque); border-bottom: 3px solid #8CC63A; }
.boton-claro { background: #fff; color: var(--bosque); border: 2px solid var(--esmeralda); }
.boton svg { flex-shrink: 0; }

/* ---------- encabezado ---------- */
.encabezado { position: absolute; inset: 0 0 auto; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.encabezado .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.marca img { width: 128px; height: auto; }
.navegacion { display: flex; align-items: center; gap: 28px; }
.navegacion a:not(.boton) { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.navegacion a:not(.boton):hover { color: var(--lima); }
.navegacion .boton { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--selva); color: #fff; }
.hero-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,61,30,.96) 0%, rgba(5,61,30,.88) 45%, rgba(5,61,30,.45) 100%); }
.hero .envoltura { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-block: 140px 96px; }
.hero-texto { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero .etiqueta { color: var(--lima); }
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--lima); }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--hoja); max-width: 34em; }

/* bloque de descarga: cambia según data-estado del body */
.descarga { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; max-width: 520px; }
.proximamente { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--lima); letter-spacing: -0.01em; }
.registro { display: flex; gap: 10px; flex-wrap: wrap; }
.registro label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.registro input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(211,235,219,.6); background: rgba(255,255,255,.96); color: var(--tinta); font: 500 16px var(--texto); }
.registro input::placeholder { color: #4F6B5A; }
.registro input[aria-invalid="true"] { border: 2px solid #F1B5AE; }
.nota { font-size: 13px; line-height: 1.5; color: var(--hoja); }
.nota a { color: var(--lima); }
.mensaje { font-size: 15px; font-weight: 700; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: rgba(184,242,92,.14); color: #fff; }
.mensaje[data-tipo="error"] { background: rgba(180,35,24,.25); }
.tiendas { display: flex; flex-wrap: wrap; gap: 12px; }
.tienda { display: inline-flex; align-items: center; gap: 10px; height: 60px; min-width: 196px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid #A6A6A6; transition: transform .15s ease; }
.tienda:hover { transform: translateY(-1px); }
.tienda span { display: flex; flex-direction: column; line-height: 1.1; }
.tienda small { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.tienda b { font-family: var(--texto); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.tienda[aria-disabled="true"] { cursor: default; }
.tienda[aria-disabled="true"]:hover { transform: none; }
.tienda img { height: 60px; width: auto; }
body[data-estado="proximamente"] [data-solo="disponible"],
body[data-estado="disponible"] [data-solo="proximamente"] { display: none !important; }

/* teléfonos */
.telefono { flex-shrink: 0; width: 260px; aspect-ratio: 408 / 862; max-width: 100%; border-radius: 40px; background: var(--tinta); padding: 9px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.hero-telefonos { position: relative; height: 600px; min-width: 0; }
.hero-telefonos .telefono { position: absolute; }
.hero-telefonos .t1 { left: 4%; top: 70px; transform: rotate(-7deg); width: 240px; }
.hero-telefonos .t2 { left: 50%; top: 0; transform: translateX(-50%); width: 270px; z-index: 2; }
.hero-telefonos .t3 { right: 2%; top: 90px; transform: rotate(7deg); width: 240px; }

/* ---------- secciones ---------- */
.seccion { padding-block: 104px; }
.titulo-seccion { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.titulo-seccion h2 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; color: var(--bosque); }
.titulo-seccion p { font-size: 18px; color: var(--tinta-2); max-width: 40em; }

/* funciones */
.funciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.funcion { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; padding: 32px 0 0 32px; border-radius: 24px; background: var(--niebla); border: 1.5px solid var(--borde); min-height: 360px; }
.funcion-texto { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; min-width: 0; }
.funcion h3 { font-size: 30px; font-weight: 800; color: var(--bosque); }
.funcion p { color: var(--tinta-2); font-size: 16px; }
.funcion ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.funcion li { display: flex; gap: 10px; align-items: flex-start; }
.funcion li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--hoja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306733A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.funcion .telefono { align-self: end; width: 210px; border-radius: 34px 34px 0 0; padding-bottom: 0; aspect-ratio: auto; height: 330px; box-shadow: 0 20px 40px rgba(5,61,30,.18); }
.funcion .telefono img { border-radius: 26px 26px 0 0; }

/* juego */
.juego { background: var(--bosque); color: #fff; position: relative; overflow: hidden; }
.juego .titulo-seccion h2 { color: #fff; }
.juego .titulo-seccion p { color: var(--hoja); }
.juego .etiqueta { color: var(--lima); }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: paso; }
.paso { display: flex; flex-direction: column; gap: 16px; counter-increment: paso; min-width: 0; }
.paso .telefono { width: 100%; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.paso-texto { display: flex; flex-direction: column; gap: 6px; }
.paso h3 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.paso h3::before { content: counter(paso); flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--lima); color: var(--bosque); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.paso p { color: var(--hoja); font-size: 15px; }
.rarezas { margin-top: 56px; padding-top: 32px; border-top: 1.5px solid rgba(211,235,219,.3); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.rarezas p { color: var(--hoja); font-size: 16px; max-width: 30em; }
.rarezas b { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff; border: 2px solid rgba(255,255,255,.85); }
.chip.comun { background: var(--comun); } .chip.raro { background: var(--esmeralda); }
.chip.epico { background: #021F0F; color: var(--lima); border-color: var(--lima); } .chip.especial { background: var(--especial); }

/* progreso */
.progreso .envoltura { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.progreso .titulo-seccion { margin-bottom: 28px; }
.niveles { display: flex; flex-direction: column; gap: 14px; }
.nivel { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--niebla); border: 1.5px solid var(--borde); }
.nivel b { display: block; font-size: 17px; color: var(--bosque); }
.nivel span { font-size: 15px; color: var(--tinta-2); }
.nivel i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--hoja); color: var(--esmeralda); display: flex; align-items: center; justify-content: center; font-style: normal; }
.progreso-telefonos { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.progreso-telefonos .telefono { width: 250px; }
.progreso-telefonos .telefono:last-child { margin-top: 64px; }

/* preguntas */
.preguntas { background: var(--niebla); }
.lista-preguntas { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
details { background: #fff; border: 1.5px solid var(--borde); border-radius: 16px; }
summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--hoja); color: var(--bosque); display: flex; align-items: center; justify-content: center; font: 800 22px/1 var(--display); }
details[open] summary::after { content: "–"; }
details p { padding: 0 24px 22px; color: var(--tinta-2); font-size: 16px; max-width: 46em; }

/* cierre */
.cierre { background: var(--selva); color: #fff; position: relative; overflow: hidden; }
.cierre .envoltura { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block: 72px; }
.cierre h2 { font-size: clamp(34px, 4vw, 50px); font-weight: 800; max-width: 15em; }
.cierre h2 em { font-style: normal; color: var(--lima); }

/* pie */
.pie { background: #fff; border-top: 1.5px solid var(--borde); }
.pie .envoltura { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; padding-block: 36px; }
.pie img { width: 116px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.pie nav a { color: var(--tinta-2); font-weight: 700; font-size: 15px; text-decoration: none; }
.pie nav a:hover { color: var(--esmeralda); text-decoration: underline; }
.pie small { font-size: 14px; color: var(--tinta-2); }

/* páginas legales */
.legal-cabecera { background: var(--bosque); color: #fff; }
.legal-cabecera .envoltura { display: flex; flex-direction: column; gap: 28px; padding-block: 28px 56px; }
.legal-cabecera h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.legal-cuerpo { padding-block: 48px 96px; }
.legal-titulo { display: flex; flex-direction: column; gap: 10px; }
.legal-titulo p { color: var(--hoja); font-size: 15px; }
.legal-rejilla { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.indice { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: var(--niebla); border: 1.5px solid var(--borde); }
.indice ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.indice a { color: var(--tinta-2); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.35; display: block; }
.indice a:hover { color: var(--esmeralda); text-decoration: underline; }
.legal-texto { max-width: 760px; min-width: 0; }
.legal-intro { font-size: 19px; color: var(--tinta) !important; margin-top: 28px; }
.legal-texto section { scroll-margin-top: 24px; }
.legal-texto h2 { font-size: 28px; color: var(--bosque); margin: 44px 0 14px; }
.legal-texto h3 { font-size: 20px; color: var(--tinta); margin: 22px 0 8px; }
.legal-texto p, .legal-texto li { color: var(--tinta-2); }
.legal-texto p + p { margin-top: 12px; }
.legal-texto ul, .legal-texto ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.legal-texto b, .legal-texto strong { color: var(--tinta); }
.legal-texto #simplificado { margin-top: 32px; padding: 4px 28px 24px; border-radius: 18px; border: 1.5px solid var(--borde); background: var(--niebla); }
.volver { margin-top: 40px; }
mark.pendiente { background: #FFF1CC; color: #6B4300; font-weight: 700; padding: 1px 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.preparacion { display: block; padding: 22px 24px; border-radius: 16px; background: #FFF1CC; border: 1.5px solid #E9C46A; color: #6B4300; }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .hero .envoltura { grid-template-columns: 1fr; padding-block: 120px 64px; }
  .hero-telefonos { height: 520px; max-width: 620px; width: 100%; margin: 0 auto; }
  .funciones { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progreso .envoltura { grid-template-columns: 1fr; }
  .legal-rejilla { grid-template-columns: 1fr; gap: 24px; }
  .indice { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .navegacion a:not(.boton) { display: none; }
  .marca img { width: 104px; }
  .hero-telefonos { height: 430px; }
  .hero-telefonos .t1 { width: 170px; left: 0; top: 60px; }
  .hero-telefonos .t2 { width: 200px; }
  .hero-telefonos .t3 { width: 170px; right: 0; top: 70px; }
  .seccion { padding-block: 72px; }
  .funcion { grid-template-columns: 1fr; padding: 26px 24px 0; }
  .funcion-texto { padding-bottom: 0; }
  .funcion .telefono { justify-self: center; height: 280px; }
  .pasos { grid-template-columns: 1fr; gap: 40px; }
  .paso .telefono { width: 240px; align-self: center; }
  .progreso-telefonos .telefono { width: 46%; }
  .progreso-telefonos .telefono:last-child { margin-top: 40px; }
  .registro .boton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .boton { transition: none; } .boton:hover { transform: none; } }
