@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* === Estilos Generales y Reset === */
:root {
    --color-primary: #002767;
    --color-highlight: #f85502;
    --color-text-light: #ffffff;
    --color-text-dark: #000000;
    --font-primary: 'Montserrat', sans-serif;
    --color-orange: #f85502; /* Naranja de la imagen */
    --color-white: #ffffff;
    
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

html, body {
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
    width: 100%;
  
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    background-color: #ffffff;
}

/* === Barra de Navegación (Header) === */
.navbar {
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--color-highlight); }

/* Dropdown Desktop */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-primary);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.4);
    z-index: 1;
    border-top: 3px solid var(--color-highlight);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* === Carrusel Principal (Hero) === */
.carousel-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;

}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* Capa oscura para legibilidad como en la imagen */
.slide-overlay {
    position: absolute;
    inset: 0;
 
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    margin-left: 10%;
}

.content-wrapper {
    max-width: 70%; /* Limita el ancho del texto */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    
}

/* Layout especial para el primer slide (Texto e Imagen) */
.content-wrapper.split {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.text-side { flex: 1.2; }
.logo-side { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
}

.main-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3));
}

/* Tipografía */
.slide-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: var(--color-white);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--color-orange);
    display: inline;
}

.slide-content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 400;
}

.btn-orange {
    display: inline-block; /* Crucial para que respete el tamaño */
    width: fit-content;    /* Hace que el ancho sea solo el del texto */
    align-self: flex-start; /* Evita que se estire verticalmente si el padre es Flex */
    
    padding: 10px 25px;    /* Aumenté un poco para que se vea más como el de la captura */
    background-color: var(--color-orange);
    color: white;
    text-decoration: none;
    border-radius: 25px;   /* Más redondeado como en la imagen */
    font-weight: bold;
    line-height: 1;        /* Asegura que el texto esté centrado verticalmente */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    margin-left: 75%;
}

.btn-orange:hover {
    transform: scale(1.05);
    background-color: #e65c00;
}
.carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white; border: none;
    padding: 15px; cursor: pointer;
    z-index: 20; border-radius: 50%; font-size: 1.5rem;
}
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* === Sección Nosotros (About) === */
.about-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Aplicamos el filtro oscuro antes de la URL de la imagen */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/repositorio/img/Fondo\ pagi.jpg\ 1\ \(1\).png');
    
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
  
}

/* La tarjeta blanca central */
.about-card {
    background-color: #ffffff;
    max-width: 1100px;
    width: 100%;
    border-radius: 50px; /* Bordes muy redondeados como en la imagen */
    display: flex;
    overflow: hidden;
    padding: 40px;
    gap: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Lado de la imagen */
.about-image-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.image-box {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.main-about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Lado del texto */
.about-text-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-side h1 {
    color: #002d62; /* Azul oscuro institucional */
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.about-text-side p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

/* Cuadrícula de botones (2 columnas) */
.about-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-grid {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 12px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-grid:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
}
@media (max-width: 900px) {
    .about-card {
        flex-direction: column;
        border-radius: 30px;
        padding: 20px;
        margin-top: 50px;
    }
    
    .about-text-side h1 {
        text-align: center;
    }
}
/* === Sección PNF === */
.pnf-section {
    padding: 4rem 0;
    background-color: rgba(250, 235, 215, 0.2); /* antiquewhite con 50% de opacidad */
    text-align: center;
    /* Quitamos altura fija */
    min-height: auto; 
}

.pnf-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-primary); margin-bottom: 1rem; font-weight: 900;
}
.pnf-section p{
    
    font-size:1rem;
    color:black; 
    margin-bottom: 1rem; 
    font-weight: 500;
    
}

.pnf-carousel-wrapper {
    position: relative; width: 95%; max-width: 1400px;
    margin: 0 auto; display: flex; align-items: center;
}

.pnf-carousel-container { overflow: hidden; width: 100%; padding: 20px 0; }
.pnf-carousel-track { display: flex; transition: transform 0.5s ease; gap: 20px; }

.pnf-slide {
    flex: 0 0 auto;
    width: 280px; /* Ancho tarjeta */
    transition: transform 0.3s;
}
.pnf-slide:hover { transform: scale(1.05); }
.pnf-slide img { width: 100%; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0); }

.pnf-carousel-btn {
    background: var(--color-highlight); color: white;
    border: none; border-radius: 50%; width: 45px; height: 45px;
    cursor: pointer; z-index: 10; flex-shrink: 0;
}
/*****************pnf avandaza********************/

        /* Contenedor principal para el diseño dividido */
      
     /* === Contenedor Principal === */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: start; 
    margin: 0;
    padding: 80px 5% 40px 5%; /* Padding dinámico */
    background-color: #ffffff;
    color: #002D62;
    line-height: 1.6;
    gap: 20px; /* Espacio entre columnas */
}

/* === Lado del Contenido === */
.content-side {
    padding: 20px; /* Reducido para evitar que el texto se vea muy flaco */
    max-width: 550px;
    margin-left: auto;
    align-self: start;
    margin-top: 40px;
}

/* Títulos con tipografía fluida (clamp) */
.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Se ajusta entre 1.8rem y 2.5rem */
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero-title-2 {
    font-size: clamp(1.2rem, 2vw, 2.0rem); /* Se ajusta entre 1.8rem y 2.5rem */
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800;
    margin-bottom: 15px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800;
    margin-bottom: 15px;
}
.hero-description {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: justify;
    color:  #002D62; /* Un tono un poco más suave para lectura */
    font-weight: 500;
}

/* === Botones === */
.button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF5C1F;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 92, 31, 0.2);
}

.btn:hover {
    background-color: #e0521a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 92, 31, 0.3);
}

.full-width-btn {
    grid-column: span 2;
}

/* === Lado de la Imagen === */
.image-side {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.lab-image {
    width: 100%;
    max-width: 480px; /* Un poco más grande para equilibrar el texto arriba */
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =======================================
   RESPONSIVIDAD (Media Queries)
   ======================================= */

/* Tablets y Laptops pequeñas */
@media (max-width: 1024px) {
    .hero-container {
        padding-top: 100px;
        gap: 10px;
    }
    .content-side {
        padding: 10px;
    }
}

/* Móviles y Tablets en Vertical */
@media (max-width: 850px) {
    .hero-container {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
        padding-top: 90px;
    }

    .content-side {
        margin: 0 auto;
        padding: 20px;
        order: 2; /* El texto va después de la imagen */
    }

    .hero-description {
        text-align: center; /* Mejor legibilidad en móvil */
    }

    .image-side {
        order: 1; /* La imagen va primero en móvil */
        padding-bottom: 0;
    }

    .lab-image {
        max-width: 90%; /* Que no ocupe todo el ancho para que respire */
    }

    /* Botones en una sola columna para móviles estrechos */
    @media (max-width: 480px) {
        .button-group {
            grid-template-columns: 1fr;
        }
        .full-width-btn {
            grid-column: span 1;
        }
    }
}
/* === Vida Universitaria === */

.university-life-section {
    position: relative;
    min-height: 80vh; /* Ajustado para que se vea amplio como la imagen */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea el contenido a la derecha */
    padding: 0 10%;
    background-image: url('/repositorio/img/banner_life_university.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Capa oscura para resaltar el texto (Gradiente hacia la derecha) */
.university-life-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

.content-overlay {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px; /* Ancho controlado para que el texto no se esparza */
    text-align: left; /* Alineación a la izquierda como la imagen */
}

.content-overlay h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: none;
}

.content-overlay p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 400;
    /* Eliminamos el justify para que se vea natural como en la captura */
}

.button-discover {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--color-highlight);
    color: white;
    text-decoration: none;
    border-radius: 12px; /* Bordes ligeramente redondeados */
    font-weight: 800;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.button-discover:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .university-life-section {
        justify-content: center;
        padding: 5%;
        text-align: center;
    }
    .content-overlay {
        text-align: center;
    }
    .university-life-section::before {
        background: rgba(0,0,0,0.5); /* Oscurece todo el fondo en móvil */
    }
}



/* === Noticias === */
.news-section { 
    padding: 4rem 5%; 
    background-color: #f4f4f4; 
}

.news-section h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-primary); 
    margin-bottom: 2rem; 
    font-weight: 900;
}

.news-content-wrapper {
    display: flex; 
    flex-wrap: wrap; 
    gap: 2rem;
}

/* --- Noticia Principal --- */
.main-news {
    /* Usar min() asegura que no desborde en móviles de menos de 400px */
    flex: 1 1 min(100%, 450px); 
    background: white; 
    padding: 20px; 
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.main-news img { 
    width: 100%; 
    height: auto;
    aspect-ratio: 16/9; /* Mantiene la proporción de la imagen uniforme */
    object-fit: cover;
    border-radius: 8px; 
    margin-bottom: 15px; 
}

.main-news h3 { 
    font-size: clamp(1.3rem, 3vw, 1.6rem); 
    margin-bottom: 10px; 
    color: var(--color-primary); 
    font-weight: 800; 
    line-height: 1.2;
}

.main-news p { 
    font-size: 1rem; 
    line-height: 1.5; 
    margin-bottom: 15px; 
    color: #444; /* Un gris oscuro lee mejor que negro puro */
}

/* --- Noticias Laterales --- */
.side-news {
    flex: 1 1 min(100%, 350px); 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem;
}

.side-news-item {
    display: flex; 
    gap: 15px; 
    background: white; 
    padding: 15px;    
    border-radius: 12px;  
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 28%;
    /* Eliminado el height: 25% para permitir que el contenido dicte la altura */
}

.side-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.side-news-item img {
    /* Ajustado el tamaño para que no asfixie el texto en pantallas medianas */
    width: 130px; 
    height: 100px; 
    object-fit: cover;
    border-radius: 8px; 
    flex-shrink: 0;
}

.side-news-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-news-item h4 { 
    font-size: 1rem; 
    color: var(--color-primary); 
    margin-bottom: 8px; 
    line-height: 1.2;
}

.side-news-item p { 
    font-size: 0.85rem; 
    color: #555;
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
}

/* --- Ajustes Específicos para Móvil (Media Queries) --- */
@media (max-width: 600px) {
    .news-section {
        padding: 2.5rem 5%; /* Menos padding vertical en móviles */
    }
    
    .news-content-wrapper {
        gap: 1.5rem;
    }

    .side-news-item {
        flex-direction: column; /* Apila la imagen y el texto en teléfonos pequeños */
    }

    .side-news-item img {
        width: 100%; /* La imagen toma todo el ancho de la tarjeta */
        height: 180px;
    }

    .side-news-item p { 
    font-size: 0.80rem; 
    color: #555;
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
}
/* === Secciones Informativas Divididas === */



/* === Footer Nuevo === */
.footer-nuevo { background-color: var(--color-primary); color: white; padding: 3rem 5%; }
.footer-wrapper {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 2rem; max-width: 1400px; margin: 0 auto;
}
.credits-footer p {
    font-size: 0.75rem; /* Un poco más pequeño que el resto */
    line-height: 1.3;
    opacity: 0.9;
    margin-top: 5px;
    font-style: italic;
}

.credits-footer i {
    font-size: 0.8rem;
    color: var(--color-highlight); /* Usa el naranja para resaltar el icono */
}
.footer-col-logo { flex: 1 1 200px; text-align: center; }
.footer-logo-img { max-width: 150px; margin-bottom: 10px; }
.footer-col-info { flex: 2 1 300px; }
.info-item { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; margin-left: 0; }
.footer-col-social { flex: 1 1 200px; text-align: center; border-left: 1px solid rgba(255,255,255,0.3); }
.social-icons { font-size: 1.5rem; margin-bottom: 10px; }
.social-icons a { color: white; margin: 0 10px; }

/* === MODALES (Responsivos) === */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000; justify-content: center; align-items: center; padding: 10px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background-color: white; padding: 0; /* Padding manejado internamente */
    border-radius: 15px; width: 95%; max-width: 900px;
    max-height: 90vh; overflow-y: auto; /* Scroll interno */
    position: relative; animation: slideIn 0.3s ease;
}

@keyframes slideIn { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close-btn {
    position: absolute; top: 10px; right: 15px; background: rgba(255,255,255,0.8);
    border: none; font-size: 2rem; cursor: pointer; color: #333; z-index: 100; border-radius: 50%; width: 40px; height: 40px;
}

/* =======================================
   Modal FUNDAUPTYAB
   ======================================= */
.modal-overlay .modal-fundauptyab {
    background-color: var(--color-white) !important;
    color: var(--color-primary);
    max-width: 950px;
    border-radius: 20px;
    padding: 40px 45px !important;
    position: relative;
    overflow-y: auto;
}

.modal-fundauptyab .modal-close-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--color-primary) !important;
    top: 15px;
    right: 20px;
    transition: background 0.3s ease;
}

.modal-fundauptyab .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    color: var(--color-text-dark) !important;
}

.fundauptyab-modal-body {
    display: flex;
    gap: 40px;
}

/* Columna Izquierda */
.fundauptyab-col-left {
    flex: 1;
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    padding-right: 35px;
}

.fundauptyab-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.fundauptyab-col-left p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
    color: var(--color-primary);
}

.fundauptyab-col-left p strong {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.92rem;
}

/* Columna Derecha */
.fundauptyab-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 5px;
}

.fundauptyab-contact-block h3,
.fundauptyab-docs-block h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.fundauptyab-contact-block p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-primary);
}

.fundauptyab-email {
    font-weight: 700;
    color: var(--color-primary);
    word-break: break-all;
}

.fundauptyab-docs-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 8px;
}

.fundauptyab-docs-list li {
    font-size: 0.88rem;
    margin-bottom: 5px;
   color: var(--color-primary);
    line-height: 1.4;
}

/* Responsive: Móvil */
@media (max-width: 768px) {
    .modal-fundauptyab {
        padding: 30px 20px;
        max-width: 95%;
    }

    .fundauptyab-modal-body {
        flex-direction: column;
        gap: 25px;
    }

    .fundauptyab-col-left {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        padding-right: 0;
        padding-bottom: 25px;
    }

    .fundauptyab-title {
        font-size: 1.6rem;
    }
}


/* =======================================================
   MEDIA QUERIES - AQUÍ OCURRE LA MAGIA MÓVIL
   ======================================================= */

@media screen and (max-width: 992px) {
    /* Tablet y pantallas medianas */
    .about-section, .news-content-wrapper { flex-direction: column; }
    .image-container::before, .image-container::after { display: none; } /* Quitar bordes complejos */
    .side-news-item p { 
    font-size: 0.85rem; 
    color: #555;
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
}
@media screen and (max-width: 998px) {
    /* Tablet y pantallas medianas */

    .side-news-item p { 
    font-size: 0.85rem; 
    color: #555;
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
}
@media screen and (max-width: 1260px) {
    /* Tablet y pantallas medianas */

    .side-news-item p { 
    font-size: 0.85rem; 
    color: #555;
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
}
@media screen and (max-width: 1359px) {
    /* Tablet y pantallas medianas */

    .side-news-item p { 
    font-size: 0.85rem; 
    color: #555;
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
}
@media screen and (max-width: 768px) {
    /* === MENU MÓVIL === */
    .navbar { padding: 0 20px; }
    .hamburger { display: block; z-index: 1100; }
    
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 75%; /* Cajón lateral */
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%); /* Oculto a la derecha */
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        padding-top: 60px;
    }
    
    .nav-links.active { transform: translateX(0); } /* Mostrar al activar */
    
    .nav-links a { font-size: 1.2rem; width: 100%; text-align: center; }

    /* Dropdown en móvil */
    .dropdown-content {
        position: static; box-shadow: none;display: none;
        background: rgba(0,0,0,0.2); width: 100%; text-align: center;
    }
    .dropdown {
        width: 100%; /* Para que cada elemento ocupe todo el ancho */
        text-align: center;
    }
    .dropdown-content a {
        text-align: center;
    }
    /* 1. ANULAR el hover de escritorio en móvil */
    .dropdown:hover .dropdown-content {
        display: none; 
    }

    /* 2. REGLA CLAVE: Mostrar solo con la clase 'active' que pone JS */
    .dropdown.active .dropdown-content {
        display: block;
        position: static; /* ¡Importante! Hace que el submenú ocupe su propio espacio */
        width: 100%;
        /* Opcional: Añade un poco de indentación para que se vea más limpio */
        
    }


    
    /* === CARRUSEL HERO === */
 carousel-container { 
        height: 85vh; /* Altura fija para que todos los slides midan lo mismo */
        min-height: auto; 
    }
    
    .slide-content { 
        text-align: center; 
        margin-left: 0; 
        padding: 0 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%; /* Asegura que el contenido use toda la altura del slide */
    }

    /* Ocultamos el logo en móviles */
    .logo-side {
        display: none;
    }

    .content-wrapper,
    .content-wrapper.split {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        gap: 20px;
        text-align: center;
    }

    .text-side {
        flex: none;
        width: 100%;
    }

    .slide-content h1 { 
        font-size: 2rem; 
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* Centramos el botón y eliminamos márgenes laterales extraños */
    .btn-orange {
        margin: 0 auto; 
        display: inline-block;
        float: none;
    }

    /* Ajuste de flechas para que no se encimen con el texto */
    .carousel-btn {
        padding: 8px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.3); /* Más sutil en móvil */
    }

    /* === PNF SCROLL HORIZONTAL (Tipo Netflix) === */
    .pnf-carousel-track {
       
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        padding-bottom: 5px;
    }
    .pnf-slide {
        scroll-snap-align: center;
        margin-right: 10px;
        width: 85vw; /* Tarjeta casi ancho completo */
    }
    .pnf-carousel-btn { display: none; } /* Ocultar flechas en móvil */

   
    
    /* === COLUMNAS GENERICAS === */
    .split-col, .bienestar-columna-texto, .right-column { padding: 2rem 1.5rem; }
    
    /* === FOOTER === */
    .footer-wrapper { flex-direction: column; text-align: center; }
    .footer-col-social { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
    .info-item { justify-content: center; margin-left: 0; }
    
  
}

/* =======================================
   Estilos de la Sección Mapa
   ======================================= */
   .mapa-section {
    width: 100%;
    padding: 0;
    background-color: #f0f0f0;
    min-height: 200px;
}

.mapa-titulo {
    /* Reemplaza el bloque naranja de la imagen */
    background-color: var(--color-highlight); /* Naranja */
    padding: 1rem 1rem;
    text-align: center;
}

.mapa-titulo h2 {
    font-size: 2.5rem;
    color: var(--color-text-light);
    font-weight: 700;
    margin: 0;
}

.mapa-iframe-container {
    width: 100%;
    height: 450px; /* Altura del mapa */
    overflow: hidden;
}

.mapa-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =======================================
   Estilos del Modal
   ======================================= */

   .modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se queda fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fondo oscuro semitransparente */
    z-index: 2000; /* Por encima de todo */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto; /* Permite scroll si el contenido es muy alto */
}

/* Clase que activa el modal (se añade con JS) */
.modal-overlay.active {
    display: flex; /* Se muestra al activar */
}

.modal-content {
    background-color: var(--color-text-light); /* Fondo blanco */
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 900px; /* Ancho máximo del modal */
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    /* Animación de entrada */
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--color-text-dark);
}

/* =======================================
   Estilos del Contenido del Modal (Historia)
   ======================================= */

.historia-modal-body {
    display: flex;
    align-items: center;
    gap: 3rem;
    
}

.historia-texto {
    flex: 1; /* Ocupa 50% */
    min-width: 290px;
}

.historia-texto h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.historia-texto p {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: justify;
    
}

.historia-imagen {
    flex: 1; /* Ocupa 50% */
    min-width: 280px;
}

.historia-imagen img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =======================================
   Ajustes Responsivos para el Modal
   (Añadir DENTRO de @media (max-width: 767px))
   ======================================= */
@media (max-width: 767px) {
    .historia-modal-body {
        /* Se invierte el orden: imagen arriba, texto abajo */
        flex-direction: column-reverse; 
        gap: 1.5rem;
    }

    .modal-content {
        padding: 3rem 1.5rem 1.5rem 1.5rem; /* Más padding arriba para el botón X */
        width: 95%;
    }

    .historia-texto h2 {
        font-size: 2rem;
        text-align: center;
    }
    
}

@media screen and (max-width: 1213px) {
    /* === MENU MÓVIL === */
    .navbar { padding: 0 20px; }
    .hamburger { display: block; z-index: 1100; }
    
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 75%; /* Cajón lateral */
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%); /* Oculto a la derecha */
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        padding-top: 60px;
    }
    
    .nav-links.active { transform: translateX(0); } /* Mostrar al activar */
    
    .nav-links a { font-size: 1.2rem; width: 100%; text-align: center; }

    /* Dropdown en móvil */
    .dropdown-content {
        position: static; box-shadow: none;display: none;
        background: rgba(0,0,0,0.2); width: 100%; text-align: center;
    }
    .dropdown {
        width: 100%; /* Para que cada elemento ocupe todo el ancho */
        text-align: center;
    }
    .dropdown-content a {
        text-align: center;
    }
    /* 1. ANULAR el hover de escritorio en móvil */
    .dropdown:hover .dropdown-content {
        display: none; 
    }

    /* 2. REGLA CLAVE: Mostrar solo con la clase 'active' que pone JS */
    .dropdown.active .dropdown-content {
        display: block;
        position: static; /* ¡Importante! Hace que el submenú ocupe su propio espacio */
        width: 100%;
        /* Opcional: Añade un poco de indentación para que se vea más limpio */
        
    }
}

/* =======================================
   Estilos del Modal (Misión y Visión)
   ======================================= */

/* Ajuste para que el banner toque los bordes */
.modal-content.modal-mision-vision {
    padding: 0; /* Quitamos el padding general */
    overflow-y: auto; /* Para que el banner respete los bordes redondeados */
    max-width: 1200px; /* Un modal más ancho */
    height: 520px;
}

.mision-banner {
    position: relative;
    width: 100%;
    height: 300px; /* Altura del banner */
}

.mision-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre el contenedor */
    display: block;
}

/* Overlay oscuro sobre el banner para legibilidad */
.mision-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  
    z-index: 1;
}

.mision-banner h2 {
    position: absolute;
    bottom: 20px;
    left: 2.5rem; /* Alineado con el padding del texto de abajo */
    font-size: 2.8rem;
    color: var(--color-text-light);
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    top: 105px;
    font-weight: 900;
}

.mision-vision-text-container {
    display: flex;
    flex-wrap: wrap; /* Para apilar en móvil */
    /* Añadimos el padding que quitamos del modal-content */
    padding: 2.5rem; 
    gap: 2rem;
    width: 100%;
}

.mision-col, .vision-col {
    flex: 1; /* Ambas columnas ocupan 50% */
    width: 50%;
    margin-left: 10%;
}

.mision-col h3, .vision-col h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.mision-col p, .vision-col p {
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--color-text-dark);
    text-align: justify;
    width: 75%;
    letter-spacing: 0.1px;
    word-spacing: 0.01em;
}

.text-orange {
    color: var(--color-highlight); /* Naranja */
    font-weight: bold;
}

.text-blue {
    color: var(--color-primary); /* Azul */
    font-weight: bold;
}

/* =======================================
   Ajustes Responsivos para Misión y Visión
   (Añadir DENTRO de @media (max-width: 767px))
   ======================================= */
@media (max-width: 767px) {
   .modal-content.modal-mision-vision {
        height: auto; /* Permite que el modal crezca según el contenido */
        max-height: 90vh;
    }

    .mision-banner {
        height: 120px;
    }

    .mision-banner h2 {
        font-size: 1.8rem;
        left: 1rem;
        top: 50px; /* Ajustado para que no se salga del banner pequeño */
    }

    .mision-vision-text-container {
        flex-direction: row; /* FUERZA que sigan uno al lado del otro */
        flex-wrap: nowrap;   /* Evita que la visión se baje */
        padding: 1rem;
        gap: 10px;           /* Espacio reducido entre columnas */
    }

    .mision-col, .vision-col {
        flex: 1;
        width: 50%;
        margin-left: 0;      /* ELIMINADO el 10% que empujaba el contenido hacia afuera */
    }

    .mision-col h3, .vision-col h3 {
        font-size: 1rem;
    }

    .mision-col p, .vision-col p {
        font-size: 0.75rem;  /* Texto más pequeño para que quepa en el ancho */
        width: 100%;         /* ELIMINADO el 75% para usar todo el ancho de la columna */
        text-align: left;    /* Justificar en columnas tan estrechas crea huecos feos */
    }

   
    .historia-trigger-content h2 {
        font-size: 2.2rem;
    }
}


/* =======================================
   Estilos del Modal (Autoridades)
   ======================================= */

   .modal-content.modal-autoridades {
    padding: 0;
    max-width: 1200px; /* Un modal más ancho */
    /* IMPORTANTE: Permite que la foto del rector se 'salga' por arriba */
    overflow: visible; 
    height: 320px;
}

.autoridades-banner {
    position: relative;
    width: 100%;
    height: 300px; /* Altura del banner */
    border-radius: 15px 15px 0 0; /* Redondeo solo arriba */
    overflow: hidden; /* Para que la imagen respete el borde */
}

.autoridades-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay y Título (similar a Misión/Visión) */
.autoridades-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    z-index: 1;
}

.autoridades-banner h2 {
    position: absolute;
    bottom: 20px;
    left: 2.5rem;
    font-size: 2.8rem;
    color: var(--color-text-light);
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    top: 105px;
    font-weight: 900;
}

/* Contenedor de la Grilla (el fondo blanco) */
.autoridades-grid-container {
   
    /* 5 columnas de igual tamaño */
   
    padding: 1.5rem;
    background-color: var(--color-text-light);
    border-radius: 0 0 15px 15px;
    
    /* MAGIA: Jala el fondo blanco hacia arriba, sobre el banner */
    margin-top: -10px; 
    position: relative;
    z-index: 5; /* Para que esté sobre el overlay del banner */
    
}
.autoridades-grid-container img{
height: 80%;
width: 100%;

}



/* =======================================
   Ajustes Responsivos para Autoridades
   (Añadir DENTRO de @media (max-width: 992px))
   ======================================= */
@media (max-width: 992px) {
    .autoridades-grid-container {
        /* Pasa a 2 columnas en tablet */
        grid-template-columns: repeat(2, 1fr);
        padding-top: 1.5rem;
        margin-top: -80px;
    }

    /* El rector ocupa toda la fila y va primero */
    .rector-card-special {
        grid-column: 1 / -1; /* Ocupa todo el ancho */
        order: -1; /* Va primero */
        transform: translateY(150px);
    }
    
    /* Ocultamos los placeholders en tablet */
    .autoridad-photo-placeholder {
        display: none;
    }
}

/* =======================================
   Ajustes Responsivos para Autoridades
   (Añadir DENTRO de @media (max-width: 767px))
   ======================================= */
@media (max-width: 767px) {
    .autoridades-grid-container {
        /* Pasa a 1 columna en móvil */
        grid-template-columns: 1fr;
        margin-top: -80px;
        gap: 1.5rem; /* Más espacio vertical */
    }

    /* El rector (que ya está primero) se queda así */
    .rector-card-special {
        transform: translateY(150px);
    }

    .autoridades-banner h2 {
        font-size: 2.2rem;
        left: 1.5rem;
        bottom: 15px;
    }
}


/* =======================================
   Estilos del Modal (Documentos)
   ======================================= */

   .modal-content.modal-documentos {
    max-width: 1300px; /* Un modal más ancho */
    padding: 2rem;
    overflow-x: hidden;
}

.documentos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 30px;
}

.documentos-text {
    flex-grow: 1;
}

.documentos-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary); /* Azul Oscuro */
    margin-bottom: 0.75rem;
    font-weight: 900;
}

.documentos-text p {
    color: var(--color-text-dark);
    max-width: 450px;
    text-align: justify;
    line-height: 1.2;
}

.documentos-icon {
    position: relative;
    /* Contenedor que simula la forma del icono de la imagen */
    width: 120px; 
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icono principal: Archivo (fas fa-file-alt) */
.documentos-icon .fa-file-alt {
    font-size: 5rem; 
    color: var(--color-primary); 
    position: absolute;
    left: 10px;
}

/* Icono secundario: Descarga (fas fa-file-download) */
.documentos-icon .fa-file-download {
    font-size: 2rem; 
    color: var(--color-text-light); /* Blanco */
    background-color: var(--color-primary); /* Azul */
    border-radius: 50%;
    padding: 10px;
    position: absolute;
    bottom: 5px; 
    right: 5px;
    border: 3px solid var(--color-text-light); /* Borde blanco para resaltar */
}


/* Grilla de Botones de Documentos */
.documentos-grid-container {
    display: grid;
    /* 6 columnas para Desktop */
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;

}
.documentos-grid-container-2 {
    display: grid;
    /* 6 columnas para Desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
}

.doc-button {
    display: block;
    background-color: var(--color-highlight); /* Naranja */
    color: var(--color-text-light); /* Blanco */
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.7rem;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap; /* Evita que el texto se rompa */
    overflow: hidden;
    text-overflow: ellipsis; /* Añade puntos suspensivos si se desborda */
}

.doc-button:hover {
    background-color: #d85c0c; 
    transform: translateY(-2px);
}

/* Estilo para los botones destacados (Gaceta, Organigrama) */
.doc-button.doc-special {
    grid-column: span 3; /* Ocupan 3 columnas cada uno en desktop (6/2=3) */
    font-size: 1.1rem;
    padding: 1.2rem 1rem;
}


/* =======================================
   Ajustes Responsivos para Documentos
   ======================================= */
@media (max-width: 992px) {
    .documentos-grid-container {
        /* Pasa a 4 columnas en tablet */
        grid-template-columns: repeat(4, 1fr);
    }
    
    .doc-button.doc-special {
        grid-column: span 2; /* Ocupan 2 columnas cada uno (4/2=2) */
    }
}

@media (max-width: 767px) {
    .modal-content.modal-documentos {
        padding: 1.5rem;
    }
    
    .documentos-header {
        flex-direction: column; /* Apila el texto y el ícono */
        text-align: center;
        align-items: center;
    }
    
    .documentos-text h2 {
        font-size: 2rem;
    }
    
    .documentos-text p {
        max-width: 100%;
    }
    
    .documentos-icon {
        /* Mueve el ícono al principio en móvil */
        order: -1; 
        margin-bottom: 1.5rem;
    }
    
    .documentos-grid-container {
        /* Pasa a 2 columnas en móvil */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .doc-button.doc-special {
        grid-column: span 1; /* Vuelve a 1 columna para que quepan todos */
        font-size: 0.9rem;
        padding: 1rem 0.5rem;
    }
}



/* =======================================
   Estilos del Modal PNF (Procesos Químicos)
   ======================================= */

/* Ajuste del contenido general del modal */
.modal-content.pnf-modal-content {
    max-width: 1200px; /* Un poco más ancho para que quepa todo */
    padding: 2rem; /* Menos padding para que la imagen y texto se ajusten mejor */
}

.pnf-modal-body {
    display: flex;
    gap: 1rem; /* Espacio entre imagen y texto */
    align-items: flex-start; /* Alinear arriba */
}

/* Columna de la Imagen */
.pnf-modal-col-img {
    flex: 0 0 50%; /* Ancho fijo para la columna de imagen */
}

.pnf-modal-col-img img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Bordes redondeados como en la imagen */
}

/* Columna de Texto */
.pnf-modal-col-text {
    flex: 1; /* Ocupa el espacio restante */
    color: var(--color-text-dark);
}

.pnf-modal-col-text h2 {
    font-size: 2.2rem;
    color: var(--color-primary); /* Azul UPTYAB */
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.pnf-modal-col-text h3 {
    font-size: 1.2rem;
    color: var(--color-primary); /* Azul UPTYAB */
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.pnf-modal-col-text p,
.pnf-modal-col-text li {
    font-size: 0.80rem;
    line-height: 1.4;
    text-align: justify;
}

.pnf-modal-col-text ul {
    list-style-position: inside;
    padding-left: 5px;
}

/* Botón de Malla Curricular */
.pnf-malla-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary); /* Fondo azul */
    color: var(--color-text-light); /* Texto blanco */
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.pnf-malla-btn i {
    font-size: 1.2rem;
}

.pnf-malla-btn:hover {
    background-color: #001a4a; /* Azul más oscuro */
}


/* =======================================
   Ajustes Responsivos para Modal PNF
   (Añadir DENTRO de @media (max-width: 767px))
   ======================================= */
@media (max-width: 767px) {
    .pnf-modal-body {
        flex-direction: column; /* Apila la imagen sobre el texto */
    }

    .modal-content.pnf-modal-content {
        padding: 1.5rem;
        /* Aseguramos que el botón X se vea */
        padding-top: 3.5rem; 
    }

    .pnf-modal-col-img {
        flex: 0 0 auto;
        width: 100%;
    }

    .pnf-modal-col-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .pnf-malla-btn {
        width: 100%;
        justify-content: center; /* Centra el texto del botón */
    }
}

/* =======================================
   Estilos de la Sección Revista Científica
   ======================================= */

   .revista-cientifica-section {
    width: 100%;
    position: relative;
    overflow: hidden; /* Para asegurar que el fondo no se desborde */
    min-height: 650px; /* Altura mínima similar a otras secciones */
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
    
    /* === LA IMAGEN DE FONDO === */
    /* Asegúrate de que 'Rectangle 5 (3).jpg' esté accesible */
    background-image: url('/repositorio/img/fondo\ prueba\ 2\ \(1\).png'); 
    
    background-size: cover;
    background-position: center;
}

/* Overlay azul oscuro para la sección completa */
.revista-cientifica-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.revista-cientifica-wrapper {
    position: relative;
    z-index: 2; /* Contenido sobre el overlay */
    width: 100%;
    max-width: 1200px; /* Ancho máximo para centrar el contenido */
    margin: 0 auto;
    padding: 4rem 2rem; /* Espaciado interno */
    color: var(--color-text-light); /* Texto blanco */
    display: flex;
    justify-content: flex-start; /* Alinea el contenido a la izquierda */
    align-items: center;
}

.revista-cientifica-contenido {
    max-width: 600px; /* Limita el ancho del texto para mejor legibilidad */
    text-align: left;
}

.revista-cientifica-contenido h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.revista-cientifica-contenido p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    text-align: justify;
    line-height: 1.2;
 letter-spacing: 0.1px;
    word-spacing: 0.01em;
    font-weight: 600;

}
.revista-imagenes-placeholder {
    display: flex;
    gap: 2rem; /* Espacio entre los placeholders */
    margin-top: 3rem;
}

.placeholder-item {
    width: 150px; /* Ancho de cada "tarjeta" */
    height: 200px; /* Alto de cada "tarjeta" */
    background-color: var(--color-text-light); /* Blanco */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* =======================================
   Ajustes Responsivos para Revista Científica
   ======================================= */

/* Para Tablets (menos de 992px) */
@media (max-width: 992px) {
    .revista-cientifica-wrapper {
        padding: 3rem 1.5rem;
    }
    .revista-cientifica-contenido h2 {
        font-size: 2.8rem;
    }
    .revista-cientifica-contenido p {
        font-size: 1rem;
    }
    .revista-imagenes-placeholder {
        gap: 1.5rem;
        justify-content: center; /* Centrar placeholders en tablet */
    }
    .placeholder-item {
        width: 120px;
        height: 160px;
    }
}

/* Para Móviles (menos de 767px) */
@media (max-width: 767px) {
    .revista-cientifica-wrapper {
        padding: 2.5rem 1rem;
        justify-content: center; /* Centra el contenido en móvil */
        text-align: center;
    }
    .revista-cientifica-contenido {
        max-width: 100%; /* Ocupa todo el ancho disponible */
    }
    .revista-cientifica-contenido h2 {
        font-size: 2.2rem;
    }
    .revista-cientifica-contenido p {
        font-size: 0.9rem;
    }
    .revista-imagenes-placeholder {
        flex-direction: column; /* Apila los placeholders verticalmente */
        align-items: center; /* Centra los placeholders apilados */
        gap: 1rem;
        margin-top: 2rem;
    }
    .placeholder-item {
        width: 100px; /* Ancho más pequeño en móvil */
        height: 140px;
    }
}




/* Fondo de la Modal (Overlay) */
.modal-overlay-pnf-a-1 {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    z-index: 2000; /* Asegura que esté por encima de todo */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(3px); /* Efecto de desenfoque opcional */

    overflow-y: auto;        /* Permite el scroll dentro del overlay */
    padding: 40px 20px;      /* Espacio arriba y abajo para que no pegue a los bordes */
    backdrop-filter: blur(3px);
}
.modal-overlay-pnf-a-1.active { display: flex; }

/* Contenido Principal de la Modal */
.modal-content-pnf-a-1 {
    background-color: var(--color-white);
    border-radius: 15px; /* Bordes redondeados */
    width: 100%;
    max-width: 900px; /* Ancho máximo para el equilibrio del contenido */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* Sombra suave */
    position: relative;
    overflow: hidden; /* Contiene los bordes redondeados del banner */
    animation: modalFadeIn 0.3s ease; /* Animación de desvanecimiento */
}

/* Animación de entrada de la modal */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón de cierre ('X') */
.modal-close-pnf-a-1 {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 2001; /* Asegura que el botón X esté por encima */
    font-weight: bold;
    line-height: 1;
}

.modal-close-pnf-a-1:hover {
    color: var(--color-highlight); /* Color de resaltado al pasar el mouse */
}

/* Encabezado de la Modal (Imagen Banner) */
.modal-header-pnf-a-1 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-banner-img-pnf-a-1 {
    width: 100%;
    height: auto;
    display: block;
}

/* Cuerpo de la Modal (Flexbox para dos columnas) */
.modal-body-pnf-a-1 {
    display: flex;
    padding: 40px; /* Espaciado interno generoso */
    gap: 40px; /* Espacio entre columnas */
    justify-content: space-between;
}

/* Estilos de columna generales */
.modal-column-pnf-a-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--color-primary); /* Color azul oscuro principal de la UPTYAB */
}

/* Estilos Específicos de la Columna Izquierda (Recaudos) */
.modal-column-pnf-a-1-left h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.modal-column-pnf-a-1-left ul {
    list-style: disc; /* Usar viñetas estándar */
    padding-left: 20px; /* Sangría de la lista */
}

.modal-column-pnf-a-1-left li {
    margin-bottom: 12px; /* Espaciado entre elementos de la lista */
    line-height: 1.4; /* Altura de línea para legibilidad */
    font-size: 1.1rem; /* Tamaño de fuente ligeramente mayor para los ítems */
}

/* Estilos Específicos de la Columna Derecha (Atención y Contacto) */
.modal-column-pnf-a-1-right {
    text-align: left;
}

.modal-column-pnf-a-1-right h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 20px;
}
/* No añadir margen superior al primer encabezado de la columna derecha */
.modal-column-pnf-a-1-right h3:first-child { margin-top: 0; }

.modal-column-pnf-a-1-right p {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Estilo para el enlace de correo electrónico */
.modal-contact-link {
    color: #1a73e8; /* Color azul para el enlace de correo */
    text-decoration: none;
    font-weight: 500;
}

.modal-contact-link:hover {
    text-decoration: underline; /* Subrayado al pasar el mouse */
}

/* === Media query para diseño responsivo en móviles === */
@media (max-width: 768px) {
    .modal-body-pnf-a-1 {
        flex-direction: column; /* Cambiar a diseño de una sola columna en móviles */
        padding: 20px; /* Menos espaciado interno en móviles */
        gap: 20px; /* Menos espacio entre las secciones apiladas */
    }
    .modal-column-pnf-a-1-left h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    .modal-column-pnf-a-1-right {
        text-align: center; /* Centrar el texto en móviles */
    }
    .modal-column-pnf-a-1-right h3 { margin-top: 15px; } /* Ajustar margen superior en móviles */
}


/* Fondo de la Modal (Overlay) */
.modal-overlay-pnf-inf-1 {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    
    /* CAMBIOS AQUÍ: */
    justify-content: center;
    align-items: flex-start; /* Cambiado de 'center' a 'flex-start' para que no corte el tope */
    overflow-y: auto;        /* Permite el scroll dentro del overlay */
    padding: 40px 20px;      /* Espacio arriba y abajo para que no pegue a los bordes */
    backdrop-filter: blur(3px);
}
.modal-overlay-pnf-inf-1.active { display: flex; }
/* Contenido Principal de la Modal */
.modal-content-pnf-inf-1 {
    background-color: var(--color-white);
    border-radius: 15px; 
    width: 100%;
    /* Cambia 900px por un valor mayor según lo que necesites */
    max-width: 1150px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}


/* Botón de cierre ('X') */
.modal-close-pnf-inf-1 {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 2001; /* Asegura que el botón X esté por encima */
    font-weight: bold;
    line-height: 1;
}

.modal-close-pnf-inf-1:hover {
    color: var(--color-highlight); /* Color de resaltado al pasar el mouse */
}

/* Encabezado de la Modal (Imagen Banner) */
.modal-header-pnf-inf-1 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-banner-img-pnf-inf-1 {
    width: 100%;
    height: auto;
    display: block;
}

/* Cuerpo de la Modal (Flexbox para dos columnas) */
.modal-body-pnf-inf-1 {
    display: flex;
    padding: 50px; /* Aumentado de 40px a 50px */
    gap: 60px;    /* Aumentado de 40px a 60px para separar más las columnas */
    justify-content: space-between;
}

/* Estilos de columna generales */
.modal-column-pnf-inf-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--color-primary); /* Color azul oscuro principal de la UPTYAB */
}

/* Estilos Específicos de la Columna Izquierda (Recaudos) */
.modal-column-pnf-inf-1-left h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.modal-column-pnf-inf-1-left ul {
    list-style: disc; /* Usar viñetas estándar */
    padding-left: 20px; /* Sangría de la lista */
}

.modal-column-pnf-inf-1-left li {
    margin-bottom: 12px; /* Espaciado entre elementos de la lista */
    line-height: 1.4; /* Altura de línea para legibilidad */
    font-size: 1.1rem; /* Tamaño de fuente ligeramente mayor para los ítems */
}

/* Estilos Específicos de la Columna Derecha (Atención y Contacto) */
.modal-column-pnf-inf-1-right {
    text-align: left;
}

.modal-column-pnf-inf-1-right h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 20px;
}
/* No añadir margen superior al primer encabezado de la columna derecha */
.modal-column-pnf-inf-1-right h3:first-child { margin-top: 0; }

.modal-column-pnf-inf-1-right p {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Estilo para el enlace de correo electrónico */
.modal-contact-link {
    color: #1a73e8; /* Color azul para el enlace de correo */
    text-decoration: none;
    font-weight: 500;
}

.modal-contact-link:hover {
    text-decoration: underline; /* Subrayado al pasar el mouse */
}

/* === Media query para diseño responsivo en móviles === */
@media (max-width: 768px) {
    .modal-body-pnf-inf-1 {
        flex-direction: column; /* Cambiar a diseño de una sola columna en móviles */
        padding: 20px; /* Menos espaciado interno en móviles */
        gap: 20px; /* Menos espacio entre las secciones apiladas */
    }
    .modal-column-pnf-inf-1-left h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    .modal-column-pnf-inf-1-right {
        text-align: center; /* Centrar el texto en móviles */
    }
    .modal-column-pnf-inf-1-right h3 { margin-top: 15px; } /* Ajustar margen superior en móviles */
}


.modal-overlay-be {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se queda fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fondo oscuro semitransparente */
    z-index: 2000; /* Por encima de todo */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto; /* Permite scroll si el contenido es muy alto */
  }
  .modal-overlay-be.active { display: flex; }
  
  .modal-content-be {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    border-radius: 25px;
    overflow: hidden;
    /* Reemplaza 'tu-imagen.jpg' con la ruta de tu imagen real */
    background-image: url('/repositorio/img/Mask.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-end; /* Alinea el contenido a la derecha */
    align-items: center;
    color: white;
 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  }
  
  .text-container-be {
    width: 60%; /* Ocupa la mitad derecha */
    padding: 40px;
    text-align: left;
  }
  
  h1 {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  
  .intro-be {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 300;
  }
  
  .benefits-list-be {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
  }
  
  .benefits-list-be li {
  
    font-weight: 500;
    position: relative;
    padding-left: 15px;
  }
  
  /* Simula el guion de la lista */
  .benefits-list-be li::before {
    content: "-";
    position: absolute;
    left: 0;
  }
  
  .benefits-list-be {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 300;
  }
  
  .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }
  
  /* Responsivo para móviles */
  @media (max-width: 768px) {
    .modal-content-be {
      justify-content: center;
      background-image:  url('/repositorio/img/Mask.png');
    }
    .text-container-be {
      width: 90%;
      padding: 20px;
    }
    h1 { font-size: 1.6rem; }
  }

