/* --- 1. CONFIGURACIÓN BASE Y TIPOGRAFÍA --- */
body {
    background-image: url('../img/3.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: #1a1a2a; 
    min-height: 100vh;
    font-family: 'Montserrat', system-ui, Arial, sans-serif;
    color: #f0f4f8;
}

/* Contenedor principal para centralizar */
.asesores-container {
    max-width: 950px; 
    margin: 30px auto; 
    padding: 0 15px; 
}

/* --- 2. ENCABEZADO (DELGADO Y COMPACTO) --- */

.page-header {
    margin-bottom: 25px; 
    padding: 20px 25px; 
    border-radius: 12px; 
    
    background: rgba(40, 42, 48, 0.55); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.04);
    text-align: center;
}

.page-title {
    font-size: 26px; 
    font-weight: 800; 
    margin: 0;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title span {
    margin-right: 8px; 
    font-size: 30px; 
    color: #10b981; 
    line-height: 1;
}

.page-divider {
    width: 50px; 
    height: 2px; 
    background: linear-gradient(90deg, #10b981, #0ea5e9);
    margin: 10px auto 15px; 
    border-radius: 1px;
    transform: scaleX(0);
    animation: drawLine 1s ease-out 0.5s forwards; 
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

.page-desc {
    font-size: 14px; 
    color: #aeb9c4;
    margin: 0;
    max-width: 650px; 
    margin-left: auto;
    margin-right: auto;
}

/* --- 3. TARJETAS DE ASESOR (COMPACTAS Y DELGADAS) --- */

.asesor-card {
    margin-bottom: 15px; 
    padding: 15px; 
    border-radius: 12px; 
    
    background: rgba(18, 20, 24, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.5), 
        -6px -6px 12px rgba(40, 40, 50, 0.3), 
        inset 0 0 5px rgba(255, 255, 255, 0.02); 
    overflow: hidden;
    opacity: 0; 
    transform: translateY(10px); 
    animation: fadeInSlideUp 0.4s ease-out forwards; 
}

.asesor-card:nth-child(2) { animation-delay: 0.04s; }
.asesor-card:nth-child(3) { animation-delay: 0.08s; }
.asesor-card:nth-child(4) { animation-delay: 0.12s; }

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.asesor-card:hover {
    transform: translateY(-4px); 
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.6), 
        -8px -8px 16px rgba(40, 40, 50, 0.4);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; 
}

.asesor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asesor-name {
    font-size: 18px; 
    font-weight: 700; 
    letter-spacing: 0.3px;
    padding-bottom: 10px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    flex-grow: 1; 
    margin: 0;
    
    color: #10b981; 
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.1); 
}

/* Color del contador de tesis (General y Default) */
.total-tesis-count {
    font-size: 12px; 
    padding: 5px 12px; 
    /* Modificación 1: Aumentar el border-radius para el efecto de píldora */
    border-radius: 50px; 
    letter-spacing: 0.5px;
    
    /* Modificación 2: Degradado basado en la imagen (azul verdoso a verde esmeralda) */
    background: linear-gradient(45deg, #00c6ff, #00d68f); 
    /* Modificación 3: Color de texto blanco para mayor contraste */
    color: #ffffff; 
    
    /* Modificación 4: Sombra para darle profundidad */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
    
    align-self: flex-start; 
    margin-left: 10px;
    flex-shrink: 0;
}

/* ESTILO PARA ASESOR NO ESPECIFICADO (NEUTRO) */
.asesor-card.asesor-no-especificado .asesor-name {
    color: #94a3b8;
    text-shadow: none;
}
.asesor-card.asesor-no-especificado .total-tesis-count {
    background: linear-gradient(45deg, #475569, #64748b);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}


/* --- 4. ITEMS DE TESIS (COMPACTOS) --- */

.tesis-list {
    margin-top: 10px; 
    gap: 8px; 
}

.tesis-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    padding: 8px 14px; 
    
    border-radius: 10px; 
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3); 
    background: rgba(30, 32, 36, 0.7); 
    transition: all 0.15s ease-out; 
}

/* Efecto de hover (Aura Verde) */
.tesis-item:hover {
    transform: translateX(3px); 
    
    border: 1px solid #10b981; 
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.5); 
    background: rgba(35, 38, 43, 0.8); 
}

.tesis-content {
    flex-grow: 1;
    min-width: 0;
}

.tesis-title {
    font-size: 15px; 
    font-weight: 600; 
    padding-right: 10px; 
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden; 
    flex-grow: 1;
}

.tesis-meta {
    display: flex;
    gap: 6px; 
    align-items: center;
    flex-shrink: 0;
}

/* --- 5. BADGES (MÁS PEQUEÑOS) --- */

.badge-estado, .badge-rol {
    padding: 4px 8px; 
    border-radius: 8px; 
    font-size: 10px; 
    letter-spacing: 0.3px;
    font-weight: 600; 
}

.badge-aprobada { background-color: #059669; color: #e0f2f1; }
.rol-interno { background-color: #0ea5e9; color: #ecf8ff; }
.rol-externo { background-color: #fbbf24; color: #451a03; }

/* Link Ver */
.link-ver {
    font-weight: 500;
    padding: 4px 7px; 
    border-radius: 6px; 
    transition: all 0.15s ease;
    color: #10b981;
    text-decoration: none;
}

.link-ver:hover {
    color: #ffffff;
    background-color: #10b981;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.empty-msg {
    padding: 15px; 
    border-radius: 10px; 
    margin-top: 20px; 
    background: rgba(30, 32, 36, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.04);
    text-align: center;
    color: #9ca3af;
}

/* --- 6. MEDIA QUERIES (RESPONSIVE) --- */

@media (max-width: 900px) {
    .tesis-title {
        white-space: normal; 
        overflow: visible;
        font-size: 14px;
    }
} 

@media (max-width: 700px) {
    .asesor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .total-tesis-count {
        align-self: flex-end;
        margin-left: 0;
        margin-top: 5px;
    }
    .tesis-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 10px;
    }
    .tesis-title {
        width: 100%;
        white-space: normal;
        overflow: visible;
        padding-right: 0;
    }
    .tesis-meta {
        width: 100%;
        justify-content: flex-start;
    }
    .page-header {
        padding: 15px 10px;
    }
    .page-title {
        font-size: 20px;
    }
    .page-desc {
        font-size: 12px;
    }
}