        /* Fases y Zonas */
        .phases-container {
            display: grid;
            gap: 2rem;
            margin-top: 2rem;
        }

        .phase-card {
            background: var(--dark-card);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            overflow: hidden;
        }

        .phase-header {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.05));
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .phase-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .phase-format {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-left: 2.3rem;
        }

        .phase-actions {
            display: flex;
            gap: 0.5rem;
        }

        .zones-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            padding: 1.5rem;
        }

        .zone-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 1.5rem;
        }

        .zone-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .zone-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .match-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .match-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem;
        }

        .match-teams {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
        }

        .team {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
        }

        .team.winner {
            background: rgba(0, 255, 136, 0.1);
            border: 1px solid rgba(0, 255, 136, 0.3);
        }

        .team-names {
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .team-score {
            font-weight: 700;
            color: var(--primary-cyan);
        }

        .match-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
            padding-top: 0.8rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .match-status {
            padding: 0.3rem 0.6rem;
            border-radius: 15px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .match-status.pendiente {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
        }

        .match-status.en-juego {
            background: rgba(0, 212, 255, 0.2);
            color: var(--primary-cyan);
            animation: pulse 2s ease-in-out infinite;
        }

        .match-status.finalizado {
            background: rgba(0, 255, 136, 0.2);
            color: var(--primary-green);
        }

        /* Selector Section */
        .selector-section {
            background: var(--dark-card);
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .selector-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .toolbar {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        /* Modal específico para partidos */
        .modal-content.wide {
            max-width: 800px;
        }

        .teams-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .team-section {
            background: rgba(255, 255, 255, 0.03);
            padding: 1rem;
            border-radius: 10px;
        }

        .team-section h4 {
            color: var(--text-primary);
            margin-bottom: 0.8rem;
            font-size: 1rem;
        }

        .score-inputs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            margin-top: 0.8rem;
        }

        .score-inputs input {
            text-align: center;
            font-weight: 700;
            font-size: 1.2rem;
        }

        /* Checkbox List para Generación Automática */
        .checkbox-list {
            max-height: 300px;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem;
        }

        .checkbox-list .checkbox-label {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            margin: 0.25rem 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .checkbox-list .checkbox-label:hover {
            background: rgba(0, 212, 255, 0.1);
        }

        .checkbox-list input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 0.75rem;
            cursor: pointer;
            accent-color: var(--primary-cyan);
        }

        .btn-success {
            background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
            color: var(--dark-bg);
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
        }

        /* Alert info */
        .alert-info {
            background: rgba(0, 212, 255, 0.1);
            border-left: 4px solid var(--primary-cyan);
            padding: 1rem;
            border-radius: 8px;
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }

        .alert-info i {
            color: var(--primary-cyan);
            font-size: 1.5rem;
        }

        /* Botón de carga rápida */
        .btn-quick-result {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: var(--dark-bg);
            border: none;
            padding: 0.6rem 1rem;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .btn-quick-result:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
        }

        .btn-quick-result i {
            font-size: 1.1rem;
        }

        .quick-actions {
            display: flex;
            gap: 0.5rem;
        }

        /* Opciones de resultado rápido */
        .result-option {
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .result-option:hover {
            border-color: var(--primary-cyan);
            background: rgba(0, 212, 255, 0.05);
        }

        .result-option input[type="radio"] {
            width: 20px;
            height: 20px;
            accent-color: var(--primary-cyan);
            cursor: pointer;
        }

        .result-option input[type="radio"]:checked + .result-label {
            color: var(--primary-cyan);
        }

        .result-option input[type="radio"]:checked + .result-label i {
            opacity: 1;
            transform: scale(1.2);
        }

        .result-label {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
        }

        .result-label i {
            opacity: 0.2;
            transition: all 0.3s ease;
            color: gold;
            font-size: 1.5rem;
        }

        /* =====================================================
           PROGRAMADOR DE HORARIOS
           ===================================================== */

        .fases-list {
            max-height: 400px;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem;
        }

        .fase-item {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            padding: 1rem;
            margin-bottom: 0.75rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .fase-item:hover {
            background: rgba(0, 212, 255, 0.1);
            border-color: var(--primary-cyan);
        }

        .fase-item:last-child {
            margin-bottom: 0;
        }

        .fase-header {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .fase-header input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: var(--primary-cyan);
            cursor: pointer;
            flex-shrink: 0;
        }

        .fase-nombre {
            flex: 1;
            font-size: 1rem;
            font-weight: 500;
        }

        .fase-prioridad {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-left: 2.5rem;
        }

        .fase-prioridad label {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
        }

        .prioridad-input {
            width: 80px;
            padding: 0.4rem 0.6rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: white;
            font-size: 0.9rem;
            text-align: center;
        }

        .prioridad-input:focus {
            outline: none;
            border-color: var(--primary-cyan);
            background: rgba(0, 212, 255, 0.1);
        }

        .badge-info {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            color: white;
        }

        .form-help {
            display: block;
            margin-top: 0.5rem;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.4;
        }

        .alert {
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            line-height: 1.5;
        }

        .alert i {
            font-size: 1.2rem;
            margin-top: 0.1rem;
            flex-shrink: 0;
        }

        .alert-info {
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: rgba(255, 255, 255, 0.9);
        }

        .alert-warning {
            background: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            color: rgba(255, 255, 255, 0.9);
        }

        .alert strong {
            color: white;
        }

        .alert ul {
            margin: 0.5rem 0 0 0;
            padding-left: 1.5rem;
        }

        .btn-warning {
            background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
            color: var(--dark-bg);
            font-weight: 600;
        }

        .btn-warning:hover {
            background: linear-gradient(135deg, #ffca28 0%, #ffa726 100%);
            box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
            transform: translateY(-2px);
        }

        /* Modal Base Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            overflow-y: auto;
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .modal-content {
            background: var(--dark-bg-secondary);
            margin: auto;
            padding: 0;
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 20px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: modalSlideIn 0.3s ease;
            position: relative;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 212, 255, 0.05);
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 0;
        }

        .btn-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1.8rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .btn-close:hover {
            background: rgba(255, 0, 0, 0.2);
            color: #ff4444;
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-footer {
            padding: 1.5rem 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            background: rgba(255, 255, 255, 0.02);
        }

        /* Responsive */

        /* Mobile Small - < 480px */
        @media (max-width: 480px) {
            /* Phases container */
            .phases-container {
                gap: 1.5rem;
            }

            .phase-header {
                flex-direction: column;
                align-items: flex-start;
                padding: 1rem;
                gap: 1rem;
            }

            .phase-title {
                font-size: var(--font-lg);
            }

            .phase-format {
                margin-left: 0;
                font-size: 0.8rem;
            }

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

            .phase-actions button {
                width: 100%;
            }

            /* Zones grid - 1 columna en móvil */
            .zones-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 1rem;
            }

            .zone-card {
                padding: 1rem;
            }

            .zone-name {
                font-size: 1rem;
            }

            /* Match cards */
            .match-card {
                padding: 0.75rem;
            }

            .team {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            /* Filters section */
            .filters-section {
                padding: 1rem;
            }

            .selector-row {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }

            .toolbar {
                flex-direction: column;
                gap: 0.75rem;
            }

            .toolbar button {
                width: 100%;
            }

            /* Modal wide */
            .modal-content.wide {
                max-width: 95vw;
                padding: 1rem;
            }

            /* Teams section - vertical en móvil */
            .teams-section {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .team-section {
                padding: 0.75rem;
            }

            .team-section h4 {
                font-size: 0.9rem;
            }

            /* Score inputs - 2 columnas en vez de 3 */
            .score-inputs {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
            }

            .score-inputs input {
                font-size: 1rem;
                padding: 0.5rem;
            }

            /* Checkbox list */
            .checkbox-list {
                max-height: 250px;
                padding: 0.75rem;
            }

            .checkbox-list .checkbox-label {
                padding: 0.5rem;
                font-size: 0.9rem;
            }

            /* Botones más grandes para touch */
            button,
            .btn {
                min-height: 44px;
                font-size: 0.9rem;
            }

            /* Fase item */
            .fase-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
                padding: 0.75rem;
            }

            .fase-nombre {
                font-size: 1rem;
            }

            .fase-acciones {
                width: 100%;
                flex-direction: row;
                justify-content: space-between;
            }

            .fase-prioridad {
                margin-left: 0;
                font-size: 0.8rem;
            }

            /* Alert info */
            .alert-info {
                padding: 0.75rem;
                font-size: 0.85rem;
            }

            /* Match metadata */
            .match-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
                font-size: 0.8rem;
            }

            /* Match actions */
            .match-actions {
                flex-direction: column;
                gap: 0.5rem;
            }

            .match-actions button {
                width: 100%;
                font-size: 0.8rem;
                padding: 0.5rem;
            }
        }

        /* Tablet - 768px */
        @media (max-width: 768px) {
            .selector-row, .teams-section {
                grid-template-columns: 1fr;
            }

            .toolbar {
                flex-wrap: wrap;
            }

            .zones-grid {
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            }

            .fase-prioridad {
                margin-left: 0;
            }

            .phase-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .score-inputs {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Tablet Large - 1024px+ */
        @media (min-width: 1024px) {
            .zones-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            }
        }
