/* ========================================
   AULA VIRTUAL - ESTILOS GENERALES
======================================== */

:root{
    --main: #8C3730;
    --gris: #333;
    --blanco: #f5f5f5;
	--terra: #BF6956;
	--terra-light: #F2D4C9;
	--sand: #D9A577;
	--light-green: #E8DEC8;
	--green: #A6A48A;
}

body{
    margin: 0;
    font-family: 'Montserrat';
    line-height: 1.5;
}

.aula-virtual-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.aula-titulo {
    font-family: 'Gellisto Regular';
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

/* ========================================
   SECCIONES
======================================== */

.seccion-cursos {
    margin-bottom: 60px;
}

.seccion-titulo {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gris);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: solid 1px black;
}

/* ========================================
   GRID DE CURSOS
======================================== */

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ========================================
   TARJETAS DE CURSO
======================================== */

.curso-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Cursos activos tienen un borde especial */
.curso-activo {
    border: 2px solid var(--terra-light);
}

/* ========================================
   THUMBNAILS
======================================== */

.curso-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
}

.curso-thumbnail img,
.preview-curso-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale();
}

.curso-thumbnail-default {
    background: linear-gradient(135deg, var(--terra) 0%, var(--light-green) 100%);
}

.curso-thumbnail-default svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   CONTENIDO DE LA TARJETA
======================================== */

.curso-contenido {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.curso-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.curso-descripcion {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ========================================
   BARRA DE PROGRESO
======================================== */

.curso-progreso {
    margin-bottom: 20px;
}

.progreso-barra-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progreso-barra {
    height: 100%;
    background: linear-gradient(90deg, var(--terra) 0%, var(--green) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progreso-texto {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* ========================================
   BOTONES
======================================== */

.btn-curso {
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-continuar {
    background: var(--terra);
    color: var(--blanco);
}

.btn-continuar:hover {
    background: var(--main);
    transform: scale(1.02);
}

.btn-ver {
    background: var(--green);
    color: var(--blanco);
}

.btn-ver:hover {
    background: var(--main)
}

/* ========================================
   MENSAJE VACÍO
======================================== */

.mensaje-vacio {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
}

.mensaje-vacio svg {
    width: 80px;
    height: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.mensaje-vacio p {
    font-size: 1.1rem;
    color: #666;
    margin: 10px 0;
}

.submensaje {
    font-size: 0.95rem !important;
    color: #999 !important;
}




















/* ========================================
   CURSO INDIVIDUAL - HEADER
======================================== */

.curso-header {
    color: var(--black);
    padding: 60px 20px;
    margin-bottom: 40px;
}

.curso-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.curso-header-imagen img {
    width: 100%;
    max-height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.curso-header-titulo {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.curso-header-descripcion {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
}

.curso-header-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-inscrito {
    background: var(--terra);
    color: var(--blanco);
}

.badge-disponible {
    background: rgba(255, 255, 255, 0.2);
    color: var(--blanco);
}

.curso-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.curso-meta-item svg {
    opacity: 0.8;
}

.curso-progreso-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
}

.progreso-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.curso-progreso-header .progreso-barra-container {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.curso-progreso-header .progreso-barra {
    height: 100%;
    background: var(--blanco);
    border-radius: 10px;
}

.progreso-porcentaje {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   CURSO - CONTENIDO PRINCIPAL
======================================== */

.curso-contenido-principal {
    padding: 40px 20px;
    background: #f9f9f9;
}

.curso-contenido-container {
    max-width: 1200px;
    margin: 0 auto;
}

.curso-descripcion-completa {
    padding: 40px;
}

.curso-descripcion-completa h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--gris);
}

.curso-inscripcion-box {
    background: var(--blanco);
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.curso-inscripcion-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gris);
}

.curso-inscripcion-box p {
    color: #666;
    margin-bottom: 25px;
}

.btn-inscribirse {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--main);
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-inscribirse:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

/* ========================================
   CURSO - LECCIONES
======================================== */

.curso-lecciones-section {
    padding: 60px 20px;
}

.curso-lecciones-container {
    max-width: 900px;
    margin: 0 auto;
}

.curso-lecciones-container > h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--gris);
}

.modulo-block {
    background: var(--blanco);
    padding: 30px;
    margin-bottom: 30px;
}

.modulo-titulo {
    font-size: 1.5rem;
    color: var(--gris);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.lecciones-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leccion-item {
    border-bottom: 1px solid #f0f0f0;
}

.leccion-item:last-child {
    border-bottom: none;
}

.leccion-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--blanco);
    transition: all 0.2s ease;
}

.leccion-link:hover {
    background: #fff;
    padding-left: 20px;
}

.leccion-icono {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main);
}

.leccion-item.completada .leccion-icono {
    color: #4caf50;
}

.leccion-bloqueada {
    opacity: 0.5;
    cursor: not-allowed;
}

.leccion-bloqueada .leccion-icono {
    color: #999;
}

.leccion-titulo {
    flex-grow: 1;
    font-weight: 500;
}

.badge-preview {
    background: var(--main);
    color: var(--blanco);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}


/* ========================================
   LECCIÓN - HEADER
======================================== */

.leccion-header {
    background: #f9f9f9;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.leccion-header-container {
    max-width: 1400px;
    margin: 0 auto;
}

.leccion-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.leccion-breadcrumb a {
    color: var(--main);
    text-decoration: none;
}

.leccion-breadcrumb a:hover {
    text-decoration: underline;
}

.leccion-breadcrumb .separador {
    color: #999;
}

.leccion-breadcrumb .actual {
    color: #666;
    font-weight: 500;
}

/* ========================================
   LECCIÓN - LAYOUT CON SIDEBAR
======================================== */

.leccion-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

/* ========================================
   SIDEBAR (ÍNDICE DEL CURSO)
======================================== */

.leccion-sidebar {
    background: var(--blanco);
    border-right: 1px solid #e0e0e0;
    height: calc(100vh - 200px);
    position: sticky;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gris);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.sidebar-toggle:hover {
    color: var(--gris);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-progreso {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar-progreso .progreso-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-progreso .progreso-barra-container {
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sidebar-progreso .progreso-barra {
    height: 100%;
    background: linear-gradient(90deg, var(--terra) 0%, var(--green) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.sidebar-progreso .progreso-porcentaje {
    font-size: 0.85rem;
    color: var(--main);
    font-weight: 600;
}

.sidebar-modulo {
    margin-bottom: 25px;
}

.modulo-titulo-sidebar {
    font-size: 0.95rem;
    color: var(--gris);
    margin: 0 0 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-lecciones-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-leccion-item {
    margin-bottom: 2px;
}

.sidebar-leccion-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-leccion-item a:hover {
    background: var(--blanco);
    color: var(--gris);
}

.sidebar-leccion-item.actual a {
    background: #fff;
    color: var(--main);
    border: solid 1px var(--terra);
    font-weight: 600;
}

.sidebar-leccion-item.completada .leccion-icono {
    color: var(--terra);
    font-weight: bold;
}

.sidebar-leccion-item.actual.completada .leccion-icono {
    color: var(--blanco);
}

.leccion-icono {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.leccion-icono .circulo {
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: block;
}

.leccion-nombre {
    flex-grow: 1;
    line-height: 1.4;
}

/* Botón flotante móvil */
.sidebar-toggle-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--green);
    color: var(--blanco);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    z-index: 999;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sidebar-toggle-mobile:hover {
    background: var(--green);
}

/* ========================================
   CONTENIDO PRINCIPAL DE LA LECCIÓN
======================================== */

.leccion-contenido-principal {
    padding: 40px;
    background: var(--blanco);
}

.leccion-articulo {
    max-width: 800px;
    margin: 0 auto;
}

.leccion-titulo {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.leccion-contenido {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris);
}

.leccion-contenido p {
    margin-bottom: 1.5em;
}

.leccion-contenido h2,
.leccion-contenido h3 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.leccion-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

video.wp-video-shortcode {
    max-height: fit-content;
}

/* ========================================
   NAVEGACIÓN ENTRE LECCIONES
======================================== */

.leccion-navegacion {
    background: #f9f9f9;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
}

.leccion-navegacion-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-leccion {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--blanco);
    text-decoration: none;
    color: var(--gris);
    border: 1px solid var(--gris);
    transition: all 0.3s ease;
}

.nav-leccion:hover {
    border-color: var(--main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
    text-align: right;
}

.nav-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.nav-texto {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gris);
}

.nav-leccion svg {
    flex-shrink: 0;
    color: var(--main);
}














/* ========================================
   HEADER - BARRA DE NAVEGACIÓN
======================================== */

.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 30px 0;
    transition: padding 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   LOGO
======================================== */

.site-branding {
	display: flex;
	gap: 15px;
	align-items: center;
}

.site-branding a {
	display: flex;
	gap: 8px;
	align-items: center;
	text-decoration: none;
}

.logo-img {
	max-height: 50px;
	width: auto;
	transition: max-height 0.3s ease;
}

.h1-logo {
	font-family: 'Montserrat Semibold', system-ui, 'Segoe UI', 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--gris);
	transition: font-size 0.3s ease;
	margin: 0;
}


.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.header-logo a:hover {
    opacity: 0.8;
}

.header-logo img {
    max-height: 45px;
    width: auto;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main);
}

/* ========================================
   NAVEGACIÓN
======================================== */

.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--gris);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--blanco);
    color: var(--main);
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-login {
    background: var(--terra);
    color: var(--blanco);
}

.nav-login:hover {
    background: var(--main) !important;
    color: var(--blanco);
}

/* Badge de contador */
.course-badge {
    background: var(--terra);
    color: var(--blanco);
    font-size: 0.75rem;
    padding: 2px 8px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========================================
   DROPDOWN (DESPLEGABLE)
======================================== */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--blanco);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gris);
    transition: background 0.2s ease;
}

.dropdown-link:hover {
    background: #f9f9f9;
}

/* Thumbnail del curso en dropdown */
.dropdown-course-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.dropdown-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-course-info {
    flex: 1;
    min-width: 0;
}

.dropdown-course-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.dropdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--terra) 0%, var(--green) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dropdown-progress-text {
    font-size: 0.75rem;
    color: #666;
}

/* Dropdown vacío */
.dropdown-empty {
    padding: 24px 16px;
    text-align: center;
}

.dropdown-empty-text {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.dropdown-empty-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--terra);
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.dropdown-empty-link:hover {
    background: var(--main);
}

/* ========================================
   USUARIO DROPDOWN
======================================== */

.nav-user .nav-link {
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu-user {
    min-width: 200px;
    right: 0;
    left: auto;
}

.dropdown-menu-user .dropdown-link {
    gap: 12px;
    font-size: 0.9rem;
}

.dropdown-menu-user svg {
    flex-shrink: 0;
}

/* ========================================
   MÓVIL - HAMBURGER MENU
======================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gris);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}







/* ========================================
   NO LOGUEADO - PANTALLA DE BIENVENIDA
======================================== */

.aula-virtual-no-login {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--blanco) 0%, #fff 100%);
}

.no-login-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--blanco);
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.no-login-icon {
    margin-bottom: 30px;
    color: var(--terra);
}

.no-login-icon svg {
    width: 80px;
    height: 80px;
}

.no-login-titulo {
    font-family: 'Gellisto Regular';
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.no-login-descripcion {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.no-login-acciones {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-login-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--terra);
    color: var(--blanco);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-login-primary:hover {
    background: var(--main);
    transform: translateY(-2px);
}

.btn-login-secondary {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: var(--blanco);
    color: var(--main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--main);
    transition: all 0.3s ease;
}

.btn-login-secondary:hover {
    background: var(--main);
    color: var(--blanco);
}

/* Preview de cursos */
.no-login-cursos-preview {
    border-top: 2px solid #f0f0f0;
    padding-top: 50px;
    margin-top: 20px;
}

.no-login-cursos-preview h2 {
    font-size: 1.75rem;
    color: var(--gris);
    margin-bottom: 15px;
}

.preview-descripcion {
    color: #666;
    margin-bottom: 35px;
}

.preview-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.preview-curso-card {
    background: #f9f9f9;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.preview-curso-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #e0e0e0;
}

.preview-curso-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-curso-info {
    padding: 20px;
    text-align: left;
}

.preview-curso-info h3 {
    font-size: 1.1rem;
    color: var(--gris);
    margin-bottom: 10px;
    font-weight: 600;
}

.preview-curso-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.preview-curso-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
}

.preview-curso-meta svg {
    flex-shrink: 0;
}








/* ========================================
   LECCIÓN - BOTÓN COMPLETAR
======================================== */

.leccion-acciones-section {
    background: #f9f9f9;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
}

.leccion-acciones-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Botón de completar */
.form-completar-leccion {
    display: flex;
    justify-content: center;
}

.btn-completar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--terra);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-completar:hover {
    background: var(--main);
    transform: translateY(-2px);
}

.btn-completar svg {
    flex-shrink: 0;
}

/* Lección completada */
.accion-completada {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--terra);
}

.completada-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--main);
    font-size: 1.3rem;
    font-weight: 600;
}

.completada-info svg {
    color: var(--terra);
    flex-shrink: 0;
}


/* ========================================
   CURSO NO INSCRITO
======================================== */

.curso-no-inscrito {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--blanco) 0%, #fff 100%);
}

.no-inscrito-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.no-inscrito-icon {
    margin-bottom: 30px;
    color: var(--terra);
}

.no-inscrito-icon svg {
    width: 80px;
    height: 80px;
}

.no-inscrito-titulo {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.no-inscrito-descripcion {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-inscrito-descripcion strong {
    color: var(--main);
}

.curso-preview-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: left;
}

.curso-preview-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
}

.curso-preview-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.no-inscrito-acciones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-inscribirse-curso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--terra);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-inscribirse-curso:hover {
    background: var(--main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gris);
}

.btn-ver-curso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.4);
}

.btn-ver-curso:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.5);
}

.btn-volver-home-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid black;
    transition: all 0.3s ease;
}

.btn-volver-home-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* ======================================
		FOOTER
========================================= */

.site-footer {
	background: var(--terra);
	color: var(--black);
	padding: 30px 0;
	margin-top: 60px;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-copyright {
	margin: 0;
}

.footer-copyright p {
	margin: 0;
	font-size: 14px;
	color: var(--black);
}

/* Footer Menu */
.footer-menu {
	display: flex;
	gap: 25px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin: 0;
}

.footer-menu a {
	color: var(--black);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.footer-menu a:hover {
	color: var(--terra-light);
}

/* ========================================
   RESPONSIVE NO INSCRITO
======================================== */
@media (max-width: 768px) {
    .no-inscrito-container {
        padding: 40px 25px;
    }
    
    .no-inscrito-titulo {
        font-size: 2rem;
    }
    
    .btn-ver-curso {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE BTÓN COMPLETADO LECCION
======================================== */
@media (max-width: 768px) {
    .leccion-acciones-section {
        padding: 30px 15px;
    }
    
    .btn-completar {
        font-size: 1rem;
        padding: 14px 30px;
        width: 100%;
    }
    
    .completada-info {
        font-size: 1.1rem;
    }
}

/* ========================================
   RESPONSIVE NO LOGIN INICIO
======================================== */
@media (max-width: 768px) {
    .no-login-container {
        padding: 40px 25px;
    }
    
    .no-login-titulo {
        font-size: 2rem;
    }
    
    .no-login-acciones {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-login-primary,
    .btn-login-secondary {
        justify-content: center;
    }
    
    .preview-cursos-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE NAVBAR
======================================== */

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: var(--blanco);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: 3px solid var(--main);
        background: #f9f9f9;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .user-name {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-logo img {
        max-height: 35px;
    }
    
    .site-name {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        width: 280px;
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* ========================================
   RESPONSIVE LECCIONES
======================================== */

@media (max-width: 1024px) {
    .leccion-layout {
        grid-template-columns: 1fr;
        width: 100%;
        overflow-x: hidden;
    }
    
    .leccion-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .leccion-sidebar.activo {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-toggle-mobile {
        display: flex;
    }
    
    .leccion-contenido-principal {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .leccion-articulo {
        max-width: 100%;
    }
    
    .leccion-titulo {
        font-size: 2rem;
    }

    .leccion-contenido img,
    .leccion-contenido video,
    .leccion-contenido iframe,
    .leccion-contenido embed {
        max-width: 100%;
        height: auto;
    }
    
    .leccion-navegacion-container {
        grid-template-columns: 1fr;
    }

    .nav-leccion {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .leccion-sidebar {
        width: 280px;
    }
    
    .leccion-titulo {
        font-size: 1.75rem;
    }

    .leccion-contenido-principal {
        padding: 15px;
    }

    .nav-texto {
        max-width: calc(100% - 40px);
    }

    .nav-titulo {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* ========================================
   RESPONSIVE GENERAL
======================================== */

@media (max-width: 768px) {
    .aula-titulo {
        font-size: 2.5rem;
    }
    
    .seccion-titulo {
        font-size: 1.25rem;
    }
    
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .curso-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .aula-virtual-container {
        padding: 20px 15px;
    }
    
    .aula-titulo {
        margin-bottom: 30px;
        font-size: 2.5rem;
    }
}


/* ========================================
   RESPONSIVE Página Curso
======================================== */

@media (max-width: 968px) {
    .curso-header-container {
        grid-template-columns: 1fr;
    }
    
    .curso-contenido-container {
        grid-template-columns: 1fr;
    }
    
    .curso-inscripcion-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .curso-header {
        padding: 40px 20px;
    }
    
    .curso-header-titulo {
        font-size: 2rem;
    }
    
    .modulo-block {
        padding: 20px;
    }
}


/* ========================================
   PERFIL DE USUARIO
======================================== */

.perfil-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* --- Header del perfil --- */
.perfil-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--blanco);
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.perfil-avatar-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    border: 3px solid var(--main);
    object-fit: cover;
    display: block;
}

.perfil-header-info {
    flex: 1;
}

.perfil-nombre {
    font-family: 'Gellisto Regular', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.perfil-email {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 20px;
}

/* Stats del header */
.perfil-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.perfil-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.perfil-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--main);
    line-height: 1;
}

.perfil-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* --- Tabs --- */
.perfil-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.perfil-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.perfil-tab:hover {
    color: var(--main);
}

.perfil-tab.active {
    color: var(--main);
    border-bottom-color: var(--main);
}

/* --- Contenidos de cada tab --- */
.perfil-tab-content {
    display: none;
}

.perfil-tab-content.active {
    display: block;
}

/* --- Grid de cursos en perfil --- */
.perfil-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.perfil-curso-card {
    background: var(--blanco);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.perfil-curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.perfil-curso-card.perfil-curso-completado {
    border-color: var(--main);
}

.perfil-curso-thumb {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.perfil-curso-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.perfil-curso-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--terra);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.perfil-curso-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.perfil-curso-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gris);
    margin: 0 0 14px;
    line-height: 1.4;
}

.perfil-progreso-wrap {
    margin-bottom: 14px;
}

.perfil-progreso-barra {
    background: #e0e0e0;
    border-radius: 4px;
    height: 7px;
    overflow: hidden;
    margin-bottom: 6px;
}

.perfil-progreso-fill {
    background: var(--main);
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.perfil-progreso-texto {
    font-size: 0.8rem;
    color: #666;
}

.perfil-btn-curso {
    display: inline-block;
    margin-top: auto;
    padding: 9px 18px;
    background: var(--main);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}

.perfil-btn-curso:hover {
    background: var(--terra);
    color: #fff;
}

/* --- Estado vacío de cursos --- */
.perfil-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.perfil-empty svg {
    stroke: #ccc;
    margin-bottom: 16px;
}

.perfil-empty p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* --- Alertas del formulario --- */
.perfil-alert {
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.perfil-alert-exito {
    background: #edf6ed;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.perfil-alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* --- Formulario de perfil --- */
.perfil-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.perfil-form-section {
    background: var(--blanco);
    border: 1px solid #e0e0e0;
    padding: 28px;
}

.perfil-form-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gris);
    margin: 0 0 6px;
}

.perfil-form-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 20px;
}

.perfil-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.perfil-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.perfil-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris);
}

.perfil-form-group input,
.perfil-form-group textarea {
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--gris);
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.perfil-form-group input:focus,
.perfil-form-group textarea:focus {
    border-color: var(--main);
}

.perfil-form-group input:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.perfil-form-hint {
    font-size: 0.78rem;
    color: #aaa;
}

/* Contenedor de password con botón de mostrar */
.perfil-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.perfil-pass-wrap input {
    padding-right: 44px;
}

.perfil-toggle-pass {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.perfil-toggle-pass:hover {
    color: var(--main);
}

/* --- Acciones del formulario --- */
.perfil-form-actions {
    display: flex;
    justify-content: flex-end;
}

.perfil-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main);
    color: #fff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.perfil-btn-primary:hover {
    background: var(--terra);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .perfil-header {
        flex-direction: column;
        text-align: center;
    }

    .perfil-stats {
        justify-content: center;
    }

    .perfil-form-row {
        grid-template-columns: 1fr;
    }

    .perfil-tabs {
        overflow-x: auto;
    }

    .perfil-nombre {
        font-size: 1.5rem;
    }
}