/* ============================================
   DASHBOARD — Minimal & Elegant
   ============================================ */

body {
    background: var(--bg-secondary);
}

/* --- Header mejorado --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-logo-icono {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-nombre {
    color: var(--text-secondary);
    font-weight: 500;
}

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

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

.nav-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
}

/* --- Loading --- */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-glass);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 4rem auto;
}

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

/* --- Bienvenida --- */
.bienvenida-section {
    margin: 0 -2rem 0.75rem -2rem;
    padding: 0 2rem 0.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
    animation: fadeSlideUp 0.4s ease-out;
}

.bienvenida-section h1 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0;
}

.bienvenida-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Cards grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeSlideUp 0.5s ease-out both;
    box-shadow: var(--shadow-sm);
}

.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }

.info-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-md);
}

.perfil-card {
    grid-column: 1 / -1;
}

.card-header {
    padding: 1.25rem 1.5rem 0;
}

.card-header h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* --- Perfil card --- */
.perfil-contenido {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.perfil-datos h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.1rem;
}

.perfil-datos p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.badges-row {
    display: flex;
    gap: 0.35rem;
}

/* --- Placeholder content --- */
.placeholder-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.placeholder-icono {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.placeholder-contenido p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.placeholder-contenido span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Accesos rapidos --- */
.acceso-rapido {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    text-decoration: none;
}

.acceso-rapido:hover {
    opacity: 0.8;
}

.acceso-rapido span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

a.header-logo {
    text-decoration: none;
}

.acceso-icono {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-azul {
    background: rgba(250, 204, 21, 0.08);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.15);
}

.ai-violeta {
    background: rgba(234, 179, 8, 0.08);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.15);
}

.ai-verde {
    background: rgba(52, 211, 153, 0.08);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .bienvenida-section h1 {
        font-size: 1.4rem;
    }

    .perfil-contenido {
        flex-direction: column;
        text-align: center;
    }

    .badges-row {
        justify-content: center;
    }
}
