/* ==========================================================================
   Noscora Pronósticos — Design System
   Estética moderna y tecnológica · Verde césped medio-oscuro + Oscuro / Blanco
   ========================================================================== */

:root {
  /* Verde césped de cancha natural (medio-oscuro, mate, sin efecto neón) */
  --turf-950: #0a1f14;
  --turf-900: #0f2e1e;
  --turf-800: #13442b;
  --turf-700: #195938;
  --turf-600: #216e46;
  --turf-500: #2a7f52;
  --turf-400: #3b9666;
  --turf-300: #69ab87;
  --turf-100: #e3f0e9;

  /* Acentos complementarios */
  --teal-pitch: #164f48;
  --amber-warn: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.14);
  --danger: #dc2626;
  --mp-blue: #009ee3;

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radios concéntricos */
  --radius-card: 22px;
  --radius-inner: 12px;
  --radius-pill: 999px;
  --radius-btn: 12px;
  --radius-modal: 24px;

  /* Curvas de animación */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 70px;
}

/* ===========================
   Tema Oscuro (negro puro + verde césped mate)
   =========================== */
[data-theme='dark'] {
  color-scheme: dark;
  --bg-canvas: #000000;
  --bg-subtle: #080808;
  --bg-surface: #0e0e0e;
  --bg-surface-elevated: #161616;
  --bg-surface-hover: #1f1f1f;
  --bg-glass: rgba(8, 8, 8, 0.84);
  --bg-chip: rgba(25, 89, 56, 0.2);

  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-on-turf: #ffffff;

  --accent: var(--turf-600);
  --accent-strong: var(--turf-400);
  --accent-bg: var(--turf-700);
  --accent-bg-hover: var(--turf-600);
  --accent-ring: rgba(42, 127, 82, 0.32);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-turf: rgba(42, 127, 82, 0.34);

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 30px -12px rgba(0, 0, 0, 0.8),
    0 2px 8px -2px rgba(0, 0, 0, 0.6);
  --shadow-card-hover:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 44px -16px rgba(0, 0, 0, 0.92),
    0 6px 18px -4px rgba(0, 0, 0, 0.7);
  --shadow-btn:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 16px -6px rgba(0, 0, 0, 0.75);
  --shadow-modal:
    0 28px 80px -16px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.1);

  --img-outline: oklch(1 0 0 / 0.1);
  --hero-grid-line: rgba(255, 255, 255, 0.05);
  --disclaimer-bg: #0a0a0a;
  --disclaimer-border: rgba(255, 255, 255, 0.1);
}

/* ===========================
   Tema Blanco / Claro
   =========================== */
[data-theme='light'] {
  color-scheme: light;
  --bg-canvas: #ffffff;
  --bg-subtle: #f4f8f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f0f6f2;
  --bg-surface-hover: #e7f1eb;
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-chip: rgba(21, 97, 61, 0.1);

  --text-primary: #0b1b13;
  --text-secondary: #3b5547;
  --text-muted: #5d7568;
  --text-on-turf: #ffffff;

  --accent: var(--turf-700);
  --accent-strong: var(--turf-800);
  --accent-bg: var(--turf-700);
  --accent-bg-hover: var(--turf-800);
  --accent-ring: rgba(21, 97, 61, 0.28);

  --border-subtle: rgba(11, 27, 19, 0.09);
  --border-strong: rgba(11, 27, 19, 0.18);
  --border-turf: rgba(21, 97, 61, 0.28);

  --shadow-card:
    0 1px 2px rgba(11, 27, 19, 0.04),
    0 10px 28px -12px rgba(11, 27, 19, 0.12),
    0 2px 6px -2px rgba(21, 97, 61, 0.06);
  --shadow-card-hover:
    0 2px 4px rgba(11, 27, 19, 0.05),
    0 18px 40px -14px rgba(15, 74, 46, 0.22),
    0 4px 12px -4px rgba(21, 97, 61, 0.12);
  --shadow-btn:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 20px -8px rgba(15, 74, 46, 0.55);
  --shadow-modal:
    0 28px 70px -16px rgba(11, 27, 19, 0.28),
    0 0 0 1px rgba(11, 27, 19, 0.08);

  --img-outline: oklch(0 0 0 / 0.1);
  --hero-grid-line: rgba(21, 97, 61, 0.08);
  --disclaimer-bg: #eef5f1;
  --disclaimer-border: rgba(21, 97, 61, 0.2);
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Barra Superior Legal (+18 Argentina)
   =========================== */
.legal-strip {
  background: var(--turf-800);
  color: #e8f3ed;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px solid var(--turf-600);
}

.legal-strip strong {
  color: #ffffff;
}

[data-theme='light'] .legal-strip {
  background: var(--turf-700);
  color: #eef6f1;
  border-bottom: 1px solid var(--turf-800);
}

[data-theme='light'] .legal-strip strong {
  color: #ffffff;
}

.legal-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  flex-wrap: wrap;
}

.legal-strip__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.legal-strip__link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition-property: opacity;
  transition-duration: 150ms;
}

[data-theme='light'] .legal-strip__link {
  color: #ffffff;
}

.legal-strip__link:hover {
  opacity: 0.82;
}

/* ===========================
   Header / Navbar
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition-property: background-color, border-color;
  transition-duration: 240ms;
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand--centered {
  grid-column: 2;
  justify-self: center;
}

.brand__logo {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}

.brand__logo--footer {
  height: 26px;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--turf-700) 0%, var(--turf-600) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 4px 12px -4px rgba(0, 0, 0, 0.55);
}

.brand__sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  display: block;
  margin-top: -1px;
}

.nav-links {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition-property: color, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle con animación contextual (scale 0.25->1, opacity 0->1, blur 4px->0px) */
.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition-property: transform, background-color, border-color;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-out);
}

.theme-toggle:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-turf);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle__icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition-property: transform, opacity, filter;
  transition-duration: 280ms;
  transition-timing-function: var(--ease-out);
}

[data-theme='dark'] .theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

[data-theme='dark'] .theme-toggle__icon--moon {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}

[data-theme='light'] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}

[data-theme='light'] .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Botones reutilizables (scale 0.96 on press, hit area >= 40px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition-property: transform, background-color, border-color, color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--turf-700) 0%, var(--turf-600) 100%);
  color: var(--text-on-turf);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--turf-600) 0%, var(--turf-500) 100%);
}

.btn--ghost {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.btn--outline-turf {
  background: var(--bg-chip);
  color: var(--accent-strong);
  border: 1px solid var(--border-turf);
}

.btn--outline-turf:hover {
  background: var(--turf-700);
  color: #ffffff;
  border-color: var(--turf-600);
}

.btn--lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 14px;
}

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--full {
  width: 100%;
}

/* Usuario autenticado en Header */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-turf);
}

.user-pill__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turf-700), var(--turf-500));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.user-pill__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-pill__info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.user-pill__name {
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill__plan {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===========================
   HERO CON VIDRIO ACANALADO (FLUTED GLASS) + FLOW VERDE CÉSPED
   =========================== */
.hero {
  position: relative;
  min-height: calc(100svh - 106px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 36px;
  overflow: hidden;
  isolation: isolate;
}

/* Capa 1: Gradientes orgánicos en verde césped mate sobre negro puro */
.hero__flow {
  position: absolute;
  inset: -14%;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 16% 20%, rgba(25, 89, 56, 0.56) 0%, transparent 66%),
    radial-gradient(56% 66% at 84% 26%, rgba(33, 110, 70, 0.44) 0%, transparent 64%),
    radial-gradient(62% 58% at 52% 84%, rgba(19, 68, 43, 0.52) 0%, transparent 70%),
    linear-gradient(155deg, #000000 0%, #07140d 48%, #000000 100%);
}

[data-theme='light'] .hero__flow {
  background:
    radial-gradient(64% 72% at 15% 18%, rgba(25, 89, 56, 0.52) 0%, transparent 68%),
    radial-gradient(56% 70% at 86% 24%, rgba(42, 127, 82, 0.42) 0%, transparent 65%),
    radial-gradient(60% 62% at 52% 84%, rgba(105, 171, 135, 0.46) 0%, transparent 70%),
    linear-gradient(160deg, #eef6f1 0%, #cee5d8 48%, #f6fbf8 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.72;
  will-change: transform;
}

[data-theme='light'] .hero__orb {
  opacity: 0.65;
}

.hero__orb--1 {
  width: 58vw;
  height: 78vw;
  max-width: 780px;
  max-height: 940px;
  top: -22%;
  left: -8%;
  background: radial-gradient(ellipse at center, rgba(33, 110, 70, 0.85) 0%, rgba(19, 68, 43, 0.45) 42%, transparent 72%);
  animation: flowDriftA 18s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 52vw;
  height: 76vw;
  max-width: 700px;
  max-height: 900px;
  top: -10%;
  right: -8%;
  background: radial-gradient(ellipse at center, rgba(45, 130, 85, 0.78) 0%, rgba(25, 89, 56, 0.4) 42%, transparent 72%);
  animation: flowDriftB 21s ease-in-out infinite alternate;
}

.hero__orb--3 {
  width: 56vw;
  height: 56vw;
  max-width: 720px;
  max-height: 720px;
  bottom: -24%;
  left: 26%;
  background: radial-gradient(circle, rgba(24, 87, 72, 0.75) 0%, rgba(15, 46, 30, 0.4) 46%, transparent 74%);
  animation: flowDriftC 24s ease-in-out infinite alternate;
}

/* Capa 2: Vidrio acanalado / estriado vertical (sin backdrop-filter full-screen para 60-120fps) */
.hero__fluted {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.05) 9px,
      rgba(0, 0, 0, 0.36) 22px,
      rgba(255, 255, 255, 0.02) 30px,
      rgba(255, 255, 255, 0.1) 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0px,
      transparent 16px,
      rgba(0, 0, 0, 0.24) 38px,
      rgba(255, 255, 255, 0.05) 54px,
      rgba(255, 255, 255, 0.04) 62px
    ),
    radial-gradient(ellipse 90% 48% at 50% 54%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

[data-theme='light'] .hero__fluted {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.72) 0px,
      rgba(255, 255, 255, 0.24) 3px,
      rgba(255, 255, 255, 0.08) 12px,
      rgba(19, 68, 43, 0.16) 24px,
      rgba(255, 255, 255, 0.34) 31px,
      rgba(255, 255, 255, 0.72) 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0px,
      transparent 20px,
      rgba(25, 89, 56, 0.1) 42px,
      rgba(255, 255, 255, 0.32) 58px,
      rgba(255, 255, 255, 0.28) 64px
    ),
    radial-gradient(ellipse 85% 50% at 52% 48%, rgba(255, 255, 255, 0.42) 0%, transparent 72%);
}

/* Capa 3: Velo de contraste y fundido inferior hacia negro puro */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.2) 56%,
      #000000 100%
    );
}

[data-theme='light'] .hero__veil {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.22) 58%,
      var(--bg-canvas) 100%
    );
}

@keyframes flowDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 12%, 0) scale(0.96); }
}

@keyframes flowDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8%, 6%, 0) scale(1.1); }
  100% { transform: translate3d(-3%, -8%, 0) scale(0.95); }
}

@keyframes flowDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, -7%, 0) scale(1.06); }
  100% { transform: translate3d(-6%, -3%, 0) scale(1.02); }
}

.hero__grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  border: 1px solid var(--border-turf);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turf-500);
}

.hero__title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(120deg, var(--turf-400) 0%, var(--turf-300) 50%, var(--turf-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme='light'] .hero__title-accent {
  background: linear-gradient(120deg, var(--turf-800) 0%, var(--turf-600) 55%, #0e6b62 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.hero-stat__val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat__label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Tarjeta destacada del Hero (Preview en vivo) */
.hero-spotlight {
  position: relative;
  border-radius: 26px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-turf);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card-hover);
}

.hero-spotlight__inner {
  border-radius: 14px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.hero-spotlight__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-spotlight__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
}

.hero-spotlight__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-spotlight__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.hero-spotlight__team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.hero-spotlight__vs {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
}

.hero-spotlight__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mini-prob {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.mini-prob--best {
  background: var(--bg-chip);
  border-color: var(--border-turf);
}

.mini-prob__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mini-prob__val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-spotlight__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Invitación a deslizar hacia abajo */
.scroll-invite {
  margin: 40px auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition-property: color, transform;
  transition-duration: 180ms;
}

.scroll-invite:hover {
  color: var(--accent-strong);
  transform: translateY(2px);
}

.scroll-invite__pill {
  width: 26px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-turf);
  display: flex;
  justify-content: center;
  padding-top: 7px;
  background: var(--bg-glass);
}

.scroll-invite__dot {
  width: 4px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-strong);
  animation: scrollBob 1.9s var(--ease-soft) infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  65% { transform: translateY(11px); opacity: 0.25; }
}

/* ===========================
   Banner de Aviso Legal / No Recomendación (Verde césped destacado en ambos temas)
   =========================== */
.disclaimer-banner {
  background: var(--turf-900);
  border-top: 2px solid var(--turf-600);
  border-bottom: 2px solid var(--turf-600);
  padding: 18px 0;
}

[data-theme='light'] .disclaimer-banner {
  background: #e6f2eb;
  border-top: 2px solid var(--turf-700);
  border-bottom: 2px solid var(--turf-700);
}

.disclaimer-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.disclaimer-banner__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--turf-700);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.disclaimer-banner__text {
  font-size: 13.5px;
  color: #d9ebe1;
  line-height: 1.55;
}

.disclaimer-banner__text strong {
  color: #ffffff;
}

[data-theme='light'] .disclaimer-banner__text {
  color: #133824;
}

[data-theme='light'] .disclaimer-banner__text strong {
  color: #081e12;
}

/* ===========================
   Secciones Principales
   =========================== */
.section {
  padding: 76px 0;
}

.section--subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-header__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.section-header__title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
}

.section-header__desc {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 58ch;
}

/* Barra compacta y centrada de Plan Gratis + Mejorar plan */
.quota-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.quota-bar__left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quota-bar__cta {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: var(--radius-pill);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--bg-chip);
  color: var(--accent-strong);
  border: 1px solid var(--border-turf);
}

.plan-badge--ultra {
  background: linear-gradient(135deg, var(--turf-700), #0e5e58);
  color: #ffffff;
  border-color: transparent;
}

.quota-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.quota-meter__track {
  width: 112px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.quota-meter__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--turf-600), var(--turf-400));
  transition-property: width;
  transition-duration: 300ms;
  transition-timing-function: var(--ease-out);
}

/* Controles centrados: Buscador + Ligas -> Ayer/Hoy/Mañana -> Filtros */
.controls-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.controls-search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrap__icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Selector de Día (Ayer / Hoy / Mañana) centrado y mismo tamaño que buscador + ligas */
.day-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 4px;
  padding: 4px;
  width: 100%;
  max-width: 520px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.day-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition-property: transform, background-color, color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.day-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.day-btn:active {
  transform: scale(0.96);
}

.day-btn.is-active {
  background: linear-gradient(135deg, var(--turf-700) 0%, var(--turf-600) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
}

.day-btn__tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
}

.day-btn:not(.is-active) .day-btn__tag {
  background: var(--bg-chip);
  color: var(--accent-strong);
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.filter-tab {
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition-property: transform, background-color, color, border-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-turf);
}

.filter-tab:active {
  transform: scale(0.96);
}

.filter-tab.is-active {
  background: var(--turf-700);
  color: #ffffff;
  border-color: var(--turf-600);
}

/* Custom Dropdown accesible para filtro de ligas */
.league-dropdown {
  position: relative;
  width: 100%;
}

.league-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition-property: transform, border-color, box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.league-dropdown__trigger:hover {
  border-color: var(--border-turf);
  background: var(--bg-surface-elevated);
}

.league-dropdown__trigger:active {
  transform: scale(0.98);
}

.league-dropdown__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-dropdown__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-out);
}

.league-dropdown.is-open .league-dropdown__chevron {
  transform: rotate(180deg);
}

.league-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: 260px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-modal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition-property: opacity, transform, visibility;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}

.league-dropdown.is-open .league-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.league-dropdown__option {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: left;
  transition-property: background-color, color;
  transition-duration: 120ms;
}

.league-dropdown__option:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.league-dropdown__option.is-selected {
  background: var(--bg-chip);
  color: var(--accent-strong);
  font-weight: 600;
}

/* Tarjetas de Ayer (Finalizados con checks de mercado) */
.final-score-pill {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-turf);
}

.final-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ef4444;
}

.live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.result-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.result-check-row--hit {
  border-color: rgba(42, 127, 82, 0.34);
  background: rgba(25, 89, 56, 0.12);
}

.result-check-row--miss {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.06);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.check-icon--hit {
  background: var(--turf-700);
  color: #ffffff;
}

.check-icon--miss {
  background: rgba(220, 38, 38, 0.18);
  color: #ef4444;
}

/* Banner de catálogo bloqueado (Free / Pro) */
.locked-catalog-banner {
  margin-top: 26px;
  padding: 24px;
  border-radius: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-turf);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Panel Administrar Cuenta */
.account-summary-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn--danger-soft {
  background: rgba(220, 38, 38, 0.12);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn--danger-soft:hover {
  background: rgba(220, 38, 38, 0.2);
}

[data-theme='light'] .btn--danger-soft {
  color: #b91c1c;
}

.search-input {
  min-height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  padding: 0 14px 0 38px;
  width: 100%;
  transition-property: border-color, box-shadow;
  transition-duration: 160ms;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ===========================
   Grilla de Tarjetas de Pronósticos
   =========================== */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Concentric border-radius: card 22px, padding 14px -> inner surface 10px/12px */
.prediction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
  transition-property: transform, box-shadow, border-color;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

.prediction-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-turf);
}

.prediction-card--locked {
  border-style: dashed;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-league {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.league-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-surface-elevated);
  padding: 2px;
  outline: 1px solid var(--img-outline);
  flex-shrink: 0;
}

.card-league__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-chip {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  color: var(--accent-strong);
  border: 1px solid var(--border-turf);
}

.tier-chip--locked {
  background: var(--amber-soft);
  color: var(--amber-warn);
  border-color: rgba(217, 119, 6, 0.3);
}

.card-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Matchup */
.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: var(--radius-inner);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  min-width: 0;
}

.team-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  outline: 1px solid var(--img-outline);
  display: grid;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  position: relative;
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-badge__fallback {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

.team-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.matchup__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.matchup__vs {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.matchup__xg {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-chip);
}

/* Barra visual 1X2 */
.prob-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prob-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 12px;
  gap: 6px;
}

.prob-cell {
  display: flex;
  flex-direction: column;
  padding: 7px 8px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid transparent;
  text-align: center;
}

.prob-cell--fav {
  background: var(--bg-chip);
  border-color: var(--border-turf);
}

.prob-cell__k {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.prob-cell__v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.prob-bar {
  display: flex;
  height: 7px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  gap: 2px;
}

.prob-bar__h { background: var(--turf-500); }
.prob-bar__d { background: var(--text-muted); opacity: 0.45; }
.prob-bar__a { background: #2c8c84; }

/* Resumen inferior de la tarjeta */
.card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.confidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.confidence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turf-400);
}

.confidence-dot--mid { background: #e5a00d; }
.confidence-dot--low { background: var(--text-muted); }

.card-footer {
  margin-top: auto;
  padding-top: 4px;
}

/* Skeleton de carga */
.skeleton-card {
  height: 310px;
  border-radius: var(--radius-card);
  background: linear-gradient(
    90deg,
    var(--bg-surface) 0%,
    var(--bg-surface-elevated) 50%,
    var(--bg-surface) 100%
  );
  background-size: 200% 100%;
  border: 1px solid var(--border-subtle);
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

/* ===========================
   Sección de Planes (Gratis / Pro / Ultra)
   =========================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition-property: transform, box-shadow, border-color;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.plan-card--featured {
  border: 1.5px solid var(--turf-600);
  background: var(--bg-surface);
}

.plan-card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  color: var(--accent-strong);
  border: 1px solid var(--border-turf);
  margin-bottom: 16px;
}

.plan-card--featured .plan-card__badge {
  background: var(--turf-700);
  color: #ffffff;
  border-color: transparent;
}

.plan-card__name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-card__tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  min-height: 42px;
  margin-bottom: 20px;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-card__amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-card__currency {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.plan-card__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.plan-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.plan-card__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-strong);
  margin-top: 2px;
}

.mp-strip {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.mp-strip__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 158, 227, 0.12);
  border: 1px solid rgba(0, 158, 227, 0.3);
  color: var(--mp-blue);
  font-weight: 700;
  font-size: 13px;
}

/* Lista de Top 15 ligas */
.top15-box {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.top15-box__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.top15-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.league-chip strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===========================
   Metodología & Cumplimiento Argentina
   =========================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.info-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-chip);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.info-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card__text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Preguntas Frecuentes (AEO / GEO) */
.faq-section {
  margin-top: 56px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition-property: border-color;
  transition-duration: 160ms;
}

.faq-item[open] {
  border-color: var(--border-turf);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-strong);
  flex-shrink: 0;
}

.faq-item[open] .faq-item__q::after {
  content: '−';
}

.faq-item__a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item__a strong {
  color: var(--text-primary);
}

/* Bloque Juego Responsable Argentina */
.responsible-box {
  margin-top: 28px;
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-turf);
}

.responsible-box__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.helplines {
  display: grid;
  gap: 10px;
}

.helpline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.helpline-item strong {
  font-family: var(--font-mono);
  color: var(--accent-strong);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  padding: 56px 0 36px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links button,
.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: left;
  transition-property: color;
  transition-duration: 150ms;
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-legal-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--turf-900);
  border: 1px solid var(--turf-700);
  border-left: 4px solid var(--turf-500);
  font-size: 13px;
  color: #d9ebe1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-legal-box strong {
  color: #ffffff;
}

[data-theme='light'] .footer-legal-box {
  background: #e6f2eb;
  border-color: rgba(25, 89, 56, 0.35);
  border-left: 4px solid var(--turf-700);
  color: #133824;
}

[data-theme='light'] .footer-legal-box strong {
  color: #081e12;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===========================
   Modales (Pronóstico Completo, Auth, Legal, Mercado Pago)
   =========================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  border-radius: var(--radius-modal);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-modal);
  padding: 24px;
  transform: translateY(12px) scale(0.985);
  transition-property: transform, opacity;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

.modal-panel--sm {
  max-width: 460px;
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition-property: transform, background-color;
  transition-duration: 160ms;
}

.modal-close:hover {
  background: var(--bg-surface-hover);
}

.modal-close:active {
  transform: scale(0.96);
}

/* ===========================
   Vista Dedicada de Partido (/?partido=ID)
   =========================== */
.match-view {
  padding-top: 32px;
  min-height: 75svh;
}

.match-view__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.match-view__shell {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.match-view__header-card {
  padding: 26px 24px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-turf);
  box-shadow: var(--shadow-card);
}

.match-view__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.match-view__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.match-view__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.match-view__team .team-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  padding: 8px;
}

.match-view__team-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.match-view__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Contenedores dedicados de Perfil, Comprar Plan y Acceso */
.app-page-shell {
  max-width: 640px;
  margin: 0 auto;
}

.app-page-shell--narrow {
  max-width: 480px;
}

.app-page-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

@media (max-width: 720px) {
  .app-page-card {
    padding: 20px 18px;
  }
  .match-view__grid {
    grid-template-columns: 1fr;
  }

  .match-view__header-card {
    padding: 18px 16px;
  }

  .match-view__team .team-badge {
    width: 50px;
    height: 50px;
  }
}

/* Detalle completo del pronóstico */
.detail-hero {
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.market-card {
  padding: 15px;
  border-radius: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.market-card__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.bar-row__track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  overflow: hidden;
}

.bar-row__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--turf-700), var(--turf-500));
}

.modal-disclaimer {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--turf-900);
  border: 1px solid var(--turf-700);
  border-left: 4px solid var(--turf-500);
  font-size: 12.5px;
  color: #d9ebe1;
  line-height: 1.5;
}

.modal-disclaimer strong {
  color: #ffffff;
}

[data-theme='light'] .modal-disclaimer {
  background: #e6f2eb;
  border-color: rgba(25, 89, 56, 0.35);
  border-left: 4px solid var(--turf-700);
  color: #133824;
}

[data-theme='light'] .modal-disclaimer strong {
  color: #081e12;
}

/* Formularios de Auth */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.auth-tab {
  min-height: 40px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition-property: background-color, color;
  transition-duration: 160ms;
}

.auth-tab.is-active {
  background: var(--turf-700);
  color: #ffffff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  transition-property: border-color, box-shadow;
  transition-duration: 160ms;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--turf-600);
  flex-shrink: 0;
}

.form-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
  font-size: 13px;
  margin-bottom: 14px;
}

[data-theme='light'] .form-error {
  color: #b91c1c;
}

.legal-doc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-doc h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 6px;
}

.legal-doc ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Toast notifications */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #141414;
  color: #f5f5f5;
  border: 1px solid var(--border-turf);
  box-shadow: var(--shadow-modal);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1060px) {
  .hero__grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .predictions-grid,
  .plans-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsible-box__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
  }

  .brand__logo {
    height: 24px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .predictions-grid,
  .plans-grid,
  .info-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 28px;
  }

  .hero__metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stat {
    padding: 10px;
  }

  .hero-stat__val {
    font-size: 18px;
  }

  .search-input {
    width: 100%;
  }

  .controls-search {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .quota-bar {
    border-radius: 16px;
    text-align: center;
  }

  .input-wrap {
    flex: 1;
  }

  .btn,
  .theme-toggle,
  .modal-close {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================
   Language / Region Switcher
   =========================== */
.lang-toggle {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-toggle:hover {
  border-color: var(--border-turf);
  color: var(--text-primary);
  background: var(--bg-chip);
}

@media (max-width: 520px) {
  .lang-toggle {
    padding: 0 9px;
    font-size: 11px;
  }
}
