/* Estilos de Entrenamiento - Nueva Interfaz Catálogo / Reproductor */

.training-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-light);
    padding: 60px 0;
    text-align: center;
}

.training-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.training-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.training-content {
    padding: 50px 0;
    flex: 1;
}

.maintenance-message {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-accent);
}

.maintenance-message h2 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

/* === VISTA DE CATÁLOGO (Tarjetas) === */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.course-card-thumb {
    height: 160px;
    background: linear-gradient(45deg, var(--color-primary-dark), #6772E5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-content h3 {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.course-card-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

/* === VISTA DE REPRODUCTOR === */
.player-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.player-header h2 {
    color: var(--color-primary-dark);
    margin: 0;
}

.player-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
}

/* Columna Izquierda: Video */
.player-main {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
}

.player-main h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.active-desc {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.post-video-actions {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(70, 81, 140, 0.3);
}

/* Sección de Cuestionario */
.quiz-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.quiz-instructions {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #1976d2;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.question-block {
    margin-bottom: 25px;
}

.question-block h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #333;
}

.option-label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: var(--color-primary);
    background: #f0f7ff;
}

.option-label input {
    margin-right: 10px;
}

.quiz-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
}

.quiz-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quiz-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Columna Derecha: Playlist */
.player-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    align-self: start;
    overflow: hidden;
}

.playlist-header {
    background: var(--color-bg);
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.playlist-header h3 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.playlist-items {
    max-height: 600px;
    overflow-y: auto;
}

.playlist-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.playlist-item:hover {
    background: #f9f9f9;
}

.playlist-item.active {
    background: #f0f7ff;
    border-left: 4px solid var(--color-primary);
}

.playlist-item.locked {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.pi-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #333;
}

.playlist-item.active .pi-info h4 {
    color: var(--color-primary);
    font-weight: 700;
}

.pi-status {
    font-size: 1.1rem;
}

.pi-status.done {
    color: var(--color-accent);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}
