/* --- VARIABLES DE COLOR (SISTEMA MULTI-TEMA) --- */
:root {
    /* Tema Base (Urbano / Distribuidor) - Azules */
    --bg-fondo: #0f172a;
    --bg-cabecera: #1e293b;
    --texto-principal: #e2e8f0;
    --texto-secundario: #94a3b8;
    --borde-tarjeta: #334155;
    
    --color-acento: #38bdf8; /* Azul claro para logos y hover */
    --color-btn-primario: #0284c7; /* Azul oscuro para botones */
    --color-btn-hover: #0369a1;
}

/* --- TEMA FORESTAL --- */
.tema-forestal {
    --color-acento: #fbbf24; /* Dorado/Amarillo cortafuegos */
    --color-btn-primario: #059669; /* Verde esmeralda */
    --color-btn-hover: #047857; /* Verde bosque oscuro */
}

/* --- RESET BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-fondo);
    color: var(--texto-principal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- CABECERA --- */
.aula-header {
    background-color: var(--bg-cabecera);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--borde-tarjeta);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--color-acento); /* Usa la variable */
}

/* --- CONTENEDOR PRINCIPAL --- */
.aula-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.panel-estado {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.panel-estado h1 {
    font-size: 2rem;
    color: #f8fafc;
}

.panel-estado p {
    color: var(--texto-secundario);
    margin-bottom: 1.5rem;
}

/* --- ICONO DE LOGIN --- */
.icono-candado {
    width: 64px;
    height: 64px;
    color: #475569;
    margin-bottom: 1rem;
}

/* --- BOTONES --- */
.btn-principal {
    background-color: var(--color-btn-primario);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-principal:hover {
    background-color: var(--color-btn-hover);
}

.btn-secundario {
    background-color: transparent;
    color: var(--texto-secundario);
    border: 1px solid #475569;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secundario:hover {
    color: white;
    border-color: white;
}

/* --- TARJETAS DE CURSOS (GRID) --- */
.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.tarjeta-curso {
    background-color: var(--bg-cabecera);
    border: 1px solid var(--borde-tarjeta);
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.tarjeta-curso:hover {
    transform: translateY(-5px);
    border-color: var(--color-acento);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.curso-numero {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-fondo);
    position: absolute;
    top: -10px;
    right: -5px;
    opacity: 0.5;
}

.tarjeta-curso h2 {
    font-size: 1.3rem;
    color: #f8fafc;
    z-index: 1;
}

.tarjeta-curso p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    z-index: 1;
}