@font-face {
  font-family: 'Jost';
  src: url('../assets/fuentes/jost-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fuentes/inter-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --negro: #000;
  --fondo: #000;
  --superficie: #0e0e10;
  --superficie-2: #16161a;
  --borde: #26262c;
  --borde-suave: #1c1c21;
  --texto: #fff;
  --texto-2: #b9b9c0;
  --texto-3: #7d7d86;
  --amarillo: #f9dc4a;
  --amarillo-hover: #ffe56a;
  --crema: #ebd7a6;
  --oro-claro: #f6e6bd;
  --oro: #c9a76a;
  --oro-oscuro: #6c553a;
  --plata: #d9dde3;
  --bronce: #d49a6a;
  --rojo: #ff6b6b;
  --verde: #4ade80;
  --degradado-oro: linear-gradient(135deg, #fbefcf 0%, #e3c487 35%, #a8834c 70%, #f1dca8 100%);
  --radio: 18px;
  --radio-sm: 12px;
  --ancho: 1080px;
  --titulos: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --cuerpo: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
.amarillo { color: var(--amarillo); }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.oculto { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--titulos); font-weight: 500; font-size: 17px;
  padding: 12px 22px; transition: transform .15s ease, background .15s ease;
}
.boton:active { transform: scale(.98); }
.boton-amarillo { background: var(--amarillo); color: #111; }
.boton-amarillo:hover { background: var(--amarillo-hover); }
.boton-crema { background: var(--crema); color: #111; width: 100%; font-size: 19px; padding: 16px 22px; }
.boton-crema:hover { background: #f3e2b7; }
.boton-borde { background: transparent; color: var(--texto); border: 1px solid var(--borde); }
.boton-borde:hover { border-color: var(--texto-3); }
.boton svg { width: 20px; height: 20px; flex: none; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde-suave);
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.marca-logo { height: 26px; width: auto; }
.marca-nombre { font-family: var(--titulos); font-weight: 800; font-size: 22px; letter-spacing: .08em; }
.cabecera .boton { padding: 9px 16px; font-size: 15px; }
@media (max-width: 480px) {
  .marca-logo { height: 22px; }
  .marca-nombre { font-size: 19px; letter-spacing: .06em; }
  .cabecera .boton span.largo { display: none; }
}
@media (min-width: 481px) {
  .cabecera .boton span.corto { display: none; }
}
@media (max-width: 340px) {
  .marca-nombre { display: none; }
}

/* ---------- Portada ---------- */
.portada { position: relative; text-align: center; padding: 36px 0 8px; overflow: hidden; }
.portada::before {
  content: ''; position: absolute; left: 50%; top: 42%; width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249, 220, 74, .12) 0%, rgba(201, 167, 106, .05) 35%, transparent 65%);
  pointer-events: none;
}
.portada .contenedor { position: relative; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(249, 220, 74, .35); background: rgba(249, 220, 74, .08);
  color: var(--amarillo); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.etiqueta .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 0 rgba(249, 220, 74, .7); animation: latido 2s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(249, 220, 74, .6); } 70% { box-shadow: 0 0 0 10px rgba(249, 220, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 220, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .etiqueta .punto { animation: none; } }
.portada h1 { font-size: clamp(38px, 10vw, 68px); font-weight: 600; margin: 18px auto 14px; max-width: 820px; }
.portada .subtitulo { font-size: clamp(16px, 4.2vw, 20px); color: var(--texto-2); max-width: 560px; margin: 0 auto; line-height: 1.45; }
.portada .subtitulo strong { font-weight: 700; }

.premios-portada { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 26px auto 0; max-width: 420px; }
.premio-portada {
  flex: 1; padding: 14px 6px 12px; border-radius: var(--radio);
  background: var(--superficie); border: 1px solid var(--borde-suave);
}
.premio-portada .medalla { margin: 0 auto 8px; width: 38px; height: 38px; font-size: 17px; }
.premio-portada .cantidad { font-family: var(--titulos); font-size: 26px; font-weight: 700; line-height: 1; }
.premio-portada .cantidad small { display: block; margin-top: 4px; font-size: 11px; color: var(--texto-3); font-weight: 500; letter-spacing: .08em; }
.premio-portada.primero {
  order: -1; padding-top: 20px; padding-bottom: 16px;
  background: linear-gradient(180deg, rgba(249, 220, 74, .16), var(--superficie) 80%);
  border-color: rgba(249, 220, 74, .45); box-shadow: 0 0 40px rgba(249, 220, 74, .12);
}
.premio-portada.primero .medalla { width: 46px; height: 46px; font-size: 21px; }
.premio-portada.primero .cantidad { font-size: 36px; color: var(--amarillo); }
/* Orden visual 2 · 1 · 3, como un podio */
.premio-portada:nth-child(2) { order: -2; }
.premios-extra { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px auto 0; max-width: 420px; }
.premios-extra:empty { display: none; }
.premio-extra {
  flex: 1; display: inline-flex; align-items: baseline; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--borde-suave);
  font-family: var(--titulos); font-size: 20px; font-weight: 700;
}
.premio-extra b { color: var(--texto-3); font-size: 15px; font-weight: 600; }
.premio-extra small { color: var(--texto-3); font-size: 11px; font-weight: 500; letter-spacing: .08em; }

.cuenta-atras { margin: 24px auto 22px; max-width: 520px; }
.cuenta-atras .rotulo { color: var(--texto-2); font-size: 14px; margin-bottom: 10px; }
.reloj { display: flex; justify-content: center; gap: 8px; }
.reloj div {
  min-width: 68px; padding: 10px 8px 8px; border-radius: var(--radio-sm);
  background: var(--superficie-2); border: 1px solid var(--borde);
}
.reloj b { display: block; font-family: var(--titulos); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.reloj small { color: var(--texto-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.cuenta-atras .cierre { color: var(--texto-3); font-size: 13px; margin-top: 8px; }

.acciones { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto; }
.boton-grande { width: 100%; font-size: 19px; padding: 16px 22px; box-shadow: 0 10px 30px rgba(249, 220, 74, .18); }
.codigo-copiar {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px dashed rgba(249, 220, 74, .45);
  background: rgba(249, 220, 74, .06); color: var(--texto-2); font: 14px var(--cuerpo);
}
.codigo-copiar b { color: var(--amarillo); font-family: var(--titulos); font-size: 17px; letter-spacing: .08em; }
.codigo-copiar .accion { padding: 4px 10px; border-radius: 999px; background: var(--superficie-2); color: var(--texto); font-size: 12px; font-weight: 600; }
.codigo-copiar:hover .accion { background: var(--borde); }
.enlace-ranking { display: inline-block; margin-top: 18px; color: var(--texto-2); font-size: 15px; text-decoration: none; }
.enlace-ranking:hover { color: var(--amarillo); }

/* ---------- Secciones ---------- */
.seccion { padding: 48px 0 8px; }
.seccion > .contenedor > h2, .cabeza-seccion h2 { font-size: clamp(28px, 7vw, 40px); font-weight: 500; }
.seccion .intro { color: var(--texto-2); margin: 10px 0 0; max-width: 680px; }
.tarjeta {
  background: var(--superficie); border: 1px solid var(--borde-suave); border-radius: var(--radio);
}

/* ---------- Medallas ---------- */
.medalla { margin: 0 auto 10px; width: 48px; height: 48px; font-size: 21px; }
.premio .cantidad { font-family: var(--titulos); font-size: 28px; font-weight: 700; line-height: 1.1; }
.premio .cantidad small { display: block; font-size: 12px; color: var(--texto-3); font-weight: 500; letter-spacing: .06em; }

.medalla {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--titulos); font-weight: 700; font-size: 19px; color: #1b1406;
  background: var(--superficie-2); color: var(--texto); border: 1px solid var(--borde);
}
.medalla.p1 { background: radial-gradient(circle at 35% 30%, #fff6d0, #f9dc4a 45%, #b8892d); color: #2a1d00; border: 0; box-shadow: 0 0 18px rgba(249, 220, 74, .35); }
.medalla.p2 { background: radial-gradient(circle at 35% 30%, #fff, #d9dde3 45%, #8d939c); color: #1b1e22; border: 0; }
.medalla.p3 { background: radial-gradient(circle at 35% 30%, #ffe6cf, #d49a6a 45%, #8a5530); color: #2a1406; border: 0; }

/* ---------- Clasificación ---------- */
.criterio-tabla { margin: 6px 0 0; color: var(--texto-2); font-size: 15px; }
.cabeza-seccion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.barra-semana { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.selector {
  appearance: none; -webkit-appearance: none;
  background: var(--superficie-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f9dc4a' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--texto); border: 1px solid var(--borde); border-radius: 999px;
  font: 500 15px var(--cuerpo); padding: 10px 40px 10px 16px; cursor: pointer; max-width: 100%;
}
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.estado.finalizada { background: rgba(249, 220, 74, .12); color: var(--amarillo); }
.estado.en_curso { background: rgba(74, 222, 128, .12); color: var(--verde); }
.actualizado { color: var(--texto-3); font-size: 13px; }
.aviso {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radio-sm); font-size: 14px;
  background: rgba(249, 220, 74, .08); border: 1px dashed rgba(249, 220, 74, .4); color: var(--crema);
}
.resumen {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px;
  background: var(--superficie); border: 1px solid var(--borde-suave); border-radius: var(--radio);
}
.resumen .dato { padding: 12px 14px; }
.resumen .dato + .dato { border-left: 1px solid var(--borde-suave); }
.resumen .rotulo { color: var(--texto-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.resumen .valor { font-family: var(--titulos); font-size: 22px; font-weight: 600; margin-top: 2px; }
.resumen .reto .valor { color: var(--amarillo); }
@media (max-width: 480px) { .resumen .dato { padding: 10px 12px; } .resumen .valor { font-size: 19px; } }

/* Podio */
.podio { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; margin: 76px auto 0; max-width: 760px; }
.puesto-podio { text-align: center; min-width: 0; }
.puesto-podio .ficha {
  position: relative; padding: 34px 8px 14px; border-radius: var(--radio) var(--radio) 0 0;
  background: linear-gradient(180deg, var(--superficie-2), var(--superficie));
  border: 1px solid var(--borde); border-bottom: 0;
}
.puesto-podio .medalla { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; }
.puesto-podio.p1 .ficha { padding-top: 46px; border-color: rgba(249, 220, 74, .45); background: linear-gradient(180deg, rgba(249, 220, 74, .16), var(--superficie) 70%); box-shadow: 0 -10px 40px rgba(249, 220, 74, .12); }
.puesto-podio.p1 .medalla { width: 56px; height: 56px; top: -28px; font-size: 24px; }
.corona { position: absolute; top: -58px; left: 50%; transform: translateX(-50%); width: 64px; filter: drop-shadow(0 4px 10px rgba(249, 220, 74, .3)); }
.puesto-podio .uid { font-family: var(--titulos); font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puesto-podio .vol { font-family: var(--titulos); font-size: 22px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.puesto-podio.p1 .vol { font-size: 26px; color: var(--amarillo); }
.puesto-podio .vol small { display: block; font-family: var(--cuerpo); font-size: 11px; font-weight: 500; color: var(--texto-3); letter-spacing: .04em; }
.puesto-podio .pts { color: var(--texto-2); font-size: 13px; margin-top: 6px; }
.pastilla-premio {
  display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 999px;
  background: var(--amarillo); color: #111; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.pedestal { height: 22px; border-radius: 0 0 6px 6px; background: var(--degradado-oro); opacity: .9; }
.p2 .pedestal { background: linear-gradient(135deg, #f4f6f8, #9aa1ab); height: 16px; }
.p3 .pedestal { background: linear-gradient(135deg, #f1c9a5, #8a5530); height: 10px; }
.puesto-podio.vacio .ficha { opacity: .5; }
@media (max-width: 420px) {
  .podio { gap: 6px; }
  .puesto-podio .uid { font-size: 14px; }
  .puesto-podio .vol { font-size: 17px; }
  .puesto-podio.p1 .vol { font-size: 20px; }
  .pastilla-premio { font-size: 12px; padding: 4px 8px; }
}

/* Lista de clasificación */
.lista { margin-top: 14px; padding: 6px; }
.cabecera-tabla {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 10px 8px;
  color: var(--texto-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--borde-suave);
}
.fila {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 10px; border-radius: var(--radio-sm);
}
.fila + .fila { border-top: 1px solid var(--borde-suave); }
.fila.premiado { background: rgba(249, 220, 74, .05); }
.fila .medalla { width: 36px; height: 36px; font-size: 15px; }
.fila .uid { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila .uid .pre, .semana-pasada .pre { color: var(--texto-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; margin-right: 4px; }
.fila .detalle { color: var(--texto-3); font-size: 13px; }
.fila .derecha { text-align: right; }
.fila .vol { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fila .vol small { color: var(--texto-3); font-weight: 500; font-size: 12px; }
.fila .pts { color: var(--texto-2); font-size: 13px; white-space: nowrap; }
.fila .pts .pastilla-premio { margin: 0 0 0 6px; font-size: 12px; padding: 2px 8px; }
.vacio-lista { padding: 28px 16px; text-align: center; color: var(--texto-2); }
.ver-todos { width: 100%; margin-top: 12px; }
.separador-tabla {
  padding: 14px 10px 8px; color: var(--texto-3); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--borde);
}
.fila.sin-volumen .vol { color: var(--texto-3); font-weight: 500; }
.falta {
  margin: 6px 4px 4px; padding: 12px 14px; border-radius: var(--radio-sm); font-size: 14px; color: var(--crema);
  background: rgba(249, 220, 74, .08); border: 1px solid rgba(249, 220, 74, .3);
}
.falta b { color: var(--amarillo); }
.buscar {
  width: 100%; margin-top: 16px; padding: 12px 16px; border-radius: 999px;
  background: var(--superficie-2); border: 1px solid var(--borde); color: var(--texto); font: 15px var(--cuerpo);
}
.buscar::placeholder { color: var(--texto-3); }
.buscar:focus, .selector:focus-visible, .boton:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 2px; }

/* ---------- Participa en 3 pasos ---------- */
.participar {
  padding: 28px 20px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 220, 74, .14), transparent 70%), var(--superficie);
  border: 1px solid rgba(249, 220, 74, .25);
}
.participar h2 { font-size: clamp(28px, 7vw, 38px); font-weight: 600; }
.pasos { list-style: none; margin: 22px auto 24px; padding: 0; max-width: 560px; display: grid; gap: 16px; text-align: left; }
.pasos li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.pasos .n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amarillo); color: #111; font-family: var(--titulos); font-weight: 700; font-size: 18px;
}
.pasos h3 { font-size: 19px; font-weight: 600; margin-top: 2px; }
.pasos p { margin: 3px 0 0; color: var(--texto-2); font-size: 15px; }
.pasos p b { color: var(--amarillo); letter-spacing: .04em; }
.participar .boton-grande { max-width: 420px; }

/* ---------- Historial ---------- */
.historial { margin-top: 18px; display: grid; gap: 10px; }
.semana-pasada { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; }
.semana-pasada:hover { border-color: var(--borde); }
.semana-pasada .sem { font-family: var(--titulos); font-weight: 600; font-size: 15px; color: var(--amarillo); white-space: nowrap; }
.semana-pasada .fechas { color: var(--texto-3); font-size: 13px; }
.semana-pasada .derecha { text-align: right; white-space: nowrap; }
.semana-pasada .ganador { font-weight: 600; }
.semana-pasada .vol { font-size: 13px; color: var(--texto-2); }

/* ---------- Reglas ---------- */
.reglas { margin-top: 18px; }
.reglas details { border-bottom: 1px solid var(--borde-suave); }
.reglas details:last-child { border-bottom: 0; }
.reglas summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-family: var(--titulos); font-size: 18px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.reglas summary::-webkit-details-marker { display: none; }
.reglas summary::after { content: '+'; color: var(--amarillo); font-size: 24px; line-height: 1; }
.reglas details[open] summary::after { content: '–'; }
.reglas .cuerpo { padding: 0 20px 18px; color: var(--texto-2); font-size: 15px; }
.reglas .cuerpo p { margin: 0 0 8px; }

/* ---------- Pie ---------- */
.pie { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--borde-suave); color: var(--texto-3); font-size: 13px; }
.pie p { margin: 0 0 8px; }
