/* styles.css */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {    background-color: #f8f9fa;    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;    padding-bottom: 70px;    margin: 0;    /* Mejoras de legibilidad para Inter */    -webkit-font-smoothing: antialiased;    -moz-osx-font-smoothing: grayscale;    text-rendering: optimizeLegibility;    color: #1e293b;}

/* Full-width container */
.container-full {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
}

/* Tema Card */
.tema-card {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.tema-card:hover {
    transform: translateY(-5px);
}

.tema-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Subtema List */
.subtema-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.subtema-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.subtema-item:hover {
    background-color: #f1f5f9;
}

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

.progress-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    background-color: #e2e8f0;
    color: #1f2937;
}

/* Header Styles */
.header {
    background-color: #1f2937;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .icon-btn {
    color: #f8f9fa;
    font-size: 1.25rem;
    display: inline-block;
    z-index: 2000;
    transition: color 0.2s ease-in-out;
}

.header .icon-btn i {
    font-size: 2rem;
    color: #f8f9fa;
}

/* Responsive & Mobile Adjustments */
@media (max-width: 767px) {
    .header .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .header .d-flex > * {
        margin-bottom: 0.5rem;
    }

    .header .icon-btn {
        font-size: 1.5rem;
    }

    .header .icon-btn i {
        font-size: 1.5rem;
    }

    .header .dropdown-menu {
        left: auto;
        right: 0;
    }
}

/* Temario Content */
.temario-contenido {
    font-size: 0.95rem !important;
    line-height: 1.6;
}

.temario-contenido,
.temario-contenido ~ .bg-light {
    font-size: 0.95rem !important;
}

.list-group-item.active.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 600;
}

/* Banner Sections */
.banner-desktop div,
.banner-mobile div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* Offcanvas Customizations */
.offcanvas .offcanvas-title {
    font-weight: bold;
}

.offcanvas .card {
    border: none;
    box-shadow: none;
}

/* Logo móvil */
.logo-movil {
    max-height: 40px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    header .container.py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    header .d-flex.align-items-center {
        flex-wrap: nowrap !important;
    }
}

.privacy-section {
            margin-bottom: 2.5rem;
        }
        .privacy-section h3 {
            color: #0d6efd;
            margin-bottom: 1.2rem;
            font-size: 1.5rem;
        }
        .privacy-section h4 {
            color: #495057;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }
        .privacy-section p {
            text-align: justify;
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        .privacy-section ul, .privacy-section ol {
            margin-bottom: 1.5rem;
            padding-left: 1.2rem;
        }
        .privacy-section li {
            margin-bottom: 0.8rem;
            line-height: 1.6;
        }
        .table-privacy {
            margin-bottom: 1.5rem;
        }
        .highlight-box {
            background-color: #f8f9fa;
            border-left: 4px solid #0d6efd;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

/* ================================
   BLOQUE REGISTRO - SECCIÓN PÚBLICA
   ================================ */

.full-width-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #0b1120, #000000);
    color: #ffffff;
    margin: 0;
    padding: 0 1rem;
}
.full-width-section ul li {
    font-size: 1.1rem;
    line-height: 1.6;
}

.full-width-section h6 {
    font-size: 1.4rem;
    font-weight: 600;
}

.text-muted-light {
    color: #cbd5e1 !important;
}

/* Animación suave */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Bloque centrado verticalmente con texto y botón */
/* Estas clases son las nuevas para el layout deseado */
.hero-center {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #0b1120, #000000);
    color: #fff;
    padding: 0 1rem;
    text-align: left;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
}
.text-block {
    flex: 1 1 55%;
    min-width: 300px;
}

.button-block {
    flex: 1 1 35%;
    min-width: 260px;
    text-align: right;
}

.button-block a {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .button-block {
        text-align: center;
    }
}
.login-system {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-system::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(56, 182, 255, 0.15) 0%, transparent 70%);
    animation: login-pulse 8s infinite alternate;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.login-card {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.login-header {
    padding: 1.5rem;
    text-align: center;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header h1 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-body {
    padding: 1.5rem;
}

.login-form .form-floating {
    margin-bottom: 1.5rem;
}

.login-form .form-floating label {
    color: #94a3b8;
}

.login-form .form-control {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    height: auto;
}

.login-form .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: #38b6ff;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(56, 182, 255, 0.25);
}

.login-form .btn-primary {
    background-color: #38b6ff;
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    background-color: #1e9fe6;
    transform: translateY(-2px);
}

.login-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

.login-footer a {
    color: #38b6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #1e9fe6;
}

.login-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.login-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.login-links a:hover {
    color: #38b6ff;
    text-decoration: none;
}

/* Animations */
@keyframes login-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-header {
        padding: 1.25rem;
    }
    
    .login-body {
        padding: 1.25rem;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-header {
        padding: 1rem;
    }
    
    .login-body {
        padding: 1rem;
    }
}
/* ================================
   USER MENU STYLES
   ================================ */

.user-menu {
    position: relative;
    z-index: 1000;
}

.user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.user-menu .dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.user-menu .dropdown-toggle::after {
    margin-left: 0.3em;
    vertical-align: 0.15em;
}

.user-menu .dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
}

.user-menu .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.user-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    color: #64748b;
}

.user-menu .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1e40af;
}

.user-menu .dropdown-item:hover i {
    color: #3b82f6;
}

.user-menu .dropdown-item.text-danger:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.user-menu .dropdown-item.text-danger:hover i {
    color: #dc2626;
}

.user-menu .dropdown-divider {
    margin: 0.25rem 0;
    border-color: #e2e8f0;
}

/* User info section */
.user-info {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-all;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .user-menu .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 70px;
        width: 90%;
        max-width: 300px;
    }
    
    .user-menu .dropdown-menu::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid white;
    }
}
/* ================================
   TEMARIO PAGE STYLES
   ================================ */

.temario-page {
    background-color: #f8fafc;
    min-height: 100vh;
}

.temario-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.temario-title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.temario-subtitle {
    font-weight: 300;
    opacity: 0.9;
}

.tema-card-enhanced {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid;
}

.tema-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tema-header-enhanced {
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.tema-body-enhanced {
    padding: 1.25rem;
    background: white;
}

.subtema-item-enhanced {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

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

.subtema-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
    text-decoration: none;
}

.subtema-link:hover {
    color: #1d4ed8;
}

.progress-thin {
    height: 6px;
    border-radius: 3px;
}

.alert-register {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
}

/* Colores para los temas */
.bg-tema-primary { background-color: #3b82f6; border-left-color: #3b82f6; }
.bg-tema-success { background-color: #10b981; border-left-color: #10b981; }
.bg-tema-danger { background-color: #ef4444; border-left-color: #ef4444; }
.bg-tema-warning { background-color: #f59e0b; border-left-color: #f59e0b; }
.bg-tema-indigo { background-color: #6366f1; border-left-color: #6366f1; }
.bg-tema-purple { background-color: #8b5cf6; border-left-color: #8b5cf6; }

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .temario-header {
        padding: 2rem 0;
    }
    
    .tema-header-enhanced {
        padding: 0.75rem 1rem;
    }
    
    .tema-body-enhanced {
        padding: 1rem;
    }
}
/* ================================
   FOOTER NAVIGATION - MOBILE FIRST (CORREGIDO)
   ================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1030;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    height: 65px;
    transition: bottom 0.25s ease;
}

.legal-subfooter {
    align-items: center;
    background: #0f172a;
    bottom: 0;
    color: #94a3b8;
    display: flex;
    font-size: 0.68rem;
    gap: 0.35rem;
    height: 24px;
    justify-content: center;
    left: 0;
    line-height: 1;
    overflow-x: auto;
    padding: 0 0.5rem;
    position: fixed;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    z-index: 1030;
}

body.legal-subfooter-open {
    padding-bottom: 94px;
}

body.legal-subfooter-open .bottom-nav {
    bottom: 24px;
}

body.legal-subfooter-open .legal-subfooter {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.legal-subfooter-toggle {
    align-items: center;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px 999px 0 0;
    bottom: -1px;
    color: #cbd5e1;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 44px;
}

.legal-subfooter-toggle i {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

body.legal-subfooter-open .legal-subfooter-toggle i {
    transform: rotate(180deg);
}

.legal-subfooter::-webkit-scrollbar {
    display: none;
}

.legal-subfooter a {
    color: #cbd5e1;
    text-decoration: none;
}

.legal-subfooter a:hover {
    color: #60a5fa;
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
}

.nav-item-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-btn:hover,
.nav-link-btn.active {
    background: rgba(59, 130, 246, 0.1);
}

.nav-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s ease;
}

.nav-link-btn:hover::before,
.nav-link-btn.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    font-size: 1.4rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.nav-link-btn:hover .nav-icon,
.nav-link-btn.active .nav-icon {
    color: #60a5fa;
    transform: scale(1.1);
}

.nav-text {
    font-size: 0.65rem;
    color: #cbd5e1;
    transition: color 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CORRECCIÓN PRINCIPAL: Dropdown Styles */
.nav-dropdown {
    position: fixed;
    bottom: 65px;
    left: 0;
    right: 0;
    width: 100%;
    background: #1e293b;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    max-height: 70vh;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    z-index: 1050;
    margin: 0;
}

body.legal-subfooter-open .nav-dropdown {
    bottom: 89px;
}

.nav-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-header {
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.nav-dropdown-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-dropdown-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border: none;
    padding: 0;
}

.nav-dropdown-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fee2e2;
}

.nav-dropdown-body {
    padding: 0.75rem;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding-left: 1.25rem;
}

.nav-dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.nav-dropdown-item:hover i {
    color: #60a5fa;
}

/* Backdrop overlay - CORREGIDO */
.nav-dropdown-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-dropdown-backdrop.show {
    display: block;
    opacity: 1;
}

/* Scrollbar personalizado */
.nav-dropdown::-webkit-scrollbar {
    width: 8px;
}

.nav-dropdown::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.nav-dropdown::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.7);
    border-radius: 4px;
}

.nav-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.9);
}

/* Responsive adjustments - MEJORADO */
@media (max-width: 380px) {
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-text {
        font-size: 0.6rem;
    }
    
    .bottom-nav {
        height: 60px;
    }
    
    .nav-dropdown {
        bottom: 60px;
    }

    body.legal-subfooter-open .nav-dropdown {
        bottom: 84px;
    }
}

@media (min-width: 768px) {
    .nav-dropdown {
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        width: 90%;
        max-width: 500px;
        border-radius: 12px;
        bottom: 75px;
    }

    body.legal-subfooter-open .nav-dropdown {
        bottom: 99px;
    }
    
    .nav-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Animation for dropdown items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown.show .nav-dropdown-item {
    animation: fadeInUp 0.3s ease forwards;
}

.nav-dropdown.show .nav-dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.nav-dropdown.show .nav-dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.nav-dropdown.show .nav-dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.nav-dropdown.show .nav-dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.nav-dropdown.show .nav-dropdown-item:nth-child(5) { animation-delay: 0.25s; }

/* Asegurar que el contenido principal tenga padding inferior */
body {
    padding-bottom: 70px !important;
}

body.legal-subfooter-open {
    padding-bottom: 94px !important;
}

/* Corrección para el enlace de cookies - MOVIDO A LA IZQUIERDA */
.cookie-preferences-link {
    position: fixed;
    bottom: 85px;
    left: 20px;
    background: rgba(30, 41, 59, 0.95);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    text-decoration: none;
    color: #cbd5e1;
    z-index: 1020;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preferences-link:hover {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

@media (max-width: 380px) {
    .cookie-preferences-link {
        font-size: 10px;
        padding: 6px 10px;
        bottom: 70px;
        left: 10px;
    }
}
.card-test { transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
        .card-test:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
        .progress { height: 12px; border-radius: 6px; }
        .display-4 { font-size: 2.5rem; font-weight: 600; }
        .subtema-title { font-size: 1.3rem; color: #333; font-weight: 600; }
        .badge-estado { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
        .stats-card { border-radius: 10px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
        .error-banner { background: #fff3cd; border-left: 4px solid #ffc107; padding: 1rem; margin-bottom: 1rem; border-radius: 4px; }
		
/* ================================
   HEADER REDESIGN - Color #141e30
   ================================ */

/* Header principal con nuevo color */
header.bg-white {
    background: #141e30 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Logo con efecto hover mejorado */
header img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ================================
   BOTÓN USER MÓVIL
   ================================ */

/* Botón outline-secondary (móvil) - Rediseño */
header .btn-outline-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

header .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

header .btn-outline-secondary:focus,
header .btn-outline-secondary:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

header .btn-outline-secondary i {
    color: #ffffff;
}

/* ================================
   BOTÓN PRIMARY (ACCEDER/LOGIN)
   ================================ */

/* Botón primary - Texto blanco siempre */
header .btn-primary,
header .btn-outline-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

header .btn-primary:hover,
header .btn-outline-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #ffffff !important;
}

header .btn-primary:focus,
header .btn-primary:active,
header .btn-outline-primary:focus,
header .btn-outline-primary:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

header .btn-primary i,
header .btn-outline-primary i {
    color: #ffffff !important;
}

/* ================================
   DROPDOWN MENÚ DE USUARIO
   ================================ */

/* Dropdown toggle - Rediseño mejorado */
header .user-menu .dropdown-toggle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

header .user-menu .dropdown-toggle:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #ffffff !important;
}

header .user-menu .dropdown-toggle i {
    color: #ffffff !important;
    font-size: 1.2rem;
}

header .user-menu .dropdown-toggle span {
    color: #ffffff !important;
}

/* Dropdown menu mejorado */
header .user-menu .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    margin-top: 0.5rem;
}

/* Header del dropdown con info del usuario */
header .user-menu .dropdown-menu .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 8px;
    padding: 1rem !important;
    margin-bottom: 0.5rem;
}

header .user-menu .dropdown-menu .fw-bold {
    color: #1e293b;
    font-size: 1rem;
}

header .user-menu .dropdown-menu .text-muted {
    color: #64748b !important;
    font-size: 0.85rem;
}

/* Items del dropdown */
header .user-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin: 0.15rem 0;
    transition: all 0.2s ease;
    color: #334155;
    font-weight: 500;
}

header .user-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    padding-left: 1.25rem;
}

header .user-menu .dropdown-item i {
    width: 24px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

header .user-menu .dropdown-item:hover i {
    color: #3b82f6;
}

/* Item de cerrar sesión */
header .user-menu .dropdown-item.text-danger {
    color: #dc2626 !important;
}

header .user-menu .dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626 !important;
}

header .user-menu .dropdown-item.text-danger:hover i {
    color: #dc2626 !important;
}

/* Separador */
header .user-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Header de secciones (Administración) */
header .user-menu .dropdown-header {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem 0.25rem;
}

/* ================================
   OFFCANVAS MÓVIL
   ================================ */

/* Offcanvas header */
.offcanvas .offcanvas-header.bg-light {
    background: linear-gradient(135deg, #141e30 0%, #1e293b 100%) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .offcanvas-title {
    color: #ffffff !important;
    font-weight: 600;
	font-size: 1.4rem;
}

.offcanvas .offcanvas-title i {
    color: #60a5fa;
}

.offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

/* Avatar en offcanvas */
.offcanvas .avatar-placeholder {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Nombre de usuario en offcanvas */
.offcanvas h5 {
    color: #1e293b;
    font-weight: 600;
}

/* Email en offcanvas */
.offcanvas small.text-muted {
    color: #64748b !important;
}
.offcanvas-header.border-bottom {
    background-color: #1a2537 !important;
    border-bottom: 2px solid #269571 !important; /* Añadimos el toque verde institucional en el borde */
}

/* Botones del offcanvas */
.offcanvas .btn-outline-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e2e8f0;
    color: #334155;
    font-weight: 500;
    transition: all 0.3s ease;
}

.offcanvas .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateX(4px);
}

.offcanvas .btn-outline-secondary i {
    color: #64748b;
    transition: color 0.3s ease;
}

.offcanvas .btn-outline-secondary:hover i {
    color: #ffffff;
}

/* Botones de administración */
.offcanvas .btn-outline-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.offcanvas .btn-outline-dark:hover {
    background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Botón de cerrar sesión en offcanvas */
.offcanvas .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.offcanvas .btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Botones de login/registro en offcanvas (cuando no hay sesión) */
.offcanvas .btn-primary.btn-lg {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.offcanvas .btn-primary.btn-lg:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.offcanvas .btn-outline-primary {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-weight: 500;
    transition: all 0.3s ease;
}

.offcanvas .btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
}

/* Headers de sección en offcanvas */
.offcanvas h6.text-muted {
    color: #64748b !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */

@media (max-width: 991.98px) {
    /* Ajustes para móvil */
    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header .btn-outline-secondary {
        padding: 0.5rem;
        min-width: 42px;
        height: 42px;
    }
}

@media (max-width: 767.98px) {
    /* Logo móvil más pequeño en pantallas muy pequeñas */
    .logo-movil {
        max-height: 35px;
    }
    
    header .container.py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* ================================
   ANIMACIONES ADICIONALES
   ================================ */

@keyframes headerGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(59, 130, 246, 0.2);
    }
}

header.bg-white {
    animation: headerGlow 3s ease-in-out infinite;
}

/* Efecto de pulso sutil en el botón de usuario */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

header .user-menu .dropdown-toggle:hover {
    animation: pulse 2s ease-in-out infinite;
}
/* ================================
   MIS ESTUDIADOS - ESTILOS ELEGANTES
   ================================ */

/* Header de la página */
.estudiados-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.estudiados-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.estudiados-subtitle {
    font-size: 1rem;
    color: #64748b;
}

.btn-volver {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 3rem;
    color: #3b82f6;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de subtemas estudiados */
.estudiados-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .estudiados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .estudiados-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card de subtema estudiado */
.estudiado-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

.estudiado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.estudiado-card:hover::before {
    transform: scaleY(1);
}

.estudiado-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.estudiado-card-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.estudiado-card-badge i {
    font-size: 1.5rem;
    color: #ffffff;
}

.estudiado-card-content {
    flex: 1;
    min-width: 0;
}

.estudiado-card-tema {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.estudiado-card-subtema {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.estudiado-card-fecha {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.estudiado-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: center;
}

.estudiado-card-arrow i {
    font-size: 0.9rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.estudiado-card:hover .estudiado-card-arrow {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.estudiado-card:hover .estudiado-card-arrow i {
    color: #ffffff;
    transform: translateX(4px);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estudiado-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.estudiado-card:nth-child(1) { animation-delay: 0.05s; }
.estudiado-card:nth-child(2) { animation-delay: 0.1s; }
.estudiado-card:nth-child(3) { animation-delay: 0.15s; }
.estudiado-card:nth-child(4) { animation-delay: 0.2s; }
.estudiado-card:nth-child(5) { animation-delay: 0.25s; }
.estudiado-card:nth-child(6) { animation-delay: 0.3s; }
.estudiado-card:nth-child(7) { animation-delay: 0.35s; }
.estudiado-card:nth-child(8) { animation-delay: 0.4s; }
.estudiado-card:nth-child(9) { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 767.98px) {
    .estudiados-title {
        font-size: 1.5rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .header-icon i {
        font-size: 1.5rem;
    }
    
    .estudiados-header {
        padding: 1.5rem;
    }
    
    .btn-volver {
        width: 100%;
        margin-top: 1rem;
    }
    
    .estudiado-card {
        padding: 1.25rem;
    }
    
    .estudiado-card-badge {
        width: 42px;
        height: 42px;
    }
    
    .estudiado-card-badge i {
        font-size: 1.25rem;
    }
}
/* ================================
   HISTORIAL DE TESTS - ESTILOS ELEGANTES
   ================================ */

/* Header de la página */
.historial-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.historial-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.historial-subtitle {
    font-size: 1rem;
    color: #64748b;
}

.btn-volver {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Cards de estadísticas */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    border: 2px solid transparent;
}

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

.stat-card-primary:hover { border-color: #3b82f6; }
.stat-card-info:hover { border-color: #06b6d4; }
.stat-card-warning:hover { border-color: #f59e0b; }
.stat-card-success:hover { border-color: #10b981; }

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #06b6d4;
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
}

.stat-card-icon i {
    font-size: 1.5rem;
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.stat-card-label {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 3rem;
    color: #3b82f6;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Header de la lista */
.historial-list {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.historial-list-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.historial-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.historial-list-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Grid de tests */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card de test individual */
.test-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.test-card:hover::before {
    transform: scaleY(1);
}

.test-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.test-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.test-card-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.test-card-badge i {
    font-size: 1.25rem;
    color: #ffffff;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.test-card-score {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.test-card-body {
    margin-bottom: 1rem;
}

.test-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.test-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.test-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.test-card-meta-item i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
}

.test-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.test-card-date,
.test-card-time {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.test-card-status {
    display: flex;
    justify-content: center;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.status-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.test-card:nth-child(1) { animation-delay: 0.05s; }
.test-card:nth-child(2) { animation-delay: 0.1s; }
.test-card:nth-child(3) { animation-delay: 0.15s; }
.test-card:nth-child(4) { animation-delay: 0.2s; }
.test-card:nth-child(5) { animation-delay: 0.25s; }
.test-card:nth-child(6) { animation-delay: 0.3s; }
.test-card:nth-child(7) { animation-delay: 0.35s; }
.test-card:nth-child(8) { animation-delay: 0.4s; }
.test-card:nth-child(9) { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 767.98px) {
    .historial-title {
        font-size: 1.5rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .header-icon i {
        font-size: 1.5rem;
    }
    
    .historial-header {
        padding: 1.5rem;
    }
    
    .btn-volver {
        width: 100%;
        margin-top: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .stat-card-icon {
        margin: 0 auto 0.75rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .historial-list {
        padding: 1.5rem;
    }
}
/* ================================
   INDEX - ESTILOS ELEGANTES
   ================================ */

/* Dashboard de usuario logueado */
.dashboard-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

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

.dashboard-card-progreso {
    border-left: 4px solid #3b82f6;
}

.dashboard-card-progreso:hover {
    border-color: #3b82f6;
}

.dashboard-card-pendiente {
    border-left: 4px solid #f59e0b;
}

.dashboard-card-pendiente:hover {
    border-color: #f59e0b;
}

.dashboard-card-nivel {
    border-left: 4px solid #10b981;
}

.dashboard-card-nivel:hover {
    border-color: #10b981;
}

.dashboard-card-body {
    padding: 1.75rem;
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card-title i {
    color: #64748b;
}

/* Progress bar mejorada */
.progress-enhanced {
    height: 24px;
    border-radius: 12px;
    background: #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.progress-bar-enhanced {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.progress-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.75rem;
}

/* Test pendiente */
.test-pendiente-content {
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.test-pendiente-tema {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.test-pendiente-subtema {
    font-size: 0.9rem;
    color: #b45309;
    margin-bottom: 0.5rem;
}

.test-pendiente-tiempo {
    font-size: 0.85rem;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-pendiente-empty {
    text-align: center;
    padding: 2rem;
}

.test-pendiente-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-continuar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-continuar:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #ffffff;
}

/* Nivel */
.nivel-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
}

.nivel-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nivel-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.nivel-content h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

/* Sección pública (hero) - ya está en tu CSS */

/* Sección de temas */
.temas-section {
    padding: 2rem 0 3rem;
}

.temas-header {
    text-align: center;
    margin-bottom: 3rem;
}

.temas-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.temas-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* Publicidad mejorada */
.publicidad-block {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    text-align: center;
}

.publicidad-block a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.publicidad-block a:hover {
    transform: scale(1.02);
}

.publicidad-block img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 767.98px) {
    .dashboard-section {
        padding: 2rem 0;
    }
    
    .dashboard-card-body {
        padding: 1.25rem;
    }
    
    .dashboard-card-title {
        font-size: 1rem;
    }
    
    .nivel-display {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .nivel-icon {
        width: 60px;
        height: 60px;
    }
    
    .nivel-icon i {
        font-size: 1.75rem;
    }
    
    .nivel-content h4 {
        font-size: 1.5rem;
    }
    
    .temas-title {
        font-size: 1.75rem;
    }
    
    .temas-subtitle {
        font-size: 1rem;
    }
    
    .publicidad-block {
        padding: 1rem;
        margin: 2rem 0;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }

/* Sistema de login mejorado */
.login-system {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-system::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: login-pulse 8s infinite alternate;
    z-index: 0;
}

.login-system::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

/* Card mejorada */
.login-card-enhanced {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.4s ease;
}

.login-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(59, 130, 246, 0.3);
}

/* Header mejorado */
.login-header {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.login-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.login-header h1 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Body mejorado */
.login-body {
    padding: 2.5rem 2rem;
    background: #ffffff;
}

/* Alertas mejoradas */
.alert-enhanced {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.alert-danger.alert-enhanced {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alert-success.alert-enhanced {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Form floating mejorado */
.form-floating-enhanced {
    position: relative;
    margin-bottom: 0;
}

.form-floating-enhanced .form-control {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #1e293b;
    padding: 1.25rem 1rem;
    height: auto;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating-enhanced .form-control:focus {
    background: #ffffff;
    border-color: #3b82f6;
    color: #1e293b;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-floating-enhanced label {
    color: #64748b;
    padding: 1.25rem 1rem;
    font-size: 1rem;
}

.form-floating-enhanced .form-control:focus ~ label,
.form-floating-enhanced .form-control:not(:placeholder-shown) ~ label {
    color: #3b82f6;
}

/* Botones mejorados */
.btn-enhanced {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary.btn-enhanced {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary.btn-enhanced:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-primary.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline-enhanced {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-enhanced:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
}

/* Footer mejorado */
.login-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-size: 0.95rem;
}

.link-enhanced {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.link-enhanced::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.link-enhanced:hover {
    color: #2563eb;
}

.link-enhanced:hover::after {
    width: 100%;
}

/* Login links mejorados */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-links a:hover {
    color: #3b82f6;
}

/* Animaciones */
@keyframes login-pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
    }
    
    .login-icon i {
        font-size: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-footer {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-header {
        padding: 1.5rem 1rem;
    }
    
    .login-body {
        padding: 1.5rem 1rem;
    }
    
    .login-card-enhanced {
        border-radius: 16px;
    }
}

/* Estilos específicos para login-password.php */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}
/* ================================
   VER TEMAS - ESTILOS ELEGANTES
   ================================ */

/* Header de página */
.tema-page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tema-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tema-page-title i {
    color: #3b82f6;
}

/* Breadcrumb mejorado */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* Cards de estadísticas mejoradas */
.stats-card-enhanced {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.stats-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-card-primary {
    border-left: 4px solid #3b82f6;
}

.stats-card-primary:hover {
    border-color: #3b82f6;
}

.stats-card-warning {
    border-left: 4px solid #f59e0b;
}

.stats-card-warning:hover {
    border-color: #f59e0b;
}

.stats-card-success {
    border-left: 4px solid #10b981;
}

.stats-card-success:hover {
    border-color: #10b981;
}

.stats-card-body {
    padding: 2rem;
    text-align: center;
}

.stats-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stats-card-primary .stats-card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

.stats-card-warning .stats-card-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
}

.stats-card-success .stats-card-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
}

.stats-card-icon i {
    font-size: 2rem;
}

.stats-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.stats-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.stats-card-value-small {
    font-size: 1.5rem;
    color: #94a3b8;
}

.progress-enhanced {
    height: 10px;
    border-radius: 5px;
    background: #f1f5f9;
    overflow: hidden;
}

.progress-bar-enhanced {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.6s ease;
}

/* Sección de subtema */
.subtema-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.subtema-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.subtema-title-enhanced {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subtema-title-enhanced i {
    color: #3b82f6;
}

/* Grid de tests */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card de test individual */
.test-card-enhanced {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.test-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.test-card-enhanced:hover::before {
    transform: scaleY(1);
}

.test-card-enhanced:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* Estados del test */
.test-card-completado {
    border-color: #10b981;
}

.test-card-completado::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.test-card-fallado {
    border-color: #ef4444;
}

.test-card-fallado::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.test-card-pendiente {
    border-color: #94a3b8;
}

.test-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-card-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-card-number i {
    color: #64748b;
}

/* Badge de estado */
.badge-enhanced {
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-completado {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.badge-fallado {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.badge-pendiente {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

.test-card-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.test-score {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
}

.test-score-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.test-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.test-empty-icon {
    text-align: center;
    padding: 2rem;
}

.test-empty-icon i {
    font-size: 3rem;
    color: #cbd5e1;
}

.test-card-footer {
    padding: 1.5rem;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
}

.btn-test {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-test-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-test-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.btn-test-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.btn-test-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
    color: #ffffff;
}

/* Publicidad mejorada */
.adsense-block {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* Alert de error */
.error-banner-enhanced {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #dc2626;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #991b1b;
}

.error-banner-enhanced i {
    font-size: 1.5rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-card-enhanced {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.test-card-enhanced:nth-child(1) { animation-delay: 0.05s; }
.test-card-enhanced:nth-child(2) { animation-delay: 0.1s; }
.test-card-enhanced:nth-child(3) { animation-delay: 0.15s; }
.test-card-enhanced:nth-child(4) { animation-delay: 0.2s; }
.test-card-enhanced:nth-child(5) { animation-delay: 0.25s; }
.test-card-enhanced:nth-child(6) { animation-delay: 0.3s; }
.test-card-enhanced:nth-child(7) { animation-delay: 0.35s; }
.test-card-enhanced:nth-child(8) { animation-delay: 0.4s; }
.test-card-enhanced:nth-child(9) { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 767.98px) {
    .tema-page-header {
        padding: 1.5rem 1rem;
    }
    
    .tema-page-title {
        font-size: 1.75rem;
    }
    
    .stats-card-body {
        padding: 1.5rem;
    }
    
    .stats-card-value {
        font-size: 2rem;
    }
    
    .subtema-section {
        padding: 1.5rem;
    }
    
    .subtema-title-enhanced {
        font-size: 1.25rem;
    }
}
        /* ================================
           TEST PAGE - ESTILOS ELEGANTES
           ================================ */

        /* Contenedor principal */
        .test-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* Alert de registro mejorado */
        .alert-register-enhanced {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            border: 2px solid #3b82f6;
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        .alert-register-enhanced i {
            font-size: 1.5rem;
            color: #3b82f6;
        }

        .alert-register-enhanced .alert-link {
            color: #1d4ed8;
            font-weight: 600;
            text-decoration: none;
            border-bottom: 2px solid #1d4ed8;
            transition: all 0.3s ease;
        }

        .alert-register-enhanced .alert-link:hover {
            color: #1e40af;
            border-bottom-color: #1e40af;
        }

        /* Card de test mejorada */
        .test-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 2px solid #e2e8f0;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .test-card:hover {
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
        }

        /* Header del test */
        .test-header {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            padding: 2rem;
            position: relative;
            overflow: hidden;
        }

        .test-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .test-header-content {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .test-title {
            color: #ffffff;
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Timer mejorado */
        .timer-enhanced {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 50%;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: 700;
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            position: relative;
        }

        .timer-enhanced::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 50%;
            border: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .timer-green::before {
            border-color: #10b981;
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
        }

        .timer-warning::before {
            border-color: #f59e0b;
            box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
        }

        .timer-danger::before {
            border-color: #ef4444;
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Barra de progreso mejorada */
        .progress-enhanced {
            height: 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.2);
            margin-top: 1.5rem;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }

        .progress-bar-enhanced {
            background: linear-gradient(90deg, #10b981 0%, #059669 100%);
            height: 100%;
            transition: width 0.5s ease;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
        }

        /* Body del test */
        .test-body {
            padding: 3rem 2.5rem;
        }

        /* Pregunta */
        .question-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .question-number {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: #ffffff;
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.25rem;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            flex-shrink: 0;
        }

        .question-counter {
            font-size: 0.95rem;
            color: #64748b;
            font-weight: 600;
        }

        .question-text-enhanced {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.6;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 12px;
            border-left: 4px solid #3b82f6;
        }

        /* Opciones de respuesta */
        .answers-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .answer-option-enhanced {
            background: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .answer-option-enhanced::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .answer-option-enhanced:hover {
            border-color: #3b82f6;
            background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
            transform: translateX(8px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
        }

        .answer-option-enhanced:hover::before {
            transform: scaleY(1);
        }

        .answer-option-enhanced.selected {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            border-color: #3b82f6;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
        }

        .answer-option-enhanced.selected::before {
            transform: scaleY(1);
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 0;
        }

        .form-check-input {
            width: 24px;
            height: 24px;
            border: 2px solid #cbd5e1;
            cursor: pointer;
            flex-shrink: 0;
        }

        .form-check-input:checked {
            background-color: #3b82f6;
            border-color: #3b82f6;
        }

        .form-check-label {
            font-size: 1rem;
            color: #334155;
            cursor: pointer;
            margin: 0;
            flex: 1;
        }

        /* Footer de la pregunta */
        .question-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 2px solid #f1f5f9;
        }

        .btn-impugnar {
            background: transparent;
            border: 2px solid #ef4444;
            color: #ef4444;
            padding: 0.6rem 1.25rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-impugnar:hover {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #ffffff;
            border-color: #ef4444;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .btn-next-enhanced {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border: none;
            color: #ffffff;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            min-width: 150px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .btn-next-enhanced:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
            color: #ffffff;
        }

        .btn-finish-enhanced {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border: none;
            color: #ffffff;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            min-width: 150px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .btn-finish-enhanced:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
            color: #ffffff;
        }

        /* Publicidad mejorada */
        .adsense-block-test {
            margin: 3rem 0;
            padding: 2rem;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 16px;
            text-align: center;
            border: 1px solid #e2e8f0;
        }

        /* Responsive */
        @media (max-width: 767.98px) {
            .test-container {
                padding: 1rem 0.5rem;
            }

            .test-header {
                padding: 1.5rem 1rem;
            }

            .test-header-content {
                flex-direction: column;
                text-align: center;
            }

            .test-title {
                font-size: 1.25rem;
            }

            .timer-enhanced {
                width: 70px;
                height: 70px;
                font-size: 1.75rem;
            }

            .test-body {
                padding: 2rem 1.5rem;
            }

            .question-text-enhanced {
                font-size: 1.1rem;
                padding: 1rem;
            }

            .question-number {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .answer-option-enhanced {
                padding: 1rem;
            }

            .question-footer {
                flex-direction: column;
                gap: 1rem;
            }

            .btn-impugnar,
            .btn-next-enhanced,
            .btn-finish-enhanced {
                width: 100%;
                justify-content: center;
            }
        }

        /* Error banner */
        .error-banner-test {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border-left: 4px solid #dc2626;
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 2rem;
            color: #991b1b;
        }

        .error-banner-test i {
            font-size: 1.5rem;
            margin-right: 0.75rem;
        }

        /* Alert de error */
        .error-alert-enhanced {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border-left: 4px solid #dc2626;
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            color: #991b1b;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
        }

        .error-alert-enhanced i {
            font-size: 1.75rem;
        }

        /* Stats badges */
        .stats-badges {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .stat-badge {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .stat-badge:hover {
            border-color: #3b82f6;
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
        }

        .stat-badge-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: #ffffff;
            font-size: 1.5rem;
        }

        .stat-badge-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: #1e293b;
        }

        .stat-badge-label {
            font-size: 0.9rem;
            color: #64748b;
            margin-top: 0.5rem;
        }

		 /* ================================
           RESULTADO TEST - ESTILOS ELEGANTES
           ================================ */

        body {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            min-height: 100vh;
        }

        /* Contenedor principal */
        .resultado-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 3rem 1rem;
        }

        /* Card de resultado principal */
        .resultado-principal {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 2px solid #e2e8f0;
            overflow: hidden;
            margin-bottom: 2rem;
            position: relative;
        }

        .resultado-header {
            padding: 3rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .resultado-header.aprobado {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .resultado-header.suspendido {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        .resultado-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .resultado-title {
            color: #ffffff;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 2rem;
            position: relative;
            z-index: 1;
        }

        /* Círculo de puntuación */
        .result-circle-enhanced {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 2rem;
            font-size: 3rem;
            font-weight: 700;
            color: #ffffff;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 4px solid rgba(255, 255, 255, 0.3);
            position: relative;
            z-index: 1;
            animation: scaleIn 0.6s ease-out;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Alert de estado */
        .alert-resultado {
            border-radius: 12px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            border: none;
            margin: 2rem;
            position: relative;
            z-index: 1;
        }

        .alert-resultado.success {
            background: rgba(255, 255, 255, 0.95);
            color: #059669;
        }

        .alert-resultado.danger {
            background: rgba(255, 255, 255, 0.95);
            color: #dc2626;
        }

        .alert-resultado i {
            font-size: 2.5rem;
        }

        .alert-resultado strong {
            font-size: 1.25rem;
        }

        /* Card de estadísticas */
        .estadisticas-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 2px solid #e2e8f0;
        }

        .estadisticas-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .estadisticas-title i {
            color: #3b82f6;
        }

        /* Stats cards mejoradas */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .stat-card-enhanced {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 16px;
            padding: 2rem 1.5rem;
            text-align: center;
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .stat-card-enhanced:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .stat-card-enhanced.success {
            border-left: 4px solid #10b981;
        }

        .stat-card-enhanced.danger {
            border-left: 4px solid #ef4444;
        }

        .stat-card-enhanced.warning {
            border-left: 4px solid #f59e0b;
        }

        .stat-card-enhanced:hover.success {
            border-color: #10b981;
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        }

        .stat-card-enhanced:hover.danger {
            border-color: #ef4444;
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        }

        .stat-card-enhanced:hover.warning {
            border-color: #f59e0b;
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        }

        .stat-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .stat-icon.success { color: #10b981; }
        .stat-icon.danger { color: #ef4444; }
        .stat-icon.warning { color: #f59e0b; }

        .stat-label {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: #1e293b;
        }

        /* Barras de progreso mejoradas */
        .progress-section {
            margin-bottom: 2rem;
        }

        .progress-label {
            font-size: 1.1rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .progress-enhanced {
            height: 2rem;
            border-radius: 1rem;
            background: #f1f5f9;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
            overflow: hidden;
        }

        .progress-bar-enhanced {
            border-radius: 1rem;
            transition: width 0.8s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        .progress-bar-enhanced.info {
            background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
        }

        .progress-bar-enhanced.success {
            background: linear-gradient(90deg, #10b981 0%, #059669 100%);
        }

        /* Card de nivel */
        .nivel-card-enhanced {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-radius: 16px;
            padding: 2.5rem;
            text-align: center;
            color: #ffffff;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .nivel-card-enhanced::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: rotate 15s linear infinite;
        }

        .nivel-card-enhanced:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
        }

        .nivel-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .nivel-title {
            font-size: 2rem;
            font-weight: 700;
            margin: 0;
            position: relative;
            z-index: 1;
        }

        /* Publicidad mejorada */
        .adsense-resultado {
            margin: 2rem 0;
            padding: 2rem;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 16px;
            text-align: center;
            border: 1px solid #e2e8f0;
        }

        /* Card de respuestas incorrectas */
        .respuestas-card {
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 2px solid #fee2e2;
        }

        .respuestas-header {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            padding: 1.5rem 2rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .respuestas-header:hover {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        }

        .respuestas-title {
            color: #ffffff;
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .respuestas-chevron {
            color: #ffffff;
            transition: transform 0.3s ease;
        }

        .respuestas-header.collapsed .respuestas-chevron {
            transform: rotate(180deg);
        }

        .respuesta-item {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #f1f5f9;
        }

        .respuesta-item:nth-child(even) {
            background: #f8fafc;
        }

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

        .pregunta-text {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
        }

        .pregunta-numero {
            display: inline-block;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #ffffff;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .respuesta-detalle {
            margin-left: 2rem;
        }

        .respuesta-incorrecta,
        .respuesta-correcta {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 0.75rem;
        }

        .respuesta-incorrecta {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        }

        .respuesta-correcta {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        }

        .respuesta-incorrecta i {
            color: #dc2626;
            font-size: 1.25rem;
            margin-top: 0.25rem;
        }

        .respuesta-correcta i {
            color: #059669;
            font-size: 1.25rem;
            margin-top: 0.25rem;
        }

        .respuesta-label {
            font-size: 0.85rem;
            color: #64748b;
            margin-bottom: 0.25rem;
        }

        .respuesta-text {
            color: #1e293b;
            font-weight: 500;
        }

        /* Botones de acción */
        .actions-container {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-action {
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-home {
            background: linear-gradient(135deg, #64748b 0%, #475569 100%);
            border: none;
            color: #ffffff;
        }

        .btn-home:hover {
            background: linear-gradient(135deg, #475569 0%, #334155 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
            color: #ffffff;
        }

        .btn-repetir {
            background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
            border: none;
            color: #ffffff;
        }

        .btn-repetir:hover {
            background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
            color: #ffffff;
        }

        .btn-mas-tests {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border: none;
            color: #ffffff;
        }

        .btn-mas-tests:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            color: #ffffff;
        }

        /* Responsive */
        @media (max-width: 767.98px) {
            .resultado-container {
                padding: 1.5rem 0.5rem;
            }

            .resultado-header {
                padding: 2rem 1.5rem;
            }

            .resultado-title {
                font-size: 1.5rem;
            }

            .result-circle-enhanced {
                width: 150px;
                height: 150px;
                font-size: 2.5rem;
            }

            .estadisticas-card {
                padding: 1.5rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .actions-container {
                flex-direction: column;
            }

            .btn-action {
                width: 100%;
                justify-content: center;
            }

            .respuesta-detalle {
                margin-left: 0;
            }
        }
		
.home-hero-section {
    position: relative;
    background-color: #1a2537; /* Color de respaldo */
    
    /* Capa de fondo: Gradiente + Imagen */
    background-image: 
        linear-gradient(rgba(26, 37, 55, 0.85), rgba(26, 37, 55, 0.95)), 
        url('../img/tests-informatica-oposiciones-administrativo.webp');
    
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* Opcional: efecto parallax al hacer scroll */
    border-bottom: 4px solid #269571;
    color: white;
}

/* Fallback para navegadores que no soportan WebP (opcional) */
@supports not (background-image: url('../img/tests-informatica-oposiciones-administrativo.webp')) {
    .home-hero-section {
        background-image: 
            linear-gradient(rgba(26, 37, 55, 0.85), rgba(26, 37, 55, 0.95)), 
            url('../img/tests-informatica-oposiciones-administrativo.jpg');
    }
}

/* Aseguramos que el contenido resalte */
.home-hero-content, .home-hero-card {
    position: relative;
    z-index: 2;
}
.toggle-password {
    cursor: pointer;
    transition: color 0.2s;
    color: #6c757d;
}
.toggle-password:hover {
    color: #0d6efd !important;
}
.input-group-text-eye {
    background-color: #f8f9fa;
    border-left: 0;
}
 .logo-movil {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-height: 45px;
    }
    .avatar-placeholder {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }	
	
	.offcanvas .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    filter: none;
    opacity: 1;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }

    body.legal-subfooter-open {
        padding-bottom: 94px;
    }
}

.bottom-nav {
    z-index: 1070;
    height: 65px;
}

.bottom-nav .nav-link {
    transition: all 0.2s ease;
}

.rounded-top-4 {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}
/* ============================================
   SISTEMA DE ACCESO COHERENTE (LOGIN/REGISTER)
   ============================================ */

/* Fondo limpio similar al dashboard */
.auth-page-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Card con diseño de "Box" de instrucciones */
.auth-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 !important; /* Bordes rectos */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.auth-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #223455;
    font-weight: 800;
    font-size: 1.75rem;
}

.auth-icon-box {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 3rem;
}

/* Inputs estilo "Dashboard" */
.auth-form .form-control {
    border-radius: 0;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.auth-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: none;
    background-color: #fdfdfd;
}

.auth-form label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
}

/* Botón rectangular profesional */
.btn-auth-submit {
    background-color: #223455;
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.2s;
}

.btn-auth-submit:hover {
    background-color: #3b82f6;
    transform: translateY(-1px);
}

/* Alertas estilo Test */
.auth-alert {
    border-radius: 0;
    border: none;
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
    font-size: 0.9rem;
}
/* Ajuste para el input-group del password */
.auth-form .input-group .form-control {
    border-right: none;
}

.auth-form .input-group .btn-outline-secondary {
    background: #f8fafc;
    border-left: none;
    color: #64748b;
}

.auth-form .input-group .btn-outline-secondary:hover {
    color: #3b82f6;
    background: #fff;
}
/* Botones de Social Login */
.social-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-auth-divider::before,
.social-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.social-auth-divider:not(:empty)::before { margin-right: .75rem; }
.social-auth-divider:not(:empty)::after { margin-left: .75rem; }

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    border-radius: 0;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.btn-social:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-social img {
    width: 18px;
    height: 18px;
}

.btn-social i {
    font-size: 1.1rem;
}

.i-facebook { color: #1877F2; }
.i-apple { color: #000000; }

/* ============================================   NUEVO LAYOUT SPLIT-SCREEN (60/40)   ============================================ *//* Contenedor principal sin padding para que las columnas peguen a los bordes */.auth-split-container {    display: flex;    min-height: 100vh;    width: 100%;    overflow: hidden;}/* Columna Izquierda: Imagen y Branding (60%) */.auth-brand-side {    flex: 0 0 60%;    background: linear-gradient(rgba(34, 52, 85, 0.8), rgba(34, 52, 85, 0.8)),                 url('/public/img/bg-auth.jpg') center/cover no-repeat;    display: flex;    flex-direction: column;    align-items: center;    justify-content: center;    color: white;    padding: 3rem;    text-align: center;}.auth-brand-content img {    max-width: 250px;    height: auto;    margin-bottom: 1.5rem;}/* Retoque para que los títulos se vean potentes con Inter */.auth-header h1 {    font-family: 'Inter', sans-serif;    color: #223455;    font-weight: 800; /* Usamos el peso máximo para un look premium */    letter-spacing: -0.02em; /* Un pequeño ajuste de espaciado típico de Inter */}.auth-brand-content h2 {    font-family: 'Inter', sans-serif;    font-weight: 300; /* Inter se ve preciosa en peso ligero */    font-size: 1.5rem;    line-height: 1.4;    letter-spacing: 0.5px;    opacity: 0.85;}/* Columna Derecha: Formularios (40%) */.auth-form-side {    flex: 0 0 40%;    background-color: #f8fafc;    display: flex;    align-items: center;    justify-content: center;    padding: 2rem;    overflow-y: auto;}/* Ajustamos la card para que no tenga sombras pesadas en este layout */.auth-card-clean {    width: 100%;    max-width: 400px;    background: transparent;}/* RESPONSIVE: Tablets (Split 50/50 o similar) y Móviles */@media (max-width: 1024px) {    .auth-brand-side { flex: 0 0 50%; }    .auth-form-side { flex: 0 0 50%; }}@media (max-width: 768px) {    .auth-brand-side {        display: none;    }    .auth-form-side {        flex: 0 0 100%;        padding: 1.5rem;        min-height: 100vh;        align-items: flex-start; /* Para que el formulario empiece arriba en móviles */        padding-top: 3rem;    }    .auth-header {        text-align: center !important; /* Forzamos centrado en móvil */    }    .auth-header h1 {        font-size: 1.5rem; /* Tamaño más pequeño para móviles */    }    .auth-card-clean {        max-width: 100%;    }	.auth-header p.text-muted {        display: none !important;    }}
.home-hero-section {
    position: relative;
    background-color: #1a2537;
    
    /* El ../ es la clave para salir de la carpeta css */
    background-image: 
        linear-gradient(rgba(26, 37, 55, 0.85), rgba(26, 37, 55, 0.95)), 
        url('../img/tests-informatica-oposiciones-administrativo.webp');
    
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    border-bottom: 4px solid #269571;
}

/* Fallback para navegadores antiguos con el mismo ajuste de ruta */
@supports not (background-image: url('../img/tests-informatica-oposiciones-administrativo.webp')) {
    .home-hero-section {
        background-image: 
            linear-gradient(rgba(26, 37, 55, 0.85), rgba(26, 37, 55, 0.95)), 
            url('../img/tests-informatica-oposiciones-administrativo.jpg');
    }
}
/* Typography & Badges */
.home-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(13, 110, 253, 0.3);
}
/* Centrado para móviles */
@media (max-width: 768px) {
    .home-badge {
        display: table; /* Permite centrar con margin auto respetando el ancho del contenido */
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}
.home-hero-title {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 2.8rem;
    color: #ffffff;
    line-height: 1;
	font-weight: 900;
    letter-spacing: -0.02em;
}

.home-hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
}

/* Buttons - Rediseño Técnico Premium */
.home-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 700;
    background-color: #269571; /* Verde institucional */
    color: white !important;
    /* Forzamos el borde verde desde el inicio */
    border: 2px solid #269571 !important; 
    font-size: 1rem;
    letter-spacing: -0.01em;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.home-btn-primary:hover {
    background-color: #1e7a5c; /* Verde más profundo */
    /* El borde cambia al mismo verde oscuro del fondo para que sea invisible o uniforme */
    border-color: #1e7a5c !important; 
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(38, 149, 113, 0.3);
    color: white !important;
}

/* Eliminamos el posible borde azul de Bootstrap (outline) al hacer click o foco */
.home-btn-primary:focus, 
.home-btn-primary:active {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(38, 149, 113, 0.4) !important; /* Brillo verde en lugar de azul */
    border-color: #1e7a5c !important;
    transform: translateY(0);
}

.home-btn-outline {
    /* Mantenemos tus preferencias de color y bordes */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 2px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Sincronización de tamaño con el botón verde */
    padding: 12px 32px;  /* Mismo padding que el verde */
    font-size: 1rem;     /* Misma fuente que el verde */
    letter-spacing: -0.01em; 
}

/* Ajuste específico para el icono para que no se vea descompensado */
.home-btn-outline i {
    font-size: 1rem; /* El icono ahora acompaña al texto perfectamente */
}

/* Comportamiento en hover para mantener la fluidez */
.home-btn-outline:hover {
    transform: translateY(-2px); /* Misma elevación que el verde */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); /* Brillo sutil */
}
@media (max-width: 768px) {
    /* Este es el contenedor que manda sobre el ancho total */
    .home-hero-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Forzamos el mismo ancho que el texto .home-hero-lead */
        max-width: 550px !important; 
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 8px !important;
        padding: 0 15px; /* Ajuste para que los bordes no toquen el cristal del móvil */
    }

    .home-btn-primary, 
    .home-btn-outline {
        /* Eliminamos anchos mínimos o paddings que los ensanchen de más */
        flex: 1 1 50% !important; 
        min-width: 0 !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        border-radius: 4px; /* Un poco más técnico y afilado */
    }

    /* Reducimos el icono al mínimo para que el texto sea el protagonista */
    .home-hero-actions i {
        font-size: 0.8rem;
        margin-right: 4px !important;
    }
}
/* Hero Check List */
.home-hero-check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-check-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.home-check-item i {
    color: #269571;
}
@media (max-width: 768px) {
    .home-hero-check-list {
        /* Mantenemos el bloque centrado */
        max-width: 300px; 
        margin-left: auto;
        margin-right: auto;
        
        /* Desplazamiento sutil hacia la derecha para equilibrio visual */
        padding-left: 20px; 
        
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
    }

    .home-check-item {
        color: rgba(255, 255, 255, 0.9); /* Un pelín más de brillo */
        font-size: 0.85rem;
    }

    .home-check-item i {
        color: #ffffff !important; /* Iconos blancos */
        margin-right: 10px; /* Un poco más de aire entre icono y texto */
    }
}

/* The Card Side */
.home-hero-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.home-card-inner {
    padding: 40px;
}

.home-card-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a2537;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em; /* Opcional: mejora la estética en pesos tan altos */
}
.text-accent-green {
    color: #269571;
    font-weight: 600; /* Le damos un poco de grosor para que resalte más sobre el fondo */
}
.home-card-desc {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Feature boxes inside card */
.home-feature-box {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.home-feature-icon {
    width: 24px;
    height: 24px;
    background: #d1e7dd;
    color: #198754; /* Success green de tu diseño original */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 3px;
}

.home-feature-info {
    display: flex;
    flex-direction: column;
}

.home-feature-label {
    color: #1a2537;
    font-weight: 700;
    font-size: 0.95rem;
}

.home-feature-sub {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .home-hero-check-list { grid-template-columns: 1fr; }
    .home-card-inner { padding: 25px; }
	.home-hero-title { 
        font-size: 2.2rem; 
        text-align: center;
    }
	.home-hero-break {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.2rem; /* Pequeño ajuste de espacio si lo necesitas */
    }
	.home-hero-lead {
        text-align: justify;      /* Centra el texto */
        margin-left: auto;       /* Asegura el centrado del bloque */
        margin-right: auto;      /* Asegura el centrado del bloque */
        line-height: 1.3;        /* Líneas más juntas */
        font-size: 0.9rem;      /* Opcional: un pelín más pequeño para mejor ajuste */
        padding: 0 1rem;         /* Evita que el texto toque los bordes de la pantalla */
    }
	.home-card-desc {
    text-align: justify;
	}
	.home-card-title {
		text-align: center;
	}
}
@media (min-width: 769px) {
    .home-hero-break {
        display: inline;
    }
}
/* Títulos de sección generales para la home */
.home-section-title {
    color: #1a2537;
    font-size: 2rem;
    position: relative;
	margin-top: 20px;
}

.home-title-underline {
    width: 60px;
    height: 4px;
    background-color: #269571;
    border-radius: 2px;
}

.home-section-lead {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas específicas de la sección Target */
.home-target-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    display: flex;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.home-target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(13, 110, 253, 0.2);
}

.home-target-icon {
    width: 50px;
    height: 50px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.home-target-body {
    flex-grow: 1;
}

.home-target-h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2537;
    margin-bottom: 12px;
}

.home-target-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Ajuste móvil */
@media (max-width: 576px) {
    .home-target-card {
        flex-direction: column;
        text-align: center;
    }
    .home-target-icon {
        margin: 0 auto 15px auto;
    }
}

/* Caja Blanca con Borde Azul Oscuro */
.home-cta-white-box {
    background-color: #ffffff;
    border: 2px solid #1a2537; /* Borde rectangular azul oscuro acorde al diseño */
    border-radius: 8px; /* Bordes ligeramente suavizados pero manteniendo el look rectangular */
    box-shadow: 0 4px 12px rgba(26, 37, 87, 0.05);
    position: relative;
}

/* Icono en versión técnica oscura */
.home-cta-status-icon-dark {
    width: 60px;
    height: 60px;
    background: #1a2537;
    color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.home-cta-title-dark {
    color: #1a2537;
    font-size: 1.8rem;
    font-weight: 800;
}

.home-cta-text-dark {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta-tag-dark {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #1a2537;
    font-weight: 700;
    text-transform: uppercase;
}

/* Botón Outline en azul oscuro */
.home-btn-tech-outline-dark {
    padding: 12px 32px;
    font-weight: 700;
    border-radius: 6px;
    border: 2px solid #1a2537;
    color: #1a2537;
    background: transparent;
    transition: all 0.2s ease;
}

.home-btn-tech-outline-dark:hover {
    background-color: #1a2537;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Reutilizamos el botón primario que ya definimos */
.home-btn-tech-lg {
    padding: 12px 32px;
    font-weight: 700;
    border-radius: 6px;
    background-color: #0d6efd;
    border: none;
    color: white;
    transition: all 0.2s ease;
}

.home-btn-tech-lg:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

@media (max-width: 768px) {
    .home-cta-title-dark { font-size: 1.5rem; }
    .home-cta-actions { flex-direction: column; }
}
/* Sección de Temas Full Width */
.home-temas-full-width {
    background-color: #1a2537; /* Azul marino oscuro */
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Títulos y Subtítulos */
.home-temas-title {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
}

.home-temas-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* Card de estado vacío (cuando no hay temas) */
.home-temas-empty-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Estilo para la línea decorativa bajo el título */
.home-title-underline {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    margin-top: 15px;
}

/* Ajuste para que las tema-card se vean bien sobre oscuro si fuera necesario */
/* Nota: Si tema-card.php tiene fondo blanco, resaltarán mucho sobre el azul marino, 
lo cual es un efecto muy profesional (tipo Dashboard). */

@media (max-width: 768px) {
    .home-temas-title {
        font-size: 1.6rem;
    }
}
/* Sección Pasos */
.home-step-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease;
}

.home-step-card:hover {
    transform: translateY(-5px);
}

.home-step-number {
    width: 50px;
    height: 50px;
    background-color: #1a2537; /* Azul oscuro acorde al diseño */
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.home-step-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2537;
    margin-bottom: 15px;
}

.home-step-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Alerta de información con borde azul oscuro (Estilo Rectangular solicitado) */
.home-info-box-bordered {
    background-color: #ffffff;
    border: 2px solid #1a2537; /* Borde azul oscuro rectangular */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.home-info-icon-wrap {
    color: #0d6efd;
    font-size: 1.5rem;
    line-height: 1;
}

.home-info-box-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ajustes para la línea de título (reutilizada) */
.home-title-underline {
    width: 50px;
    height: 4px;
    background-color: #269571;
    border-radius: 2px;
}
/* --- Estilos Menú Principal --- */
.principal-btn-acceder {
    background-color: #269571;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    /* Definimos el borde aquí para que no haya saltos de tamaño al hacer hover */
    border: 2px solid #269571; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Botón Acceder - Estado Hover (Marco verde) */
.principal-btn-acceder:hover {
    background-color: transparent; 
    color: #269571 !important;    
    /* El borde se mantiene visible creando el efecto de "marco" */
    border: 2px solid #269571;    
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(38, 149, 113, 0.1);
}
.principal-noticias-link {
    /* Gradiente de amarillo AGE a amarillo claro */
    background: linear-gradient(90deg, #edcf38, #f6e280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600; /* Más grosor para que el amarillo destaque */
    text-decoration: none;
    font-size: 0.70rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    /* Reducido a 1s para que parpadee más rápido */
    animation: principal-blink 1s infinite; 
}

.principal-noticias-link:hover {
    -webkit-text-fill-color: #269571; /* Cambia a tu verde al poner el cursor */
    animation-play-state: paused;
}

/* Animación de parpadeo rápida y cromática */
@keyframes principal-blink {
    0% { opacity: 1; filter: drop-shadow(0 0 0px rgba(237, 207, 56, 0)); }
    50% { 
        opacity: 0.7; 
        /* Pequeño brillo amarillo en el punto medio */
        filter: drop-shadow(0 0 2px rgba(237, 207, 56, 0.5)); 
    }
    100% { opacity: 1; filter: drop-shadow(0 0 0px rgba(237, 207, 56, 0)); }
}

/* Asegurar que el botón ocupe el ancho en móvil si es necesario */
@media (max-width: 991px) {
    .offcanvas-body .principal-noticias-link {
    font-size: 1.1rem;
    padding: 10px;
    justify-content: center;
    width: 100%;
}
/* Registro en móvil (Cuadrado técnico como Acceder) */
.principal-mobile-register {
    background-color: transparent;
    color: #1a2537;
    border: 2px solid #1a2537;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Contenedor de utilidades */
.principal-mobile-utils {
    display: flex;
    flex-direction: column;
}

/* Noticias en móvil: Fondo suave para que el amarillo se lea bien */
.principal-mobile-news-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    color: #1a2537;
    border-radius: 8px;
    padding-left: 1rem;
    background: linear-gradient(90deg, #edcf3815, transparent); /* Fondo amarillo muy tenue */
    margin-bottom: 0.5rem;
}

.principal-mobile-news-link i {
    color: #edcf38; /* El icono mantiene el amarillo fuerte */
    font-size: 1.2rem;
}

/* Enlace de Soporte (Accesibilidad) */
.principal-mobile-support-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    color: #64748b;
    padding-left: 1rem;
}

.principal-mobile-support-link i {
    font-size: 1.2rem;
}
/* Botón PWA Desktop */
.pwa-install-btn-desktop {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-install-btn-desktop:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.pwa-install-btn-desktop i {
    margin-right: 5px;
    font-size: 10px;
}

/* Botón PWA Mobile */
.pwa-install-btn-mobile {
    background: transparent;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-install-btn-mobile:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.pwa-install-btn-mobile i {
    margin-right: 5px;
    font-size: 10px;
}

.home-testimonials-section {
    border-top: 1px solid #eef2f7;
}

.home-testimonials-carousel {
    padding: 0 2.75rem;
}

.home-testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.36);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-testimonial-card:hover {
    border-color: rgba(16, 185, 129, 0.62);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.home-testimonial-badge {
    background: rgba(16, 185, 129, 0.12);
    border-radius: 6px;
    color: #047857;
    display: inline-flex;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.42rem 0.58rem;
    text-transform: uppercase;
}

.home-testimonial-user {
    color: #14213d;
    font-size: 0.82rem;
    font-weight: 900;
}

.home-testimonial-stars {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.home-testimonial-stars .is-active {
    color: #e9d425;
}

.home-testimonial-comment {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-testimonials-control {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 999px;
    color: #047857;
    height: 38px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
}

.home-testimonials-control:hover {
    background: #10b981;
    color: #ffffff;
}

.home-testimonials-control.carousel-control-prev {
    left: 0;
}

.home-testimonials-control.carousel-control-next {
    right: 0;
}

@media (max-width: 767px) {
    .home-testimonials-carousel {
        padding: 0;
    }

    .home-testimonials-control {
        display: none;
    }

    .home-testimonial-card {
        margin-bottom: 0.85rem;
    }
}
