/* REDLINE CLUB — web publica (portada y descarga).
   Estatica: se publica en Cloudflare Pages y la sirve tambien la academia.
   Lenguaje visual: el muro de boxes de noche. Pantallas de cronometraje,
   radio, trazas de telemetria. Rojo REDLINE, dorado para lo que importa. */

:root {
  --ink: #060609;
  --ink-1: #0c0c12;
  --ink-2: #13131b;
  --ink-3: #1c1c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --red: #e10600;
  --red-hot: #ff2a1c;
  --red-dim: rgba(225, 6, 0, 0.16);
  --gold: #f2c230;
  --ok: #22c07a;
  --bone: #f4f2ee;
  --mute: #a3a3ae;
  --mute-2: #6c6c78;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Chakra Petch", "Segoe UI", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Rejilla tecnica de fondo, como papel milimetrado de ingeniero */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  opacity: 0.55;
}

/* --- Botones --- */
.btn {
  --c: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: 600 0.82rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--c); padding: 1rem 1.5rem; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { border-color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hot); border-color: var(--red-hot); }
.btn--big { font-size: 1rem; padding: 1.35rem 2.2rem; }
.btn svg { width: 1.2em; height: 1.2em; }

/* --- Barra superior --- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(6, 6, 9, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 400 1.55rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.brand b { color: var(--red); font-weight: 400; }
.top__nav { display: flex; align-items: center; gap: 1.6rem; font: 500 0.9rem var(--ui); }
.top__nav a:not(.btn) { color: var(--mute); text-decoration: none; }
.top__nav a:not(.btn):hover { color: var(--bone); }
.top__nav .btn { padding: 0.75rem 1.1rem; }
@media (max-width: 860px) { .top__nav a:not(.btn) { display: none; } }

/* --- Teletipo de radio, como el de una retransmision --- */
.ticker { border-bottom: 1px solid var(--line); background: var(--ink-1); overflow: hidden; white-space: nowrap; font: 500 0.78rem var(--mono); color: var(--mute); }
.ticker__track { display: inline-flex; gap: 3rem; padding: 0.55rem 0; animation: ticker 60s linear infinite; }
.ticker__track span::before { content: "● "; color: var(--red-hot); }
.ticker__track b { color: var(--gold); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Titulos de seccion --- */
.kicker { font: 600 0.72rem var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-hot); display: flex; align-items: center; gap: 0.8rem; }
.kicker::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--red-hot); }
.h2 { font: 400 clamp(2.4rem, 6.4vw, 4.6rem)/0.95 var(--display); text-transform: uppercase; margin: 0.8rem 0 1.2rem; letter-spacing: 0.005em; }
.h2 em { font-style: normal; color: var(--red-hot); }
.lead { color: var(--mute); font-size: 1.12rem; max-width: 58ch; margin: 0; }
.sec { padding: clamp(4rem, 10vw, 7.5rem) 0; position: relative; }
.sec--line { border-top: 1px solid var(--line); }

/* --- Aparicion al hacer scroll --- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
}

/* --- Pie --- */
.foot { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; font-size: 0.88rem; color: var(--mute-2); }
.foot__in { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; justify-content: space-between; align-items: center; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--bone); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
