        /* ========== ESPECÍFICO PLANIFICADOR ========== */
        .planificador-layout {
            display: grid;
            grid-template-columns: 1fr 1fr 350px;
            gap: 20px;
            height: calc(100vh - 200px);
        }
        
        .panel {
            background: white;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }
        
        .panel-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e5e7eb;
            background: #f8fafc;
        }
        
        .panel-header h3 {
            font-size: 16px;
            color: #1f2937;
        }
        
        .panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }
        
        /* Biblioteca de ejercicios */
        .ejercicio-card {
            display: flex;
            gap: 12px;
            padding: 12px;
            background: #f8fafc;
            border-radius: 12px;
            margin-bottom: 10px;
            border: 2px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s;
            align-items: center;
        }
        
        .ejercicio-card:hover {
            border-color: #7c3aed;
            background: #faf5ff;
        }
        
        .ejercicio-card.selected {
            border-color: #7c3aed;
            background: #f3e8ff;
        }
        
        .ejercicio-card img {
            width: 80px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }
        
        .ejercicio-card .info {
            flex: 1;
            min-width: 0;
        }
        
        .ejercicio-card .titulo {
            font-weight: 600;
            font-size: 13px;
            color: #1f2937;
            margin-bottom: 5px;
            line-height: 1.3;
        }
        
        .ejercicio-card .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .ejercicio-card .tag {
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 10px;
            background: #e0e7ff;
            color: #4338ca;
        }
        
        .ejercicio-card .tag.dificultad {
            background: #fef3c7;
            color: #b45309;
        }
        
        .ejercicio-card .btn-agregar {
            background: #7c3aed;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }
        
        .ejercicio-card .btn-agregar:hover {
            background: #6d28d9;
            transform: scale(1.05);
        }
        /* Filtros biblioteca */
        .filtros-toggle {
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            padding: 12px 16px;
            cursor: pointer;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
        }
        
        .filtros-toggle h4 {
            margin: 0;
            font-size: 13px;
            font-weight: 600;
            color: white;
        }
        
        .filtros-toggle .toggle-icon {
            color: white;
            transition: transform 0.3s;
        }
        
        .filtros-toggle.collapsed .toggle-icon {
            transform: rotate(-90deg);
        }
        
        .filtros-biblioteca {
            background: #f8fafc;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }
        
        .filtros-biblioteca.collapsed {
            display: none;
        }
        
        .filtros-biblioteca select,
        .filtros-biblioteca input {
            padding: 10px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            background: white;
        }
        
        .filtros-biblioteca select:focus,
        .filtros-biblioteca input:focus {
            outline: none;
            border-color: #7c3aed;
        }
        
        .filtros-biblioteca .filtros-botones {
            display: flex;
            gap: 10px;
        }
        
        .btn-filtrar {
            flex: 1;
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            color: white;
            border: none;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
        }
        
        .btn-limpiar-filtros {
            background: #f1f5f9;
            color: #475569;
            border: 2px solid #e2e8f0;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
        }
        /* Toggle info sesion */
        .info-sesion-toggle {
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            padding: 12px 16px;
            cursor: pointer;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: none;
            width: 100%;
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
        }
        
        .info-sesion-toggle span {
            font-size: 13px;
            font-weight: 600;
            color: white;
        }
        
        .info-sesion-toggle .toggle-icon {
            color: white;
            transition: transform 0.3s;
        }
        
        .info-sesion-toggle.collapsed .toggle-icon {
            transform: rotate(-90deg);
        }
        
        .sesion-info-grid {
            background: #f8fafc;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        .sesion-info-grid.collapsed {
            display: none;
        }
        
        .campo-grupo {
            display: flex;
            flex-direction: column;
        }
        
        .campo-grupo.full-width {
            grid-column: span 2;
        }
        
        .campo-grupo label {
            font-size: 12px;
            font-weight: 600;
            color: #4b5563;
            margin-bottom: 5px;
        }
        
        .campo-grupo input,
        .campo-grupo textarea,
        .campo-grupo select {
            padding: 10px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
        }
        
        .campo-grupo input:focus,
        .campo-grupo textarea:focus,
        .campo-grupo select:focus {
            outline: none;
            border-color: #7c3aed;
        }
        
        .campo-grupo textarea {
            resize: vertical;
            min-height: 60px;
        }
        
        .duracion-total-display {
            background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
            color: white;
            padding: 12px 16px;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .duracion-total-display .label {
            font-size: 13px;
            font-weight: 500;
        }
        
        .duracion-total-display .tiempo {
            font-size: 18px;
            font-weight: 700;
        }
       /* Selector de jugadores sesion */
        .jugadores-selector {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e5e7eb;
        }
        
        .jugadores-selector-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .jugadores-selector-header h4 {
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin: 0;
        }
        
        .jugadores-selector-header .contador {
            font-size: 12px;
            color: #6b7280;
        }
        
        .jugadores-sesion-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 6px;
            max-height: 120px;
            overflow-y: auto;
            padding: 8px;
            background: #f9fafb;
            border-radius: 8px;
        }
        
        .jugador-check {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 5px 8px 5px 5px;
            background: white;
            border-radius: 10px;
            border: 2px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .jugador-check:hover {
            border-color: #7c3aed;
        }
        
       .jugador-check.selected {
            background: #dcfce7;
            border-color: #22c55e;
        }
        
        .jugador-check.selected .dorsal {
            background: #22c55e;
        }
        
        .jugador-check .jugador-foto-mini {
            flex-shrink: 0;
        }
        
        .jugador-check .dorsal {
            background: #7c3aed;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .jugador-check .nombre {
            font-size: 11px;
            color: #374151;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .btn-seleccionar-todos {
            font-size: 11px;
            padding: 4px 10px;
            background: #e5e7eb;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .btn-seleccionar-todos:hover {
            background: #d1d5db;
        }
        
        .btn-seleccionar-todos:hover {
            background: #d1d5db;
        }
        
        @media (max-width: 768px) {
            .sesion-info-grid {
                grid-template-columns: 1fr;
            }
            
            .campo-grupo.full-width {
                grid-column: span 1;
            }
        }
        /* Sesión */
        .seccion-ejercicios {
            margin-bottom: 20px;
        }
        
        .seccion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            color: white;
            font-weight: 600;
        }
        
        .seccion-header.calentamiento {
            background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
        }
        
        .seccion-header.principal {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        }
        
        .seccion-header.enfriamiento {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        
        .ejercicio-en-sesion {
            background: white;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 8px;
            border: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .ejercicio-en-sesion .nombre {
            font-weight: 500;
            font-size: 14px;
        }
        
        .ejercicio-en-sesion .duracion {
            font-size: 12px;
            color: #6b7280;
        }
        
        .ejercicio-en-sesion button {
            background: #fee2e2;
            border: none;
            color: #dc2626;
            padding: 5px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
        }
        
        /* Detalles ejercicio */
        .detalle-ejercicio {
            text-align: center;
            color: #9ca3af;
            padding: 40px 20px;
        }
        
        .detalle-ejercicio.active {
            text-align: left;
            color: #1f2937;
        }
        
        .detalle-ejercicio img {
            width: 100%;
            border-radius: 12px;
            margin-bottom: 15px;
        }
        
        .detalle-ejercicio h3 {
            font-size: 18px;
            margin-bottom: 10px;
        }
        
        .detalle-ejercicio p {
            font-size: 14px;
            color: #4b5563;
            line-height: 1.6;
        }
        
        .detalle-seccion {
            margin-top: 15px;
            padding: 15px;
            background: #f9fafb;
            border-radius: 8px;
            border-left: 4px solid #7c3aed;
        }
        
        .detalle-seccion h4 {
            font-size: 14px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
        }
        
        .detalle-seccion p {
            font-size: 13px;
            color: #4b5563;
            line-height: 1.6;
            margin: 0;
            white-space: pre-wrap;
        }
        
        .btn-ver-completo {
            display: block;
            text-align: center;
            background: #7c3aed;
            color: white;
            padding: 12px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 15px;
        }
        
        .btn-ver-completo:hover {
            background: #6d28d9;
        }

        /* ========== CALENDARIO ========== */
      /* ========== CALENDARIO UNIFICADO ========== */
        .calendario-container {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            overflow-x: auto;
        }
        
        .calendario-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .calendario-header h2 {
            margin: 0;
        }
        
        .calendario-nav {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .calendario-nav button {
            width: 36px;
            height: 36px;
            border: 2px solid #e5e7eb;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .calendario-nav button:hover {
            background: #f3f4f6;
            border-color: #667eea;
        }
        
        .mes-actual {
            font-size: 18px;
            font-weight: 700;
            color: #1f2937;
            min-width: 180px;
            text-align: center;
        }
        
        /* Leyenda */
        .calendario-leyenda-unificada {
            display: flex;
            gap: 16px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }
        
        .calendario-leyenda-unificada .leyenda-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: #6b7280;
        }
        
        .leyenda-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        
        .leyenda-dot.sesion { background: #1e3a5f; }
        .leyenda-dot.victoria { background: #22c55e; }
        .leyenda-dot.empate { background: #f59e0b; }
        .leyenda-dot.derrota { background: #ef4444; }
        .leyenda-dot.pendiente { background: #94a3b8; }
        
        /* Grid */
        .calendario-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0;
            min-width: 320px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .calendario-dia-header {
            text-align: center;
            font-weight: 700;
            color: #1f2937;
            padding: 10px 4px;
            font-size: 12px;
            background: #1e293b;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .calendario-dia {
            min-height: 90px;
            border: 1px solid #e5e7eb;
            padding: 4px;
            background: white;
            font-size: 11px;
            transition: background 0.15s;
        }
        
        .calendario-dia:hover {
            background: #fafbff;
        }
        
        .calendario-dia.otro-mes {
            background: #f9fafb;
            opacity: 0.4;
            min-height: 0;
        }
        
        .calendario-dia.hoy {
            background: #eff6ff;
        }
        
        .calendario-dia.hoy .numero {
            background: #3b82f6;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .calendario-dia.fin-semana {
            background: #fefce8;
        }
        
        .calendario-dia.dia-partido {
            background: #fef9ee;
        }
        
        .calendario-dia .numero {
            font-weight: 700;
            font-size: 13px;
            color: #374151;
            margin-bottom: 4px;
        }
        
        /* Eventos dentro del día */
        .cal-evento {
            display: flex;
            align-items: center;
            gap: 3px;
            font-size: 10px;
            padding: 3px 5px;
            border-radius: 4px;
            margin-bottom: 2px;
            cursor: pointer;
            overflow: hidden;
            transition: opacity 0.15s;
        }
        
        .cal-evento:hover {
            opacity: 0.8;
        }
        
        .cal-evento-nombre {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 600;
        }
        
        .cal-evento-hora {
            font-size: 9px;
            opacity: 0.7;
            flex-shrink: 0;
        }
        
        /* Sesión */
        .cal-sesion {
            background: #1e3a5f;
            color: white;
        }
        
        /* Partidos */
        .cal-partido {
            color: white;
        }
        
        .cal-partido.victoria { background: #22c55e; }
        .cal-partido.empate { background: #f59e0b; }
        .cal-partido.derrota { background: #ef4444; }
        .cal-partido.pendiente { background: #94a3b8; }
        
        .cal-escudo {
            width: 16px;
            height: 16px;
            object-fit: contain;
            flex-shrink: 0;
            border-radius: 2px;
        }
        
        .cal-partido-resultado {
            font-weight: 700;
            font-size: 10px;
            flex-shrink: 0;
        }
        
        /* Resumen del mes */
        .calendario-resumen-unificado {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .resumen-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px 16px;
            background: #f8fafc;
            border-radius: 10px;
            min-width: 70px;
        }
        
        .resumen-item.victoria { background: #dcfce7; }
        .resumen-item.empate { background: #fef3c7; }
        .resumen-item.derrota { background: #fee2e2; }
        .resumen-item.pendiente { background: #f1f5f9; }
        
        .resumen-num {
            font-size: 22px;
            font-weight: 800;
            color: #1f2937;
        }
        
        .resumen-label {
            font-size: 11px;
            color: #6b7280;
        }
        
        @media (max-width: 768px) {
            .calendario-dia {
                min-height: 65px;
            }
            .cal-evento {
                font-size: 9px;
                padding: 2px 3px;
            }
            .cal-escudo {
                width: 12px;
                height: 12px;
            }
        }
        /* ========== MIS SESIONES - FICHAS PRO ========== */
        .sc-card {
            background: white;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            display: flex;
            border: 1px solid #e5e7eb;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        
        .sc-card:hover {
            box-shadow: 0 8px 28px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        
        /* Lateral fecha */
        .sc-date-strip {
            width: 72px;
            min-width: 72px;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 14px 6px;
            gap: 2px;
        }
        
        .sc-date-day {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.5px;
            opacity: 0.7;
        }
        
        .sc-date-num {
            font-size: 28px;
            font-weight: 800;
            line-height: 1;
        }
        
        .sc-date-month {
            font-size: 10px;
            font-weight: 600;
            opacity: 0.8;
        }
        
        .sc-date-time {
            font-size: 11px;
            margin-top: 6px;
            background: rgba(255,255,255,0.15);
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        /* Cuerpo */
        .sc-body {
            flex: 1;
            padding: 14px 16px 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
        }
        
        .sc-top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }
        
        .sc-title {
            font-size: 16px;
            font-weight: 800;
            color: #1e293b;
            margin: 0;
            line-height: 1.2;
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .sc-total-badge {
            background: #1e293b;
            color: white;
            font-size: 12px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        /* Tags */
        .sc-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        
        .sc-tag {
            font-size: 10px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .sc-tag.micro { background: #ede9fe; color: #7c3aed; }
        .sc-tag.md { background: #fef3c7; color: #b45309; }
        .sc-tag.equipo { background: #dbeafe; color: #2563eb; }
        
        /* Objetivo */
        .sc-objetivo {
            font-size: 12px;
            color: #64748b;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .sc-obj-label {
            font-weight: 700;
            color: #475569;
        }
        
        /* Fases */
        .sc-phases {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .sc-phase {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .sc-phase-bar {
            width: 4px;
            height: 28px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        
        .sc-phase.warm .sc-phase-bar { background: #f97316; }
        .sc-phase.main .sc-phase-bar { background: #3b82f6; }
        .sc-phase.cool .sc-phase-bar { background: #22c55e; }
        
        .sc-phase-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex: 1;
            background: #f8fafc;
            padding: 5px 10px;
            border-radius: 6px;
            min-width: 0;
        }
        
        .sc-phase-name {
            font-size: 11px;
            font-weight: 600;
            color: #475569;
        }
        
        .sc-phase-data {
            font-size: 11px;
            color: #64748b;
        }
        
        .sc-phase-data strong {
            color: #1e293b;
            font-size: 13px;
        }
        
        /* Footer */
        .sc-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 8px;
            border-top: 1px solid #f1f5f9;
            margin-top: auto;
        }
        
        .sc-stats {
            display: flex;
            gap: 12px;
        }
        
        .sc-stat {
            font-size: 11px;
            color: #64748b;
        }
        
        .sc-actions {
            display: flex;
            gap: 5px;
        }
        
        .sc-btn {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        
        .sc-btn:hover { transform: scale(1.12); }
        
        .sc-btn-cargar { background: #dbeafe; }
        .sc-btn-asistencia { background: #e0e7ff; }
        .sc-btn-pdf { background: #ede9fe; }
        .sc-btn-eliminar { background: #fee2e2; }
        .sc-btn-eliminar:hover { background: #fecaca; }
        
        @media (max-width: 768px) {
            .sc-card {
                flex-direction: column;
            }
            .sc-date-strip {
                width: 100%;
                min-width: auto;
                flex-direction: row;
                padding: 10px 16px;
                gap: 8px;
            }
            .sc-date-num {
                font-size: 20px;
            }
        }
