* { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #7e22cf 0%, #6c1eac 50%, #5a1c8a 100%);
            min-height: 100vh;
        }
        
        /* Header Profesional */
        .main-header {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            position: sticky;
            top: 0;
            z-index: 999;
        }
        
        .nav-link {
            padding: 0.75rem 1.5rem;
            color: #e0e0e0;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }
        
        .nav-link:hover {
            color: #fcd34d;
            border-bottom-color: #fcd34d;
        }
        
        /* ============================================ */
        /* SECCIÓN HERO - CARRUSEL DE PUBLICIDAD */
        /* ============================================ */
        .hero-section {
            padding: 0;
            position: relative;
            overflow: hidden;
            background: #fff093;
        }
        
        .hero-carousel-container {
            position: relative;
            width: 100%;
            height: 500px;
            overflow: hidden;
        }
        
        .hero-carousel {
            display: flex;
            transition: transform 0.6s ease-in-out;
            height: 100%;
        }
        
        .hero-slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            cursor: pointer;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
        
        .hero-slide::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
        }
        
        .carousel-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        
        .carousel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .carousel-dot.active {
            background: #fcd34d;
            transform: scale(1.3);
        }
        
        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            z-index: 10;
            transition: all 0.3s;
        }
        
        .carousel-arrow:hover {
            background: rgba(252, 211, 77, 0.9);
            color: #1f2937;
        }
        
        .carousel-arrow.prev { left: 20px; }
        .carousel-arrow.next { right: 20px; }
        
        /* ============================================ */
        /* CARRUSEL DE PUBLICIDAD ADICIONAL */
        /* ============================================ */
        .publicity-carousel-section {
            padding: 3rem 0;
            background: #f3f4f6;
            overflow: hidden;
        }
        
        .publicity-carousel {
            display: flex;
            animation: scroll-publicity 15s linear infinite;
            gap: 2rem;
        }
        
        @media (hover: hover) {
        .publicity-carousel:hover {
        animation-play-state: paused;
        }
        }

        
        .publicity-item {
            min-width: 400px;
            height: 400px;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            cursor: pointer;
            transition: transform 0.3s;
            background-size: cover;
            background-position: center;
        }
        
        .publicity-item:hover {
            transform: scale(1.05);
        }
        
        @keyframes scroll-publicity {
        0% { transform: translateX(0); }
        /* Mueve exactamente la longitud de los 7 ítems originales */
        100% { transform: translateX(-1700px); } 
        }

        /* ============================================ */
/* BARRA DE GANADORES ANIMADA */
/* ============================================ */
.winners-ticker {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    padding: 1rem 0;
    /* --- ARREGLO CLAVE: Añadido el punto y coma (;) --- */
    height: 360px; 
    overflow: hidden; /* <--- Ahora esto funcionará y cortará el contenido */
    /* ------------------------------------------------ */
    position: relative;
    border-top: 3px solid #1f2937;
    border-bottom: 3px solid #1f2937;
}

.winners-track {
    display: flex;
    flex-direction: column;
    animation: scroll-winners 20s linear infinite;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    min-height: 60px;
}

.winner-icon {
    /* Estos estilos volverán a hacer las imágenes circulares */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fcd34d;
}

.winner-info {
    flex: 1;
}

.winner-name {
    /* Estos estilos volverán a formatear el texto */
    font-weight: 900;
    color: #1f2937;
    font-size: 0.9rem;
}

.winner-prize {
    /* Estos estilos volverán a formatear el premio */
    font-weight: 600;
    color: #059669;
    font-size: 0.85rem;
}

@keyframes scroll-winners {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

        /* Salas de Bingo */
        .sala-card {
            background: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%);
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
        }
        
        .sala-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }
        
        .sala-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
            color: #1f2937;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-weight: 900;
            font-size: 0.875rem;
            box-shadow: 0 4px 10px rgba(252, 211, 77, 0.4);
            z-index: 2;
        }
        
        .bote-amount {
            font-size: 2.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* ============================================ */
        /* IMAGEN DE SALAS - USA TU PNG */
        /* ============================================ */
        .sala-image-container {
            height: 200px;
            position: relative;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
        
        .sala-icon {
            font-size: 5rem;
            color: rgba(255,255,255,0.9);
            z-index: 1;
        }
        
        /* Botones Premium */
        .btn-premium {
            background: linear-gradient(135deg, #01ce2f 0%, #00b001 100%);
            color: #ffffff;
            padding: 1rem 2rem;
            border-radius: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
            box-shadow: 0 6px 20px rgba(252, 211, 77, 0.4);
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .btn-premium:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(252, 211, 77, 0.6);
        }

        /* Botones Premium */
        .btn-premium2 {
            background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
            color: #1f2937;
            padding: 1rem 2rem;
            border-radius: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
            box-shadow: 0 6px 20px rgba(252, 211, 77, 0.4);
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .btn-premium:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(252, 211, 77, 0.6);
        }
        
        /* Tablas de Bingo */
        .bingo-card-image { 
            max-width: 100%; 
            height: auto; 
            border-radius: 0.75rem; 
            border: 4px solid #800080; 
            box-shadow: 0 10px 25px rgba(0,0,0,0.4); 
        }
        
        /* Modal */
        .modal { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background-color: rgba(0,0,0,0.85); 
            display: none; 
            justify-content: center; 
            align-items: center; 
            z-index: 1000; 
            overflow-y: auto; 
            padding: 20px 0; 
        }
        
        .modal-content { 
            background-color: white; 
            border-radius: 1rem; 
            padding: 1.5rem; 
            width: 90%; 
            max-width: 500px; 
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
            position: relative; 
        }
        
        .modal-legal-content { 
            background-color: white; 
            border-radius: 1rem; 
            padding: 1.5rem; 
            width: 95%; 
            max-width: 800px; 
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
            position: relative; 
            max-height: 90vh; 
        }
        
        .modal-legal-body { 
            overflow-y: auto; 
            max-height: 70vh; 
            padding: 1rem 0;
        }
        
        /* Overlay de Juego Cerrado */
        .closed-overlay { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background-color: white;
            display: none; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            z-index: 9999; 
            text-align: center; 
            color: #1f2937;
        }
        
        canvas {
            border-bottom: 2px solid #5b21b6;
            background: transparent;
            touch-action: manipulation;
        }
        
        /* Botones de Bingo */
        .card-item-container { 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            padding: 2px; 
            cursor: pointer; 
            transition: transform 0.1s; 
        }
        
        .card-item-container:hover { 
            transform: scale(1.05); 
        }
        
        .bingo-ball { 
            width: 48px; 
            height: 48px; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            font-size: 18px; 
            font-weight: 900; 
            border-radius: 50%; 
            box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
            z-index: 2; 
            position: relative;
        }
        
        .ver-tag { 
            font-size: 10px; 
            font-weight: bold; 
            background-color: #fcd34d; 
            color: #1f2937; 
            padding: 1px 6px; 
            margin-top: 4px; 
            border-radius: 4px; 
            border: 1px solid #fbbf24; 
            z-index: 2; 
            position: relative; 
        }
        
        .ver-tag:hover { 
            background-color: #fbbf24; 
        }
        
        /* Estados de Color */
        .status-available .bingo-ball { 
            background-color: #6b21a8; 
            color: white; 
            border: 2px solid #5b21b6; 
        }
        
        .status-selected .bingo-ball { 
            background-color: #fcd34d; 
            color: #1f2937; 
            border: 2px solid #fbbf24; 
            transform: scale(1.1); 
        }
        
        .status-reserved .bingo-ball { 
            background-color: #f97316; 
            color: white; 
            border: 2px solid #ea580c; 
            animation: pulse-orange 2s infinite; 
        }
        
        .status-sold .bingo-ball { 
            background-color: #16a34a; 
            color: white; 
            border: 2px solid #15803d; 
        }
        
        @keyframes pulse-orange { 
            0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); } 
            70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); } 
            100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } 
        }
        
        /* Admin Panel */
        .admin-panel { 
            min-height: 100vh; 
            background: #f3f4f6; 
            padding: 2rem; 
        }
        
        /* Footer Profesional */
        .main-footer {
            background: linear-gradient(135deg, #1a1a2e 0%, #0f0c29 100%);
            color: #e0e0e0;
            padding: 3rem 0 1rem;
            margin-top: 4rem;
        }

/* ============================================ */
/* ESTILOS PARA RESERVA DE LÍNEAS */
/* ============================================ */

/* Tabs para líneas */
.tab-line {
    transition: all 0.3s;
}

.tab-line.active {
    border-bottom-color: #7c3aed;
    color: #7c3aed;
    border-bottom-width: 3px;
}

.tab-content-line {
    min-height: 300px;
}

/* Números de línea */
.line-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.line-number-container:hover {
    transform: scale(1.05);
}

.line-number {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.line-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0.1;
}

.line-number.libre {
    background-color: #6b21a8;
    color: white;
    border: 3px solid #5b21b6;
}

.line-number.seleccionado {
    background-color: #fcd34d;
    color: #1f2937;
    border: 3px solid #fbbf24;
    transform: scale(1.1);
    animation: pulse-yellow 1.5s infinite;
}

.line-number.reservado {
    background-color: #f97316;
    color: white;
    border: 3px solid #ea580c;
    animation: pulse-orange 2s infinite;
}

.line-number.vendido {
    background-color: #16a34a;
    color: white;
    border: 3px solid #15803d;
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Fondos para cada lista */
.line-bg-picante {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
}

.line-bg-comun {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.line-bg-fuego {
    background: linear-gradient(135deg, #ff9a00 0%, #ff5e00 100%);
}

.line-bg-dragon {
    background: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
}

/* Efectos de partículas */
.particle {
    position: absolute;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1000;
}

/* Notificaciones en tiempo real */
.line-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.5s ease-out;
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.line-status-tag {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    margin-top: 4px;
    border-radius: 4px;
    z-index: 2;
}

/* Indicador de sala lista para jugar */
.sala-ready-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 1s infinite;
    z-index: 10;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Animación para liberar números */
@keyframes liberate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.line-liberating {
    animation: liberate 0.5s ease-in-out 3;
}

/* Estilos para el panel de admin de líneas */
.admin-line-stats {
    transition: all 0.3s;
}

.admin-line-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.line-stats-count {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.line-stats-detail {
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}

/* Botones de acción admin */
.admin-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    margin-top: 0.5rem;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-reset {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-free {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

/* Modal de liberar número */
.free-number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.free-number-btn {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.free-number-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Responsive para admin */
@media (max-width: 768px) {
    .admin-panel {
        padding: 1rem;
    }
    
    .free-number-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}