/* =========================================
   1. ESTILI-INICIO
   ========================================= */
:root {
  
    --bg-body: #f4f6f8;
    
   
    --primary-blue: #1565c0;   
    --primary-dark: #0d47a1;   
    --accent-cyan: #00bcd4;   
    
  
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}


h1, h2, h3, h4, h5, .modal-title, .logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}
/* =========================================
   2. BARRA DE NAVEGACIÓN (ESTILO ACADÉMICO / UNT)
   ========================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 5%; 
    box-sizing: border-box; 

    /* FONDO: Azul Profundo Institucional (Más sobrio que el degradado anterior) */
    background: #002b4e; 
    border-bottom: 3px solid #bfa15f; /* Línea dorada sutil abajo */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);

    position: fixed; 
    top: 0;
    left: 0; 
    z-index: 1000; 
    transition: transform 0.4s ease-in-out;
}

.navbar-hidden {
    transform: translateY(-100%);
}

/* --- ENLACES PRINCIPALES --- */
.navbar nav a, .dropbtn {
    color: #f0f0f0; /* Blanco hueso (no blanco puro, cansa menos la vista) */
    text-decoration: none; 
    margin-left: 20px;
    font-weight: 600; /* Letra un poco menos gruesa, más fina */
    font-size: 0.9rem; 
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s; 
    background: none; 
    border: none; 
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    text-transform: uppercase; /* Las universidades suelen usar mayúsculas */
    letter-spacing: 0.5px; /* Espaciado elegante */
}

/* Hover: Se pone Dorado (Color Académico por excelencia) */
.navbar nav a:hover, .dropbtn:hover {
    color: #ffc107; /* Dorado/Amarillo UNT */
}

/* Activo (Script) */
.navbar nav a.active, .navbar .dropbtn.active {
    color: #ffc107 !important; 
    border-bottom: 2px solid #ffc107;
}

/* --- MENÚ DESPLEGABLE (DROPDOWN) --- */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
    display: block; 
    visibility: hidden; 
    opacity: 0;
    position: absolute; 
    top: 100%; 
    left: 0;
    
    /* FONDO: Azul muy oscuro (Casi negro, muy elegante) */
    background-color: #001a33; 
    
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    
    /* Borde superior Dorado */
    border-top: 3px solid #ffc107; 
    
    transform: translateY(10px); 
    transition: all 0.3s ease;
    z-index: 1100;
}

.dropdown:hover .dropdown-content { 
    visibility: visible; 
    opacity: 1; 
    transform: translateY(0); 
}

/* Enlaces del dropdown */
.dropdown-content a {
    color: #e0e0e0 !important; /* Gris claro */
    padding: 14px 20px; /* Un poco más de espacio */
    display: block; 
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Líneas divisorias muy sutiles */
    font-size: 0.85rem;
    text-transform: none; /* Mayúsculas solo arriba, aquí normal */
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

/* Hover en dropdown */
.dropdown-content a:hover { 
    background-color: rgba(255, 193, 7, 0.1) !important; /* Fondo dorado muy suave */
    color: #ffc107 !important; /* Texto Dorado */
    padding-left: 25px; /* Pequeño movimiento a la derecha (Elegante) */
}

/* Activo en dropdown (Script) */
.dropdown-content a.active {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    border-left: 3px solid #ffc107; /* Marca lateral dorada */
    font-weight: 700;
} 

/* =========================================
   3. HERO SECTION 
   ========================================= */
.hero {
    width: 100%; 
    height: 700px; 
    margin: 0;
   
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    padding: 0 0px; 
    
    background-image: url('HERO.png'); 
    background-size: cover; 
    background-position: center;
    position: relative;
}


.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0px;
    background: linear-gradient(to top, var(--bg-body), transparent);
}


.hero-content { 
    z-index: 2; 
    max-width: 1200px; 
    width: 100%;
    
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 5px; 

    
}

.hero-separator {
    width: 2px;
    height: 120px; 
    background-color: rgba(255, 255, 255, 0.7); 
    margin-left: -25px; 
    margin-right: 20px; 
}


.logo-container-hero {
    flex-shrink: 0; 
}

.logo-img-hero {
    width: 250px; 
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); 
}


.hero-separator {
    width: 2px;
    height: 120px; 
    background-color: rgba(255, 255, 255, 0.7); 
    
}


.hero-text-block {
    text-align: left; 
    color: white;
}

.hero-content h1 { 
    font-size: 4rem; 
    font-weight: 800;
    margin: 0 0 10px 0; 
    line-height: 1; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.hero-content h2 { 
    font-size: 1.3rem; 
    color: #e3f2fd; 
    font-weight: 400; 
    font-family: 'Montserrat', sans-serif; 
    max-width: 470px;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}



.about-trigger {
    position: absolute;
    bottom: 15px;
    right: 50px;
    background: white; padding: 10px 20px; border-radius: 30px;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 10; transition: 0.3s;
}
.about-trigger:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.icon-question {
    background: var(--primary-blue); color: white; width: 24px; height: 24px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold;
}
.about-trigger .text {
     color:  var(--primary-blue); 
    font-weight: 700;
    font-size: 0.9rem; 
    text-align: justify;
    font-family: 'Montserrat', sans-serif;  }

.modal-body p {
    text-align: justify; /* Esto alinea ambos bordes */
    line-height: 1.6;    /* Esto da un poco de aire entre líneas para que se lea mejor */
}

/* =========================================
   4. GRILLA PRINCIPAL
   ========================================= */
.hero::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to top, var(--bg-body), transparent);
}
.main-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px; 
    gap: 30px; padding: 0 40px 60px 40px; margin-top: 40px; position: relative; z-index: 3;
    max-width: 1400px; margin-left: auto; margin-right: auto;
}


.card {
    background: white; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 25px; margin-bottom: 25px;
    border: 1px solid #eef0f2;
}

.card h3 {
    color: var(--primary-blue); font-size: 0.95rem; 
    border-bottom: 2px solid var(--accent-cyan);
    display: inline-block; margin-bottom: 20px; padding-bottom: 5px;
    letter-spacing: 0.5px;
}


/* =========================================
   ESTILOS COLUMNA IZQUIERDA (MEJORADOS)
   ========================================= */

/* --- 1. MENÚ DE INVESTIGACIÓN --- */
.research-menu-card h3 {
    color: var(--primary-blue);
    font-size: 0.95rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.menu-subtitle {
    font-size: 0.8rem; color: #888; margin-bottom: 15px; font-style: italic;
}

.research-nav { list-style: none; padding: 0; }

.research-nav li { margin-bottom: 10px; }

.research-nav a {
    display: flex; align-items: center;
    text-decoration: none;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Icono circular */
.res-icon {
    width: 32px; height: 32px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-blue);
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-right: 12px;
    transition: 0.3s;
}

.res-text {
    flex-grow: 1; /* Ocupa el espacio disponible */
    color: #444; font-weight: 600; font-size: 0.9rem;
}

.arrow {
    font-size: 0.7rem; color: #ccc; transition: 0.3s;
}

/* EFECTO HOVER (Al pasar el mouse) */
.research-nav a:hover {
    background: white;
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.research-nav a:hover .res-icon {
    background: var(--primary-blue); color: white;
}

.research-nav a:hover .res-text { color: var(--primary-blue); }
.research-nav a:hover .arrow { color: var(--accent-cyan); transform: translateX(3px); }


/* --- 2. CONTACTO MODERNO --- */
.contact-modern h3 {
    color: var(--primary-blue); font-size: 0.95rem; margin-bottom: 15px;
}

.contact-body { text-align: center; }

.contact-intro {
    font-size: 0.85rem; color: #666; margin-bottom: 20px; line-height: 1.5;
}

/* Botón de Email Grande */
.btn-email-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary-blue), #0d47a1);
    color: white;
    text-decoration: none;
    padding: 12px 10px; /* Un poco menos de padding lateral */
    border-radius: 6px;
    
    font-weight: 500; /* Un poco menos grueso para que se lea limpio */
    font-size: 0.8rem; /* Letra un pelín más pequeña para que entre todo */
    text-transform: none; /* IMPORTANTE: Para que el correo se vea en minúsculas */
    word-break: break-all; /* Por si el correo es muy largo en móviles */
    
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.3);
    transition: 0.3s;
    margin-bottom: 20px;
}

.btn-email-action:hover {
    background: linear-gradient(135deg, var(--accent-cyan), #00acc1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4);
}

/* Ubicación pequeña */
.location-mini {
    display: flex; align-items: flex-start; justify-content: center; gap: 8px;
    font-size: 0.8rem; color: #888; border-top: 1px solid #f0f0f0; padding-top: 15px;
}
.location-mini i { color: #aaa; margin-top: 3px; }




/* =========================================
   ESTILO COLABORADORES (LOGOS INTERACTIVOS)
   ========================================= */

.collaborators-card h3 {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--primary-blue);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

/* La Cuadrícula (2 columnas se ve mejor en lateral) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 15px;
}

/* El cuadro de cada logo */
.partner-item {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    height: 80px; /* Altura fija para uniformidad */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative; /* Necesario para el tooltip */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* LA MAGIA: Escala de grises por defecto */
.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajusta la imagen sin deformarla */
    filter: grayscale(0%); /* Todo en gris */
    opacity: none; /* Un poco transparente */
    transition: all 0.4s ease;
}

/* --- EFECTOS HOVER (Al pasar el mouse) --- */

/* 1. Cambios en la caja */
.partner-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    z-index: 10; /* Para que el tooltip salga por encima de todo */
}

/* 2. Cambios en el logo */
.partner-item:hover .partner-logo {
    filter: grayscale(0%); /* Vuelve el color original */
    opacity: 1;
    transform: scale(1.1); /* Crece un poquito */
}

/* --- TOOLTIP (Nombre de la institución al flotar) --- */
.partner-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    
    /* Posición: Arriba del logo */
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(5px); /* Centrado */
    
    /* Animación */
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; /* Para que no estorbe el click */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Flechita del tooltip */
.partner-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Mostrar tooltip al hover */
.partner-item:hover .partner-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px); /* Sube un poco */
}


.news-item { border-left: 3px solid var(--primary-blue); padding-left: 15px; margin-bottom: 15px; }
.news-title { font-weight: 700; color: #333; font-size: 1rem; margin-bottom: 5px; }
.news-date, .news-loc { font-size: 0.85rem; color: #888; margin-bottom: 2px; }

/* =========================================
   ESTILO CENTRAL: SHOWCASE DE PAPERS (NITIDEZ TOTAL)
   ========================================= */

/* Encabezado */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}
.section-header h3 {
    font-size: 1.1rem; color: var(--primary-blue); margin: 0;
}
.view-all-btn {
    font-size: 0.8rem; color: #666; text-decoration: none; font-weight: 600;
    transition: 0.3s;
}
.view-all-btn:hover { color: var(--accent-cyan); transform: translateX(3px); }


/* Contenedor Carrusel */
.carousel-container {
    position: relative;
    /* Altura suficiente para la tarjeta GRANDE */
    height: 520px; 
    perspective: 1000px; 
    display: flex; justify-content: center; align-items: center;
    /* Importante para evitar cortes */
    overflow: visible; 
}

.carousel-track {
    position: relative; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    transform-style: preserve-3d;
}

/* --- TARJETA BASE (TAMAÑO MÁXIMO DEFINIDO AQUÍ) --- */
/* Aquí definimos el tamaño GRANDE que tendrá la tarjeta central.
   Al definirlo grande desde el inicio, el texto se dibuja nítido. */
.paper-card {
    position: absolute;
    width: 320px; 
    height: 460px;
    
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-decoration: none;
    
    /* Transición suave para todos los cambios */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    border: 1px solid rgba(255,255,255,0.1);
    
    /* Mejora de renderizado */
    backface-visibility: hidden; 
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Imagen de Fondo */
.paper-image {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.5s;
}

/* Capa oscura suave */
.paper-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    transition: 0.3s;
}

/* Badges */
.paper-badges {
    position: absolute; top: 20px; left: 20px;
    display: flex; gap: 10px; z-index: 2;
}
.badge-journal {
    background: rgba(21, 101, 192, 0.95); color: white;
    font-size: 0.75rem; padding: 6px 12px; border-radius: 4px; font-weight: 700;
}
.badge-rank {
    background: var(--accent-cyan); color: white;
    font-size: 0.75rem; padding: 6px 12px; border-radius: 4px; font-weight: 700;
}

/* --- CONTENIDO (FONDO OSCURO NÍTIDO) --- */
.paper-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 25px; box-sizing: border-box;
    
    /* Fondo sólido OSCURO. Quitamos blur y opacidad para máxima nitidez */
    background: #0a192f; 
    border-top: 2px solid var(--accent-cyan); /* Línea de color siempre visible */
    
    transform: translateY(0);
    transition: 0.3s ease-in-out;
}

.paper-title {
    color: white; font-size: 1.15rem; line-height: 1.4; margin-bottom: 10px;
    font-family: 'Merriweather', serif; font-weight: 700;
    text-shadow: none; /* Sin sombra */
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.paper-authors {
    color: #cfd8dc; font-size: 0.85rem; margin-bottom: 15px; font-style: italic;
}

.read-more {
    display: inline-block; color: var(--accent-cyan); font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
}

/* --- INTERACCIÓN --- */
.paper-card:hover .paper-content {
    background: #000; /* Un poco más oscuro al hover */
    padding-bottom: 30px; /* Sube un poquito */
}
.paper-card:hover .paper-image { transform: scale(1.1); }
.paper-card:hover .read-more { color: white; }


/* --- ESTADOS DEL CARRUSEL (AQUÍ ESTÁ LA SOLUCIÓN) --- */

/* 1. CENTRAL (TAMAÑO ORIGINAL = NÍTIDO) */
.paper-card.center {
    z-index: 10;
    /* NO ESCALAMOS HACIA ARRIBA. Lo dejamos en 1 (tamaño natural) */
    transform: translateX(0) scale(1) rotateY(0deg);
    
    opacity: 1;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    
    /* Filtros apagados para nitidez */
    filter: none;
}

/* 2. IZQUIERDA (LA HACEMOS MÁS PEQUEÑA) */
.paper-card.left {
    z-index: 5;
    /* La reducimos al 80% (scale 0.8) en lugar de agrandar la central */
    transform: translateX(-60%) scale(0.8) perspective(1000px) rotateY(20deg);
    
    opacity: 0.6; /* Transparencia */
    filter: blur(2px) grayscale(50%); /* Efecto de profundidad */
    pointer-events: none;
}

/* 3. DERECHA (LA HACEMOS MÁS PEQUEÑA) */
.paper-card.right {
    z-index: 5;
    /* La reducimos al 80% (scale 0.8) */
    transform: translateX(60%) scale(0.8) perspective(1000px) rotateY(-20deg);
    
    opacity: 0.6;
    filter: blur(2px) grayscale(50%);
    pointer-events: none;
}

/* Flechas */
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 45px; height: 45px;
    background: white; border: none; border-radius: 50%;
    color: var(--primary-blue); font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer; z-index: 20; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.nav-arrow:hover { background: var(--primary-blue); color: white; transform: translateY(-50%) scale(1.1); }
.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }



/* =========================================
   ESTILO MODAL: UNA SOLA COLUMNA (VERTICAL)
   ========================================= */

/* 1. Fondo oscuro (Overlay) */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 2000; /* Capa más alta */
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 2. TARJETA PRINCIPAL (Una Columna) */
.modal-single-col {
    background-color: #ffffff;
    width: 90%; 
    max-width: 600px; /* Ancho elegante estilo móvil/perfil */
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative; /* Necesario para ubicar el botón cerrar */
    overflow: hidden;
    display: flex; flex-direction: column;
    max-height: 90vh; /* Altura máxima */
}

/* 3. BOTÓN DE CERRAR (CORREGIDO) */
.close-btn-white {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 2.5rem; /* Grande para que se vea */
    color: rgba(255,255,255,0.8);
    cursor: pointer; 
    line-height: 0.8; 
    z-index: 10; /* Asegura que esté encima de la cabecera azul */
    transition: 0.2s;
}
.close-btn-white:hover { 
    color: white; 
    transform: scale(1.1); 
}

/* 4. CABECERA (LADO A LADO) */
.modern-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white; 
    padding: 25px 30px; 
    position: relative;
}

/* Aquí está el cambio para poner Logo y Texto lado a lado */
.modal-single-col .header-content { 
    display: flex; 
    flex-direction: row;       /* Fila horizontal */
    align-items: center;       /* Centrado verticalmente */
    justify-content: flex-start; /* Alineado a la izquierda */
    gap: 20px;                 /* Espacio entre logo y texto */
    text-align: left;          
    padding-right: 30px;       /* Espacio para que el texto no toque el botón cerrar */
}

.modern-logo { 
    height: 70px; width: auto; 
    background: none; 
    padding: 5px; border-radius: 8px; 
    flex-shrink: 0; /* Evita que el logo se aplaste */
}

.header-text h2 { 
    margin: 0; font-size: 1.5rem; 
    font-family: 'Merriweather', serif; color: white; line-height: 1.2;
}
.header-text p { 
    margin: 5px 0 0 0; opacity: 0.9; 
    font-size: 0.85rem; font-weight: 300; 
}

/* 5. CUERPO DEL MODAL */
.modern-body { padding: 30px; overflow-y: auto; }
.section-block { margin-bottom: 25px; }

/* Títulos */
.academic-title { 
    font-family: 'Merriweather', serif; color: #1565c0; font-size: 1.3rem; 
    margin-bottom: 10px; border-bottom: 2px solid #e0e0e0; padding-bottom: 8px; 
}
.academic-title i { margin-right: 8px; color: #00bcd4; }

.section-subtitle {
    font-family: 'Montserrat', sans-serif; color: #888; font-size: 0.8rem; 
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; font-weight: 700;
    display: block; text-align: center;
}
.justified-text { text-align: justify; line-height: 1.6; color: #444; font-size: 0.95rem; margin: 0; }

/* 6. ESTADÍSTICAS PREMIUM */
.stat-box-premium {
    display: flex; justify-content: space-around; align-items: center;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    padding: 15px; border-radius: 8px; margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.25); color: white;
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: #00bcd4; line-height: 1; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

/* 7. CAJAS DE INFORMACIÓN (Misión/Visión) */
.info-box-compact {
    display: flex; align-items: flex-start; gap: 15px;
    background: white; padding: 15px; border-radius: 8px; margin-bottom: 12px;
    border: 1px solid #eee; transition: 0.3s;
}
.info-box-compact:hover { border-color: #00bcd4; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.ib-icon {
    background: #e1f5fe; color: #1565c0; width: 35px; height: 35px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1rem; flex-shrink: 0;
}
.ib-content strong { display: block; font-size: 0.95rem; color: #0d47a1; margin-bottom: 4px; }
.ib-content p { margin: 0; font-size: 0.85rem; color: #555; line-height: 1.4; }

/* 8. INVESTIGACIÓN & METODOLOGÍA */
.research-focus-box {
    background: #fff; padding: 15px; border-radius: 8px;
    border-top: 3px solid #00bcd4; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 15px;
}
.research-focus-box h6, .method-box h6 { margin: 0 0 10px 0; font-size: 0.95rem; color: #333; font-weight: 700; }
.research-focus-box h6 i, .method-box h6 i { color: #00bcd4; margin-right: 8px; }

.academic-dots { list-style: none; padding: 0; margin: 0; }
.academic-dots li {
    position: relative; padding-left: 15px; margin-bottom: 5px; font-size: 0.9rem; color: #555;
}
.academic-dots li::before { content: "•"; color: #00bcd4; font-weight: bold; position: absolute; left: 0; }

.method-box {
    background: #f9fbfd; padding: 15px; border-radius: 8px; border: 1px dashed #ccc;
}
.method-box p { font-size: 0.85rem; color: #666; margin: 0; text-align: justify; }

.impact-mini-box {
    background: #e8f5e9; color: #2e7d32; padding: 12px; border-radius: 6px;
    font-size: 0.85rem; display: flex; align-items: center; gap: 10px; border-left: 4px solid #4caf50;
    margin-top: 10px;
}

.modern-footer-text {
    margin-top: 30px; text-align: center; color: #999;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

/* 9. RESPONSIVE (Celulares pequeños) */
@media (max-width: 450px) {
    .modal-single-col .header-content {
        flex-direction: column; /* En pantallas muy chicas, vuelve a ponerse vertical */
        text-align: center;
        gap: 10px;
    }
    .header-text h2 { font-size: 1.3rem; }
}
/* =========================================
   LOGO INSTITUCIONA
   ========================================= */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none; 
}

.logo-university {
    height: 45px;
    width: auto;  
    display: block;
    
}

.logo-divider {
    height: 35px;
    width: 1px;
    background-color: rgba(255,255,255,0.3); 
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.logo-acronym {
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 1px;
}

.logo-full {
    font-size: 0.55rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}



/* =========================================
   ESTILO NOTICIAS: FULL COLOR & EFECTOS (FINAL)
   ========================================= */

/* --- ESTRUCTURA BÁSICA --- */
.news-card-advanced {
    background: white; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eef0f2; padding: 0; overflow: hidden; margin-bottom: 25px;
}
.news-card-advanced h3 {
    background-color: #fafafa; padding: 20px 25px; margin: 0;
    border-bottom: 1px solid #eee; font-size: 0.95rem; color: #1565c0;
    display: flex; align-items: center; gap: 10px; font-family: 'Merriweather', serif;
}
.news-feed { padding: 10px 0; }

.news-item {
    display: flex; gap: 15px; padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0; transition: all 0.3s ease;
    cursor: pointer; position: relative; text-decoration: none;
}
.news-item:hover {
    background-color: #fcfcfc; transform: translateX(5px);
}
/* Borde lateral de color al hover (Dinámico según el hijo) */
.news-item:has(.badge-orange):hover { border-left: 3px solid #ff9800; }
.news-item:has(.badge-green):hover { border-left: 3px solid #4caf50; }
.news-item:has(.badge-blue):hover { border-left: 3px solid #1565c0; }
.news-item:has(.badge-cyan):hover { border-left: 3px solid #00bcd4; }
.news-item:last-of-type { border-bottom: none; }


/* --- CAJAS DE FECHA (COLOREADAS) --- */
.news-date-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 8px; border: 1px solid #e0e0e0;
    flex-shrink: 0; transition: 0.3s;
    background: #f4f6f8; color: #555; /* Default */
}

/* 1. NARANJA (Tentativo/Pronto) */
.news-date-box.date-orange { background: #fff3e0; border-color: #ffe0b2; }
.news-date-box.date-orange span { color: #ef6c00; }
.news-item:hover .news-date-box.date-orange { background: #ef6c00; border-color: #ef6c00; }

/* 2. VERDE (Abierto) */
.news-date-box.date-green { background: #e8f5e9; border-color: #c8e6c9; }
.news-date-box.date-green span { color: #2e7d32; }
.news-item:hover .news-date-box.date-green { background: #2e7d32; border-color: #2e7d32; }

/* 3. AZUL (Agendado) */
.news-date-box.date-blue { background: #e3f2fd; border-color: #bbdefb; }
.news-date-box.date-blue span { color: #1565c0; }
.news-item:hover .news-date-box.date-blue { background: #1565c0; border-color: #1565c0; }

/* 4. CYAN (Nuevo) */
.news-date-box.date-cyan { background: #e0f7fa; border-color: #b2ebf2; }
.news-date-box.date-cyan span { color: #0097a7; }
.news-item:hover .news-date-box.date-cyan { background: #00bcd4; border-color: #00bcd4; }

/* Texto blanco al hacer hover en cualquiera */
.news-item:hover .news-date-box span { color: white !important; }

/* Tipografía Fecha */
.n-day { font-size: 1.2rem; font-weight: 700; line-height: 1; font-family: 'Montserrat', sans-serif; }
.n-month { font-size: 0.6rem; text-transform: uppercase; font-weight: 600; margin-top: 2px; font-family: 'Montserrat', sans-serif;}
.n-day.text-mode { font-size: 0.9rem; font-weight: 800; }


/* --- CONTENIDO --- */
.news-content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.news-badges { display: flex; gap: 6px; margin-bottom: 5px; align-items: center; }

/* ESTILOS DE CATEGORÍA (Corregido y separado) */
.badge-cat { 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    color: #777; /* Color por defecto (gris) */
}

/* --- COLORES POR TIPO DE CATEGORÍA --- */
.badge-cat.project { color: #7b1fa2; }  /* MORADO: Minicurso/Proyectos */
.badge-cat.event   { color: #2e7d32; }  /* VERDE: Ferias/Workshops */
.badge-cat.defense { color: #e65100; }  /* NARANJA: Tesis/Sustentaciones */
.badge-cat.course  { color: #1565c0; }  /* AZUL: Cursos/Académico */


/* --- BADGES CON EFECTO GLOW (PARA TODOS) --- */
.badge-pulse {
    font-size: 0.6rem; padding: 2px 6px; border-radius: 4px;
    font-weight: 700; text-transform: uppercase; color: white;
    /* Sombra base para dar volumen */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}

/* Animaciones de Pulso para cada color */
.badge-pulse.badge-cyan { background-color: #00bcd4; animation: pulse-cyan 2s infinite; }
.badge-pulse.badge-green { background-color: #4caf50; animation: pulse-green 2s infinite; }
.badge-pulse.badge-orange { background-color: #ff9800; animation: pulse-orange 2s infinite; }
.badge-pulse.badge-blue { background-color: #1565c0; animation: pulse-blue 2s infinite; } 

/* Keyframes */
@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(0, 188, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0); }
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(21, 101, 192, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
}

/* --- DETALLES --- */
.news-headline {
    text-decoration: none; color: #333; font-weight: 600; font-size: 0.9rem; line-height: 1.4;
    margin-bottom: 2px; transition: 0.2s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item:hover .news-headline { color: #1565c0; }

.news-details { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.news-meta { font-size: 0.75rem; color: #666; display: flex; align-items: center; gap: 5px; font-weight: 500; }
.news-meta i { color: #00bcd4; font-size: 0.8rem; }

/* Footer Link */
.news-footer-link {
    display: block; text-align: center; padding: 15px;
    background: #fafafa; border-top: 1px solid #eee;
    color: #1565c0; font-size: 0.8rem; font-weight: 700;
    text-decoration: none; text-transform: uppercase; transition: 0.3s;
}
.news-footer-link:hover { background: #1565c0; color: white; }




/* =========================================
   ESTILO TARJETA MAPA (COLUMNA IZQUIERDA)
   ========================================= */

.map-card {
    /* Un poco menos de padding inferior para que se vea compacto */
    padding-bottom: 15px; 
    text-align: center;
}

.map-card h3 {
    /* Mismo estilo que las otras tarjetas */
    color: var(--primary-blue);
    font-size: 0.95rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: left; /* Título alineado a la izquierda como los demás */
    width: 100%;
}

.map-widget-container {
    /* Contenedor para asegurar que el mapa no se desborde */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #f0f0f0; /* Borde sutil alrededor del mapa */
    margin-bottom: 8px;
}

/* Forzar que el widget de ClustrMaps se adapte al ancho */
.map-widget-container img, 
.map-widget-container canvas, 
#clustrmaps-widget-v2 {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.map-footer span {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* =========================================
   RESPONSIVE 
   ========================================= */


@media (max-width: 900px) {
    
  
    .navbar {
        height: auto;
        padding: 10px 20px;
        flex-direction: column; 
        gap: 10px;
    }

    .navbar nav {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
        margin-top: 5px;
        padding-bottom: 5px;
    }

    .navbar nav a, .dropbtn {
        margin-left: 0;
        font-size: 0.85rem; 
        padding: 5px;
    }

  
    .hero {
        padding-top: 140px; 
        height: auto;
        min-height: 500px;
        align-items: flex-start; 
        padding-bottom: 40px;
    }

    .hero-content {
        flex-direction: column; 
        text-align: center;
        gap: 20px;
    }

   
    .hero-separator { display: none; }

   
    .hero-text-block { 
        text-align: center; 
        padding: 0 15px;
    }

    .logo-img-hero {
        width: 180px; 
    }

    .hero-content h1 {
        font-size: 2.8rem; 
    }

    .hero-content h2 {
        font-size: 1rem;
        max-width: 100%;
    }
}


@media (max-width: 480px) {

 
    .logo-university { height: 35px; }
    .logo-acronym { font-size: 1rem; }
 
    .hero-content h1 { font-size: 2.2rem; }
    .logo-img-hero { width: 150px; }

  
    .main-grid {
        grid-template-columns: 1fr;
        padding: 10px 15px;
        margin-top: 20px;
    }
    
    .card { padding: 20px; }

  
    .carousel-3d-container { height: 350px; }
    .card-3d { width: 200px; }
    .card-3d img { height: 110px; }
   
    .modal-card {
        width: 95%; 
        padding: 20px;
        max-height: 85vh; 
        overflow-y: auto;
    }
    
    .close-btn { top: 10px; right: 15px; font-size: 1.5rem; }
}


