/* Páginas de estación de endlesspeaks.com/estaciones (paginas_estaciones.mjs). El sistema visual de la landing y del juego:
   azul noche, blanco nieve, acento naranja y Barlow Condensed. Sin estilos en línea: la CSP de la landing solo deja 'self'. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'); }

:root {
  --noche: #0b1626; --noche-2: #13233a; --nieve: #f4f7fa;
  --texto-2: rgba(222, 232, 243, .72); --texto-3: rgba(222, 232, 243, .5);
  --relleno: rgba(222, 232, 243, .07); --linea: rgba(222, 232, 243, .13);
  --acento: #ff5a1f; --sobre-acento: #0b1626;
  --titulo: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --texto: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--texto); font-size: 16px; line-height: 1.55; color: var(--nieve); background: var(--noche); }
a { color: var(--nieve); text-underline-offset: 3px; }
main, footer, .barra { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.barra { display: flex; align-items: baseline; gap: 10px; padding-top: 18px; padding-bottom: 6px; }
.marca { font-family: var(--titulo); font-weight: 800; font-size: 26px; text-decoration: none; letter-spacing: .5px; }
.por { color: var(--texto-3); font-size: 14px; }
.migas { color: var(--texto-3); font-size: 14px; margin: 10px 0 18px; }
.migas a { color: var(--texto-2); }

h1 { font-family: var(--titulo); font-weight: 800; font-size: clamp(38px, 9vw, 56px); line-height: 1.02; text-transform: uppercase; }
h2 { font-family: var(--titulo); font-weight: 700; font-size: 25px; line-height: 1.1; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .3px; }
section { margin-top: 30px; }
h1 + .sub { color: var(--texto-2); margin-top: 6px; }
.intro { margin: 16px 0 18px; font-size: 17px; color: var(--texto-2); }
main > h2 { margin-top: 30px; }
.nota { color: var(--texto-3); font-size: 14px; margin: -4px 0 10px; }
small { color: var(--texto-3); font-size: 13px; }

.boton { display: inline-block; background: var(--acento); color: var(--sobre-acento); font-family: var(--titulo); font-weight: 800;
  font-size: 19px; text-transform: uppercase; text-decoration: none; padding: 12px 18px; border-radius: 12px; line-height: 1.15; }

.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 22px; }
.cifras div { background: var(--relleno); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; }
.cifras dt { color: var(--texto-3); font-size: 13px; }
.cifras dd { font-family: var(--titulo); font-weight: 800; font-size: 30px; line-height: 1.1; }
.grande { font-family: var(--titulo); font-weight: 800; font-size: 36px; line-height: 1.1; }

.colores, .lista, .enlaces, .cerca, .paises { list-style: none; }
.colores li, .lista li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linea); }
.colores b, .lista b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lista { counter-reset: n; }
.lista li::before { counter-increment: n; content: counter(n); font-family: var(--titulo); font-weight: 800; color: var(--texto-3); width: 16px; }
.lista span small { margin-left: 6px; }
.punto { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1px solid rgba(255, 255, 255, .35); }
.c-novice { background: #1f9d55; } .c-easy { background: #1d63d8; } .c-intermediate { background: #e0262f; }
.c-advanced, .c-expert { background: #14161a; } .c-freeride { background: #f08a00; } .c-extreme { background: #7a1fa2; }
.enlaces li { padding: 6px 0; }
.cerca, .paises { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.cerca li, .paises li { background: var(--relleno); border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.paises li { flex-direction: row; justify-content: space-between; align-items: baseline; }

.tabla { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tabla th { text-align: left; color: var(--texto-3); font-weight: 400; font-size: 13px; padding: 6px 4px; border-bottom: 1px solid var(--linea); }
.tabla td { padding: 9px 4px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla td small { display: block; }
.tabla td:not(:first-child), .tabla th:not(:first-child) { text-align: right; white-space: nowrap; }

.beta { margin: 40px 0 10px; padding: 18px; border-radius: 18px; background: var(--noche-2); border: 1px solid var(--linea); }
.beta-titulo { font-family: var(--titulo); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.beta p { margin-bottom: 12px; color: var(--texto-2); }
footer { padding-top: 18px; padding-bottom: 40px; color: var(--texto-3); font-size: 13px; }
footer p { margin-top: 8px; }
footer a { color: var(--texto-2); }
.powered { color: var(--texto-2); }

/* rankings (guías, 23-10) */
.menu { margin-left: auto; font-family: var(--titulo); font-weight: 700; font-size: 18px; text-transform: uppercase; text-decoration: none; color: var(--texto-2); }
.ranking { list-style: none; counter-reset: n; margin-top: 8px; }
.ranking li { padding: 14px 0; border-bottom: 1px solid var(--linea); }
.ranking .puesto { display: flex; align-items: baseline; gap: 12px; }
.ranking .puesto::before { counter-increment: n; content: counter(n); font-family: var(--titulo); font-weight: 800; font-size: 30px; color: var(--acento); width: 22px; }
.ranking .nombre { font-family: var(--titulo); font-weight: 800; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.ranking b { margin-left: auto; font-family: var(--titulo); font-weight: 800; font-size: 26px; white-space: nowrap; }
.ranking small { display: block; margin-left: 34px; }

/* preguntas frecuentes de cada estación (26-10) */
.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { color: var(--texto-2); margin-top: 4px; }

/* cabecera con dos enlaces (Nieve hoy y Rankings, 26-10): en el móvil sobra el subtítulo */
.menu + .menu { margin-left: 16px; }
@media (max-width: 480px) { .por { display: none; } }

/* Nieve hoy (/nieve-hoy, api/nieve-hoy.js de la landing, 26-10) */
.nota-nieve { display: inline-flex; align-items: baseline; gap: 6px; }
.nota-nieve b { font-family: var(--titulo); font-weight: 800; font-size: 22px; min-width: 28px; text-align: right; }
.nota-nieve small { font-size: 12px; }
.n-5 b { color: #7fd3ff; } .n-4 b { color: #a8e0ff; } .n-3 b { color: var(--nieve); } .n-2 b, .n-1 b { color: var(--texto-3); }
.nevando { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.nevando li { background: var(--relleno); border: 1px solid var(--linea); border-radius: 999px; padding: 6px 12px; }
.tabla td.cm { font-variant-numeric: tabular-nums; }
.escala { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.escala li { background: var(--relleno); border: 1px solid var(--linea); border-radius: 12px; padding: 8px 12px; }
.tabla tr.mejor td { font-weight: 700; }
.tabla tr.mejor td:first-child::after { content: ' ★'; color: var(--acento); }
.escala + .nota, .nevando + .nota, .tabla + .nota { margin-top: 12px; }

/* «Cuándo ir»: barras de nieve por mes, sin cifras (26-10) */
.meses td { vertical-align: middle; }
.medidor { display: inline-block; width: min(120px, 28vw); height: 10px; border-radius: 5px; background: var(--relleno); border: 1px solid var(--linea); overflow: hidden; vertical-align: middle; }
.medidor span { display: block; height: 100%; background: #7fd3ff; }
.medidor .b0 { width: 0%; }
.medidor .b1 { width: 10%; }
.medidor .b2 { width: 20%; }
.medidor .b3 { width: 30%; }
.medidor .b4 { width: 40%; }
.medidor .b5 { width: 50%; }
.medidor .b6 { width: 60%; }
.medidor .b7 { width: 70%; }
.medidor .b8 { width: 80%; }
.medidor .b9 { width: 90%; }
.medidor .b10 { width: 100%; }

/* selector de idioma (2-11) */
.idiomas { margin-left: 10px; display: inline-flex; gap: 4px; font-size: 12px; }
.idiomas a, .idiomas span { padding: 3px 7px; border-radius: 8px; border: 1px solid var(--linea); text-decoration: none; }
.idiomas span { background: var(--relleno); font-weight: 700; }
