/* ==============================================================================
   LMS INDUCCIÓN DOCENTE - PALETA & BRANDING CUMBRES DE LABRANZA
   Diseño de 2 Columnas (Video Corto + Pregunta Lateral)
   ============================================================================== */

:root {
    --primary: #040a34;           /* Azul Marino Cumbres */
    --primary-hover: #091456;     /* Azul Marino Intenso */
    --secondary: #fabb17;         /* Amarillo Dorado Cumbres */
    --secondary-hover: #e0a50f;   /* Dorado Oscuro */
    --accent-green: #1a4d2c;      /* Verde Institucional Sello Cumbres */
    --bg-dark: #040a34;           /* Fondo Sidebar */
    --bg-card: #ffffff;
    --bg-main: #f8f9fa;           /* Gris Claro Cumbres */
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --success: #1a4d2c;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(4, 10, 52, 0.08), 0 4px 10px -2px rgba(4, 10, 52, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilo Cumbres de Labranza */
.sidebar {
    width: 280px;
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.2rem;
    box-shadow: 4px 0 15px rgba(4, 10, 52, 0.15);
}

.sidebar .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(250, 187, 23, 0.3);
}

.sidebar .brand img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sidebar .brand-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar .user-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(250, 187, 23, 0.2);
}

.sidebar .user-card h4 {
    font-size: 0.95rem;
    color: var(--text-light);
}

.sidebar .user-card p {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--secondary);
    color: var(--primary);
}

.logout-btn {
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    text-decoration: none;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.logout-btn:hover {
    background-color: var(--danger);
    color: white;
}

/* Contenido Principal */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1b6a 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--secondary);
}

.header-banner h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Layout de 2 Columnas (Video + Pregunta Lateral) */
.learning-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

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

.technique-theory-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
}

.technique-theory-box h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-tag {
    display: inline-block;
    background: #fff8e1;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Contenedor de Video Corto */
.video-wrapper {
    width: 100%;
    background: black;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 */
    height: 0;
}

.video-container iframe, .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tarjeta Lateral de Pregunta */
.question-side-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
    position: sticky;
    top: 1rem;
}

.question-side-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-side-card p.q-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    line-height: 1.4;
}

.option-item:hover {
    border-color: var(--secondary);
    background: #fffdf5;
}

.option-item input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Botones & Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-completado { background: #e8f5e9; color: var(--accent-green); }
.badge-en_progreso { background: #fff8e1; color: #b45309; }
.badge-bloqueado { background: #f1f5f9; color: #64748b; }

.btn {
    display: inline-block;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: var(--primary); }
.btn-secondary:hover:not(:disabled) { background: var(--secondary-hover); }
.btn-disabled, .btn:disabled { background: #cbd5e1 !important; color: #64748b !important; cursor: not-allowed !important; }

/* Tabla de Administración */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--primary);
    color: white;
    font-weight: 700;
}
