/* =========================================
   ESTILOS GENERALES Y VARIABLES
   ========================================= */
:root {
    --bg-body: #f4f6f8;
    --primary-blue: #1565c0;
    --primary-dark: #0d47a1;
    --accent-cyan: #00bcd4;
    --accent-gold: #ffa000;
    --text-dark: #333;
    --text-muted: #666;
    --white: #ffffff;
    
}

body {
    background-color: var(--bg-body);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* =========================================
   HERO SECTION (PORTADA)
   ========================================= */
.alumni-hero {
    
    background-image: url('');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 60px; /* Compensa la navbar fija */
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   CONTENEDOR PRINCIPAL Y BOTÓN VOLVER
   ========================================= */
.alumni-section { padding: 60px 20px; }
.alumni-container { max-width: 1200px; margin: 0 auto; }

.back-nav { margin-bottom: 50px; }
.btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-muted);
    font-weight: 600; font-size: 0.9rem;
    padding: 8px 15px; border-radius: 20px;
    background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.btn-back:hover {
    color: var(--primary-blue); transform: translateX(-5px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   ENCABEZADOS DE CATEGORÍA
   ========================================= */
.category-header { margin-bottom: 30px; }

.category-title {
    font-family: 'Merriweather', serif;
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.category-title i { color: var(--accent-cyan); font-size: 1.4rem; }

.category-line {
    width: 100%; height: 1px; background: #e0e0e0; position: relative;
}
.category-line::after {
    content: ''; position: absolute; left: 0; top: 0;
    width: 60px; height: 3px; background: var(--accent-cyan);
}

.divider-section { height: 60px; }

/* =========================================
   SISTEMA DE GRID 
   ========================================= */
.alumni-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 50px 20px;
    width: 100%;
}

/* =========================================
   TARJETA DE EGRESADO
   ========================================= */
.alumni-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.alumni-card:hover { transform: translateY(-5px); }

/* FOTO */
.alumni-photo {
    width: 130px; height: 130px;
    margin-bottom: 15px;
    border-radius: 50%;
    position: relative;
    border: 4px solid var(--white);
    transition: all 0.3s ease;
}
.alumni-photo img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
}
.alumni-card:hover .alumni-photo { transform: scale(1.05); }


.alumni-card.doctorate .alumni-photo { box-shadow: 0 0 0 3px #c62828; }
.alumni-card.doctorate:hover .alumni-photo { box-shadow: 0 0 15px #c62828; }

.alumni-card.master .alumni-photo { box-shadow: 0 0 0 3px var(--accent-gold); }
.alumni-card.master:hover .alumni-photo { box-shadow: 0 0 15px var(--accent-gold); }

.alumni-card.bachelor .alumni-photo { box-shadow: 0 0 0 3px #2e7d32; }
.alumni-card.bachelor:hover .alumni-photo { box-shadow: 0 0 15px #2e7d32; }


.alumni-name {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    height: 42px; 
    display: flex; align-items: flex-start; justify-content: center;
}

/* =========================================
   BOTONES DE ACCIÓN 
   ========================================= */
.action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    position: relative;
}


.btn-ver-tesis {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    transition: all 0.3s ease;
}
.btn-ver-tesis:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.3);
}


.profile-wrapper { position: relative; display: inline-block; }


.btn-perfil-trigger {
    background-color: white;
    color: #546e7a;
    border: 1px solid #cfd8dc;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    transition: all 0.3s ease;
}
.profile-wrapper:hover .btn-perfil-trigger {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}


.profile-menu {
    visibility: hidden; opacity: 0;
    position: absolute;
    bottom: 120%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #263238;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex; gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.profile-menu::after { 
    content: ''; position: absolute;
    top: 100%; left: 50%; margin-left: -5px;
    border-width: 5px; border-style: solid;
    border-color: #263238 transparent transparent transparent;
}
.profile-wrapper:hover .profile-menu {
    visibility: visible; opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.menu-link {
    color: white; font-size: 1.1rem;
    transition: transform 0.2s; display: flex;
    text-decoration: none;
}
.menu-link:hover { transform: scale(1.2); }
.menu-link.cti:hover { color: #4fc3f7; }
.menu-link.orcid:hover { color: #a6ce39; }

/* =========================================
   FLOTANTE (TÍTULO DE TESIS)
   ========================================= */
.tooltip-container {
    visibility: hidden; opacity: 0;
    position: absolute; z-index: 10000;
    background-color: white; color: #455a64;
    width: 260px; padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary-blue);
    font-size: 0.8rem; line-height: 1.4;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
}
.tooltip-container.active {
    visibility: visible; opacity: 1; transform: translateY(0);
}
.tooltip-label {
    display: block; color: var(--primary-blue);
    font-weight: 700; font-size: 0.7rem;
    margin-bottom: 4px; text-transform: uppercase;
}