/* =========================================
   ESTILOS GLOBALES - AIVOLUCIÓN ACADEMY
   Diseño Unificado Centrado (Sin Barra Lateral)
   ========================================= */

/* 1. VARIABLES Y BASE */
:root {
    --bg: #050505;
    --cyan: #00f2ff;
    --purple: #bc13fe;
    --text: white;
    --panel-bg: rgba(255, 255, 255, 0.05);
    --border: 1px solid rgba(188, 19, 254, 0.3);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Diseño en columna vertical */
    align-items: center;    /* Centra todo horizontalmente */
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2. CABECERA (LOGO CENTRADO) */
header {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center; /* Centra el logo */
    align-items: center;
    border-bottom: var(--border);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container img {
    width: 180px; /* Tamaño del logo */
    height: auto;
    filter: drop-shadow(0 0 15px var(--purple));
}

/* 3. CONTENEDOR PRINCIPAL DE CONTENIDO */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px; /* Ancho máximo para que no se estire demasiado en PC */
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido internamente */
}

/* 4. ESTILOS ESPECÍFICOS PARA LECCIONES (VIDEO/PDF) */
.leccion-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.titulo-leccion {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.video-wrapper {
    width: 100%;
    max-width: 900px; /* Ancho máximo del video */
    aspect-ratio: 16/9;
    background: black;
    border: var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 5. SECCIÓN DE RECURSOS */
.recursos-seccion {
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
    padding: 30px;
    background: var(--panel-bg);
    border-radius: 15px;
    border: var(--border);
}

.recursos-seccion h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyan);
    margin-top: 0;
}

.lista-recursos {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.btn-descarga {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(188, 19, 254, 0.1);
    border: 1px solid var(--purple);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: bold;
}

.btn-descarga:hover {
    background: var(--purple);
    box-shadow: 0 0 15px var(--purple);
    transform: translateY(-3px);
}

/* 6. BOTÓN VOLVER */
.btn-volver {
    margin-top: 40px;
    padding: 10px 20px;
    border: 1px solid #444;
    color: #888;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-volver:hover {
    color: white;
    border-color: white;
}

/* =========================================
   7. RESPONSIVE DESIGN (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .logo-container img {
        width: 140px; /* Logo más pequeño en móvil */
    }

    .titulo-leccion {
        font-size: 1.8rem;
    }

    main {
        padding: 20px 10px;
    }

    .recursos-seccion {
        padding: 20px;
    }
}