/* Landings de Inertia.gg (scripts/landings.js las genera): una por apartado y subapartado del menú.
   Reutiliza .section, .section-head, .steps, .faq y .btn de css/styles.css; aquí va lo propio:
   portada, beneficios, cifras, cierre, el bloque corto que va arriba de las páginas con herramienta
   y la barra de registro fija del celular (js/landing.js). */

/* Lo que solo ven los visitantes sin sesión (js/landing.js pone .con-sesion en <html>). */
.con-sesion [data-sin-sesion] { display: none !important; }

/* ---------- Portada ---------- */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Abajo deja el alto del corte (franjas verdes, .corte en css/styles.css) para que no quede detrás de los botones. */
  padding-block: clamp(48px, 8vw, 104px) calc(clamp(84px, 11vw, 190px) + 24px);
}
@media (max-width: 720px) { .lp-hero { padding-bottom: calc(52px + 24px); } }
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.lp-hero h1 {
  display: grid;
  margin: 14px 0 0;
  font-size: clamp(38px, 6.4vw, 78px);
  font-stretch: 118%;
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  text-wrap: balance;
}
.lp-hero h1 .lp-clave { color: var(--accent); }
.lp-hero .lp-texto { max-width: 560px; margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.lp-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-nota { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.lp-hero-mascota { justify-self: center; width: min(240px, 100%); }
.lp-hero-mascota img { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .35)); }
.lp-estado { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }

/* ---------- Beneficios ---------- */
.lp-beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-beneficio { display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-alt .lp-beneficio { background: var(--ink); }
.lp-beneficio h3 { margin: 0; font-size: 18px; font-weight: 800; }
.lp-beneficio p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-beneficio svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cifras (solo datos reales del código) ---------- */
.lp-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.lp-cifras div { display: grid; gap: 4px; padding: 22px; background: var(--surface); }
.lp-cifras dt { order: 2; color: var(--muted); font-size: 13.5px; }
.lp-cifras dd { order: 1; margin: 0; font: 900 clamp(26px, 3vw, 36px)/1 var(--font-display); font-stretch: 118%; font-variant-numeric: tabular-nums; }

/* ---------- Cierre con el gancho de registro ----------
   Rediseño v1 (Lote C, 28/10/2026): filo con las tres franjas de la marca (como la campaña) en lugar de
   las dos franjas grandes, trama de puntos propia y título a 125 %. Lo usan los cierres de FINALES
   (blog, noticias, proyectos, juegos, nosotros, tienda); las landings completas lo afinan en lote-c.css. */
.lp-final { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start; gap: 12px; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radio-3, var(--radius)); background:
  radial-gradient(60% 90% at 100% 100%, color-mix(in srgb, var(--verde, var(--accent)) 12%, transparent), transparent 70%), var(--surface); }
.lp-final::before {   /* trama de puntos (máscara: toma el color del tema) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-color: var(--line);
  -webkit-mask: url("../assets/inertiagg/fondos/texturas/puntos.svg") 0 0 / 22px 22px repeat; mask: url("../assets/inertiagg/fondos/texturas/puntos.svg") 0 0 / 22px 22px repeat;
}
.lp-final::after {    /* las tres franjas de la marca, abajo a la derecha */
  content: ""; position: absolute; right: 0; bottom: 0; width: min(34%, 260px); height: 10px; pointer-events: none;
  background: linear-gradient(90deg, var(--verde, #9DE83B) 0 62%, transparent 62% 64%, var(--ambar, #F2B84B) 64% 68%, transparent 68% 70%, var(--verde, #9DE83B) 70%);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
.lp-final h2 { margin: 0; font-size: clamp(26px, 3.6vw, 40px); font-stretch: 125%; font-weight: 900; line-height: 1; text-transform: uppercase; }
.lp-final p { margin: 0; max-width: 560px; color: var(--muted); }

/* ---------- Bloque corto arriba de las páginas con herramienta (solo sin sesión) ---------- */
.lp-intro { padding-block: clamp(28px, 5vw, 52px) 0; }
.lp-intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; padding-bottom: clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
/* Rediseño v1 (Lote C): ceja en mono, título a 125 % y pasos como recorrido con nodos numerados. */
.lp-intro .eyebrow { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .14em; }
.lp-intro h2 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 44px); font-stretch: 125%; font-weight: 900; line-height: 1; text-transform: uppercase; }
.lp-intro p { margin: 12px 0 0; color: var(--muted); }
.lp-intro ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.lp-intro li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; counter-increment: paso; }
.lp-intro li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.lp-intro li::before {
  content: counter(paso, decimal-leading-zero);
  display: grid; place-items: center; width: 40px; height: 28px;
  background: var(--verde, var(--accent)); color: var(--verde-tx, #0A0C11);
  font: 700 12.5px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.lp-intro li strong { display: block; }
.lp-intro li span { color: var(--muted); font-size: 14.5px; }

/* ---------- Próximamente con «Avísame» (js/avisame.js) ---------- */
.lp-avisame-ok { color: var(--accent); font-weight: 600; }
[data-avisame][aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---------- Barra de registro fija en el celular (js/landing.js) ---------- */
.registro-barra { display: none; }
@media (max-width: 760px) {
  .registro-barra:not([hidden]) {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 58;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
  }
  .registro-barra p { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; }
  .registro-barra-cerrar { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
  /* Con la barra, Inertio y el pie se apartan para no quedar tapados. */
  .con-registro-barra .ayuda-btn { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .con-registro-barra .ayuda-panel { bottom: calc(164px + env(safe-area-inset-bottom, 0px)); }
  .con-registro-barra .site-footer { padding-bottom: 190px; }
}

@media (max-width: 860px) {
  .lp-hero .wrap,
  .lp-intro .wrap { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-mascota { display: none; }
}

/* ---------- Niveles por rango (torneos.html#niveles y ladder.html) ---------- */
.niveles-tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.niveles-tabla:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.niveles-tabla table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.niveles-tabla th, .niveles-tabla td { padding: 14px 16px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.niveles-tabla thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.niveles-tabla tbody th { white-space: nowrap; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; }
.niveles-tabla tbody th .tag { margin-left: 6px; font-family: var(--font-body); }
.niveles-tabla td { color: var(--muted); }
#niveles .lp-nota { margin-top: 12px; }
/* Seis pasos (temario de la Academia): 3 por fila para que no quede una fila incompleta. */
@media (min-width: 861px) { .steps:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Torneos Open: «Por determinar» (fecha y premios) con un estilo claro, y la etiqueta de inscripción abierta. */
.por-determinar { display: inline-block; padding: .1em .55em; border: 1px dashed var(--accent); border-radius: 6px; color: var(--accent); font-size: .92em; font-weight: 600; white-space: nowrap; }
.pick-estado { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.game-nota { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
