/* css/style.css - VERSIÓN LIMPIA Y CORREGIDA */

:root {
    /* Paleta de Colores Corporativa */
    --color-primary: #2b6ca3;      /* Azul Institucional */
    --color-secondary: #1f4e79;    /* Azul Oscuro Medio */
    --color-accent: #3a8ac9;       /* Azul Claro */
    
    /* VARIABLES QUE FALTABAN Y CAUSABAN EL ERROR: */
    --dark-blue: #022340;          /* Azul Profundo (Fondo del Hero) */
    --gold-accent: #C5A47E;        /* Dorado (Detalles) */

    /* Neutros */
    --color-dark: #333333;         /* Gris oscuro */
    --color-light: #f8f9fa;        /* Fondo gris suave */
    --color-white: #ffffff;
    
    /* Efectos */
    --shadow-card: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 20px rgba(43, 108, 163, 0.15);
    --transition: all 0.3s ease;
    
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   1. HEADER & NAVEGACIÓN
   ========================================= */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Marca / Logo */
.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-area:hover { transform: scale(1.02); }

.custom-logo {
    height: 60px; /* Ajustado para móviles y escritorio */
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-brand {
    font-size: 0.8rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-brand {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

/* Menú */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-menu a:hover { color: var(--color-primary); }
.nav-menu a:hover::after { width: 100%; }

/* Botones Acción */
.nav-actions { flex-shrink: 0; }

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-white);
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(31, 78, 121, 0.2);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
}

/* =========================================
   2. HERO SLIDER CURVO (Corregido)
   ========================================= */
.hero-curved {
    /* Fondo Azul con !important para forzarlo */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    padding-top: 4rem;
    margin-bottom: 3rem;
    
    /* Curva inferior */
    border-bottom-left-radius: 50% 40px;
    border-bottom-right-radius: 50% 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Forzar color de textos en Hero */
.hero-curved h2, .hero-curved p, .hero-curved .subtitle { color: white !important; }

.slider-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    display: flex;
    align-items: center;
}

.slide.active { opacity: 1; visibility: visible; z-index: 2; }

/* Grid del Slide */
.slide-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 2rem;
}

/* Textos del Hero */
.text-column { z-index: 10; padding-left: 2rem; }

.text-column h2 {
    font-size: 2.6rem;
    font-weight: 750;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.text-column .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.btn-hero-action {
    background-color: white;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.btn-hero-action:hover { transform: translateY(-3px); background-color: #f0f0f0; }

/* Columna de Imagen (Contenedor) */
.image-column {
    position: relative;
    height: 450px; /* Aumentamos un poco la altura base del área */
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    /* Importante: NO poner overflow hidden aquí para permitir que la sombra se vea */
}

/* La Imagen de la Persona o Grupo (GIGANTE) */
.hero-person {
    /* 1. TAMAÑO AUMENTADO */
    height: 135%;       /* Hacemos que la imagen sea mucho más alta que el contenedor */
    width: auto;        /* El ancho se ajusta proporcionalmente */
    max-width: none;    /* IMPORTANTE: Quitamos límites para que el grupo no se encoja */
    
    /* 2. POSICIONAMIENTO */
    position: absolute;
    bottom: -35%;       /* La bajamos más para esconder las piernas tras la curva */
    left: 50%;
    transform: translateX(-50%); /* Centrado perfecto */
    
    z-index: 5;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)); /* Sombra más fuerte para realismo */
    
    transition: all 0.5s ease-out;
}

/* Puntos indicadores (Dots) - VERSIÓN VISIBLE */
.slider-indicators {
    position: absolute;
    bottom: 40px; /* Los subimos un poco */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100; /* IMPORTANTE: Z-Index muy alto para que nada los tape */
    padding: 10px;
    background: rgba(0,0,0,0.1); /* Fondo muy sutil para ver dónde están (opcional) */
    border-radius: 20px;
}

.dot {
    width: 14px; 
    height: 14px;
    background-color: rgba(255,255,255,0.5); /* Blancos semitransparentes */
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ffffff; /* Blanco puro al estar activo */
    transform: scale(1.3);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5); /* Brillo */
}

/* =========================================
   3. SECCIONES DE SERVICIOS
   ========================================= */
.services-section {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.section-label {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1.3rem;
    border-left: 5px solid var(--color-primary);
    padding-left: 15px;
}

.grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.icon-circle {
    width: 70px; height: 70px;
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem; color: var(--color-primary);
    transition: 0.3s;
}

.service-card:hover .icon-circle { background-color: var(--color-primary); color: white; }

.service-card h3 {
    font-size: 1rem;
    color: var(--color-dark);
    font-weight: 600;
}
/* =========================================
   DASHBOARD AULA VIRTUAL (REDISEÑO)
   ========================================= */

/* Fondo general del dashboard para dar contraste con las tarjetas blancas */
.dashboard-bg {
    background-color: #f0f2f5;
    min-height: calc(100vh - 80px); /* Resta la altura del header */
    padding-bottom: 4rem;
}

/* Banner de Bienvenida */
.welcome-banner {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 100%);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: -3rem; /* Efecto flotante para las tarjetas de abajo */
    position: relative;
    z-index: 1;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-content h1 {
    font-size: 2rem;
    font-family: 'Century Schoolbook', serif;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    color: #b0bcc5;
    font-size: 1rem;
}

/* Contenedor Principal Flotante */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* Títulos de Sección */
.section-heading {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    border-left: 4px solid var(--gold-accent);
    padding-left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- TARJETA DE INDUCCIÓN (Destacada) --- */
.induction-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 2rem;
    border-left: 6px solid var(--gold-accent);
    transition: transform 0.3s ease;
}

.induction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.induction-icon {
    width: 80px;
    height: 80px;
    background: #fff9e6; /* Fondo dorado muy suave */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold-accent);
    flex-shrink: 0;
}

.induction-info h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.induction-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- GRID DE CURSOS --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e4e8;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--medium-blue);
}

.course-header {
    height: 120px;
    background: var(--dark-blue);
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: flex-end;
}

/* Fondo decorativo para cada tipo de curso */
.course-card.basico .course-header { background: linear-gradient(135deg, #022340, #2b6ca3); }
.course-card.familia .course-header { background: linear-gradient(135deg, #3a8ac9, #1f4e79); }

.course-tag {
    background: var(--gold-accent);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    right: 15px;
}

.course-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Barra de Progreso Mejorada */
.progress-wrapper {
    margin-bottom: 1.5rem;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #666;
    font-weight: 600;
}
.progress-track {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gold-accent); /* Color dorado para el progreso */
    border-radius: 4px;
    transition: width 1s ease;
}

/* Botones del Dashboard */
.btn-dashboard {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--dark-blue);
    color: white;
    border: none;
}
.btn-primary:hover {
    background: var(--gold-accent);
    color: var(--dark-blue);
}

.btn-disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .induction-card { flex-direction: column; text-align: center; padding: 1.5rem; }
    .welcome-banner { padding: 2rem 1rem; }
    .dashboard-container { padding: 0 1rem; }
}
/* =========================================
   CORRECCIONES DASHBOARD Y BOTONES
   ========================================= */

/* 1. Botón de Cerrar Sesión (Rojo/Blanco para destacar) */
.btn-logout-custom {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-logout-custom:hover {
    background-color: #d9534f; /* Rojo al pasar el mouse */
    border-color: #d9534f;
}

/* 2. Botón Principal (Aula) - Texto BLANCO forzado */
.btn-primary {
    background-color: var(--color-primary); /* Tu azul corporativo */
    color: #ffffff !important; /* BLANCO IMPERATIVO */
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 3. Botón Deshabilitado (Gris) */
.btn-disabled {
    background-color: #e0e0e0 !important;
    color: #757575 !important;
    cursor: not-allowed;
    border: 1px solid #ccc;
    box-shadow: none;
}

/* 4. Títulos de los Cursos */
.course-title {
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 800; /* Más negrita para leer mejor */
    margin-bottom: 15px;
    min-height: 3rem; /* Alinea las tarjetas aunque los títulos sean largos */
}

/* 5. Ajuste Móvil del Header Aula */
@media (max-width: 768px) {
    .welcome-banner {
        text-align: center;
        flex-direction: column;
        justify-content: center;
    }
    .btn-logout-custom {
        display: block;
        margin-top: 10px;
        background: #d9534f; /* Rojo directo en móvil para verlo fácil */
    }
}
/* =========================================
   ESTILOS PÁGINA DE LOGIN (Recuperados)
   ========================================= */
.login-page {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem; /* Para que no toque los bordes en celular */
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.login-container h2 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.login-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
    background-color: #f9f9f9;
}

.login-container input:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: white;
}

.login-container .btn-login {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    cursor: pointer;
    background: var(--color-secondary);
    color: white;
    border: none;
}

.login-container .btn-login:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.error {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px solid #ffcdd2;
}

/* Animación de entrada suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   ESTILOS PREMIUM - VISTA DE CURSO (ver-curso.php)
   ========================================= */

/* 1. Contenedor Principal (Layout de 2 Columnas) */
.aula-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start; /* Para que la barra lateral no se estire */
}

/* 2. Barra Lateral (Sidebar) */
.course-sidebar {
    width: 320px;
    flex-shrink: 0; /* No permitimos que se encoja */
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
    position: sticky;
    top: 100px; /* Se queda pegada al bajar */
}

.course-progress {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar-menu a i { margin-right: 10px; width: 20px; text-align: center; }

.sidebar-menu a:hover {
    background-color: #f0f4f8;
    color: var(--color-primary);
}

.sidebar-menu a.active {
    background-color: var(--color-primary); /* Azul activo */
    color: white;
    box-shadow: 0 4px 10px rgba(43, 108, 163, 0.3);
}

/* 3. Contenido Principal */
.course-content {
    flex-grow: 1; /* Ocupa el resto del espacio */
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    min-height: 500px;
}

/* 4. Módulos (Acordeón) */
.module-block {
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: 0.3s;
}

.module-header {
    background-color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #333;
    transition: background 0.2s;
}

.module-header:hover { background-color: #f9f9f9; }

/* Cuerpo del módulo (donde están las clases) */
.module-body {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e4e8;
    /* Display block/none lo maneja el JS, aquí solo estilos visuales */
}

/* 5. Items de Lección (Cada clase dentro del módulo) */
.resource-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.resource-item:last-child { border-bottom: none; }
.resource-item:hover { padding-left: 25px; } /* Efecto de movimiento al pasar mouse */

.resource-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.resource-info h5 {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

/* 6. RESPONSIVE (Móvil) */
@media (max-width: 992px) {
    .aula-container {
        flex-direction: column; /* Una columna en celular */
    }
    .course-sidebar {
        width: 100%; /* Sidebar ocupa todo el ancho */
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    .sidebar-menu {
        flex-direction: row; /* Menú horizontal en móvil */
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .sidebar-menu a {
        white-space: nowrap; /* Que no se rompa el texto */
        font-size: 0.85rem;
    }
}
/* =========================================
   ESTILOS PREMIUM - HEADER DE CURSO (HERO)
   ========================================= */

.course-hero-header {
    /* Fondo Azul Degradado Corporativo */
    background: linear-gradient(135deg, #0f2c45 0%, #2b6ca3 100%);
    color: #ffffff;
    padding: 3rem 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: -40px; /* Efecto: las tarjetas se montan un poco encima */
    padding-bottom: 60px; /* Espacio extra abajo para el efecto visual */
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Etiqueta de Estado */
.status-badge {
    background-color: var(--gold-accent, #dda91a); /* Dorado */
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}
.status-badge i { font-size: 0.5rem; color: #000; }

/* Título y Organizador */
.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.organizer-text {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.organizer-text strong { font-weight: 600; color: #ffd700; } /* Resalte dorado */

.hero-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 1.5rem 0;
}

/* Grid de Información */
.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.meta-icon {
    background: rgba(255,255,255,0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.trainers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.trainers-list li { margin-bottom: 2px; }
.trainers-list li::before {
    content: "•";
    color: var(--gold-accent, #dda91a);
    margin-right: 8px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive Móvil */
@media (max-width: 768px) {
    .hero-title { font-size: 1.6rem; }
    .hero-meta-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .course-hero-header { margin-bottom: 0; padding-bottom: 3rem; }
}
/* =========================================
   4. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 3rem 1.5rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-item h4 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-item ul { list-style: none; }
.footer-item a { color: #d0e1f0; text-decoration: none; font-size: 0.9rem; line-height: 2; }
.footer-item a:hover { color: white; }

.copyright { text-align: center; padding-top: 1rem; font-size: 0.85rem; color: #aab8c2; }

/* =========================================
   CORRECCIÓN FINAL - MÓVIL (Compacto)
   ========================================= */
@media (max-width: 992px) {
    /* 1. Header y Menú */
    .navbar { padding: 0 1rem; }
    .nav-menu, .nav-actions { display: none; } 
    .mobile-toggle { display: block; font-size: 1.6rem; margin-top: 5px; }

    /* 2. El Contenedor Hero Azul (REDUCIDO) */
    .hero-curved {
        min-height: 580px;      /* <--- CAMBIO CLAVE: Antes 750px, ahora 580px */
        padding-top: 5rem;
        padding-bottom: 0;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        display: block;
        overflow: hidden;
    }

    /* 3. Grid Stacking */
    .slider-wrapper {
        display: grid;
        grid-template-areas: "pila"; 
        height: 100%;
        min-height: 580px;      /* <--- CAMBIO CLAVE: Debe coincidir con arriba */
    }

    .slide {
        grid-area: pila;
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        
        /* Visibilidad controlada por JS */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease;
    }

    .slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    /* 4. Estructura del Contenido */
    .slide-content-grid {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0 1rem;
        justify-content: space-between; 
    }

    /* 5. Texto (Arriba) */
    .text-column {
        order: 1;
        margin-top: 1.5rem;      /* Un poco menos de margen arriba */
        width: 100%;
        text-align: center;
        z-index: 10;
    }
    .text-column h2 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 8px; }
    .text-column .subtitle { font-size: 0.95rem; margin-bottom: 1.2rem; display: block; }
    .btn-hero-action { padding: 0.7rem 2rem; }

    /* 6. Imagen (Abajo y al Fondo) */
    .image-column {
        order: 2;
        margin-top: auto;       /* Empuja hacia el piso */
        width: 100%;
        height: 380px;          /* <--- AJUSTE: Altura reservada un poco menor para equilibrar */
        display: flex;
        align-items: flex-end;  /* Alinear al borde inferior */
        justify-content: center;
        position: relative;
    }
    
    /* 7. La Foto (Zoom y Posición) */
    .hero-person {
        position: relative;
        width: 135%;            /* Un pelín menos de zoom para que se vean más cuerpos */
        max-width: none;
        height: auto;
        
        left: 0; 
        bottom: -15px;          
        transform: none;
        
        filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.2));
    }

    /* 8. Puntos Indicadores */
    .slider-indicators {
        bottom: 20px;
        z-index: 20;
    }
    
    .dashboard-container { padding: 0 1rem; }
    .courses-grid { grid-template-columns: 1fr; }
}
/* --- RESPONSIVE MEJORADO (MÓVIL) --- */
    @media (max-width: 992px) {
        .social-grid { 
            grid-template-columns: 1fr; 
            gap: 0; /* Quitamos gap para juntarlos manualmente */
        }

        /* 1. EL RECUADRO AZUL */
        .cta-left-box { 
            text-align: center; 
            margin-bottom: 2rem; 
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .cta-title-box { 
            max-width: 100%; 
            border-radius: 15px; 
            width: 100%;
            /* TRUCO: Damos espacio extra abajo para que la cabeza entre sin tapar letras */
            padding-bottom: 4rem; 
            z-index: 1; /* El recuadro va atrás */
        }

        /* Ajustamos el texto para que no quede muy pegado a los bordes en móvil */
        .cta-main-text { font-size: 2rem; }
        .cta-sub-text { font-size: 1rem; }

        /* 2. LA IMAGEN DEL DOCENTE */
        .cta-png-image { 
            position: relative; 
            top: auto; 
            right: auto; 
            
            /* TAMAÑO Y POSICIÓN */
            width: 280px;      /* Tamaño controlado */
            max-width: 80%;
            
            /* LA MAGIA: Margen negativo para subirlo "encima" del recuadro */
            margin-top: -60px; 
            
            z-index: 10; /* Lo traemos al FRENTE (encima del azul) */
            
            /* Sombra suave para que se separe del fondo */
            filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.1)); 
        }
        
        /* Ajuste del Widget de Facebook en móvil */
        .fb-widget-container {
            height: 400px; /* Un poco más corto en móvil */
        }
    }
/* =========================================
   CORRECCIÓN DE CONTRASTE (AULA) - URGENTE
   ========================================= */

/* 1. El Banner DEBE ser azul para que se lean las letras blancas */
.welcome-banner {
    background: linear-gradient(135deg, #022340 0%, #2b6ca3 100%) !important; /* Azul oscuro a claro */
    color: #ffffff !important;
    padding: 2.5rem 2rem;
    border-radius: 0 0 15px 15px; /* Bordes redondeados solo abajo */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

/* 2. Forzar color blanco a los textos dentro del banner */
.welcome-content h1 {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra negra suave al texto */
}

.welcome-content p {
    color: #e6e6e6 !important; /* Blanco hueso */
    font-weight: 500;
}

/* 3. Enlace "Panel de Gestión Docente" (Si aparece) */
/* Lo convertimos en un botón blanco semitransparente para que se vea sobre el azul */
.welcome-banner a.btn-dashboard {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}
.welcome-banner a.btn-dashboard:hover {
    background-color: #ffffff !important;
    color: #022340 !important; /* Azul al pasar el mouse */
}

/* 4. Ajuste del fondo general para que contraste con las tarjetas */
.dashboard-bg {
    background-color: #f4f6f8 !important; /* Gris muy suave, no blanco puro */
}
/* =========================================
   MENÚ MÓVIL Y BOTÓN AULA (CÓDIGO CORREGIDO)
   ========================================= */

/* -----------------------------------------
   1. ESTILOS PARA MÓVIL (Celulares y Tablets hasta 992px)
   ----------------------------------------- */
@media (max-width: 992px) {
    
    /* Ocultar el menú normal */
    .nav-menu {
        display: none; 
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        background-color: #f4f6f8; 
        padding: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border-top: 3px solid var(--gold-accent);
        z-index: 1000;
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
    }

    /* Cuando se activa */
    .nav-menu.active {
        display: grid !important; 
        animation: slideDown 0.3s ease forwards;
    }

    /* Tarjetas del menú */
    .nav-menu a {
        background: white;
        border-radius: 12px;
        padding: 20px 10px;
        text-align: center;
        color: var(--color-secondary);
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        border: 1px solid transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mobile-icon {
        font-size: 1.5rem;
        color: var(--color-primary);
        margin-bottom: 5px;
        display: block; 
    }

    /* Botón Aula en Móvil (Grande y Azul) */
    .btn-login-nav {
        grid-column: span 2; 
        background-color: var(--color-primary) !important;
        color: white !important;
        font-size: 1rem !important;
        padding: 15px !important;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(43, 108, 163, 0.3) !important;
        border-radius: 12px;
        display: flex;
        justify-content: center; /* Centrado en móvil */
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
} /* <--- ¡ESTA LLAVE CIERRA EL BLOQUE MÓVIL! IMPORTANTE */


/* -----------------------------------------
   2. ESTILOS PARA ESCRITORIO (Desde 993px en adelante)
   ----------------------------------------- */
@media (min-width: 993px) {
    
    .mobile-icon { display: none; } /* Ocultar iconos de celular */

    /* Botón Aula Virtual (Píldora con borde) */
    .btn-login-nav {
        /* Estructura Flexible para centrar */
        display: inline-flex;       /* Hace que la caja se adapte al contenido */
        align-items: center;        /* Centra verticalmente */
        justify-content: center;    /* Centra horizontalmente (CORRECCIÓN CLAVE) */
        gap: 10px;                  /* Espacio entre icono y texto */
        
        /* Estilo Visual */
        background-color: transparent; 
        color: var(--color-secondary); /* Azul oscuro */
        border: 2px solid var(--color-secondary); 
        border-radius: 50px; 
        
        /* Espaciado */
        padding: 20px 40px;         /* Ajusté el padding para que no se desborde */
        margin-left: 30px;
        
        /* Texto */
        font-weight: 700; 
        font-size: 0.1rem;         /* Tamaño seguro para que quepa */
        text-decoration: none;
        white-space: nowrap;       /* Evita que el texto se parta en dos líneas */
        
        transition: all 0.3s ease;
    }

    .btn-login-nav:hover {
        background-color: var(--color-secondary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(31, 78, 121, 0.2);
    }
}