/* ==========================================
   ZONA CAMPEONATO - Web Application
   Gestion de Campeonatos de Futbol
   ========================================== */

/* CSS Variables - Paleta unificada con el panel de admin (modo oscuro) */
:root {
    /* Brand (igual que admin) */
    --color-primary: #5d86a8;
    --color-primary-dark: #36506a;
    --color-primary-light: #7e9fba;
    --brand-500: #5d86a8;
    --brand-600: #496c89;
    --brand-700: #36506a;
    --brand-400: #7e9fba;
    --brand-300: #a4bfd4;
    --brand-200: #cbdbe8;

    /* Surfaces oscuras (admin) */
    --bg-0: #060b13;
    --bg-1: #0c1623;
    --bg-2: #131f2f;
    --bg-3: #1a283a;
    --bg-4: #233247;
    --bg-5: #2c3d54;

    /* Lineas / bordes */
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);

    /* Texto */
    --t-1: #ffffff;
    --t-2: #cbd5e1;
    --t-3: #8a99ad;
    --t-4: #5a6778;

    /* Alias antiguos del landing -> mapeados al sistema oscuro */
    --color-dark: var(--t-1);
    --color-dark-lighter: var(--bg-3);
    --color-white: #ffffff;
    --color-gray-100: var(--bg-2);
    --color-gray-200: var(--line-strong);
    --color-gray-300: var(--t-2);
    --color-gray-400: var(--t-3);
    --color-gray-500: var(--t-4);

    /* Estados */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-gold: #fbbf24;
    --color-silver: #9ca3af;
    --color-bronze: #d97706;

    /* Typography (igual que admin) */
    --font-display: 'Archivo', 'Outfit', system-ui, sans-serif;
    --font-body: 'Manrope', 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(95, 122, 173, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(95, 122, 173, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-0);
    color: var(--t-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ==========================================
   CURSOR GLOW EFFECT
   ========================================== */
.cursor-glow {
    position: fixed;
    width: 360px;
    height: 360px;
    /* Halo verde cesped + halo brand: como si la pelota brillara sobre el campo de juego */
    background:
        radial-gradient(circle at center, rgba(61, 220, 132, 0.10) 0%, transparent 30%),
        radial-gradient(circle at center, rgba(95, 122, 173, 0.14) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    display: grid;
    place-items: center;
}

.cursor-ball {
    width: 28px;
    height: 28px;
    opacity: 0.92;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(61, 220, 132, 0.25));
    animation: cursorBallSpin 4s linear infinite;
    transform-origin: center;
}
@keyframes cursorBallSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

body:hover .cursor-glow {
    opacity: 1;
}

/* No mostrar en mobile/touch: el efecto es solo para mouse */
@media (hover: none), (max-width: 768px) {
    .cursor-glow { display: none; }
}

/* ==========================================
   ANIMATION KEYFRAMES
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(95, 122, 173, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(95, 122, 173, 0.6);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes symbolFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, 30px) scale(1.02); }
    50% { transform: translate(10px, -20px) scale(0.98); }
    75% { transform: translate(25px, 15px) scale(1.01); }
}

@keyframes symbolFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -25px) scale(1.03); }
    66% { transform: translate(-15px, 20px) scale(0.97); }
}

@keyframes symbolRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes symbolRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-pop {
    animation: pop 0.6s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounceSlow 2s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(12, 22, 35, 0.92); /* bg-1 translucido */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav.scrolled .nav-logo img {
    height: 38px;
    filter: none;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-white);
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav.scrolled .nav-links a {
    color: var(--t-2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta-secondary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--t-2);
    margin-right: 12px;
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.nav-cta-secondary:hover { color: var(--t-1); }

.nav-cta {
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 8px;
    transition: all var(--transition-fast);
    overflow: hidden;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(95, 122, 173, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bg-1);
    transition: var(--transition-base);
}

.nav.scrolled .nav-toggle span {
    background: var(--t-1);
}

/* Button Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-shine,
.nav-cta:hover .btn-shine {
    left: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 var(--space-4xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* Igual que el admin: base oscura uniforme con un toque brand muy sutil */
    background:
        radial-gradient(ellipse at 20% 0%, rgba(93, 134, 168, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(93, 134, 168, 0.06) 0%, transparent 55%),
        var(--bg-0);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(95, 122, 173, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-symbol {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
    color: var(--color-primary-light);
}

.hero-symbol svg {
    width: 100%;
    height: 100%;
}

.hero-symbol-1 {
    width: 500px;
    height: 500px;
    top: 5%;
    right: -5%;
    animation: symbolFloat1 20s ease-in-out infinite, symbolRotate 60s linear infinite;
}

.hero-symbol-2 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    left: -8%;
    animation: symbolFloat2 25s ease-in-out infinite, symbolRotateReverse 80s linear infinite;
    opacity: 0.04;
}

.section-symbol {
    position: absolute;
    width: 450px;
    height: 450px;
    pointer-events: none;
    color: var(--color-primary);
    opacity: 0.07;
    z-index: 0;
}

.section-symbol svg {
    width: 100%;
    height: 100%;
}

.section-symbol-left {
    left: -10%;
    top: 10%;
    animation: symbolFloat2 30s ease-in-out infinite;
}

.section-symbol-right {
    right: -10%;
    bottom: 10%;
    animation: symbolFloat1 25s ease-in-out infinite;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s linear infinite;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(95, 122, 173, 0.15);
    border: 1px solid rgba(95, 122, 173, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--color-success);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-accent {
    display: block;
    color: var(--color-primary-light);
    text-shadow: 0 0 40px rgba(95, 122, 173, 0.5);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--t-2);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-md) var(--space-xl);
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(95, 122, 173, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(95, 122, 173, 0.5);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn svg {
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
}

.stat-number::after {
    content: '+';
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--t-3);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

/* Hero Visual - App Preview */
.hero-visual {
    position: relative;
}

/* Preview del hero estatico: matar TODAS las animaciones del subtree (incluyendo el contenedor). */
.hero-visual,
.hero-visual *,
.hero-visual.animate-float {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.visual-card {
    position: relative;
}

.app-preview {
    background: var(--bg-1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.preview-header {
    background: var(--bg-2);
    padding: var(--space-md);
    border-bottom: 1px solid var(--line-strong);
}

.preview-tabs {
    display: flex;
    gap: var(--space-sm);
}

.preview-tab {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--t-4);
    background: transparent;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.preview-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.preview-content {
    padding: var(--space-md);
}

.standings-preview {
    font-size: 0.85rem;
}

/* Mismo look-and-feel que el demo .demo-table (PTS adelante, sin # ni dots) */
.standings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px repeat(7, 26px) 110px;
    gap: 4px;
    padding: 9px 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
}
.standings-row:last-child { border-bottom: none; }

.standings-row.header {
    font-weight: 700;
    color: var(--t-3);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
}
.standings-row.header .pts { color: var(--brand-300); }
.standings-row.header .forma { color: var(--t-3); }

.standings-row .team {
    font-weight: 600;
    color: var(--t-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.standings-row.header .team .lp-team-dot { display: none; }

.standings-row .pts {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--brand-300);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.standings-row .num {
    color: var(--t-2);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.standings-row .num.positive { color: #22c55e; font-weight: 600; }
.standings-row .num.negative { color: #ef4444; font-weight: 600; }

.standings-row .forma { text-align: left; }
.standings-row .lp-forma-row { gap: 3px; }
.standings-row .lp-forma {
    width: 18px; height: 18px; border-radius: 4px; font-size: 9.5px;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-1);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 122, 173, 0.1);
    border-radius: 10px;
    color: var(--color-primary);
}

.floating-card-icon.goal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.floating-card-icon svg {
    width: 20px;
    height: 20px;
}

.floating-card-content {
    display: flex;
    flex-direction: column;
}

.floating-label {
    font-size: 0.7rem;
    color: var(--t-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--t-1);
}

.card-1 {
    top: -20px;
    left: -30px;
}

.card-2 {
    top: 40%;
    right: -50px;
}

/* Floating Match */
.floating-match {
    position: absolute;
    bottom: -30px;
    right: 10%;
    padding: var(--space-md);
    background: var(--bg-1);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.match-teams {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}
.match-team .team-color {
    width: 12px; height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    display: inline-block;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25);
}

.match-score {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-1);
}

.score-separator {
    color: var(--t-3);
}

.match-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--t-4);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--t-3);
    font-size: 0.75rem;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: var(--space-4xl) 0;
    background: var(--bg-1);
    position: relative;
    overflow: hidden;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(95, 122, 173, 0.1);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--t-1);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--t-4);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    transition: all var(--transition-base);
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card.featured {
    grid-row: span 2;
    background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--brand-500);
    box-shadow: 0 0 0 1px rgba(93, 134, 168, 0.15), 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.feature-card.featured .feature-title { color: var(--t-1); }
.feature-card.featured .feature-desc { color: var(--t-2); }
.feature-card.featured .feature-list li { color: var(--t-2); }

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(95, 122, 173, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card.featured:hover .feature-card-glow {
    opacity: 1;
}

.feature-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover .feature-card-shine {
    left: 100%;
}

.feature-icon,
.feature-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 122, 173, 0.1);
    border-radius: 16px;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon,
.feature-card:hover .feature-icon-container {
    transform: scale(1.1);
    background: rgba(95, 122, 173, 0.2);
}

.feature-card.featured .feature-icon-container {
    background: rgba(95, 122, 173, 0.2);
    color: var(--color-primary-light);
}

.feature-icon svg,
.feature-icon-container svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--t-1);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--t-4);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-lg);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--t-2);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
}

.hiw-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.steps-timeline {
    position: relative;
    margin-top: var(--space-3xl);
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
}

.timeline-line {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--bg-3);
    border-radius: 2px;
}

.timeline-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: width 1s ease;
}

.steps-timeline:hover .timeline-progress {
    width: 100%;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-marker {
    position: relative;
    margin-bottom: var(--space-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-1);
    border: 3px solid var(--line-strong);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-3);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.step:hover .step-number {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.step-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
}

.step:hover .step-pulse {
    animation: pulseRing 1s ease-out infinite;
}

.step-content {
    max-width: 250px;
}

.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 20px;
    margin: 0 auto var(--space-lg);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.step-icon svg {
    width: 40px;
    height: 40px;
}

.step:hover .step-icon {
    background: rgba(95, 122, 173, 0.1);
    transform: translateY(-5px);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--t-1);
    margin-bottom: var(--space-sm);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--t-4);
    line-height: 1.6;
}

/* ==========================================
   DEMO SECTION
   ========================================== */
.demo {
    padding: var(--space-4xl) 0;
    background: var(--bg-1);
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.demo-showcase {
    margin-top: var(--space-3xl);
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.demo-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-1);
    border: 2px solid var(--line-strong);
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--t-4);
    cursor: pointer;
    transition: all var(--transition-base);
}

.demo-tab svg {
    width: 20px;
    height: 20px;
}

.demo-tab:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.demo-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(95, 122, 173, 0.3);
}

.demo-content {
    position: relative;
}

.demo-panel {
    display: none;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
    animation: fadeIn 0.5s ease-out;
}

.demo-panel.active {
    display: grid;
}

.demo-preview {
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Demo Table */
.demo-table {
    font-size: 0.85rem;
}

/* Grilla: equipo + PTS (adelante) + 7 stats numericos + FORMA */
.demo-table {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.table-header,
.table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px repeat(7, 38px) 138px;
    gap: var(--space-xs);
    padding: 12px var(--space-lg);
    align-items: center;
}
.table-header {
    background: transparent;
    color: var(--t-3);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
}
.table-header .col-team { color: var(--t-3); font-weight: 700; }
.table-header .col-pts  { color: var(--brand-300); font-weight: 700; }

.table-row {
    border-bottom: 1px solid var(--line);
    transition: background var(--transition-fast);
    font-size: 0.92rem;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: rgba(255, 255, 255, 0.02); }

.col-team {
    text-align: left;
    font-weight: 600;
    color: var(--t-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cuadradito de color que representa al equipo, antes del nombre */
.lp-team-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    display: inline-block;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25);
}
.col-stat { text-align: center; font-variant-numeric: tabular-nums; color: var(--t-2); }
.col-stat.positive { color: #22c55e; font-weight: 600; }
.col-stat.negative { color: #ef4444; font-weight: 600; }
.col-pts {
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brand-300);
}

.col-forma { text-align: left; }
.lp-forma-row { display: inline-flex; gap: 4px; }
.lp-forma {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 6px;
    font-family: var(--font-display); font-weight: 800; font-size: 11px;
    color: white;
    line-height: 1;
}
.lp-forma-W { background: #22c55e; }
.lp-forma-E { background: #94a3b8; color: #0b1220; }
.lp-forma-L { background: #ef4444; }


.table-row:hover {
    background: var(--bg-2);
}

.table-row.champion {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--color-success);
}

.table-row.playoff {
    background: rgba(95, 122, 173, 0.05);
    border-left: 3px solid var(--color-primary);
}

.table-row.relegation {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--color-danger);
}

.col-pos {
    text-align: center;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

.col-team {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.col-stat {
    text-align: center;
    color: var(--t-4);
}

.col-stat.positive {
    color: var(--color-success);
    font-weight: 600;
}

.col-stat.negative {
    color: var(--color-danger);
    font-weight: 600;
}

.col-pts {
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
}

.table-legend {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-2);
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.champion {
    background: var(--color-success);
}

.legend-color.playoff {
    background: var(--color-primary);
}

.legend-color.relegation {
    background: var(--color-danger);
}

/* Fixture Preview */
.fixture-preview {
    padding: var(--space-lg);
}

.fixture-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--line-strong);
}

.fixture-date-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.fixture-nav {
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    color: var(--t-2);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.fixture-nav svg { width: 16px; height: 16px; }
.fixture-nav:hover {
    background: var(--brand-600);
    border-color: var(--brand-500);
    color: white;
}
.fixture-nav:active { transform: scale(0.92); }

.date-label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-300);
    font-variant-numeric: tabular-nums;
}

.date-value {
    font-size: 0.9rem;
    color: var(--t-3);
}

@media (max-width: 600px) {
    .fixture-date-info { flex-direction: column; align-items: center; gap: 2px; }
    .date-value { font-size: 0.8rem; }
}

.fixture-matches {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.fixture-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-2);
    border-radius: 10px;
}

/* En mobile, cada equipo en una linea distinta, hora a la derecha abarcando las 2 filas.
   Forzamos el orden visual: dot a la izquierda, nombre a la derecha, ambos equipos pegados a la izquierda. */
@media (max-width: 768px) {
    .fixture-match {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "home time"
            "away time";
        gap: 6px 12px;
        padding: 12px 14px;
    }
    .fixture-team.home {
        grid-area: home;
        justify-content: flex-start;
    }
    .fixture-team.away {
        grid-area: away;
        justify-content: flex-start;
        flex-direction: row-reverse; /* HTML viene reverse para desktop; lo invertimos para que quede igual que home */
    }
    .fixture-time {
        grid-area: time;
        align-self: center;
        font-size: 0.95rem;
    }
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

.fixture-team.away {
    justify-content: flex-end;
}

.fixture-time {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-1);
    border-radius: 6px;
    text-align: center;
    min-width: 78px;
    transition: background 0.2s ease, color 0.2s ease;
}
.fixture-time.has-score {
    color: var(--t-1);
    background: var(--brand-700);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Stats Preview */
.stats-preview {
    padding: var(--space-lg);
}

.stats-section {
    margin-bottom: var(--space-xl);
}

.stats-section:last-child {
    margin-bottom: 0;
}

.stats-section h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--t-1);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Tabla de estadísticas: mismo look que las tablas públicas (.pub-table / .lp-table) */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.stats-table th, .stats-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.85rem;
    vertical-align: middle;
}
.stats-table th {
    background: color-mix(in srgb, var(--t-1) 6%, transparent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t-3);
    font-weight: 700;
    white-space: nowrap;
}
.stats-table th.num, .stats-table td.num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.stats-table tr + tr td {
    border-top: 1px solid var(--line);
}
.stats-table tbody tr:hover td {
    background: color-mix(in srgb, var(--t-1) 4%, transparent);
}
/* La columna del jugador (2da) tiene que poder achicarse para que el resto mantenga su ancho */
.stats-table td:nth-child(2) { min-width: 0; max-width: 1px; width: 100%; }

.stats-table .stats-val {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--brand-300);
    font-size: 1rem;
}
.stats-table .stats-ama { color: #f5c518; font-weight: 700; }
.stats-table .stats-roj { color: #d62828; font-weight: 700; }

/* Jugador: foto + nombre + (fallback equipo en mobile) */
.stats-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.stats-foto {
    width: 34px; height: 34px; border-radius: 50%;
    background-color: var(--bg-3);
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.25);
}
.stats-face {
    width: 100%;
    height: 100%;
    display: block;
}
.stats-foto-empty { color: var(--t-4); font-size: 14px; }
.stats-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.stats-player-info strong {
    font-weight: 600;
    color: var(--t-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.stats-team-mobile {
    display: none;
    font-size: 11.5px;
    color: var(--t-3);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Equipo: crest + nombre */
.stats-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.stats-team-cell > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.stats-crest {
    width: 26px; height: 26px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 10px;
    color: white;
    flex-shrink: 0;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .stats-table th, .stats-table td { padding: 9px 8px; font-size: 0.82rem; }
    .stats-table .hide-mobile { display: none; }
    .stats-table .stats-team-mobile { display: block; }
}

.demo-info {
    padding: var(--space-lg);
}

.demo-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--t-1);
    margin-bottom: var(--space-md);
}

.demo-info > p {
    font-size: 1rem;
    color: var(--t-4);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.demo-features {
    list-style: none;
}

.demo-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.95rem;
    color: var(--t-1);
}

.demo-features li svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
    flex-shrink: 0;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
    position: relative;
    overflow: hidden;
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    align-items: stretch;
}
@media (max-width: 1024px) {
    .pricing-cards { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

.pricing-card {
    position: relative;
    background: var(--bg-1);
    border: 2px solid var(--line-strong);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.free {
    border-color: var(--t-2);
}

.pricing-card.pro {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(95, 122, 173, 0.03) 0%, transparent 100%);
}

.pricing-card.pro:hover {
    box-shadow: var(--shadow-glow-strong);
}

.card-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(95, 122, 173, 0.1) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.pricing-card:hover .card-glow {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(95, 122, 173, 0.3);
}

.card-header {
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--line-strong);
}

.plan-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 16px;
    margin: 0 auto var(--space-md);
    color: var(--t-4);
    transition: all var(--transition-base);
}

.plan-icon svg {
    width: 28px;
    height: 28px;
}

.pricing-card:hover .plan-icon {
    transform: scale(1.1) rotate(5deg);
}

.plan-icon.premium {
    background: linear-gradient(135deg, rgba(95, 122, 173, 0.1) 0%, rgba(95, 122, 173, 0.2) 100%);
    color: var(--color-primary);
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--t-1);
    margin-bottom: var(--space-md);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-currency {
    font-size: 0.9rem;
    color: var(--t-4);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--t-1);
}

.price-period {
    font-size: 0.9rem;
    color: var(--t-4);
}

.card-body {
    padding: var(--space-xl);
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--t-4);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--t-1);
    transition: all var(--transition-fast);
}

.plan-features li:hover {
    transform: translateX(5px);
}

.plan-features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

.plan-features li.highlight {
    background: rgba(95, 122, 173, 0.05);
    margin: 0 calc(var(--space-md) * -1);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
}

.card-footer {
    padding: var(--space-lg) var(--space-xl) var(--space-2xl);
    text-align: center;
}

.card-footer .btn {
    width: 100%;
    justify-content: center;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--t-3);
    margin-top: var(--space-md);
}

.guarantee svg {
    color: var(--color-success);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--brand-700) 50%, var(--bg-2) 100%);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(95, 122, 173, 0.15) 0%, transparent 30%),
                      radial-gradient(circle at 80% 20%, rgba(95, 122, 173, 0.1) 0%, transparent 30%);
}

.cta-symbol {
    position: absolute;
    width: 400px;
    height: 400px;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.08;
    color: var(--color-primary-light);
    pointer-events: none;
    animation: symbolFloat1 25s ease-in-out infinite;
}

.cta-symbol svg {
    width: 100%;
    height: 100%;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
}

.cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 0 auto var(--space-xl);
    backdrop-filter: blur(10px);
    color: var(--color-primary-light);
}

.cta-icon svg {
    width: 48px;
    height: 48px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--t-2);
    margin-bottom: var(--space-2xl);
}

.btn-cta {
    background: var(--bg-1);
    color: var(--t-1);
    font-size: 1.1rem;
    padding: var(--space-lg) var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--t-3);
}

.cta-trust svg {
    color: var(--color-success);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--t-3);
    max-width: 280px;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--t-3);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--t-3);
    padding: var(--space-xs) 0;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--t-4);
    margin: 0;
}

.footer-currency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--t-3);
}
.footer-currency label { font-weight: 600; }
.footer-currency select {
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    color: var(--t-1);
    border-radius: 8px;
    padding: 6px 28px 6px 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%238a99ad' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.footer-currency select:focus {
    outline: none;
    border-color: var(--brand-500);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .feature-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .demo-panel {
        grid-template-columns: 1fr;
    }

    .steps-timeline {
        flex-direction: column;
        gap: var(--space-md);
    }

    .timeline-line {
        display: none;
    }

    /* Steps compactos en mobile: numero + titulo en una fila, descripcion debajo */
    .step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        padding: 14px 16px;
        background: var(--bg-1);
        border: 1px solid var(--line);
        border-radius: 14px;
        max-width: 100%;
    }
    .step-marker { margin-bottom: 0; flex-shrink: 0; }
    .step-number {
        width: 44px; height: 44px;
        font-size: 0.95rem;
        border-width: 2px;
    }
    .step-pulse { width: 44px; height: 44px; }
    .step-content {
        max-width: none;
        flex: 1;
        min-width: 0;
        padding-top: 4px;
    }
    /* En mobile el icono grande es redundante con el numero — lo escondemos para ahorrar espacio */
    .step-icon { display: none; }
    .step-content h3 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    .step-content p {
        font-size: 0.86rem;
        line-height: 1.5;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stat-divider {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.featured {
        grid-column: span 1;
    }

    .demo-tabs {
        flex-wrap: wrap;
    }

    .demo-tab {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    /* Mobile demo-table: dejamos EQUIPO + PTS + PJ + DG. Resto de stats y FORMA ocultos. */
    .table-header,
    .table-row {
        grid-template-columns: minmax(0, 1fr) 50px 40px 56px;
        gap: 6px;
        padding: 12px 12px;
        font-size: 0.85rem;
    }
    /* Orden de hijos: 1=team, 2=pts, 3=PJ, 4=G, 5=E, 6=P, 7=GF, 8=GC, 9=DG, 10=FORMA.
       Ocultamos 4, 5, 6, 7, 8 y FORMA. Quedan 1, 2, 3 y 9. */
    .table-header > span:nth-child(4),
    .table-header > span:nth-child(5),
    .table-header > span:nth-child(6),
    .table-header > span:nth-child(7),
    .table-header > span:nth-child(8),
    .table-header > span:nth-child(10),
    .table-row > span:nth-child(4),
    .table-row > span:nth-child(5),
    .table-row > span:nth-child(6),
    .table-row > span:nth-child(7),
    .table-row > span:nth-child(8),
    .table-row > span:nth-child(10) {
        display: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .demo-tab span {
        display: none;
    }

    .demo-tab {
        min-width: auto;
        padding: var(--space-md);
    }
}

/* ==========================================
   ANIMATIONS ON SCROLL
   ========================================== */
/* fade-in al scrollear: solo opacidad, sin desplazamiento, para que no haya saltos */
.fade-in-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 500ms; }

/* ==========================================
   PLANILLA DE BUENA FE (Tab "Planilla PDF" en Explorá)
   ========================================== */
.planilla-preview {
    padding: 20px;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

/* Hoja blanca tipo papel */
.planilla-paper {
    background: #f8f9fb;
    color: #1a283a;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow:
        0 1px 0 rgba(0,0,0,0.5),
        0 22px 50px -10px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.04);
    font-family: var(--font-body);
    max-width: 540px;
    margin: 0 auto;
}

.planilla-head {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #1a283a;
}
.planilla-logo {
    width: 48px; height: 48px;
    color: #1a283a;
}
.planilla-logo svg { width: 100%; height: 100%; display: block; }
.planilla-h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: #1a283a;
}
.planilla-sub {
    font-size: 0.78rem;
    color: #5a6778;
    margin-top: 2px;
}
.planilla-equipo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}
.planilla-eq-color {
    width: 12px; height: 28px;
    border-radius: 2px;
    flex-shrink: 0;
}
.planilla-eq-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a283a;
}
.planilla-eq-meta {
    font-size: 0.72rem;
    color: #5a6778;
}

/* Tabla de jugadores */
.planilla-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.planilla-table thead th {
    text-align: left;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #5a6778;
    padding: 8px 6px;
    border-bottom: 1px solid #cbd5e1;
    font-weight: 700;
}
.planilla-table th.num,
.planilla-table td.num {
    text-align: center;
    width: 32px;
    font-variant-numeric: tabular-nums;
}
.planilla-table tbody td {
    padding: 7px 6px;
    border-bottom: 1px dashed #d8dee6;
    color: #1a283a;
}
.planilla-table tbody td:nth-child(5) { width: 30%; }

/* Firmas */
.planilla-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 26px;
    padding-top: 10px;
}
.planilla-firma {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.firma-linea {
    width: 100%;
    height: 1px;
    background: #1a283a;
    margin-bottom: 6px;
}
.firma-label {
    font-size: 0.72rem;
    color: #5a6778;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 600px) {
    .planilla-paper { padding: 16px 14px; }
    .planilla-head {
        grid-template-columns: 38px 1fr;
        gap: 10px;
    }
    .planilla-equipo {
        grid-column: 1 / -1;
        justify-content: flex-start;
        text-align: left;
        padding-top: 8px;
        border-top: 1px solid #cbd5e1;
        margin-top: 4px;
    }
    .planilla-h1 { font-size: 0.92rem; }
    .planilla-table { font-size: 0.74rem; }
    .planilla-table tbody td:nth-child(3) { display: none; } /* documento */
    .planilla-table thead th:nth-child(3) { display: none; }
}
