/* ==========================================================
   BASE · variables, reset y tipografía global
   ========================================================== */

:root {
  /* Colores */
  --color-bg: #0a0a0a;
  --color-bg-alt: #0e0e0e;
  --color-surface: #161616;
  --color-footer: #050505;
  --color-accent: #c8102e;
  --color-accent-text: #ff4d5e; /* rojo para texto < 24 px: 6,10:1 sobre #0a0a0a, 5,58:1 sobre #161616 (AA ≥ 4,5:1) */
  --color-cream: #f5e6c0;      /* títulos y texto destacado */
  --color-silver: #c9c9c9;     /* texto general */
  --color-text: var(--color-silver);
  --color-yellow: #f2dd6e;
  --color-black: #000;
  --color-white: #fff;
  --color-border: #2a2a2a;
  --color-border-soft: #222;
  --color-line: #333;
  --color-nav-bg: #0a0a0aee;
  --color-caption-bg: #000a;
  --color-accent-tint: #c8102e22;

  /* Tipografía (con fuentes de respaldo si Google Fonts no carga) */
  --font-title: Anton, Impact, sans-serif;
  --font-body: Poppins, sans-serif;

  /* Espaciado */
  --space-sm: 12px;
  --space-md: 20px;
  --space-card: 22px;
  --space-section: 90px;
  --space-section-mobile: 64px;

  /* Radios */
  --radius-pill: 99px;
  --radius-round: 50%;

  /* Sombras */
  --shadow-btn: 5px 5px 0 var(--color-black), 5px 5px 0 1px var(--color-silver);
  --shadow-btn-hover: 8px 8px 0 var(--color-black), 8px 8px 0 1px var(--color-silver);
  --shadow-btn-active: 1px 1px 0 var(--color-black);
  --shadow-float: 4px 4px 0 var(--color-black);

  /* Movimiento */
  --ease: cubic-bezier(.2, .9, .3, 1);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}

/* Viñeta */
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .6));
  opacity: .9;
}

/* Grano de película */
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 91;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23f)'/%3E%3C/svg%3E");
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--color-yellow); outline-offset: 3px; }

/* Títulos */
h1, h2, h3, .font-title {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  color: var(--color-cream);
}
h1, h2 { transform: skewX(-8deg); transform-origin: left; }
h1 { font-size: clamp(3.6rem, 13vw, 9rem); }
h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: .6em; }
h3 { font-size: 1.7rem; letter-spacing: .01em; }

/* Palabra resaltada con círculo dibujado */
.circled { position: relative; display: inline-block; padding: 0 .18em; color: var(--color-white); }
.circled:after {
  content: "";
  position: absolute;
  inset: -.08em -.1em;
  border: 3px solid var(--color-white);
  border-radius: var(--radius-round);
  transform: rotate(-3deg);
  pointer-events: none;
}

/* Antetítulo de sección ("Round 01", "Planes"…) */
.kicker {
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--color-accent-text);
  margin-bottom: .8rem;
}

/* Layout */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-section) 0; position: relative; }
.section-alt { background: var(--color-bg-alt); }

/* Texto solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Sprite SVG oculto (icono de WhatsApp) */
.svg-sprite { position: absolute; }

/* El ticker (margen -10px + rotación) sobresale ~10 px: en móvil ensanchaba la página
   y en escritorio hacía el documento más ancho que la pantalla. clip no crea scroll. */
main { overflow-x: clip; }

@media (max-width: 900px) {
  section { padding: var(--space-section-mobile) 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
