/* ==========================================================================
   ACADEMIA ATA - SISTEMA DESIGN SYSTEM (CSS MODERNO)
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 10px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL (SIDEBAR + MAIN CONTENT)
   -------------------------------------------------------------------------- */

.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar de Navegación */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #090d16 0%, #0f172a 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-header h1 span {
    color: var(--primary);
}

/* Floating Pills Menu */
.sidebar-menu {
    list-style: none;
    padding: 1.25rem 0.75rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    transform: translateX(2px);
}

.sidebar-menu li a.active {
    background-color: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

/* Footer & Perfil */
.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.85rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.user-info {
    overflow: hidden;
    flex: 1;
}

.user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
    margin-bottom: 3px;
}

.badge-role {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.2;
}

.badge-role-admin {
    background: rgba(225, 29, 72, 0.18);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.badge-role-docente {
    background: rgba(217, 119, 6, 0.18);
    color: #fde68a;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-role-alumno {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-logout:hover {
    background: rgba(225, 29, 72, 0.15);
    color: #fca5a5;
    border-color: rgba(225, 29, 72, 0.35);
}

/* Área Principal de Contenido */
.main-wrapper {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
}

.top-bar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    height: 68px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.top-bar-user {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.top-bar-user strong {
    color: var(--text-primary);
}

.content-area {
    padding: 2rem;
    flex: 1;
}

/* --------------------------------------------------------------------------
   COMPONENTES (TARJETAS, TABLAS, BOTONES)
   -------------------------------------------------------------------------- */

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Botones Estilizados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #ffffff; }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { background: #f1f5f9; }

/* Formularios Elegantes */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Tablas Profesionales */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.table th {
    background: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges de Estado */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: capitalize;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Contenedor de Video YouTube */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000000;
    box-shadow: var(--shadow-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; }
    .main-wrapper { margin-left: 0; width: 100%; }
    .app-container { flex-direction: column; }
}

/* ==========================================================================
   ESTILOS PORTAL PÚBLICO & BRANDING ATA
   ========================================================================== */

/* Logo Vectorial */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main-title {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.1;
}

.logo-text .sub-title {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar .logo-text .main-title { color: #ffffff; }

/* Navigation Bar Pública */
.public-navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.public-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.public-nav a:hover { color: var(--primary); }

.desktop-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-auth {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-outline-white { border: 1px solid #475569; color: #ffffff; }
.btn-outline-white:hover { background: #334155; }

.bg-alt { background-color: #f1f5f9; }
.section-header { text-align: center; margin-bottom: 2.5rem; width: 100%; box-sizing: border-box; }
.section-header h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 800; color: var(--text-primary); line-height: 1.25; word-break: break-word; }
.section-header p { color: var(--text-secondary); font-size: clamp(0.9rem, 2.8vw, 1.05rem); line-height: 1.5; }

.badge-info { background: #e0f2fe; color: #0369a1; }

/* Sobre la Academia Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.about-features { list-style: none; margin-top: 1rem; }
.about-features li { margin-bottom: 0.5rem; font-weight: 500; }

/* ==========================================================================
   WIDGET CHATBOT FLOTANTE
   ========================================================================== */

.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.chatbot-trigger {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.chatbot-trigger:hover { transform: scale(1.05); }

.chatbot-window {
    width: 330px;
    height: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 60px;
    right: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    .chatbot-trigger {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    .chatbot-window {
        position: fixed;
        bottom: 70px;
        left: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: 360px;
        margin: 0 auto;
        height: auto;
        max-height: calc(100dvh - 90px);
    }
}

.chatbot-window.hidden { display: none; }

.chatbot-header {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-avatar { background: var(--primary); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-close-btn { background: none; border: none; color: #ffffff; font-size: 1.25rem; cursor: pointer; }

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.chat-msg {
    max-width: 80%;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.chat-msg.bot { background: #ffffff; border: 1px solid var(--border-color); color: var(--text-primary); align-self: flex-start; }
.chat-msg.user { background: var(--primary); color: #ffffff; align-self: flex-end; }

.chatbot-options {
    padding: 0.75rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chatbot-options button {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
}

.chatbot-options button:hover { background: #e2e8f0; }

/* Media Query Principal para Navegación y Estructura Pública */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.65rem 1rem;
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
    }

    .desktop-auth {
        display: none !important;
    }

    .mobile-nav-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-login-quick {
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .brand-logo .logo-icon {
        padding: 5px 8px;
        font-size: 0.88rem;
    }

    .brand-logo .logo-text .main-title {
        font-size: 0.98rem;
    }

    .public-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
        padding: 1.25rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        z-index: 1001;
        box-sizing: border-box;
    }

    .public-nav.open {
        display: flex;
        animation: slideDownNav 0.25s ease forwards;
    }

    .public-nav a {
        padding: 0.65rem 0.5rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-bottom: 1px solid #f8fafc;
        display: block;
    }

    .mobile-nav-auth {
        display: flex;
    }

    .hero-section h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .brand-logo .logo-text .sub-title {
        display: none;
    }
}

/* ==========================================================================
   CORRECCIÓN DE ANCHO COMPLETO (100% LAYOUT)
   ========================================================================== */

/* Envoltorio principal para la vista pública */
.public-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-content {
    width: 100%;
    flex: 1;
}

.public-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2.25rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .public-footer {
        padding: 1.5rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        font-size: 0.8rem;
    }
}

/* El contenedor global antiguo ya no debe limitar el ancho a 1100px */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Secciones a pantalla completa con límites internos fluidos y padding responsivo */
.section-padding {
    width: 100%;
    padding: 4.5rem 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 2.25rem 0.85rem;
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
    }
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section que expande de borde a borde */
.hero-section {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    box-sizing: border-box;
}

.hero-container {
    max-width: 850px;
    margin: 0 auto;
}

/* ==========================================================================
   CARRUSEL HERO FLUIDO (100% WIDTH)
   ========================================================================== */

.carousel-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: clamp(480px, 58vh, 560px);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Capa de contraste oscuro para que el texto resalte */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.88) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.carousel-caption {
    max-width: 800px;
    width: 100%;
    color: #ffffff;
    box-sizing: border-box;
}

.carousel-caption h1 {
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    word-break: break-word;
}

.carousel-caption p {
    font-size: clamp(0.9rem, 2.8vw, 1.15rem);
    color: #e2e8f0;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

/* Flechas Laterales */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
    transition: background 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--primary);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* Indicadores de Puntos */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-container {
        min-height: 400px;
        height: 52dvh;
        max-height: 480px;
    }
    .carousel-overlay {
        padding: 1.5rem 1rem 3.5rem 1rem;
    }
    .carousel-caption h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        margin-bottom: 0.5rem;
    }
    .carousel-caption p {
        font-size: clamp(0.85rem, 3.5vw, 0.98rem);
        margin-bottom: 1.25rem;
    }
    .carousel-arrow {
        display: none;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
        max-width: 270px;
        margin: 0 auto;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    .carousel-dots {
        bottom: 14px;
        gap: 8px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 380px) {
    .carousel-container {
        min-height: 385px;
    }
    .hero-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
        margin-bottom: 0.6rem;
    }
}

/* ==========================================================================
   DASHBOARD DEL ALUMNO & SISTEMA DE TARJETAS DE CURSOS SAAS
   ========================================================================== */

/* Hero / Resumen del Alumno */
.student-dashboard-hero {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-info {
    flex: 1;
    min-width: 260px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.hero-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
}

.hero-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    min-width: 95px;
}

.stat-number {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-number.text-success {
    color: #10b981;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Empty State Moderno */
.empty-state-card {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Grilla y Tarjetas de Cursos */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.course-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.course-card.is-completed {
    border-top: 3px solid #10b981;
}

/* Miniatura de Portada */
.course-card-thumb {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    display: block;
}

.course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card-thumb img {
    transform: scale(1.05);
}

.course-card-thumb .placeholder-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}

/* Badges sobre la portada */
.thumb-overlay {
    position: absolute;
    inset: 0;
    padding: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
}

.category-chip {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.chip-completed {
    background: #10b981;
    color: #ffffff;
}

.chip-progress {
    background: #2563eb;
    color: #ffffff;
}

.chip-starting {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #cbd5e1;
}

/* Cuerpo de la Tarjeta */
.course-card-body {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
}

.course-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-divider {
    color: #cbd5e1;
}

/* Barra de Progreso */
.course-progress-section {
    margin-top: auto;
    padding-top: 0.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.progress-lessons {
    color: #64748b;
}

.progress-lessons strong {
    color: #0f172a;
}

.progress-percentage {
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-active {
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.fill-completed {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

/* Footer y Acciones */
.course-card-footer {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.card-action-group {
    display: flex;
    gap: 0.65rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
}

.btn-cert {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    flex: 1.5;
}

.btn-cert:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

/* Compatibilidad con Cards del Catálogo existente */
.card.course-card {
    padding: 1.25rem;
}

.card.course-card .course-card-thumb {
    border-radius: 8px;
    margin-bottom: 0.85rem;
}

/* ==========================================================================
   FORM CONTROLS, ALERTAS Y ESTILOS DE FORMULARIO SAAS
   ========================================================================== */

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
    color: #94a3b8;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

/* Alertas del Sistema */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==========================================================================
   CATÁLOGO DE CURSOS: FILTROS Y TARJETAS
   ========================================================================== */

.catalog-header-section {
    margin-bottom: 1.5rem;
}

.catalog-filter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.catalog-filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-group {
    flex: 2;
    min-width: 250px;
}

.category-group {
    flex: 1.2;
    min-width: 200px;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
    pointer-events: none;
}

.form-control.with-icon {
    padding-left: 2.3rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-actions .btn {
    height: 40px;
    box-sizing: border-box;
}

/* Chips y Precios en Catálogo */
.price-chip {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.price-chip.chip-free {
    background: #10b981;
    color: #ffffff;
}

.course-excerpt {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.price-display {
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.price-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.btn-enroll {
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Barra de Búsqueda y Filtros Responsiva */
.card-catalog-filters {
    margin-bottom: 2.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.filter-input-col {
    flex: 2 1 260px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.filter-select-col {
    flex: 1 1 200px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.filter-input-col .form-control,
.filter-select-col .form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .card-catalog-filters {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .filters-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    .filter-input-col,
    .filter-select-col {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .student-dashboard-hero {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-stats-row {
        width: 100%;
        justify-content: space-between;
    }
    .stat-box {
        flex: 1;
        min-width: unset;
        padding: 0.6rem 0.5rem;
    }
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 380px) {
    .catalog-card-footer-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .btn-enroll {
        width: 100%;
        text-align: center;
    }
    .price-display {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

/* ==========================================================================
   PERFIL DE USUARIO Y SEGURIDAD SAAS
   ========================================================================== */

.profile-container {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Profile Hero Card */
.profile-hero-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.profile-hero-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-large-avatar {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.profile-hero-details {
    flex: 1;
    min-width: 260px;
}

.profile-hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.profile-user-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
}

.profile-active-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.profile-user-email {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 0.65rem 0;
}

.profile-meta-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-chip {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
}

/* Grilla de Formularios de Perfil */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.profile-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.profile-card-header-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.profile-card-header-icon.lock-icon {
    background: #f5f3ff;
}

.profile-card-header .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.profile-card-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.profile-form-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-hero-card {
        padding: 1.25rem;
    }
    .profile-card {
        padding: 1.25rem;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CENTRO DE AYUDA Y SOPORTE SAAS
   ========================================================================== */

.support-container {
    max-width: 1040px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.support-hero-section {
    margin-bottom: 1.75rem;
}

/* Canales Directos */
.support-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.support-channel-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.support-channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px -2px rgba(15, 23, 42, 0.08);
}

.channel-whatsapp:hover {
    border-color: #86efac;
}

.channel-email:hover {
    border-color: #93c5fd;
}

.channel-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.icon-whatsapp {
    background: #dcfce7;
    color: #166534;
}

.icon-email {
    background: #eff6ff;
    color: #1d4ed8;
}

.channel-content {
    flex: 1;
    min-width: 0;
}

.channel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.channel-title {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
}

.channel-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-online {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-sla {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.channel-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.channel-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
}

/* Grilla Principal */
.support-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.support-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.support-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.support-card-header-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.support-card-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.sender-info-pill {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.sender-name {
    font-weight: 600;
    color: #0f172a;
}

.sender-email {
    color: #64748b;
    font-size: 0.8rem;
}

/* FAQs */
.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-header {
    margin-bottom: 0.25rem;
}

.faq-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.35rem 0 0.5rem 0;
}

.faq-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.faq-item-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.faq-question {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.faq-answer {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .support-main-grid {
        grid-template-columns: 1fr;
    }
    .support-card {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   AULA VIRTUAL & REPRODUCTOR DE LECCIONES SAAS
   ========================================================================== */

.classroom-container {
    max-width: 1260px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* Topbar del Curso */
.classroom-topbar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.classroom-topbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.classroom-title-wrapper {
    flex: 1;
    min-width: 260px;
}

.classroom-back-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: transform 0.15s ease;
}

.classroom-back-link:hover {
    transform: translateX(-3px);
}

.classroom-course-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.3;
}

.classroom-progress-badge {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    text-align: right;
}

.classroom-progress-badge.badge-completed {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.progress-pct-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.classroom-progress-badge.badge-completed .progress-pct-number {
    color: #10b981;
}

.progress-pct-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.classroom-progress-track {
    height: 8px;
    margin-bottom: 0.25rem;
}

.course-completed-banner {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.course-completed-banner .banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.course-completed-banner .banner-text {
    flex: 1;
    min-width: 250px;
}

.course-completed-banner .banner-text strong {
    display: block;
    color: #065f46;
    font-size: 0.95rem;
}

.course-completed-banner .banner-text p {
    color: #047857;
    font-size: 0.85rem;
    margin: 2px 0 0 0;
}

.btn-cert-banner {
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    font-weight: 700;
}

/* Alertas Especiales de Evaluación */
.classroom-alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.classroom-alert .alert-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.classroom-alert .alert-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.classroom-alert .alert-desc {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Grilla del Aula */
.classroom-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Temario Lateral */
.syllabus-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.syllabus-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
}

.syllabus-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 4px;
}

.syllabus-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.syllabus-counter {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.syllabus-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.syllabus-link:hover:not(.is-locked) {
    background: #f8fafc;
    color: var(--primary);
}

.syllabus-link.is-active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-weight: 700;
    border-color: rgba(37, 99, 235, 0.25);
}

.syllabus-link.is-completed:not(.is-active) {
    color: #475569;
}

.syllabus-link.is-locked {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border: 1px dashed #e2e8f0;
}

.syllabus-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.syllabus-status-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.icon-check {
    color: #10b981;
    font-weight: 800;
}

.icon-play {
    color: var(--primary);
    font-size: 0.7rem;
}

.icon-pending {
    color: #cbd5e1;
}

.icon-lock {
    font-size: 0.75rem;
    opacity: 0.6;
}

.syllabus-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.item-order {
    font-weight: 700;
    color: #94a3b8;
    margin-right: 2px;
}

/* Área de Contenido Principal */
.lesson-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.lesson-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lesson-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-pdf-action {
    font-weight: 600;
    border-radius: 8px;
}

.lesson-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
}

.contenido-leccion {
    line-height: 1.75;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 2rem;
}

.contenido-leccion p {
    margin-bottom: 1.25rem;
}

.contenido-leccion iframe {
    max-width: 100%;
    border-radius: 10px;
}

.lesson-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Evaluación / Examen */
.exam-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.exam-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.exam-icon-circle {
    width: 42px;
    height: 42px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.exam-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.exam-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.exam-empty-state {
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.exam-status-box {
    padding: 1.75rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.exam-status-box.status-approved {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.exam-status-box.status-blocked {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.exam-status-box .status-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.exam-status-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.status-highlight {
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.status-sub {
    font-size: 0.85rem;
    color: #047857;
    margin: 0;
}

.lock-timer-badge {
    display: inline-block;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.exam-attempts-bar {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
}

.attempts-info {
    color: #475569;
}

.last-score-info {
    color: #dc2626;
    font-weight: 600;
}

.exam-question-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.question-enunciado {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.question-number {
    color: var(--primary);
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.exam-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exam-option-card:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.exam-option-card input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin: 0;
}

.option-text {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
}

.btn-submit-exam {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1.5rem;
    border-radius: 10px;
}

/* Foro de la Lección */
.forum-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.forum-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.forum-icon-circle {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.forum-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.forum-empty-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.forum-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.forum-comment {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.forum-comment.is-instructor {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left: 4px solid var(--primary);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar.avatar-instructor {
    background: var(--primary);
    color: #ffffff;
}

.comment-name {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 600;
}

.comment-date {
    font-size: 0.72rem;
    color: #94a3b8;
}

.comment-body {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
}

/* Modal PDF Moderno */
.modal-pdf-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-pdf-backdrop.is-open {
    display: flex;
}

.modal-pdf-dialog {
    background: #ffffff;
    width: 92%;
    max-width: 980px;
    height: 86vh;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.modal-pdf-header {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-pdf-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-pdf-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-pdf-body {
    flex: 1;
    width: 100%;
    background: #525659;
}

.modal-pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .classroom-layout {
        grid-template-columns: 1fr;
    }
    .syllabus-card {
        position: static;
        max-height: 380px;
    }
    .lesson-card {
        padding: 1.5rem;
    }
    .exam-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   CURSOS FINALIZADOS Y CERTIFICADOS SAAS
   ========================================================================== */

.badge-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
    font-weight: 700;
}

.certificate-meta-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 0.95rem;
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.cert-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

.cert-date-row strong {
    color: #0f172a;
}

.cert-code-row {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cert-code-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.card-action-split {
    display: flex;
    gap: 0.65rem;
    width: 100%;
}

.card-action-split .btn-cert-main {
    flex: 2;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    text-align: center;
    text-decoration: none;
}

.card-action-split .btn-cert-main:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.card-action-split .btn-review {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

/* ==========================================================================
   PANEL DE ADMINISTRADOR (SaaS 2026)
   ========================================================================== */
.admin-dashboard-hero {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 60%, #0f172a 100%);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.admin-hero-header {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.admin-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.admin-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.admin-hero-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0;
    line-height: 1.5;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
}

.admin-stat-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-stat-card.is-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.admin-stat-card.is-warning .admin-stat-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.admin-stat-info {
    display: flex;
    flex-direction: column;
}

.admin-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.admin-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

/* Banner de Alerta Pendientes */
.admin-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.08);
}

.admin-alert-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #92400e;
    font-size: 0.92rem;
}

.admin-alert-icon {
    font-size: 1.4rem;
}

/* Layout Principal de Administración */
.admin-layout-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

@media (max-width: 1080px) {
    .admin-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Estilizada de Administración */
.admin-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.admin-card-header.accent-top {
    border-top: 4px solid var(--primary);
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Sub-grillas de formulario */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    padding-right: 2.75rem;
}

.btn-toggle-pw {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #94a3b8;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-toggle-pw:hover {
    color: #0f172a;
}

.pw-generator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.btn-generate-pw {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-generate-pw:hover {
    color: #1d4ed8;
}

/* Filtros de la Tabla */
.admin-filter-bar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.admin-filter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-search-input {
    flex: 2;
    min-width: 220px;
}

.admin-filter-select {
    flex: 1;
    min-width: 140px;
}

.admin-filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Tabla de Usuarios SaaS */
.admin-table-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table-header {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-table-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.admin-count-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avatar-admin {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
}

.avatar-docente {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.avatar-alumno {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.admin-user-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.2;
}

.badge-you {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
}

.admin-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
}

.admin-contact-email {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}

.admin-contact-email:hover {
    color: var(--primary);
    text-decoration: underline;
}

.admin-contact-dni {
    color: #64748b;
    font-size: 0.78rem;
}

.admin-wa-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
}

.admin-wa-chip:hover {
    text-decoration: underline;
}

/* Badges de Roles */
.admin-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.role-admin {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.role-docente {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.role-alumno {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* Badges de Estado */
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-blocked {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-active .status-dot {
    background: #10b981;
}

.status-pending .status-dot {
    background: #f59e0b;
}

.status-blocked .status-dot {
    background: #ef4444;
}

.status-dot.pulse {
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Botones de Acción de Tabla */
.admin-actions-cell {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.btn-action-approve {
    background: #10b981;
    color: #ffffff;
}

.btn-action-approve:hover {
    background: #059669;
}

.btn-action-suspend {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.btn-action-suspend:hover {
    background: #fee2e2;
    color: #991b1b;
}

.btn-action-role {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-action-role:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-action-delete {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    padding: 0.35rem 0.5rem;
}

.btn-action-delete:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* Empty State */
.admin-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: #64748b;
}

.admin-empty-icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.admin-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.admin-empty-desc {
    font-size: 0.88rem;
    max-width: 420px;
    margin: 0 auto 1.25rem auto;
}

/* Quick Nav Switcher para Módulos de Administración */
.admin-quick-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
}

.quick-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quick-nav-item:hover {
    color: var(--primary);
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.quick-nav-item.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Variantes de Color para Stat Cards */
.admin-stat-card.is-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}
.admin-stat-card.is-success .admin-stat-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.admin-stat-card.is-purple {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}
.admin-stat-card.is-purple .admin-stat-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.admin-stat-card.is-info {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.08);
}
.admin-stat-card.is-info .admin-stat-icon {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

/* Badges de Auditoría */
.badge-module {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.badge-module.mod-auth { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.badge-module.mod-usuarios { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-module.mod-finanzas,
.badge-module.mod-contabilidad,
.badge-module.mod-pagos { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-module.mod-cursos,
.badge-module.mod-academico { background: #fef3c7; color: #92400e; border-color: #fde68a; }

.badge-action-pill {
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Canales e Importes Financieros */
.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.channel-pill.ch-b2c { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.channel-pill.ch-b2b { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.channel-pill.ch-beca { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.financial-amount {
    font-weight: 800;
    font-size: 0.95rem;
    color: #059669;
    font-feature-settings: "tnum";
    letter-spacing: -0.2px;
}

.financial-amount.is-zero {
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================================================
   GESTIÓN Y CATÁLOGO DE CURSOS - SAAS 2026
   ========================================================================== */

.admin-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--primary);
    background: #f8fafc;
}

.admin-tab-btn.active {
    color: var(--primary);
    background: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 700;
}

.admin-tab-badge {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    transition: all 0.15s;
}

.admin-tab-btn.active .admin-tab-badge {
    background: var(--primary);
    color: #ffffff;
}

/* Thumbnails de cursos */
.course-thumb-box {
    width: 76px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.course-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-thumb-placeholder {
    font-size: 1.25rem;
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Celdas de curso en tabla */
.course-info-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.course-title-text {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.course-id-tag {
    font-size: 0.7rem;
    font-family: ui-monospace, monospace;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 600;
}

.badge-category {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}

/* Métricas del curso */
.course-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}

.course-metric-pill.pill-lessons {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.course-metric-pill.pill-students {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.course-metric-pill.pill-hours {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Layout del Formulario de Cursos */
.course-form-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .course-form-layout {
        grid-template-columns: 1fr;
    }
}

.course-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.course-form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cover-preview-wrapper {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-top: 0.65rem;
    position: relative;
    transition: border-color 0.2s;
}

.cover-preview-wrapper:hover {
    border-color: var(--primary);
}

.cover-preview-img {
    max-width: 100%;
    height: auto;
    max-height: 170px;
    aspect-ratio: 2/1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
}

.cover-preview-empty {
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.cover-preview-empty .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
    display: block;
}

/* Alerta de Edición Activa */
.course-editing-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-editing-banner strong {
    color: #1e40af;
    font-size: 0.95rem;
}

/* ==========================================================================
   GESTIÓN DE CATEGORÍAS - SAAS 2026
   ========================================================================== */

.cat-folder-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.cat-folder-icon.has-courses {
    background: #eff6ff;
    color: var(--primary);
    border-color: #dbeafe;
}

.cat-course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.cat-course-link:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
}

.cat-course-link.is-empty {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: default;
}

/* ==========================================================================
   GESTIÓN DE CUPONES Y BECAS - SAAS 2026
   ========================================================================== */

.coupon-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
}

.btn-copy-code {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}

.btn-copy-code:hover {
    color: var(--primary);
}

.coupon-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.coupon-discount-badge.type-beca {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.coupon-discount-badge.type-percent {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.coupon-discount-badge.type-fixed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.coupon-progress-track {
    width: 100%;
    max-width: 120px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 4px;
}

.coupon-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 50px;
    transition: width 0.3s ease;
}

.coupon-progress-fill.is-full {
    background: #ef4444;
}

/* ==========================================================================
   PLANES CORPORATIVOS & CONVENIOS B2B - SAAS 2026
   ========================================================================== */

.corp-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.corp-company-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.corp-contact-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
}

.corp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.corp-employee-box {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.employee-selector-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.employee-selector-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
    cursor: pointer;
}

.selector-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.selector-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================================================
   PANEL Y DASHBOARD DEL DOCENTE - SAAS 2026
   ========================================================================== */

.docente-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .docente-grid {
        grid-template-columns: 1fr;
    }
}

.docente-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docente-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.docente-card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
}

.docente-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.docente-card:hover .docente-card-cover img {
    transform: scale(1.03);
}

.docente-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.docente-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.docente-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.docente-course-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
}

.docente-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1.25rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.docente-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.docente-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-doc-primary {
    flex: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-doc-primary:hover {
    background: #1d4ed8;
}

.btn-doc-outline {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-doc-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ==========================================================================
   ADMINISTRACIÓN Y GESTIÓN DE LECCIONES - SAAS 2026
   ========================================================================== */

.lesson-order-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.lesson-pdf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lesson-pdf-chip:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

.lesson-pdf-chip.is-none {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: default;
    font-weight: normal;
}

.lesson-exam-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lesson-exam-chip.has-exam {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.lesson-exam-chip.has-exam:hover {
    background: #ddd6fe;
    transform: translateY(-1px);
}

.lesson-exam-chip.no-exam {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.lesson-exam-chip.no-exam:hover {
    background: #fef3c7;
}

.lesson-helper-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-template-video {
    background: none;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-template-video:hover {
    background: #eff6ff;
    border-color: var(--primary);
}

/* ==========================================================================
   CONSTRUCTOR DE EXÁMENES Y EVALUACIONES - SAAS 2026
   ========================================================================== */

.exam-builder-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.exam-builder-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.exam-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.exam-q-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.exam-q-statement {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.exam-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exam-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #334155;
}

.exam-option-item.is-correct {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    font-weight: 700;
}

.exam-option-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: #e2e8f0;
    color: #64748b;
}

.exam-option-item.is-correct .exam-option-check {
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
}

.exam-input-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.exam-input-option-row:hover,
.exam-input-option-row:focus-within {
    border-color: #93c5fd;
    background: #ffffff;
}

.exam-input-option-row input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #10b981;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ============================================================
   SISTEMA DE CONSULTAS, DUDAS Y FORO PEDAGÓGICO (2026)
   ============================================================ */
.forum-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-action-btns-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-forum-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    background: #f1f5f9;
    color: #475569;
}

.btn-forum-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-forum-reply {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.btn-forum-reply:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-forum-delete {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-forum-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.badge-you {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    display: inline-block;
}

.badge-replies-count {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Hilos de Respuestas Anidadas */
.forum-replies-container {
    margin-top: 1rem;
    margin-left: 1.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-reply-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.forum-reply-card.is-instructor {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left: 3px solid #10b981;
}

.forum-reply-form-box {
    margin-top: 0.85rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    animation: fadeInSlide 0.2s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fichas para Paneles Docente y Admin de Consultas */
.consultas-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.consultas-thread-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.consultas-thread-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.consultas-thread-card.is-pending {
    border-left: 4px solid #f59e0b;
}

.consultas-thread-card.is-answered {
    border-left: 4px solid #10b981;
}

.consultas-badge-course {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.consultas-badge-lesson {
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.consultas-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.consultas-status-pending {
    background: #fef3c7;
    color: #b45309;
}

.consultas-status-answered {
    background: #dcfce7;
    color: #15803d;
}

.consultas-reply-quickbox {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

/* ============================================================
   AUTENTICACIÓN Y REGISTRO (SAAS 2026)
   ============================================================ */
.auth-page-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.25rem;
    background: radial-gradient(circle at 50% 15%, #f1f5f9 0%, #f8fafc 100%);
}

.auth-card-box {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
}

.auth-card-box.auth-card-wide {
    max-width: 680px;
    padding: 2.75rem 2.5rem;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.auth-features-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}

.auth-feature-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.85rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-back-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-back-link:hover {
    color: #475569;
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 1.5rem 0.75rem;
    }
    .auth-card-box {
        padding: 1.5rem 1.15rem;
        border-radius: 14px;
        box-sizing: border-box;
    }
    .auth-card-box.auth-card-wide {
        padding: 1.5rem 1.15rem;
    }
    .auth-title {
        font-size: 1.35rem;
    }
    .auth-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .auth-features-strip {
        gap: 8px;
        padding: 0.5rem;
    }
    .auth-feature-pill {
        font-size: 0.7rem;
    }
}

/* Landing Courses Perks */
.course-perks-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    color: #64748b;
}

.course-perk-item {
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   VALIDADOR DE CERTIFICADOS & CREDENCIALES (SAAS 2026)
   ============================================================ */
.validator-page-container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

.validator-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.validator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.validator-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.6px;
    margin: 0 0 0.5rem 0;
}

.validator-subtitle {
    font-size: 0.98rem;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.55;
}

.validator-search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    margin-bottom: 2rem;
}

.validator-search-form {
    display: flex;
    gap: 12px;
}

.validator-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.validator-input-wrap .validator-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
}

.validator-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    letter-spacing: 0.5px;
}

.validator-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-validator-search {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-validator-search:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.validator-trust-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.validator-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ESTADO: BANNER DE VERIFICACIÓN */
.cert-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.75rem;
}

.cert-status-banner.is-valid {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 15px -3px rgba(22, 163, 74, 0.08);
}

.cert-status-banner.is-invalid {
    background: #fef2f2;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 15px -3px rgba(220, 38, 38, 0.08);
}

.cert-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-status-banner.is-valid .cert-status-icon {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.cert-status-banner.is-invalid .cert-status-icon {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
}

.cert-status-body {
    flex: 1;
}

.cert-status-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.3px;
}

.cert-status-banner.is-valid .cert-status-title {
    color: #15803d;
}

.cert-status-banner.is-invalid .cert-status-title {
    color: #b91c1c;
}

.cert-status-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.cert-status-banner.is-valid .cert-status-text {
    color: #166534;
}

.cert-status-banner.is-invalid .cert-status-text {
    color: #991b1b;
}

.cert-status-meta {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
}

/* CREDENCIAL VERIFICADA: TARJETA DOSSIER INSTITUCIONAL */
.cert-dossier-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 6px solid #0f172a;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cert-dossier-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    gap: 16px;
    flex-wrap: wrap;
}

.dossier-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dossier-brand-logo {
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.dossier-brand-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.dossier-brand-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.dossier-status-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.dossier-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* BLOQUES DE INFORMACIÓN EN EL DOSSIER */
.dossier-section {
    margin-bottom: 1.5rem;
}

.dossier-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.35rem;
    display: block;
}

.dossier-student-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.dossier-student-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0 0 0.35rem 0;
    text-transform: uppercase;
}

.dossier-student-dni {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.dossier-program-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dossier-course-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 1rem 0;
}

.dossier-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.dossier-meta-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.dossier-meta-item .meta-k {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.dossier-meta-item .meta-v {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}

/* REQUISITOS ACADÉMICOS Y EXIGENCIAS COMPLETADAS */
.dossier-requirements-box {
    margin-bottom: 1.75rem;
}

.dossier-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 0.6rem;
}

.dossier-req-item {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #166534;
}

.dossier-req-icon {
    font-size: 1rem;
    color: #16a34a;
    flex-shrink: 0;
}

/* PIE DE SEGURIDAD DEL DOSSIER */
.dossier-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
    margin: 0 -2.25rem -2.25rem -2.25rem;
    padding: 1.5rem 2.25rem;
    border-radius: 0 0 18px 18px;
}

.cert-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.cert-code-pill {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 1.05rem;
    background: #0f172a;
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.btn-copy-code {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-copy-code:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dossier-qr-wrap {
    text-align: center;
}

.dossier-qr-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 3px;
    background: #ffffff;
}

.dossier-qr-caption {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* BARRA DE ACCIONES DEBAJO DEL DOSSIER */
.dossier-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* GUÍA DE PASOS INICIAL */
.validator-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 2rem;
}

.validator-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.validator-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.validator-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.validator-step-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* RESPONSIVE & PRINT */
@media (max-width: 768px) {
    .validator-search-form {
        flex-direction: column;
    }
    .btn-validator-search {
        padding: 0.85rem;
        justify-content: center;
    }
    .dossier-req-grid {
        grid-template-columns: 1fr;
    }
    .dossier-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 0 -1.5rem -1.5rem -1.5rem;
        padding: 1.5rem;
    }
    .cert-code-row {
        justify-content: center;
    }
    .cert-dossier-card {
        padding: 1.5rem;
    }
}

@media print {
    .public-navbar,
    .sidebar,
    .sidebar-footer,
    .validator-hero,
    .validator-search-card,
    .dossier-actions,
    .chatbot-window,
    .chatbot-trigger,
    footer,
    .chatbot-container {
        display: none !important;
    }
    body, .public-wrapper, .public-content, .validator-page-container {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    .cert-dossier-card {
        box-shadow: none !important;
        border: 2px solid #0f172a !important;
        page-break-inside: avoid;
    }
}

/* ============================================================
   AULA VIRTUAL: CONTENIDO ENRIQUECIDO & MAQUETACIÓN PROFESIONAL
   ============================================================ */
.contenido-leccion {
    font-size: 1.03rem;
    line-height: 1.8;
    color: #334155;
    position: relative;
    word-break: break-word;
}

.contenido-leccion::after {
    content: "";
    display: table;
    clear: both;
}

/* Encabezados dentro del contenido */
.contenido-leccion h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.5px;
}

.contenido-leccion h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1.8rem 0 0.85rem 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.contenido-leccion h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 0.75rem 0;
}

.contenido-leccion h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 1.25rem 0 0.6rem 0;
}

.contenido-leccion p {
    margin: 0 0 1.35rem 0;
    line-height: 1.8;
}

/* Citas y Callouts */
.contenido-leccion blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.6rem;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

/* Listas */
.contenido-leccion ul,
.contenido-leccion ol {
    margin: 0 0 1.5rem 1.8rem;
    padding: 0;
    line-height: 1.8;
}

.contenido-leccion li {
    margin-bottom: 0.5rem;
}

/* Tablas didácticas */
.contenido-leccion table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.contenido-leccion th {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.3px;
}

.contenido-leccion td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.contenido-leccion tr:nth-child(even) td {
    background: #f8fafc;
}

/* Separadores */
.contenido-leccion hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin: 2.25rem 0;
}

/* Resaltados */
.contenido-leccion mark,
.contenido-leccion span[style*="background-color"] {
    padding: 2px 6px;
    border-radius: 4px;
}

/* Enlaces */
.contenido-leccion a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.contenido-leccion a:hover {
    color: #1d4ed8;
}

/* Contenedor de Video YouTube responsivo 16:9 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    margin: 1.75rem 0;
    box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.18);
    background: #000000;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
}

/* ============================================================
   SISTEMA DE ACOMODACIÓN Y MAQUETACIÓN DE IMÁGENES
   ============================================================ */
.contenido-leccion img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Acomodar a la izquierda entre el texto */
.contenido-leccion img[style*="float: left"],
.contenido-leccion img[style*="float:left"],
.contenido-leccion .lesson-img-left {
    float: left !important;
    margin: 0.5rem 1.75rem 1.25rem 0 !important;
    max-width: 48% !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #e2e8f0;
}

/* Acomodar a la derecha entre el texto */
.contenido-leccion img[style*="float: right"],
.contenido-leccion img[style*="float:right"],
.contenido-leccion .lesson-img-right {
    float: right !important;
    margin: 0.5rem 0 1.25rem 1.75rem !important;
    max-width: 48% !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #e2e8f0;
}

/* Centrada en bloque */
.contenido-leccion img[style*="display: block"],
.contenido-leccion .lesson-img-center {
    display: block !important;
    margin: 2rem auto !important;
    max-width: 92% !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.14) !important;
    border: 1px solid #e2e8f0;
}

/* Formato Cuadrado Estilizado (aspect-ratio: 1/1) */
.contenido-leccion img.img-square,
.contenido-leccion .lesson-img-square,
.contenido-leccion img[data-style="square"] {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 270px !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15) !important;
    border: 3px solid #ffffff;
    outline: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
    .contenido-leccion img[style*="float: left"],
    .contenido-leccion img[style*="float:left"],
    .contenido-leccion img[style*="float: right"],
    .contenido-leccion img[style*="float:right"],
    .contenido-leccion .lesson-img-left,
    .contenido-leccion .lesson-img-right {
        float: none !important;
        margin: 1.25rem auto !important;
        display: block !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   BARRA DE ASISTENCIA RÁPIDA DEL EDITOR (ADMIN/DOCENTE)
   ============================================================ */
.lesson-editor-helper-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    padding: 0.6rem 0.85rem;
    border-radius: 10px 10px 0 0;
    font-size: 0.82rem;
}

.editor-helper-label {
    font-weight: 700;
    color: #475569;
    margin-right: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-editor-tool {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-editor-tool:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}

/* Overrides para Summernote Lite SaaS 2026 */
.note-editor.note-frame {
    border: 2px solid #e2e8f0 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.04);
}

.note-editor.note-frame:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.note-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px !important;
}

.note-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    padding: 5px 9px !important;
    transition: all 0.15s !important;
}

.note-btn:hover, .note-btn:focus, .note-btn.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

.note-editable {
    background: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    min-height: 320px !important;
    padding: 1.5rem !important;
}

/* ============================================================
   SISTEMA DE MÚLTIPLES ARCHIVOS PDF ADJUNTOS
   ============================================================ */
.lesson-pdf-manager {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.5rem;
}

.lesson-pdf-current-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.85rem;
}

.lesson-pdf-current-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lesson-pdf-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-pdf-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-remove-pdf {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-remove-pdf:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Modal y Caja de Múltiples PDFs en el Aula del Alumno */
.lesson-materials-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.lesson-materials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.lesson-materials-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.lesson-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.lesson-material-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.lesson-material-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.lesson-material-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-material-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-pdf-view {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-pdf-view:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-pdf-download {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-pdf-download:hover {
    background: #0f172a;
    color: #ffffff;
}

/* ============================================================
   SWITCH TOGGLE Y VISIBILIDAD DE CURSOS EN CATÁLOGO
   ============================================================ */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
    margin: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
    background-color: #10b981;
}

.switch-toggle input:focus-visible + .switch-slider {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.badge-visibilidad {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.badge-vis-on {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-vis-off {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

/* ============================================================
   SECCIÓN DE BIENVENIDA Y PANORAMA DEL CURSO (AULA Y TEMARIO)
   ============================================================ */
.syllabus-item-intro .syllabus-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.syllabus-item-intro .syllabus-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: #2563eb;
}

.syllabus-item-intro .syllabus-link.is-active {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    border-left: 4px solid #2563eb !important;
}

.syllabus-item-intro .syllabus-status-icon {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
}

.welcome-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-hero-banner:after {
    content: "👋";
    position: absolute;
    right: 1.5rem;
    bottom: -0.5rem;
    font-size: 5.5rem;
    opacity: 0.12;
    pointer-events: none;
}

.welcome-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #93c5fd;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
}

.welcome-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.welcome-hero-subtitle {
    font-size: 0.92rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0;
    line-height: 1.5;
}

.welcome-cta-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.welcome-cta-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.welcome-cta-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.btn-start-course {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    border: none;
}

.btn-start-course:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   FICHA DE SEGUIMIENTO DEL ALUMNO & MATRICULACIÓN MANUAL (SAAS 2026)
   ========================================================================== */

.student-dossier-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.student-dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.student-identity-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.student-avatar-lg {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.student-meta-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.student-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #475569;
    background: #f1f5f9;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
}

.student-meta-chip.chip-wa {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
    transition: all 0.2s;
}

.student-meta-chip.chip-wa:hover {
    background: #bbf7d0;
    color: #14532d;
    transform: translateY(-1px);
}

.student-dossier-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

/* KPI GRID DEL ALUMNO */
.student-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.student-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.student-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.student-kpi-card.is-green .student-kpi-icon {
    background: #dcfce7;
    color: #15803d;
}

.student-kpi-card.is-purple .student-kpi-icon {
    background: #ede9fe;
    color: #6d28d9;
}

.student-kpi-card.is-amber .student-kpi-icon {
    background: #fef3c7;
    color: #b45309;
}

.student-kpi-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    display: block;
}

.student-kpi-lbl {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

/* PROGRESS BAR COMPACTA */
.student-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.student-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.student-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 50px;
    transition: width 0.4s ease;
}

.student-progress-fill.fill-done {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

/* EXAM SCORE CHIP */
.exam-score-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

.exam-score-chip.is-passed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.exam-score-chip.is-failed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* MODAL GENERAL DE ADMINISTRACIÓN */
.modal-custom-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-custom-backdrop.is-open {
    display: flex;
}

.modal-custom-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: modalAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAnim {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-custom-header {
    background: #0f172a;
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-custom-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-custom-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-custom-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ==========================================================================
   MÉTODOS DE PAGO ALTERNATIVOS (CHECKOUT & ADMIN)
   ========================================================================== */

.btn-alt-payment {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-alt-payment:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.btn-alt-payment:active {
    transform: translateY(0);
}

.btn-alt-payment.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.btn-alt-payment .toggle-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.btn-alt-payment.active .toggle-arrow {
    transform: rotate(180deg);
}

.payment-alt-panel {
    margin-top: 1rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    animation: fadeInSlide 0.25s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-alt-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-alt-banner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.payment-alt-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #15803d;
}

.bank-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bank-credential-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bank-credential-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.bank-credential-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
    display: block;
}

.bank-credential-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.btn-copy-mini {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: all 0.15s ease;
    margin-left: 0.5rem;
}

.btn-copy-mini:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.btn-copy-mini.copied {
    background: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}

.payment-steps-box {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 0.9rem 1.1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.25rem;
}

.payment-steps-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.payment-steps-content {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.55;
    white-space: pre-line;
}

.payment-notify-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-notify-wa {
    flex: 1;
    min-width: 220px;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.btn-notify-wa:hover {
    background: #16a34a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.btn-notify-email {
    flex: 1;
    min-width: 180px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.btn-notify-email:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}






