/*
 * QuickScoreBet — landing pública (/)
 * Prefijo .h-*; no sustituye home.css (partidos).
 */

.main.main--landing {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  /* Evita barra horizontal por 100vw / bleed en móvil */
  overflow-x: hidden;
}

.main.main--landing .container-flash {
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/*
 * Landing pública (/) — QuickScoreBet
 * Prefijo .h-*; fuentes en landing.html.
 * prefers-reduced-motion respetado.
 */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --h-green:        #10b981;
  --h-green-dim:    rgba(16, 185, 129, 0.12);
  --h-green-glow:   rgba(16, 185, 129, 0.22);
  --h-green-border: rgba(16, 185, 129, 0.28);
  --h-blue:         #3b82f6;
  --h-blue-dim:     rgba(59, 130, 246, 0.12);
  --h-gold:         #f59e0b;
  --h-gold-dim:     rgba(245, 158, 11, 0.12);
  --h-red:          #f43f5e;
  --h-red-dim:      rgba(244, 63, 94, 0.12);
  --h-purple:       #a855f7;
  --h-purple-dim:   rgba(168, 85, 247, 0.12);
  --h-cyan:         #06b6d4;
  --h-cyan-dim:     rgba(6, 182, 212, 0.12);

  --h-bg:           #060910;
  --h-bg-card:      #0d1526;
  --h-bg-card2:     #111827;
  --h-border:       rgba(255, 255, 255, 0.07);
  --h-border-mid:   rgba(255, 255, 255, 0.12);
  --h-text:         #f1f5f9;
  --h-text-sec:     #94a3b8;
  --h-text-muted:   #475569;

  --h-font-hero:    'Bebas Neue', 'Impact', sans-serif;
  --h-font-body:    'DM Sans', system-ui, sans-serif;
  --h-font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --h-radius:       14px;
  --h-radius-sm:    8px;
  --h-shadow:       0 8px 40px rgba(0,0,0,0.55);
  --h-shadow-green: 0 0 40px rgba(16,185,129,0.18);
  --h-tr:           all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --h-max:          1200px;
  --h-pad:          clamp(20px, 5vw, 60px);
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .h-ticker__track      { animation: none; }
  .h-hero__scroll-line  { animation: none; }
  .h-live-dot           { animation: none; }
  .h-cta-final__orb     { animation: none; }
  [data-scroll-reveal]  { opacity: 1 !important; transform: none !important; }
  [data-reveal]         { opacity: 1 !important; transform: none !important; }
}

/* ── Container ────────────────────────────────────────────── */
.h-container {
  width: 100%;
  max-width: var(--h-max);
  margin: 0 auto;
  padding: 0 var(--h-pad);
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL TYPOGRAPHY
═══════════════════════════════════════════════════════════ */

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--h-green);
  margin-bottom: 16px;
  font-family: var(--h-font-body);
}

.h-eyebrow--center { display: flex; justify-content: center; }

.h-section-title {
  font-family: var(--h-font-hero);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; /* Bebas Neue is always bold */
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--h-text);
  margin: 0 0 20px;
}

.h-section-title em {
  font-style: normal;
  color: var(--h-green);
}

.h-section-title--left { text-align: left; }

.h-section-sub {
  font-size: 1rem;
  color: var(--h-text-sec);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--h-font-body);
}

.h-section-sub--left { margin: 0 0 32px; }

.h-section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ── Section wrapper ──────────────────────────────────────── */
.h-section {
  padding: 0 0 30px 0;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */

.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--h-radius-sm);
  padding: 12px 24px;
  transition: var(--h-tr);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.h-btn--primary {
  background: var(--h-green);
  color: #fff;
  box-shadow: 0 4px 24px rgba(16,185,129,0.3);
}

.h-btn--primary:hover {
  background: #34d399;
  box-shadow: 0 6px 32px rgba(16,185,129,0.45);
  transform: translateY(-2px);
}

.h-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--h-border-mid);
  color: var(--h-text-sec);
}

.h-btn--ghost:hover {
  border-color: var(--h-green-border);
  color: var(--h-text);
}

.h-btn--lg  { padding: 15px 32px; font-size: 0.95rem; border-radius: 10px; }
.h-btn--xl  { padding: 18px 42px; font-size: 1rem; border-radius: 12px; }

/* ═══════════════════════════════════════════════════════════
   LIVE DOT
═══════════════════════════════════════════════════════════ */

.h-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-green);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .h-live-dot {
    animation: h-pulse 1.8s ease-in-out infinite;
  }
}

@keyframes h-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════ */

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════════════════ */

.h-hero {
  position: relative;
  min-height: clamp(560px, 88svh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--h-bg);
}

/* Canvas */
.h-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Fondo gradiente */
.h-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%,
      rgba(16,185,129,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 80% 30%,
      rgba(59,130,246,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 25% at 15% 70%,
      rgba(168,85,247,0.05) 0%, transparent 50%);
  z-index: 0;
}

/* Campo lines */
.h-hero__field-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.h-field-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16,185,129,0.06) 30%,
    rgba(16,185,129,0.06) 70%,
    transparent 100%
  );
}

.h-field-line--center { left: 50%; }
.h-field-line--left   { left: 25%; }
.h-field-line--right  { left: 75%; }

.h-field-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(16,185,129,0.06);
}

/* Hero inner */
.h-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 64px;
}

/* Eyebrow */
.h-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--h-text-sec);
  margin-bottom: 28px;
}

.h-hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--h-green);
}

.h-hero__eyebrow-sep { color: var(--h-text-muted); }

.h-hero__eyebrow-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--h-green);
  font-weight: 700;
}

/* Headline */
.h-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
}

.h-hero__headline-line {
  display: block;
  font-family: var(--h-font-hero);
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--h-text);
}

.h-hero__headline-line--accent {
  color: var(--h-green);
  -webkit-text-stroke: 1px var(--h-green);
}

/* Hero main layout: columna texto + columna acciones */
.h-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.2vw, 26px);
  width: 100%;
}

.h-hero__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: auto;
}

/* Sub */
.h-hero__sub {
  font-family: var(--h-font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--h-text-sec);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* CTAs */
.h-hero__ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.h-hero__ctas .h-btn {
  min-width: 220px;
}

/* Scroll indicator */
.h-hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.h-hero__scroll-text {
  font-size: 0.60rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--h-text-muted);
  font-family: var(--h-font-body);
}

.h-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--h-green), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .h-hero__scroll-line {
    animation: h-scroll-line 2s ease-in-out infinite;
  }
}

@keyframes h-scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════════════
   2. TICKER
═══════════════════════════════════════════════════════════ */

.h-ticker {
  position: relative;
  display: flex;
  align-items: center;
  background: #0a1220;
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
  height: 48px;
  overflow: hidden;
  z-index: 10;
}

/* Tira dentro del hero: ancho pantalla, encima del titular */
.h-ticker.h-ticker--in-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(8px, 2vw, 16px);
  margin-bottom: clamp(20px, 4vw, 40px);
  z-index: 2;
  box-sizing: border-box;
}

.h-ticker__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--h-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--h-green);
  padding: 0 20px;
  border-right: 1px solid var(--h-border);
  background: #0a1220;
  white-space: nowrap;
  z-index: 1;
  height: 100%;
  flex-shrink: 0;
}

.h-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .h-ticker__track {
    animation: h-ticker-scroll 30s linear infinite;
  }
}

@keyframes h-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.h-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  border-right: 1px solid var(--h-border);
  font-family: var(--h-font-body);
  font-size: 0.80rem;
}

.h-ticker__teams {
  color: var(--h-text);
  font-weight: 500;
}

.h-ticker__teams em {
  font-style: normal;
  color: var(--h-text-muted);
  font-size: 0.70rem;
  margin: 0 4px;
}

.h-ticker__score {
  font-family: var(--h-font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--h-green);
  background: var(--h-green-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.h-ticker__min {
  font-family: var(--h-font-mono);
  font-size: 0.70rem;
  color: var(--h-gold);
}

.h-ticker__league {
  font-family: var(--h-font-mono);
  font-size: 0.68rem;
  color: var(--h-text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   3. PRÓXIMOS PARTIDOS (landing — /api/fd/upcoming-matches)
═══════════════════════════════════════════════════════════ */

.h-landing-upcoming {
  background: linear-gradient(
    135deg,
    #060910 0%,
    #0a1220 50%,
    #060910 100%
  );
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
}

.h-landing-upcoming__header {
  text-align: center;
  margin-bottom: 40px;
}

.h-landing-upcoming__header .h-section-sub {
  margin-top: 12px;
}

.h-landing-upcoming__loading {
  text-align: center;
  font-family: var(--h-font-body);
  font-size: 0.9rem;
  color: var(--h-text-muted);
  padding: 32px 16px;
}

.h-landing-upcoming__loading.is-hidden,
.h-landing-upcoming__error.is-hidden,
.h-landing-upcoming__inner.is-hidden {
  display: none !important;
}

.h-landing-upcoming__error {
  text-align: center;
  color: var(--h-red);
  font-family: var(--h-font-body);
  font-size: 0.9rem;
  padding: 24px 16px;
}

.h-landing-upcoming__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.h-landing-upcoming__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--h-border);
  background: rgba(255,255,255,0.04);
  color: var(--h-text-sec);
  cursor: pointer;
  transition: var(--h-tr);
}

.h-landing-upcoming__tab:hover {
  border-color: var(--h-green-border);
  color: var(--h-text);
}

.h-landing-upcoming__tab.is-active {
  border-color: var(--h-green);
  background: var(--h-green-dim);
  color: var(--h-green);
}

.h-landing-upcoming__tab img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.h-landing-upcoming__panel {
  max-width: 100%;
  margin: 0 auto;
}

.h-landing-upcoming__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-landing-upcoming__row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 2.2fr);
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--h-bg-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-sm);
  font-family: var(--h-font-body);
  transition: var(--h-tr);
}

@media (max-width: 560px) {
  .h-landing-upcoming__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.h-landing-upcoming__row:hover {
  border-color: rgba(255,255,255,0.12);
}

.h-landing-upcoming__when {
  font-size: 0.78rem;
  color: var(--h-text-muted);
  line-height: 1.4;
}

.h-landing-upcoming__match {
  font-size: 0.88rem;
  color: var(--h-text);
  font-weight: 500;
}

.h-landing-upcoming__match em {
  font-style: normal;
  color: var(--h-text-muted);
  font-size: 0.75rem;
  margin: 0 6px;
}

.h-landing-upcoming__meta {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--h-green);
  margin-top: 4px;
}

.h-landing-upcoming__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
  background: rgba(245,158,11,0.15);
  color: var(--h-gold);
}

.h-landing-upcoming__badge--live {
  background: var(--h-green-dim);
  color: var(--h-green);
}

.h-landing-upcoming__empty {
  text-align: center;
  color: var(--h-text-muted);
  font-family: var(--h-font-body);
  padding: 28px 16px;
}

/* ═══════════════════════════════════════════════════════════
   4. HOW IT WORKS
═══════════════════════════════════════════════════════════ */

.h-how {
  background: var(--h-bg);
}

.h-steps {
  --h-step-dot-size: 56px;
  --h-step-dot-radius: calc(var(--h-step-dot-size) / 2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.h-steps::before {
  content: '';
  position: absolute;
  top: var(--h-step-dot-radius);
  left: calc(16.66% + var(--h-step-dot-radius));
  right: calc(16.66% + var(--h-step-dot-radius));
  height: 1px;
  background: linear-gradient(
    to right,
    var(--h-green) 0%,
    rgba(16,185,129,0.3) 100%
  );
  z-index: 0;
}

.h-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 14px;
  position: relative;
}

.h-step__number {
  width: var(--h-step-dot-size);
  height: var(--h-step-dot-size);
  border-radius: 50%;
  background: var(--h-green);
  color: #fff;
  font-family: var(--h-font-hero);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--h-green-dim), var(--h-shadow-green);
}

.h-step__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
}

.h-step__title {
  font-family: var(--h-font-hero);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--h-text);
  margin: 0;
  min-height: 2.1em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.h-step__desc {
  font-family: var(--h-font-body);
  font-size: 0.875rem;
  color: var(--h-text-sec);
  line-height: 1.5;
  margin: 0;
  max-width: 34ch;
  min-height: 5.2em;
}

.h-step__link {
  display: inline-flex;
  color: #d1fae5;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16,185,129,0.22);
  border: 1px solid rgba(52,211,153,0.42);
  border-radius: 999px;
  padding: 6px 12px;
  transition: var(--h-tr);
  margin-top: auto;
}

.h-step__link:hover {
  color: #ffffff;
  background: rgba(16,185,129,0.32);
  border-color: rgba(52,211,153,0.64);
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════
   5. CTA FINAL
═══════════════════════════════════════════════════════════ */

.h-cta-final {
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px);
  overflow: hidden;
  background: var(--h-bg);
}

.h-cta-final__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.h-cta-final__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.h-cta-final__orb--1 {
  width: 500px; height: 500px;
  background: rgba(16,185,129,0.12);
  top: -100px; left: -100px;
}

.h-cta-final__orb--2 {
  width: 400px; height: 400px;
  background: rgba(59,130,246,0.08);
  bottom: -80px; right: -80px;
}

@media (prefers-reduced-motion: no-preference) {
  .h-cta-final__orb--1 {
    animation: h-orb-float 8s ease-in-out infinite;
  }
  .h-cta-final__orb--2 {
    animation: h-orb-float 10s ease-in-out infinite reverse;
  }
}

@keyframes h-orb-float {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, 20px); }
}

.h-cta-final__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.h-cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.h-cta-final__title {
  font-family: var(--h-font-hero);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  color: var(--h-text);
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.h-cta-final__title em {
  font-style: normal;
  color: var(--h-green);
}

.h-cta-final__sub {
  font-family: var(--h-font-body);
  font-size: 1.05rem;
  color: var(--h-text-sec);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.h-cta-final__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.h-cta-final__note {
  font-family: var(--h-font-body);
  font-size: 0.75rem;
  color: var(--h-text-muted);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — tablet y móvil (landing)
═══════════════════════════════════════════════════════════ */

/* Tablet ancha / portátil pequeño */
@media (max-width: 1024px) {
  .h-section {
    padding: 0 0 30px 0;
  }

  .h-section-header {
    margin-bottom: 40px;
  }

  .h-landing-upcoming__header {
    margin-bottom: 28px;
  }

  .h-landing-upcoming__tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 4px 12px;
    margin: 0 calc(-1 * min(16px, var(--h-pad))) 20px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.35) transparent;
    mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }

  .h-landing-upcoming__tabs::-webkit-scrollbar {
    height: 4px;
  }

  .h-landing-upcoming__tabs::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.35);
    border-radius: 4px;
  }

  .h-landing-upcoming__tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 14px;
    font-size: 0.74rem;
  }

  .h-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .h-steps::before {
    display: none;
  }

  .h-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 0 12px;
  }

  .h-step__connector {
    display: none;
  }

  .h-step__number {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .h-step__title {
    font-size: 1.35rem;
  }

  .h-step__content {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .h-step__desc {
    max-width: none;
    min-height: 0;
  }

  .h-step__title {
    min-height: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .h-cta-final {
    padding: clamp(56px, 10vw, 100px) 0;
  }

  .h-cta-final__title {
    font-size: clamp(2.4rem, 10vw, 5rem);
  }
}

@media (max-width: 900px) {
  .h-section-title {
    font-size: clamp(2.1rem, 7.5vw, 3.2rem);
  }

  .h-section-sub {
    font-size: 0.95rem;
    padding: 0 4px;
  }
}

/* Móvil */
@media (max-width: 767px) {
  .main.main--landing {
    --h-pad: clamp(14px, 4vw, 22px);
  }

  .main.main--landing .h-container {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  /* Altura según contenido: evita hueco entre CTAs y «Descubre más» (antes: 100svh + scroll absolute al fondo) */
  .h-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .h-hero__inner {
    padding-top: 8px;
    padding-bottom: 0;
    flex: 0 0 auto;
  }

  .h-hero__eyebrow {
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 8px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .h-hero__headline {
    margin-bottom: 20px;
  }

  .h-hero__main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .h-hero__actions {
    min-height: auto;
  }

  .h-hero__headline-line {
    font-size: clamp(3rem, 16vw, 4.25rem);
    line-height: 0.9;
  }

  .h-hero__headline-line--accent {
    -webkit-text-stroke-width: 0.45px;
  }

  .h-hero__sub {
    margin-bottom: 28px;
    font-size: 0.94rem;
    line-height: 1.65;
    max-width: none;
  }

  .h-hero__ctas {
    margin-bottom: 0;
    gap: 10px;
  }

  /* Tira EN VIVO: sin 100vw (evita scroll lateral); competición oculta en pantallas estrechas */
  .h-ticker.h-ticker--in-hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 4px;
    margin-bottom: clamp(16px, 4vw, 28px);
    border-radius: var(--h-radius-sm);
    border-left: none;
    border-right: none;
  }

  .h-ticker {
    min-height: 48px;
  }

  .h-ticker__label {
    padding: 0 12px;
    font-size: 0.6rem;
  }

  .h-ticker__item {
    padding: 0 16px;
    gap: 8px;
    font-size: 0.72rem;
  }

  .h-ticker__score {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .h-ticker__min {
    font-size: 0.65rem;
  }

  .h-ticker__teams em {
    margin: 0 3px;
    font-size: 0.62rem;
  }

  .h-hero__scroll {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    align-self: center;
    margin-top: 1.25rem;
    margin-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .h-section {
    padding: 0 0 30px 0;
  }

  .h-section-header {
    margin-bottom: 32px;
  }

  .h-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .h-landing-upcoming__row {
    padding: 12px 14px;
  }

  .h-landing-upcoming__match {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .h-btn {
    min-height: 44px;
    box-sizing: border-box;
  }

  .h-btn--lg {
    padding: 12px 22px;
    justify-content: center;
  }

  .h-btn--xl {
    padding: 14px 24px;
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  .h-ticker__league {
    display: none;
  }

  .h-ticker__item {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .h-hero__headline-line {
    font-size: clamp(2.65rem, 17vw, 3.6rem);
  }

  .h-hero__ctas {
    flex-direction: column;
  }

  .h-hero__ctas .h-btn {
    width: 100%;
    justify-content: center;
  }

  .h-cta-final__actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 4px;
  }

  .h-cta-final__actions .h-btn {
    width: 100%;
    justify-content: center;
  }

  .h-cta-final__sub {
    font-size: 0.95rem;
    padding: 0 8px;
  }
}

