/* Portada de haciendolagoma (landing). Poppins en WOFF2 local. Mobile first. Parte de pruebas/landing/c.css. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Poppins-Bold.woff2") format("woff2"); }
/* Fuente de reserva ajustada a Poppins (anchos y alturas casi iguales): evita saltos de maquetacion (CLS) mientras carga */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 111.82%; ascent-override: 93.90%; descent-override: 31.30%; line-gap-override: 8.94%; }

:root {
  --azul: #5c97bd;
  --azul-hondo: #3f7ba5;
  --azul-texto: #396f94;
  --azul-claro: #e4eef6;
  --noche: #0f2230;
  --texto: #3b4f5d;
  --hielo: #f3f7fa;
  --blanco: #fff;
  --maillot: #ffd60a;
  --ancho: 1140px;
  --sombra: 0 10px 30px rgba(15, 34, 48, .08);
  --fuente: "Poppins", "Poppins Fallback", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--fuente); font-size: 1rem; line-height: 1.7; color: var(--texto); background: var(--blanco); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--fuente); color: var(--noche); margin: 0; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--maillot); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.icono { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 500; text-decoration: none; background: var(--azul-hondo); color: #fff; transition: background .2s, transform .2s; }
.boton:hover { background: var(--noche); }
.boton.blanco { background: #fff; color: var(--azul-hondo); }
.boton.blanco:hover { background: var(--noche); color: #fff; }
.boton.borde { background: transparent; color: var(--azul-hondo); box-shadow: inset 0 0 0 2px var(--azul-hondo); }
.boton.borde:hover { background: var(--azul-hondo); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; line-height: 0; border-radius: 10px; }
.badges img { width: auto; height: 54px; }
[data-os="ios"] .badge-android, [data-os="android"] .badge-ios { display: none; }

/* Cabecera (sobre el heroe) */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--azul-hondo); color: #fff; }
.cabecera .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.cabecera .logo { flex: 0 0 auto; line-height: 0; }
.cabecera .logo img { height: 50px; width: auto; max-width: none; }
.menu { display: none; margin-left: auto; gap: 28px; font-weight: 500; white-space: nowrap; }
.menu a { text-decoration: underline 2px transparent; text-underline-offset: 8px; padding: 8px 0; }
.menu a:hover { text-decoration-color: #fff; }
.idiomas { margin-left: auto; display: flex; gap: 0; font-size: .85rem; margin-right: -6px; }
.idiomas a { text-decoration: none; padding: 12px 6px; }
.idiomas a[aria-current] { opacity: 1; font-weight: 600; border-bottom: 2px solid #fff; }
.cabecera .boton { display: none; min-height: 44px; padding: 0 24px; }

/* Heroe */
.hero { background: linear-gradient(180deg, var(--azul-hondo) 0, var(--azul-hondo) 58%, var(--azul) 100%); color: #fff; padding: 36px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero .pre { font-weight: 500; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 7.4vw, 3.6rem); font-weight: 700; margin-bottom: 20px; }
.hero .lede { font-size: 1.05rem; max-width: 46ch; margin-bottom: 28px; }
.hero .nota { margin-top: 16px; font-size: .95rem; }
.moviles { position: relative; display: grid; place-items: center; min-height: 340px; }
.moviles::before { content: ""; position: absolute; /*width: min(78%, 420px);*/ aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.moviles::after { content: ""; position: absolute; /*width: min(104%, 560px);*/ aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); }
.moviles img { position: relative; z-index: 1; width: min(100%, 520px); filter: drop-shadow(0 24px 24px rgba(8, 24, 38, .35)); }

/* Secciones */
.seccion { padding: 72px 0; }
.seccion.hielo { background: var(--hielo); }
.titulo-seccion { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pre-azul { display: block; color: var(--azul-texto); font-weight: 600; margin-bottom: 8px; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 600; }
.titulo-seccion p { margin-top: 14px; }

/* Como se juega */
.juego .wrap { display: grid; gap: 40px; align-items: center; }
.juego .visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.juego .visual::before { content: ""; position: absolute; inset: 6% 8%; border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; background: var(--azul-claro); border-radius: 36% 64% 58% 71% / 115% 99% 58% 45%;}
.juego .visual img { position: relative; width: min(58%, 250px); transform: rotate(-9deg); filter: drop-shadow(0 22px 22px rgba(15, 34, 48, .28)); -webkit-mask-image: linear-gradient(#000 88%, transparent 99%); mask-image: linear-gradient(#000 88%, transparent 99%); }
.juego h2 { margin-bottom: 32px; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.pasos li { display: flex; gap: 20px; align-items: flex-start; }
.pasos .circulo { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--azul-hondo); color: #fff; display: grid; place-items: center; }
.pasos h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }

/* Tarjetas de modos */
.tarjetas { display: grid; gap: 24px; }
.tarjeta { background: #fff; border-radius: 16px; padding: 32px 28px; box-shadow: var(--sombra); transition: transform .2s; }
.tarjeta:hover { transform: translateY(-4px); }
.tarjeta .circulo { width: 56px; height: 56px; border-radius: 50%; background: var(--azul-claro); color: var(--azul-hondo); display: grid; place-items: center; margin-bottom: 20px; }
.tarjeta h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.etiqueta { font-size: .82rem; font-weight: 600; background: var(--maillot); color: var(--noche); border-radius: 999px; padding: 2px 10px; line-height: 1.6; }

/* Planes */
.planes { display: grid; gap: 24px; max-width: 860px; margin-inline: auto; }
.plan { background: #fff; border-radius: 16px; padding: 36px 32px; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.plan.destacado { box-shadow: 0 0 0 3px var(--azul-hondo), var(--sombra); }
.plan h3 { font-size: 1.5rem; font-weight: 600; }
.plan .sub { margin: 4px 0 20px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--azul-hondo); border-bottom: 3px solid var(--azul-hondo); transform: rotate(-45deg); }
.plan.unico { max-width: 860px; padding: 0; overflow: hidden; box-shadow: 0 0 0 3px var(--azul-hondo), var(--sombra); }
.plan-cols { display: grid; }
.plan-cols > div { padding: 32px 32px 8px; }
.plan-cols .extra { background: #eef4f9; display: flex; flex-direction: column; align-items: flex-start; }
.plan-cols .extra .sub { margin-bottom: 16px; }
.plan-cols .extra li::before { content: "+"; border: 0; transform: none; top: -2px; left: 4px; width: auto; height: auto; font-weight: 700; font-size: 1.25rem; color: var(--azul-hondo); }
.plan .precio { display: block; font-size: 2.6rem; font-weight: 700; color: var(--azul-hondo); line-height: 1.1; }
.plan .precio small { font-size: 1rem; font-weight: 600; color: #2f6890; }
.plan .precio-0 { font-size: 1rem; font-weight: 600; color: var(--azul-hondo); }
.plan.unico .boton { margin: 12px 32px 0; align-self: stretch; text-align: center; }
.plan.unico .pie { margin: 12px 32px 28px; }
.plan .pie { font-size: .9rem; margin-top: 16px; }

/* FAQ */
.faq-lista { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq-lista details { background: #fff; border-radius: 12px; padding: 18px 24px; box-shadow: var(--sombra); }
.faq-lista summary { font-weight: 600; color: var(--noche); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.faq-lista details p { margin-top: 10px; }
.faq-lista a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Franja de descarga */
.descarga { background: var(--azul-hondo); color: #fff; padding: 64px 0; }
.descarga .wrap { display: grid; gap: 28px; align-items: center; }
.descarga h2 { color: #fff; max-width: 18ch; }
.descarga .nota { margin-top: 12px; font-size: .95rem; }

/* Pie */
.pie-web { background: var(--noche); color: #b9ccd9; padding: 56px 0 28px; font-size: .95rem; }
.pie-web .cols { display: grid; gap: 32px; }
.pie-web img { height: 44px; width: auto; max-width: none; margin-bottom: 14px; }
.pie-web .pie-titulo { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.pie-web ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pie-web li a { display: inline-block; padding: 10px 0; }
.pie-web a { color: #fff; text-decoration: none; opacity: .85; }
.pie-web a:hover { opacity: 1; text-decoration: underline; }
.pie-web .copy { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; }

@media (min-width: 600px) {
  .cabecera .boton { display: inline-flex; }
  .cabecera .idiomas { margin-left: auto; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .planes { grid-template-columns: 1fr; }
  .plan-cols { grid-template-columns: 1fr 1fr; }
  .plan-cols > div { padding-bottom: 20px; }
  .pie-web .cols { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .menu { display: flex; }
  .idiomas { margin-left: 0; }
  .hero { background: linear-gradient(100deg, var(--azul-hondo) 0, var(--azul-hondo) 50%, var(--azul) 100%); padding: 56px 0 80px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .juego .wrap { grid-template-columns: 1fr 1fr; gap: 72px; }
  .tarjetas { grid-template-columns: repeat(3, 1fr); }
  .descarga .wrap { grid-template-columns: 1fr auto; }
}
/* Con cuatro enlaces (Inicio + 3) el menu necesita menos espacio entre 960 y 1119 px */
@media (min-width: 960px) and (max-width: 1119px) {
  .menu { gap: 18px; font-size: .92rem; margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tarjeta, .boton { transition: none; }
  .tarjeta:hover { transform: none; }
}

/* Banner de cookies */
#barraaceptacion { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: var(--noche); color: #fff; padding: 14px 16px; text-align: center; font-size: .9rem; line-height: 1.5; box-shadow: 0 -4px 20px rgba(15, 34, 48, .25); }
#barraaceptacion a.info { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 10px 6px; }
#barraaceptacion .ok { margin: 0 6px; }
#barraaceptacion .btn { font-family: inherit; font-size: .85rem; font-weight: 600; min-height: 36px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--maillot); color: var(--noche); cursor: pointer; }
#barraaceptacion .btn:hover { background: #ffe24d; }

/* Paginas interiores */
.menu a[aria-current="page"] { border-bottom-color: #fff; }
.titulo-pagina { background: linear-gradient(180deg, var(--azul-hondo) 0, var(--azul-hondo) 82%, #4a86b0 100%); color: #fff; padding: 36px 0 64px; }
.titulo-pagina h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 700; }
.titulo-pagina p { margin-top: 12px; max-width: 60ch; }
.pagina { padding: 48px 0 80px; }
.pagina.hielo { background: var(--hielo); }
.prosa { max-width: 900px; }
.prosa h2 { font-size: 1.45rem; font-weight: 600; margin: 44px 0 14px; scroll-margin-top: 96px; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 10px; scroll-margin-top: 96px; }
.prosa p { margin: 0 0 14px; }
.prosa ul { margin: 0 0 14px; padding-left: 22px; }
.prosa li { margin-bottom: 6px; }
.prosa strong { color: var(--noche); }
/* Reglas: parrafos justificados; hyphens evita huecos grandes entre palabras (usa el lang de <html>) */
.prosa.justificado p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prosa a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.reglas-grid { display: grid; gap: 28px; }
.indice { background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 20px 22px; align-self: start; }
.indice summary { font-size: 1rem; font-weight: 600; color: var(--noche); cursor: pointer; min-height: 28px; margin-bottom: 10px; }
.indice details:not([open]) summary { margin-bottom: 0; }
.indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .92rem; }
.indice a { display: block; padding: 5px 0; text-decoration: none; color: var(--texto); }
.indice a:hover { color: var(--azul-hondo); text-decoration: underline; }
.indice .sub a { padding-left: 16px; }

/* Puntuaciones */
.saltos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.saltos a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: #fff; box-shadow: var(--sombra); text-decoration: none; font-weight: 500; color: var(--noche); }
.saltos a:hover { background: var(--azul-hondo); color: #fff; }
.grupo { margin-bottom: 56px; scroll-margin-top: 96px; }
.grupo > h2 { margin-bottom: 24px; }
.baremos { display: grid; gap: 24px; }
.baremo { background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 24px; }
.baremo h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.baremo h3 small { font-size: .8rem; font-weight: 400; color: var(--texto); }
.baremo h4 { font-size: .9rem; font-weight: 600; color: var(--noche); margin: 18px 0 8px; }
.baremo .leyenda { font-size: .8rem; margin-top: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.chips li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--hielo); font-size: .9rem; }
.chips .pos { color: var(--azul-texto); font-weight: 600; }
.chips .pts { color: var(--noche); font-weight: 600; }
.chips .pts small { font-weight: 400; color: var(--texto); }

/* Calendario de carreras */
.tabla-carreras { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sombra); }
.tabla-carreras th { background: var(--azul-claro); color: var(--noche); text-align: left; font-weight: 600; padding: 14px 18px; }
.tabla-carreras td { padding: 14px 18px; border-top: 1px solid #e6eef4; vertical-align: top; }
.tabla-carreras td:first-child { white-space: nowrap; color: var(--texto); }
.tabla-carreras td:nth-child(2) { font-weight: 500; color: var(--noche); }
.tabla-carreras tr[style] td { background: var(--azul-claro); }
.tabla-carreras .cat span { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--hielo); color: var(--azul-texto); font-size: .85rem; font-weight: 600; }
.tabla-carreras tr[style] .cat span { background: #fff; }

@media (max-width: 599px) {
  .tabla-carreras thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabla-carreras, .tabla-carreras tbody { display: block; }
  .tabla-carreras tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-top: 1px solid #e6eef4; }
  .tabla-carreras tr:first-child { border-top: 0; }
  .tabla-carreras td { display: block; padding: 0; border: 0; background: none !important; }
  .tabla-carreras td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .tabla-carreras td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .tabla-carreras td:nth-child(1) { grid-column: 1 / -1; grid-row: 2; font-size: .85rem; white-space: normal; }
}
@media (min-width: 600px) {
  .baremos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .reglas-grid { grid-template-columns: 250px 1fr; gap: 56px; }
  .indice { position: sticky; top: 96px; }
}

/* Seccion "Que es haciendolagoma" (texto con las palabras clave del juego) */
.que-es .texto { max-width: 760px; margin: 0 auto; }
.que-es .texto p { margin: 0 0 16px; }

/* Paginas de error (404, 500, 503) */
.error-pagina { background: linear-gradient(180deg, var(--azul-hondo) 0, var(--azul-hondo) 78%, #4a86b0 100%); color: #fff; padding: 72px 0 104px; text-align: center; }
.error-pagina .codigo { display: block; font-size: clamp(5.5rem, 24vw, 11rem); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: rgba(255, 255, 255, .28); }
.error-pagina h1 { color: #fff; font-size: clamp(1.8rem, 5.5vw, 2.8rem); font-weight: 700; margin: 4px auto 14px; max-width: 22ch; }
.error-pagina p { max-width: 54ch; margin: 0 auto 28px; }
.error-pagina .acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.error-pagina .boton.contorno { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.error-pagina .boton.contorno:hover { background: #fff; color: var(--azul-hondo); }
.error-pagina .error-enlaces { margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.error-pagina .error-enlaces a { color: #fff; font-weight: 500; }
