
        /* ======================================================
           IMPORTACIONES DE FUENTES PREMIUM
        ====================================================== */
        @import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Oxanium:wght@500;700;800&family=Teko:wght@500;600;700&display=swap');

        /* ======================================================
           VARIABLES GLOBALES (ESTÉTICA PREMIUM eSPORTS)
        ====================================================== */
        :root {
            --primary: #ff2d55;
            --primary-glow: rgba(255, 45, 85, 0.32);
            --secondary: #8b5cf6;
            --secondary-glow: rgba(139, 92, 246, 0.32);
            --accent: #f97316;
            --accent-glow: rgba(249, 115, 22, 0.32);
            --gold: #f5c542;
            --gold-glow: rgba(245, 197, 66, 0.34);
            
            --dark-bg: #0b0c10;
            --panel-bg: #14161c;
            --panel-hover: #1c1f28;
            
            --border-color: rgba(255, 255, 255, 0.08);
            --border-light: rgba(255, 255, 255, 0.15);
            --text-main: #f3f4f6;
            --text-muted: #8b8d99;

            --font-body: 'Rajdhani', sans-serif;
            --font-titles: 'Teko', sans-serif;
            --font-tech: 'Oxanium', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); }

        body { 
            background-color: var(--dark-bg);
            color: var(--text-main); 
            overflow-x: hidden; 
            min-height: 100vh; 
        }

        /* SCROLLBARS LIMPIOS */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: var(--dark-bg); }
        ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--primary); }

        /* ======================================================
           COMPONENTES GENERALES (PANELES, TÍTULOS, BOTONES)
        ====================================================== */
        .glass-panel, .card { 
            background: var(--panel-bg); 
            border: 1px solid var(--border-color); 
            border-radius: 8px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
            padding: 25px;
            margin-bottom: 25px;
        }

        .gaming-esports-panel {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(139, 92, 246, .35);
            border-radius: 8px;
            padding: 18px;
            margin: 18px 0;
            background:
                linear-gradient(135deg, rgba(255,45,85,.14), transparent 30%),
                linear-gradient(245deg, rgba(0,212,255,.12), transparent 34%),
                rgba(7,10,18,.86);
            box-shadow: 0 18px 45px rgba(0,0,0,.44), inset 0 0 0 1px rgba(255,255,255,.04);
        }
        .gaming-esports-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px);
            opacity: .45;
            pointer-events: none;
        }
        .gaming-esports-head {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 14px;
        }
        .gaming-esports-head span {
            color: var(--gold);
            font-family: var(--font-tech);
            font-size: .68rem;
            font-weight: 900;
            letter-spacing: 2px;
        }
        .gaming-esports-head h3 {
            margin: 3px 0 0;
            color: white;
            font-family: var(--font-titles);
            font-size: clamp(1.6rem, 4vw, 2.35rem);
            line-height: .95;
            text-transform: uppercase;
            text-shadow: 0 0 18px rgba(139,92,246,.45);
        }
        .gaming-esports-head p {
            max-width: 440px;
            color: var(--text-muted);
            font-size: .9rem;
            text-align: right;
        }
        .gaming-esports-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
            gap: 10px;
        }
        .gaming-stat-chip {
            min-height: 74px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: rgba(0,0,0,.38);
        }
        .gaming-stat-chip small {
            color: var(--text-muted);
            font-size: .66rem;
            font-weight: 900;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        .gaming-stat-chip strong {
            color: white;
            font-family: var(--font-tech);
            font-size: 1.45rem;
            line-height: 1;
            overflow-wrap: anywhere;
        }
        .gaming-esports-detail {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 10px;
            margin-top: 12px;
        }
        .gaming-esports-detail div {
            border-left: 3px solid var(--secondary);
            background: rgba(255,255,255,.035);
            padding: 10px 12px;
            border-radius: 6px;
        }
        .gaming-esports-detail small {
            display: block;
            color: var(--text-muted);
            font-size: .68rem;
            font-weight: 900;
            text-transform: uppercase;
        }
        .gaming-esports-detail b {
            color: white;
            font-family: var(--font-tech);
            font-size: 1rem;
        }
        @media (max-width: 720px) {
            .gaming-esports-head { align-items: start; flex-direction: column; }
            .gaming-esports-head p { text-align: left; }
        }

        h3 {
            font-family: var(--font-titles);
            font-size: 2.2rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--text-main);
            margin-bottom: 15px;
        }

        .neon-text { 
            color: var(--text-main); 
            text-shadow: 0 0 10px var(--primary-glow); 
            font-family: var(--font-tech); 
        }

        .btn-primary, .btn-secondary, .btn-danger, .hero-btn { 
            padding: 10px 24px; 
            border-radius: 4px; 
            font-weight: 700; 
            cursor: pointer; 
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
            font-family: var(--font-body); 
            font-size: 0.85rem;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            border: 1px solid transparent;
        }

        .btn-primary, .hero-btn { 
            background: var(--primary); 
            color: #000; 
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
        }
        .btn-primary:hover, .hero-btn:hover { 
            filter: brightness(1.2);
            box-shadow: 0 0 20px var(--primary-glow); 
            transform: scale(1.02); 
        }

        .btn-secondary { background: transparent; border: 1px solid var(--border-light); color: var(--text-main); }
        .btn-secondary:hover { border-color: var(--secondary); color: #000; background: var(--secondary); box-shadow: 0 0 15px var(--secondary-glow); }

        .btn-danger { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
        .btn-danger:hover { background: var(--accent); color: white; box-shadow: 0 0 15px var(--accent-glow); }

        .badge { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; }

        /* ======================================================
           MENÚS DESPLEGABLES (DROPDOWN)
        ====================================================== */
        .dropdown { position: relative; display: inline-block; cursor: pointer; }
        
        .dropdown-content { 
            display: none; 
            position: absolute; 
            background-color: var(--panel-hover); 
            min-width: 220px; 
            box-shadow: 0px 8px 25px 0px rgba(0,0,0,0.8); 
            z-index: 1000; 
            border: 1px solid var(--border-color); 
            border-radius: 8px; 
            top: 100%; 
            left: 0; 
        }
        
        .dropdown-content a { 
            color: var(--text-main); 
            padding: 12px 16px; 
            text-decoration: none; 
            display: block; 
            border-bottom: 1px solid rgba(255,255,255,0.03); 
            transition: 0.3s; 
            font-size: 0.85rem; 
        }
        
        .dropdown-content a:hover { 
            background-color: rgba(0, 255, 136, 0.05); 
            color: var(--primary); 
            border-left: 3px solid var(--primary); 
            padding-left: 13px; 
            font-weight: bold; 
        }
        
        .dropdown-content.show { display: block !important; }

        /* ======================================================
           CARRUSEL HORIZONTAL
        ====================================================== */
        .scrolling-wrapper { 
            display: flex !important; 
            flex-wrap: nowrap !important; 
            overflow-x: auto !important; 
            -webkit-overflow-scrolling: touch; 
            padding-bottom: 15px; 
            gap: 20px; 
            scroll-behavior: smooth; 
            scroll-snap-type: x mandatory; 
            -ms-overflow-style: none; 
            scrollbar-width: none; 
        }
        .scrolling-wrapper::-webkit-scrollbar { display: none; }

        .upcoming-card { 
            flex: 0 0 auto !important; 
            width: 300px !important; 
            min-width: 300px !important; 
            scroll-snap-align: center; 
            background: var(--panel-bg); 
            border: 1px solid var(--border-color); 
            border-radius: 8px; 
            padding: 15px; 
            text-align: center; 
            cursor: pointer; 
            transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; 
            position: relative; 
            overflow: hidden; 
        }
        
        .upcoming-card::before { 
            content: ''; 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 4px; 
            height: 100%; 
            background: var(--secondary); 
            transition: 0.3s; 
        }
        
        .upcoming-card:hover { 
            transform: translateY(-4px); 
            box-shadow: 0 8px 25px rgba(0,0,0,0.5); 
            border-color: rgba(255,255,255,0.15); 
            background: var(--panel-hover); 
        }
        .upcoming-card:hover::before { background: var(--primary); }

        .up-liga { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; font-family: var(--font-tech); }
        .up-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 10px; }
        
        /*  ESTILOS CORREGIDOS: PARA QUE NUNCA SE CORTEN LOS NOMBRES */
        .up-team { flex: 1; font-weight: 700; font-size: 1.05rem; color: white; text-transform: uppercase; }
        
        .club-link {
            white-space: normal !important;
            word-wrap: break-word !important;
            overflow: visible !important;
            display: inline-block;
        }

        .xolo-name { 
            white-space: normal !important; 
            word-wrap: break-word !important; 
            overflow: visible !important; 
        }

        .up-vs { font-family: var(--font-titles); color: white; font-size: 1.5rem; background: transparent; padding: 0 10px; border: none; text-shadow: 0 0 10px rgba(255,255,255,0.2); }
        .up-date { font-size: 0.75rem; color: var(--text-muted); font-weight: bold; background: rgba(255,255,255,0.06); display: inline-block; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }

        /* ======================================================
           TABLAS
        ====================================================== */
        .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; margin-bottom: 20px; }
        .pro-table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; background: var(--panel-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
        .pro-table th { background: #08090c; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; padding: 16px 12px; text-align: center; border-bottom: 1px solid var(--border-color); }
        .pro-table th:nth-child(2), .pro-table td:nth-child(2) { text-align: left; }
        .pro-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.02); transition: background 0.2s; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
        .pro-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
        .pro-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

        /* ======================================================
        NAV TABS Y CONTENEDORES DINÁMICOS
        ====================================================== */
        .nav-tabs { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
        .nav-tabs::-webkit-scrollbar { height: 4px; }
        .nav-tabs::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
        .nav-tabs .tab-btn { flex-shrink: 0; background: transparent; color: var(--text-muted); border: none; padding: 10px 18px; font-family: var(--font-tech); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; cursor: pointer; transition: all 0.2s; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
        .nav-tabs .tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }
        .nav-tabs .tab-btn.activo { color: var(--primary); border-bottom: 2px solid var(--primary); border-radius: 4px 4px 0 0; background: rgba(0, 255, 136, 0.05); }

        /*  Regla de control absoluto para visibilidad de pestañas */
        .tab-content { display: none !important; }
        .tab-content.activo { display: block !important; }

        /* ======================================================
           TOAST TICOPA ALERTS
        ====================================================== */
        .ticopa-toast { 
            position: fixed; 
            top: 30px; 
            right: 30px; 
            min-width: 320px; 
            padding: 18px 22px; 
            border-radius: 6px; 
            background: var(--panel-hover); 
            border: 1px solid var(--primary); 
            color: white; 
            font-weight: 700; 
            z-index: 999999; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
            animation: toastIn 0.25s ease; 
            border-left: 4px solid var(--primary); 
        }
        @keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

        /* ======================================================
           CARRUSEL Y SIDEBAR NAV (VINCULADO AL MENÚ LATERAL)
        ====================================================== */
        .nav-ticker-wrapper { 
            flex: 1; 
            overflow: hidden; 
            margin: 0 30px; 
            position: relative; 
            mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); 
            -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); 
            display: flex; 
            align-items: center; 
            height: 60px; /*  AQUÍ SE CONTROLA LA ALTURA MÁS DELGADA */
        }
        .nav-ticker-wrapper:hover .ticker-track { animation-play-state: paused; }
        @keyframes scrollTickerNav { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

        .ticker-item { 
            background: transparent !important; 
            border: none !important; 
            border-right: 1px solid var(--border-color) !important; 
            border-radius: 0 !important; 
            padding: 0 40px !important; /*  ESTIRA LA TARJETA HORIZONTALMENTE */
            min-width: max-content !important; /*  OBLIGA A QUE EL TEXTO QUEPA COMPLETO */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        /*  ASEGURAMOS QUE EL TEXTO NO SALTE DE LÍNEA Y SE VEA PROPORCIONADO */
        .ticker-header { display:flex; align-items:center; justify-content:center; gap:5px; font-size: 0.55rem !important; color: var(--secondary); text-transform: uppercase; font-weight: bold; margin-bottom: 2px; }
        .ticker-tournament-logo { width:17px; height:17px; flex:0 0 17px; object-fit:contain; border-radius:3px; background:rgba(0,0,0,.35); }
        .ticker-body { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; }
        .ticker-team { font-size: 0.8rem !important; font-weight: 800; color: white; white-space: nowrap !important; /*  ESTO EVITA QUE NOMBRES LARGOS SE CORTEN O BAJEN */ text-transform: uppercase; }
        .ticker-vs { font-size: 0.7rem !important; color: var(--gold); font-weight: 900; }
        .ticker-footer { font-size: 0.6rem !important; color: var(--primary); margin-top: 2px; font-weight: bold; }

        .mobile-toggle { display: block !important; background: transparent; color: white; font-family: var(--font-tech); font-size: 1.5rem; padding: 5px 10px; cursor: pointer; border: none; transition: 0.2s; }
        .mobile-toggle:hover { color: var(--primary); }

        /*  SOLUCIÓN SIDEBAR SCROLL: Forzamos la altura máxima y habilitamos el deslizamiento táctil independiente */
        .sidebar-menu { 
            position: fixed; 
            top: 0; 
            right: -450px; /* Ajustado para que se esconda completamente con el nuevo ancho */
            width: 420px;  /*  AUMENTADO (Antes 320px) para que quepan nombres largos */
            height: 100vh; 
            max-height: 100vh; /* Altura blindada */
            overflow-y: auto;  /* Permite el scroll interno */
            -webkit-overflow-scrolling: touch; /* Scroll táctil ultra suave en celular */
            background: rgba(11, 12, 16, 0.98); 
            border-left: 1px solid var(--border-color); 
            z-index: 10000; 
            transition: right 0.3s ease; 
            display: flex; 
            flex-direction: column; 
            padding: 30px 20px; 
            box-shadow: -10px 0 40px rgba(0,0,0,0.8); 
        }
        .sidebar-menu.active { right: 0; }
        .sidebar-menu ul { list-style: none; padding: 0; }
        .sidebar-menu li a { 
            font-family: var(--font-body); 
            font-weight: 600; 
            font-size: 0.9rem; 
            padding: 15px 10px; 
            display: block; 
            border-bottom: 1px solid rgba(255,255,255,0.03); 
            color: var(--text-muted); 
            text-decoration: none; 
            transition: 0.2s; 
            text-transform: uppercase; 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
        }
        .sidebar-menu li a:hover { background: rgba(255,255,255,0.03); color: white; padding-left: 20px; border-left: 2px solid white; }

        /* ======================================================
            FIX: NOMBRES DE EQUIPOS EN UNA SOLA LÍNEA (EVITAR DESBORDES)
        ====================================================== */
        .calendar-container {
            display: grid !important;
            /* Usamos 'auto-fit' con un ancho mínimo que permita ver nombres largos */
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
            gap: 15px;
            width: 100%;
        }

        .match-card {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 15px !important;
            width: 100%;
            /* Evita que la tarjeta se encoja forzadamente */
            min-width: 320px !important; 
        }

        .match-team {
            flex: 1;
            /* Mantiene el nombre en una sola línea */
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            padding: 0 5px;
        }

        .match-score {
            flex: 0 0 100px !important;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .club-name-mobile {
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            display: inline-block !important;
            max-width: 100% !important;
        }

        /* ======================================================
           MEDIA QUERIES (RESPONSIVE MÓVIL)
        ====================================================== */
        @media (max-width: 768px) {
            .main-container { padding: 10px !important; }
            .club-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
            .perfil-header-grid { grid-template-columns: 1fr !important; gap: 20px !important; text-align: center; }
            .stats-grid { grid-template-columns: 1fr !important; }
            .liga-header h1 { font-size: 1.8rem !important; text-align: center; }
            
            .match-card { flex-direction: row !important; gap: 8px; padding: 15px !important; text-align: center; width: max-content; min-width: 100%; }
            .match-team { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
            .match-team .club-link { max-width: none !important; white-space: nowrap !important; overflow: visible !important; text-overflow: clip !important; }
            .match-score { flex: 0 0 108px !important; width: 108px !important; min-width: 108px !important; border: none !important; padding: 0 !important; }
            .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
            .pro-table { width: max-content !important; min-width: 100% !important; }
            .pro-table th, .pro-table td { white-space: nowrap !important; font-size: 0.78rem !important; padding: 9px 8px !important; }
            .filtros-calendario { flex-direction: column; }
            .filtro-btn, .filtro-select { width: 100% !important; margin-bottom: 5px; }
            
            .upcoming-card { width: 260px !important; min-width: 260px !important; }
            .hamburger { margin-right: 8px; font-size: 1.2rem; }
            
            .dropdown-content { position: fixed !important; top: 60px !important; left: 5% !important; width: 90% !important; max-height: 70vh !important; overflow-y: auto !important; }
            .ticopa-toast { right: 10px; left: 10px; min-width: unset; }
        }
    