﻿/* ========================================
   ESTILOS CENTRALIZADOS - NEURO PRO
   ======================================== */

/* ===== NEURO PRO TITLE ===== */
.neuropro-title {
    background-image: linear-gradient(to right, #729bff, #a2bffa, #e38888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

body.dark-mode .neuropro-title {
    filter: drop-shadow(0 2px 4px rgba(114, 155, 255, 0.4));
}

/* ===== MODULE CARDS (General) ===== */
.module-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #729bff;
}

body.dark-mode .module-card {
    background-color: #1f2937;
}

body.dark-mode .module-card:hover {
    background-color: #374151;
    border-color: #e38888;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

body.dark-mode .status-completed {
    background-color: #064e3b;
    color: #6ee7b7;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

body.dark-mode .status-pending {
    background-color: #78350f;
    color: #fcd34d;
}

/* ===== GLASSMORPHISM (ARREGLADO) ===== */
.step-view {
    transition: opacity 0.3s ease-in-out;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(114, 155, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Corrección: Se cambió .dark por body.dark-mode */
body.dark-mode .glass-card {
    background: rgba(31, 41, 55, 0.85);
    /* Un poco más opaco para legibilidad */
    border: 1px solid rgba(114, 155, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    background: linear-gradient(135deg, rgba(114, 155, 255, 0.1) 0%, rgba(227, 136, 136, 0.1) 100%);
    border-left: 4px solid #729bff;
}

body.dark-mode .welcome-section {
    background: linear-gradient(135deg, rgba(114, 155, 255, 0.2) 0%, rgba(227, 136, 136, 0.2) 100%);
    border-left-color: #e38888;
}

.welcome-badge-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--alef-primary), var(--alef-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(114, 155, 255, 0.4);
}

/* ===== ACTIVITY CARDS (General Hover) ===== */
.activity-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== MODALS ===== */
.modal-backdrop {
    z-index: 9998 !important;
}

.modal {
    z-index: 9999 !important;
}

.modal-dialog {
    z-index: 10000 !important;
}

/* ===== MOBILE MENU ITEMS ===== */
.mobile-nav {
    transition: all 0.3s ease;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #374151;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

body.dark-mode .mobile-menu-item {
    color: #e5e7eb;
    border-bottom-color: #374151;
}

.mobile-menu-item:hover {
    background-color: #f3f4f6;
    padding-left: 28px;
}

body.dark-mode .mobile-menu-item:hover {
    background-color: #374151;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
    display: block;
    max-height: 500px;
}

/* ========================================
   VARIABLES Y ESTRUCTURA BASE
   ======================================== */

:root {
    /* Paleta */
    --alef-primary: #729BFF;
    --alef-secondary: #E38888;
    --alef-green-base: #88D48E;
    --alef-violet-base: #B2A1FF;
    --alef-teal-base: #09cbb4;
    --alef-orange: #ffa500;
    --alef-yellow: #faeb36;
    /* Dark Mode Base */
    --gray-50: #f9fafb;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-200: #e5e7eb;
}

body {
    transition: background-color 0.5s ease, color 0.5s ease;
    font-family: "Poppins", sans-serif;
}

body.dark-mode {
    background-color: var(--gray-900) !important;
    color: var(--gray-200) !important;
}

/* Header Móvil */
.mobile-header {
    background-color: white;
    color: var(--gray-900);
    transition: background-color 0.5s ease;
    z-index: 1020;
}

body.dark-mode .mobile-header {
    background-color: var(--gray-800) !important;
    color: var(--gray-200) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important;
}

/* Menu Toggle Icons */
.menuToggle-mobile ion-icon {
    color: var(--gray-800);
}

body.dark-mode .menuToggle-mobile ion-icon {
    color: var(--gray-200);
}

/* Sidebar */
.navigation {
    background-color: white;
}

body.dark-mode .navigation {
    background-color: var(--gray-800);
    box-shadow: 0 10px 15px -3px rgba(114, 155, 255, 0.2) !important;
}

body.dark-mode .navigation ul li a .icon,
body.dark-mode .navigation ul li a .text {
    color: var(--gray-200);
}

body.dark-mode .navigation ul li.active a .icon {
    color: #fff;
}

body.dark-mode .navigation ul li.active a .text {
    color: var(--clr);
}

/* Footer */
footer {
    border-color: #e5e7eb !important;
}

body.dark-mode footer {
    border-color: var(--gray-800) !important;
    color: #9ca3af !important;
}

/* Utilidades Texto */
.custom-text-primary {
    color: var(--gray-900);
}

body.dark-mode .custom-text-primary {
    color: var(--gray-200);
}

.text-body-custom {
    color: #374151;
}

body.dark-mode .text-body-custom {
    color: #d1d5db;
}

.text-muted-custom {
    color: #4b5563;
}

body.dark-mode .text-muted-custom {
    color: #9ca3af;
}

/* Utilidades Color Marca */
.text-alef-primary {
    color: var(--alef-primary) !important;
}

.text-alef-secondary {
    color: var(--alef-secondary) !important;
}

.text-alef-red {
    color: #E38888 !important;
}

.text-alef-blue {
    color: #729BFF !important;
}

.text-alef-teal {
    color: #09cbb4 !important;
}

.text-alef-green {
    color: #88D48E !important;
}

.text-alef-violet {
    color: #B2A1FF !important;
}

/* Bordes y Fondos */
.border-alef-secondary {
    border-color: var(--alef-secondary) !important;
}

.border-alef-primary {
    border-color: var(--alef-primary) !important;
}

.border-alef-teal {
    border-color: #09cbb4 !important;
}

.bg-alef-secondary-subtle {
    background-color: rgba(227, 136, 136, 0.1);
}

.bg-alef-primary-subtle {
    background-color: rgba(114, 155, 255, 0.1);
}

/* Card Backgrounds (General) */
.card-bg {
    background-color: #ffffff;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-mode .card-bg {
    background-color: #1f2937;
    color: #e5e7eb;
}

/* Value Cards (Home) */
.value-card {
    background-color: #f9fafb;
    transition: transform 0.3s ease, background-color 0.5s ease, color 0.5s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
}

body.dark-mode .value-card {
    background-color: #374151;
    border-color: #4b5563;
}

/* Typography Helpers */
.display-4-custom {
    font-size: 2.5rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .display-4-custom {
        font-size: 3.5rem;
    }
}

.hero-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

strong {
    color: #111827;
}

body.dark-mode strong {
    color: #f3f4f6;
}

body.dark-mode strong.text-alef-secondary {
    color: var(--alef-secondary) !important;
}

body.dark-mode strong.text-alef-blue {
    color: #729BFF !important;
}

/* ========================================
   COMPONENTES ESPECÍFICOS
   ======================================== */

/* ACCORDION */
.accordion-item {
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: background-color 0.5s ease, box-shadow 0.3s ease;
}

body.dark-mode .accordion-item {
    background-color: #1f2937;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #374151;
}

.accordion-header {
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 12px;
    color: var(--alef-primary);
}

.accordion-header:hover {
    background-color: #f3f4f6;
}

body.dark-mode .accordion-header:hover {
    background-color: #374151;
}

body.dark-mode .accordion-header,
body.dark-mode .accordion-header span {
    color: #e5e7eb;
}

.accordion-header.open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.dark-mode .accordion-header.open {
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-content.open {
    max-height: 1000px;
}

/* Adaptive Text Colors */
.text-adaptive {
    color: var(--alef-primary) !important;
}

body.dark-mode .text-adaptive {
    color: var(--alef-secondary) !important;
}

.text-adaptive-inverse {
    color: var(--alef-secondary) !important;
}

body.dark-mode .text-adaptive-inverse {
    color: var(--alef-primary) !important;
}

/* FORMS */
.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(114, 155, 255, 0.1);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

body.dark-mode .form-container {
    background: #1f2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(114, 155, 255, 0.2);
}

.custom-input {
    background-color: #fff;
    color: var(--gray-900);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--alef-primary);
    box-shadow: 0 0 0 4px rgba(114, 155, 255, 0.2);
    outline: none;
}

body.dark-mode .custom-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .custom-input::placeholder {
    color: #9ca3af;
}

body.dark-mode .custom-input:focus {
    border-color: var(--alef-primary);
    background-color: #4b5563;
}

/* BUTTONS */
.btn-alef-submit {
    background-color: var(--alef-secondary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-alef-submit:hover {
    background-color: var(--alef-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-cancel-custom {
    border: 2px solid #d1d5db;
    color: #374151;
    border-radius: 0.75rem;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-cancel-custom:hover {
    background-color: #f3f4f6;
}

body.dark-mode .btn-cancel-custom {
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .btn-cancel-custom:hover {
    background-color: #374151;
}

.btn-blue-action {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    font-weight: 700;
}

.btn-blue-action:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
}

.link-back {
    color: var(--alef-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.link-back:hover {
    color: var(--alef-secondary);
}

/* ACTIVITY CARDS & GRID */
.activity-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    background-color: #fff;
    /* Asegurar fondo blanco por defecto */
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .activity-card {
    background-color: #374151;
    border: 1px solid #4b5563;
}

body.dark-mode .activity-card:hover {
    border-color: var(--alef-primary);
}

.border-l-blue {
    border-left: 5px solid #3b82f6;
}

.border-l-green {
    border-left: 5px solid #10b981;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-box.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.icon-box.violet {
    background-color: rgba(178, 161, 255, 0.15);
    color: var(--alef-violet);
}

/* Activity card border colors */
.border-l-blue {
    border-left: 4px solid var(--alef-primary);
}

.border-l-green {
    border-left: 4px solid var(--alef-green);
}

.border-l-violet {
    border-left: 4px solid var(--alef-violet);
}

/* Relación de Conceptos items */
.relacionar-item {
    transition: all 0.2s ease;
    border: 2px solid var(--border-subtle);
}

.relacionar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.border-alef-primary {
    border-color: var(--alef-primary) !important;
    box-shadow: 0 0 0 2px rgba(114, 155, 255, 0.25);
}

/* SOPA DE LETRAS GRID */
.sopa-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    max-width: 500px;
    margin: 0 auto;
    background-color: #f3f4f6;
    padding: 10px;
    border-radius: 10px;
}

body.dark-mode .sopa-grid-container {
    background-color: #111827;
}

.sopa-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sopa-cell:hover {
    background-color: var(--alef-primary);
    color: white;
    transform: scale(1.1);
}

body.dark-mode .sopa-cell {
    background-color: #374151;
    color: #e5e7eb;
    box-shadow: none;
}

/* CRUCIGRAMA GRID */
.crucigrama-grid-container {
    background-color: #1f2937;
    padding: 8px;
    border-radius: 8px;
}

.crucigrama-cell {
    aspect-ratio: 1 / 1;
    position: relative;
    min-width: 24px;
    min-height: 24px;
}

.crucigrama-cell.blocked {
    background-color: #1f2937;
}

.crucigrama-cell.active {
    background-color: white;
    border: 1px solid #d1d5db;
}

body.dark-mode .crucigrama-cell.active {
    background-color: #374151;
    border-color: #4b5563;
}

.crucigrama-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1f2937;
    text-transform: uppercase;
    padding: 0;
}

body.dark-mode .crucigrama-input {
    color: #f3f4f6;
}

.crucigrama-input:focus {
    outline: 2px solid var(--alef-primary);
    outline-offset: -2px;
}

.crucigrama-input.correct {
    background-color: rgba(136, 212, 142, 0.3);
    color: #166534;
}

body.dark-mode .crucigrama-input.correct {
    background-color: rgba(136, 212, 142, 0.2);
    color: #86efac;
}

.crucigrama-input.incorrect {
    background-color: rgba(227, 136, 136, 0.3);
    color: #991b1b;
}

body.dark-mode .crucigrama-input.incorrect {
    background-color: rgba(227, 136, 136, 0.2);
    color: #fca5a5;
}

.crucigrama-num {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--alef-primary);
    line-height: 1;
    z-index: 1;
}

body.dark-mode .sopa-cell:hover {
    background-color: var(--alef-secondary);
    color: white;
}

/* Helper para índice */
.index-number {
    color: #9ca3af;
    font-weight: 700;
    font-size: 1.5rem;
}

body.dark-mode .index-number {
    color: #6b7280;
}

.empty-state-box {
    background-color: var(--gray-50);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}

body.dark-mode .empty-state-box {
    background-color: #374151;
}

/* ========================================================= */
/* CORRECCIÓN COLORES NAVBAR (MODO CLARO)                    */
/* ========================================================= */

/* 1. Estado Normal (Inactivo) - Modo Claro */
.navigation ul li a .text {
    color: #111827 !important;
    /* Texto Negro (Gray-900) en lugar de azul */
    font-weight: 500;
}

.navigation ul li a .icon {
    color: #111827 !important;
    /* Icono Negro para que se vea en fondo blanco */
}

/* 2. Estado ACTIVO (Seleccionado) - La burbuja de color */
.navigation ul li.active a .icon {
    color: #ffffff !important;
    /* Icono BLANCO dentro de la burbuja de color */
}

.navigation ul li.active a .text {
    /* Opcional: El texto activo puede ser del color de la sección o negro */
    color: var(--clr) !important;
    font-weight: 700;
}

/* 3. Asegurar que el Modo Oscuro siga funcionando bien */
body.dark-mode .navigation ul li a .text,
body.dark-mode .navigation ul li a .icon {
    color: #e5e7eb !important;
    /* Texto e iconos claros en fondo oscuro */
}

/* En modo oscuro, el icono activo también debe ser blanco (dentro de la burbuja) */
body.dark-mode .navigation ul li.active a .icon {
    color: #ffffff !important;
}

/* ========================================
   DASHBOARD CALIFICACIONES STYLES
   ======================================== */

/* Dashboard Body */
.dashboard-body {
    background-color: #f9fafb;
}

body.dark-mode .dashboard-body {
    background-color: #111827;
}

/* Main Content Area */
.main-content {
    margin-left: 120px;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: margin-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: "Inter", sans-serif;
}

.main-title-container {
    font-family: "Inter", sans-serif;
}

.main-title {
    color: #729bff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

body.dark-mode .main-title {
    color: #e38888;
    filter: drop-shadow(0 2px 4px rgba(227, 136, 136, 0.4));
}

.hero-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-logo {
    height: 48px;
    width: auto;
}

/* Stat Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(114, 155, 255, 0.2);
}

body.dark-mode .card {
    background-color: #1f2937;
    color: #f9fafb;
}

.stat-card-blue {
    background-color: #e0f2fe;
    border-color: #729bff;
}

.stat-card-green {
    background-color: #d1fae5;
    border-color: #88d48e;
}

.stat-card-red {
    background-color: #fee2e2;
    border-color: #e38888;
}

body.dark-mode .stat-card-blue,
body.dark-mode .stat-card-green,
body.dark-mode .stat-card-red {
    background-color: #374151;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .stat-card-blue .text-alef-blue {
    color: #729bff !important;
}

body.dark-mode .stat-card-green .text-alef-green {
    color: #88d48e !important;
}

body.dark-mode .stat-card-red .text-alef-red {
    color: #e38888 !important;
}

/* Content Shadow */
.content-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

body.dark-mode .content-shadow {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.05),
        0 2px 4px -2px rgba(255, 255, 255, 0.03);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.social-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    width: 50px;
    height: 50px;
    text-decoration: none;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease-out;
}

body.dark-mode .social-button {
    background: #1f2937;
}

.social-button::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: 0.3s;
}

.social-button:focus,
.social-button:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-button:focus::after,
.social-button:hover::after {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    margin-left: calc(-50% - 2px);
}

.social-button ion-icon {
    position: relative;
    z-index: 1;
    transition: 0.3s;
    font-size: 1.5rem;
}

.social-button--facebook {
    color: #3b5999;
}

.social-button--facebook::after {
    background: #3b5999;
}

.social-button--twitter {
    color: #55acee;
}

.social-button--twitter::after {
    background: #55acee;
}

.social-button--instagram {
    color: #e4405f;
}

.social-button--instagram::after {
    background: #e4405f;
}

.social-button--linkedin {
    color: #0077b5;
}

.social-button--linkedin::after {
    background: #0077b5;
}

.social-button--mail {
    color: #e38888;
}

.social-button--mail::after {
    background: #e38888;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .main-content.menu-shifted {
        transform: translateX(270px);
    }
}

/* ========================================================= */
/* PERFIL DE USUARIO INTEGRADO EN EL MENÚ                    */
/* ========================================================= */
/* Elemento de lista especial para el perfil */
.navigation ul li.profile-item {
    list-style: none;
    position: relative;
    width: 100%;
    height: 70px; /* Un poco más alto para que quepa el nombre */
    padding: 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    pointer-events: none; /* No clickable */
}

/* Contenedor interno */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

    /* El Avatar ocupa el lugar del ICONO */
    .profile-container .icon-avatar {
        position: relative;
        display: flex; /* Centrado perfecto */
        align-items: center;
        justify-content: center;
        min-width: 55px;
        height: 55px;
        line-height: 60px;
        border-radius: 10px;
        z-index: 10;
    }

/* Círculo visual del avatar */
.avatar-circle {
    width: 45px;
    height: 45px;
    background: var(--alef-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(114, 155, 255, 0.3);
}

/* El Texto del nombre ocupa el lugar del TEXTO del menú */
.profile-container .text-user {
    position: relative;
    padding: 0 15px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    white-space: nowrap;
}

/* Mostrar texto cuando el menú se abre */
.navigation.open .profile-container .text-user {
    opacity: 1;
    visibility: visible;
}

/* Ajustes Dark Mode */
body.dark-mode .navigation ul li.profile-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .text-user strong {
    color: #fff;
}

body.dark-mode .text-user small {
    color: #9ca3af;
}

/* ========================================================= */
/* ARREGLO PERFIL MODO OSCURO                                */
/* ========================================================= */

/* Texto del Nombre */
.profile-name {
    color: #1f2937; /* Gris oscuro por defecto */
    transition: color 0.3s ease;
}

/* Texto del Estado (En línea) */
.profile-status {
    color: #6b7280; /* Gris medio por defecto */
    transition: color 0.3s ease;
}

/* --- MODO OSCURO --- */
body.dark-mode .profile-name {
    color: #f3f4f6 !important; /* Blanco casi puro */
}

body.dark-mode .profile-status {
    color: #d1d5db !important; /* Gris muy claro */
}

/* Línea divisoria en modo oscuro */
body.dark-mode .navigation ul li.profile-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* ========================================================= */
/* ESTILOS DE PERFIL DE USUARIO (VISTA DETALLE)              */
/* ========================================================= */

/* 1. Banner Superior */
.profile-banner-bg {
    background: linear-gradient(135deg, var(--alef-primary) 0%, #b2a1ff 100%);
    height: 200px;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

body.dark-mode .profile-banner-bg {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    border-bottom: 2px solid var(--alef-primary);
}

/* 2. Tarjeta Flotante (Contenedor Principal de Info) */
.profile-floating-card {
    margin-top: -80px; /* Efecto flotante sobre el banner */
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 1.5rem;
}

/* 3. Avatar Grande */
.profile-avatar-lg {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #fff;
    background-color: #f3f4f6;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .profile-avatar-lg {
    border-color: #1f2937; /* Borde oscuro para fusionarse con la tarjeta */
}

/* 4. Indicador de Estado (Punto verde) */
.status-indicator-online {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background-color: #10b981;
    border: 3px solid #fff;
    border-radius: 50%;
}

body.dark-mode .status-indicator-online {
    border-color: #1f2937;
}

/* 5. Insignias (Grid) */
.badge-item {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

    .badge-item:hover {
        transform: translateY(-5px);
        background-color: #eff6ff;
    }

body.dark-mode .badge-item {
    background-color: #374151;
}

    body.dark-mode .badge-item:hover {
        background-color: #4b5563;
    }

/* 6. Línea de Tiempo (Timeline) */
.timeline-list {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e5e7eb;
}

body.dark-mode .timeline-list {
    border-left-color: #4b5563;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: var(--alef-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(114, 155, 255, 0.2);
}

body.dark-mode .timeline-dot {
    border-color: #1f2937;
}

/* Colores específicos para los puntos */
.dot-primary {
    background-color: var(--alef-primary);
}

.dot-secondary {
    background-color: var(--alef-secondary);
}

.dot-violet {
    background-color: var(--alef-violet-base);
}


/* ========================================================= */
/* TABLAS ADAPTATIVAS (MODO OSCURO)                          */
/* ========================================================= */

.table {
    margin-bottom: 0; /* Quitar margen inferior default */
}

    /* Encabezados de tabla */
    .table thead th {
        background-color: transparent;
        border-bottom: 2px solid #e5e7eb;
        color: #6b7280; /* Gris medio */
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Celdas del cuerpo */
    .table tbody td {
        vertical-align: middle;
        border-bottom: 1px solid #f3f4f6;
        padding: 1rem 0.5rem;
        color: #374151; /* Gris oscuro */
    }

/* --- MODO OSCURO --- */
body.dark-mode .table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #9ca3af; /* Gris claro */
}

body.dark-mode .table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    color: #e5e7eb; /* Blanco suave */
}

/* Hover en filas */
.table-hover tbody tr:hover {
    background-color: rgba(114, 155, 255, 0.05); /* Azul muy sutil */
}

body.dark-mode .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ========================================================= */
/* MOBILE RESPONSIVE OPTIMIZATIONS                           */
/* ========================================================= */

/* Responsive containers - no max-width on mobile */
.responsive-container {
    margin: 0 auto;
}

@media (min-width: 768px) {
    .responsive-container {
        max-width: 900px;
    }
}

/* Form containers - minimal padding on mobile */
.form-container {
    padding: 1rem !important;
}

@media (min-width: 768px) {
    .form-container {
        padding: 2rem !important;
    }
}

@media (min-width: 992px) {
    .form-container {
        padding: 3rem !important;
    }
}

