/* =====================================================
   1. BASE GLOBAL
===================================================== */

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
     font-family: "Montserrat", sans-serif !important;
} 

ul, ol, li {
    font-family: "Montserrat", sans-serif !important;
}
.lab-list li,
.navigation li,
.research-section li {
    font-family: "Montserrat", sans-serif !important;
}
body a {
    text-decoration: none !important;
    color: #000;
}

a:hover {
    color: #1a3f95;
}

h3 {
    color: #000 !important;
    font-weight: 700;
}

p {
    font-weight: 400;
}


/* =====================================================
   2. WRAPPER / ESTRUCTURA
===================================================== */
#site-wrapper {
  position: relative;
  isolation: isolate;
}
#site-wrapper {
    display: block !important;
    width: 100% !important;
}


/* =====================================================
   HEADER + NAVBAR (VERSIÓN ESTABLE)
===================================================== */

header,
footer {
    position: relative;
    z-index: 9999;
}


/* HEADER BASE */
.header .navbar-collapse{
        margin-left: 25px !important;
        margin-right: 0 !important;
    }
.header {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 20px 0;
}

.logos-container{
    margin-bottom: 25px;
}
/* CONTENEDOR PRINCIPAL */
.header .d-flex {
   display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* 👈 CLAVE */
}

/* Escritorio */
@media (min-width: 769px){
    .container{
        max-width:1400px !important;
    }

    .navigation.navbar{
        flex: 1;
        display: flex;
        justify-content: flex-start;   /* antes center */
        align-items: center;
    }

    .navigation.navbar .navbar-nav{
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        gap: 40px;
    }
    .navbar-collapse{
        justify-content:flex-start !important;
    }


}

/* NAVBAR BASE (NO forzar flex aquí) */
.navbar,
.navigation.navbar {
    position: relative !important;
    width: 100%;
    background: #fff !important;
}

/* COLLAPSE CORRECTO (IMPORTANTE) */
.navbar-collapse {
    display: none;
}

.navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
    text-align: center;
}

/* MENU DESKTOP 
.navigation.navbar .navbar-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: auto !important;
    margin: 0;
    padding: 0;
    gap: 40px;
    
}*/

/* LINKS */
.navigation.navbar .nav-link {
    padding: 10px 8px !important;
    color: #000 !important;
    text-align: center;
    white-space: nowrap;
}

/* ================= RESPONSIVE 992px ================= */

@media (max-width: 992px) {

    .logo img {
        height: 30px;
        width: auto;
    }

    .logocio img {
        height: 40px;
        width: auto;
    }

    .navigation.navbar .nav-link {
        padding: 6px 8px !important;
        font-size: 13px; 
    }
    .navigation.navbar .navbar-nav{
        display:flex !important;
        justify-content:center !important;
        align-items:center;
        gap:40px;

        transform: translateY(-18px);
    }
}
/* OCULTAR hamburguesa en escritorio */
.navbar-toggler {
    display: none !important;
}

/* SOLO mostrar en móvil */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block !important;
    }
}
/* ================= RESPONSIVE 768px ================= */

@media (max-width: 768px) {
    .header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header .d-flex {
        padding: 0 6px;
        gap: 6px;
    }

    .logo img,
    .logocio img {
        max-height: 35px;
    }
    .navigation.navbar {
        margin-top: 0 !important;
    }
.navigation.navbar .navbar-nav {
    padding-left: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
    .navbar {
        width: 100%;
        order: 3;
    }

    .navbar-collapse {
        width: 100%;
    }

    .navbar-toggler {
        order: 2;
        margin-left: auto;
    }

    .logo {
        order: 1;
    }

    .logocio {
        order: 2;
        margin-right: 0 !important;
    }
    
    .logocio img {
        height: 25px !important;
        width: auto;
    }
        .navigation.navbar-dark .navbar-toggler {
        float: right;
        border: inherit;
        margin-top: -71px;
        margin-right: -25px;
    }
}
.navbar-toggler-icon {
    margin-top: 10% !important;
}

.navigation.navbar .navbar-toggler-icon {
    margin-top: 35px !important;
}
/* ================= NAV FIX SEGURO (MOBILE ONLY) ================= */

@media (max-width: 768px) {
    
    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;

        background: #fff !important;
        z-index: 9999 !important;

        padding: 10px 0 !important;
    }

    .navbar-collapse:not(.show) {
        display: none !important;
    }

    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .navigation.navbar .navbar-nav {
        transform: none !important;
        margin: 0 auto !important;
        padding-left: 0 !important;

        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: center !important;
        align-items: center !important;
    }


    .navigation.navbar .nav-item {
    width: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

.navigation.navbar .nav-link {
    display: block !important;
    width: auto !important;
    text-align: center !important;
    padding: 12px 0 !important;
}
}
@media (min-width: 769px) {
      .logo {
        order: 1;
    }

    .navigation.navbar {
        order: 2;
    }

    .logocio {
        order: 3;
        margin-left: auto;  /* 👈 esto lo manda a la derecha REAL */
        margin-right: 20px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {

    .header {
        padding: 20px 0 !important;
    }

    .navigation.navbar .navbar-nav {
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: auto !important;
        gap: 1px !important;
    }

    .navigation.navbar .nav-link {
        padding: 6px 5px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

}

.lab-image-separator{
    width: 100%;
    height: 400px; /* ajusta según necesites */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* opcional: efecto visual más pro */
    position: relative;
}
.lab-image-separator::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}
.lab-image-01{
    background-image: url("../images/laboratorios/01_prueba.jpg");
}
/* =====================================================
   4. LOGO
===================================================== */

.logo,
.logocio {
    margin-top: 15px !important;
}

.logo img {
    max-height: 50px !important;
    width: auto !important;
    display: block !important;
}

.logocio img {
    max-height: 60px !important;
    width: auto !important;
    display: block !important;
    margin-right: 0px;
}
@media (max-width: 992px) {

    .logo img {
        height: 30px;
    }
    
    .logocio img {
        height: 40px;
    }
    .logocio {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {

    .header .d-flex {
        display: flex;
    justify-content: space-between;
    align-items: center;
    }

    .logo {
        order: 1;
    }
    .logo img {
        height: 20px;
    }

    .navigation.navbar {
        order: 2;
        flex: 1;
    }

    .logocio {
        display: flex !important;
        justify-content: flex-end;
    }
     .logo img {
        height: 20px;
    }
}
/* =====================================================
   BANNER BASE
===================================================== */

.banner {
     position: relative;
     background: url(../images/banner1.jpg);
     background-size: 100% 100%;
     background-position: center;
     background-repeat: no-repeat;
     min-height: 804px;
     padding-top: 17%;
}

.text-bg {
     text-align: left;
}

.relative {
     position: inherit;
     right: 0;
     left: 0;
     padding: 0;
     bottom: 0;
}

.text-bg h1 {
     color: #000;
     font-size: 85px;
     line-height: 96px;
     padding-bottom: 0px;
     font-weight: bold;
}

.text-bg span {
     line-height: 25px;
     padding-bottom: 40px;
     color: #fff;
     font-size: 17px;
     font-weight: bold;
     display: block;
}

.text-bg .read_more {
     max-width: 243px;
     height: 66px;
     padding: 17px 0;
     background-color: #fff;
     color: #000;
     text-transform: uppercase;
     font-weight: bold;
     border-radius: 50px;
}

.text-bg .read_more:hover {
     background-color: #0d0c0c;
}

.banner .carousel-indicators {
     display: none;
}

#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next {
     width: 36px;
     height: 36px;
     background: #0d0c0c;
     opacity: 1;
     font-size: 25px;
     color: #fff;
     border-radius: 60px;
     top: 97.6%;
}

#myCarousel .carousel-control-prev:hover,
#myCarousel .carousel-control-next:hover,
#myCarousel .carousel-control-prev:focus,
#myCarousel .carousel-control-next:focus {
     background: #16d316;
     color: #fff;
     width: 57px;
     height: 57px;
     font-size: 30px;
     top: 96%;
}

#myCarousel a.carousel-control-prev {
     position: absolute;
     bottom: 10px;
     left: 48%;
}

#myCarousel a.carousel-control-next {
     position: absolute;
     right: inherit;
     bottom: 10px;
     right: 46.5%;
}

#myCarousel .carousel-control-prev:hover,
#myCarousel .carousel-control-prev:focus {
     left: 46.5%;
}

#myCarousel .carousel-control-next:hover,
#myCarousel .carousel-control-next:focus {
     right: 45%;
}

/* =====================================================
   6. BOTONES
===================================================== */

.read_more,
.send_btn{
    border-radius: 30px !important;
    font-size: 18px !important;
    padding: 14px 28px !important;
    min-width: 180px;
    transition: 0.3s ease;
    display: inline-block;
}
button:not(#btnTop) {
    border-radius: 30px !important;
    font-size: 18px !important;
    padding: 14px 28px !important;
    min-width: 180px;
    transition: 0.3s ease;
    display: inline-block;
}

.read_more {
     font-size: 17px;
     background-color: #252525;
     color: #fff;
     padding: 12px 0px;
     width: 100%;
     max-width: 210px;
     text-align: center;
     display: inline-block;
     transition: ease-in all 0.5s;
     font-weight: 400;
}

.read_more:hover {
     background: #1a3f95;
     color: #fff;
     transition: ease-in all 0.5s;
}


/* =====================================================
   7. CONOCE CIO
===================================================== */

#conoce-cio {
    background: #f7f9fc !important;
    padding: 80px 0;
}

#conoce-cio h2 {
    color: #111 !important;
}

#conoce-cio .green {
    color: #1a3f95 !important;
}

#conoce-cio .service_box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 35px 25px;
    margin-bottom: 25px;
}


/* =====================================================
   8. CARDS / SERVICES
===================================================== */

.service_box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.service_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service_box i {
    font-size: 45px;
    color: #1a3f95;
}


/* =====================================================
   9. GALLERY
===================================================== */

.gallery {
     margin-top: 80px;
     padding-top: 80px;
     background-color: #eae7e7;
     padding-bottom: 50px;
}

.gallery .titlepage {
     text-align: center;
}

.gallery .titlepage p {
     color: #2a2b2a;
     display: block;
     padding-top: 20px;
}

.gallery .gallery_img {
     overflow: hidden;
     margin-bottom: 30px;
}

.gallery .gallery_img figure {
     margin: 0;
}

.gallery .gallery_img figure img {
     width: 100%;
     transition: all .5s;
}

.gallery .gallery_img figure img:hover {
     transform: scale(1.2);
     cursor: pointer;
}

.gallery_text {
     text-align: center;
     background-color: #2a2b2a;
     height: 369px;
     display: flex;
     align-items: center;
     justify-content: center;
}

.galleryh3 h3 {
     font-size: 24px;
     line-height: 30px;
     color: #fff;
     font-weight: bold;
}

.galleryh3 p {
     font-size: 17px;
     line-height: 31px;
     color: #fff;
}



/* =====================================================
   10. STATS
===================================================== */

.stats {
    background: linear-gradient(135deg, #1a3f95, #122c66);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    margin-top: 60px !important;
}

.stats .col-md-2 {
    flex: 0 0 16.666%;
    max-width: 16.666%;
}

.stats .stat-number {
    font-size: 52px;
    font-weight: bold;
}

/* Tablet */
@media (max-width: 992px) {
    .stats .col-md-2 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        margin-bottom: 30px;
    }

    .stats .stat-number {
        font-size: 42px;
    }
}

/* Móvil */
@media (max-width: 576px) {
    .stats {
        padding: 60px 0;
    }

    .stats .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 25px;
    }

    .stats .stat-number {
        font-size: 32px;
    }
}
/* =====================================================
   11. contenido prueba
===================================================== */
.future-section {
    position: relative;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Imagen */
.future-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Tarjeta */
.future-card {
    background: #fff;
    max-width: 880px;

    padding: 50px 60px;

    border-radius: 4px;

    box-shadow: 0 10px 30px rgba(0,0,0,.12);

    position: relative;

    margin: -70px auto 0 auto;

    z-index: 2;
}

.future-card h2 {
    font-size: 48px;
    color: #1b2f5b;
    margin-bottom: 25px;
    font-weight: 600;
}

.future-card p {
    color: #22314d;
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Botones */
.future-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-red {
    display: inline-block;
    padding: 14px 28px;

    background: #424040;
    color: white;

    text-decoration: none;

    border-radius: 999px;

    font-weight: 600;

    transition: .3s;
}

.btn-red:hover {
    background: #001b92;
}

@media (max-width: 768px) {

    .future-image img {
        height: 300px;
    }

    .future-card {
        padding: 30px 25px;
        margin-top: -40px;
    }

    .future-card h2 {
        font-size: 32px;
    }

    .future-card p {
        font-size: 16px;
    }

    .future-buttons {
        flex-direction: column;
    }

    .btn-red {
        width: 100%;
        text-align: center;
    }
}
/* =====================================================
   11. time line
===================================================== */
.timeline-events{
    padding:100px 0;
    background: #f0f4f8;
}

.timeline-wrapper{
    position: relative;
    margin-left: 40px;
    padding-left: 50px;
    border-left: 4px solid #1a3f95;
}

.timeline-item{
    position: relative;
    margin-bottom: 60px;
}

.timeline-date{
    position: absolute;
    left: -100px;
    top: 0;
    width: 80px;
    height: 80px;
    background: #1a3f95;
    color:#fff;
    border-radius:50%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    font-size:20px;
}

.timeline-date::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:-12px;
    width:2px;
    height:12px;
    background:#1a3f95;
}

.timeline-content{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    transition: transform .3s;
}

.timeline-content img{
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
}

.timeline-content h3{
    color:#1a3f95;
    margin-bottom:10px;
}

.timeline-content p{
    color:#555;
    margin-bottom:15px;
    line-height:1.6;
}

.btn-evento{
    display:inline-block;
    padding:10px 25px;
    background:#1a3f95;
    color:#fff;
    border-radius:50px;
    text-decoration:none;
    font-weight:600;
    transition: .3s;
}

.btn-evento:hover{
    background:#122c66;
}

.timeline-item::before{
    content:'';
    position:absolute;
    left:-50px;
    top:20px;
    width:16px;
    height:16px;
    background:#1a3f95;
    border-radius:50%;
    border:3px solid #fff;
}

/* hover efecto */
.timeline-item:hover .timeline-content{
    transform: translateY(-6px);
}

/* Responsive */
@media(max-width:768px){
    .timeline-wrapper{
        margin-left:0;
        padding-left:20px;
        border-left:2px solid #1a3f95;
    }

    .timeline-date{
        left:-70px;
        width:60px;
        height:60px;
        font-size:16px;
    }

    .timeline-item::before{
        left:-35px;
    }
}
/* =====================================================
   11. NEWS
===================================================== */

.latest_news {
    background: #fff;
    padding: 80px 0;
}


/* =====================================================
   12. TESTIMONIAL
===================================================== */

.Testimonial {
    background: #f4f6fb;
    padding: 100px 0;
}


/* =====================================================
   13. CONTACT
===================================================== */

.contact {
    background: linear-gradient(135deg, #1a3f95, #0f2d6b) !important;
}


/* =====================================================
   14. FOOTER
===================================================== */

.footer-dark {
    background: #111 !important;
    color: #fff !important;
    padding: 80px 0;
}

.footer-dark h3,
.footer-dark p,
.footer-dark a {
    color: #fff !important;
}

.footer-dark a:hover {
    color: #7cb5ff !important;
}
.footer-dark p {
    font-size: smaller;
}

.footer-dark .social a {
    background: rgba(255,255,255,0.1) !important;
}

.footer-dark .social a i {
    color: #fff !important;
}


/* =====================================================
   15. FIX IFRAME GOB
===================================================== */

body iframe[src*="gob.mx"],
html body iframe[src*="framework-gb"] {
    all: unset !important;
    width: 100% !important;
    border: 0 !important;
}


/* =====================================================
   16. TITULOS
===================================================== */

.titlepage {
    margin-bottom: 30px;
}

.titlepage h2 {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
}

.titlepage h2 .green {
    color: #1a3f95;
}

.titlepage h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a3f95, #4aa3ff);
    margin: 12px auto 0;
    border-radius: 5px;
}


/* =====================================================
   17. RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .navigation.navbar .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
        flex-wrap: wrap;
         width: auto !important;
    justify-content: center !important;
    }


    .navigation.navbar .nav-link {
        padding: 12px 0 !important;
        width: 100%;
    }
}
.header {
    margin: 0 !important;
    padding-bottom: 10px !important;
}

body {
    margin: 0 !important;
    padding-top: 0 !important;
}
#site-wrapper > section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* =====================================================
   17. HERO INVESTIGACIÓN
===================================================== */
/* HERO */

.research-hero{
    background: linear-gradient(135deg,#0c2c6c,#1a3f95);
    color: white;

    min-height: 200px;      /* clave: da altura */
    display: flex;
    align-items: center;    /* centra vertical */
    justify-content: center;/* centra horizontal */

    padding: 0;    
}

.research-hero h1{
    font-size:60px;
    font-weight:700;
}
.research-hero h1{
    text-align: center;
    word-spacing: normal;
    letter-spacing: normal;
    line-height: 1.2;
}

.research-hero p{
    max-width:800px;
    font-size:20px;
}

.breadcrumb-modern{
    margin-bottom:20px;
}

.breadcrumb-modern a{
    color:white;
}

/* Variante con otro color y título a la izquierda */
.research-hero-left{
    background: linear-gradient(135deg, #2b5fa8, #5b8fd6);
    /*background: linear-gradient(135deg,#0f5a6b,#2f8f9d);  cambia al color que prefieras */
    justify-content: flex-start;
}

.research-hero-left .container{
    width:100%;
}

.research-hero-left h1{
    text-align:left;
}

/* Variante con otro color y título a la izquierda */
.research-hero-lab{
    background: linear-gradient(135deg,#0f5a6b,#2f8f9d);
    justify-content: flex-start;
}

.research-hero-lab .container{
    width:100%;
}

.research-hero-lab h1{
    text-align:left;
} 

/* MENU */

.research-nav{
    position:sticky;
    top:0;
    z-index:999;
    background:white;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.nav-wrapper{
    display:flex;
    justify-content:center;
    gap:40px;
    padding:20px;
    flex-wrap:wrap;
}

.nav-wrapper a{
    color:#1a3f95;
    font-weight:600;
    text-decoration:none;
}

.nav-wrapper i{
    display:block;
    text-align:center;
    font-size:22px;
    margin-bottom:8px;
}

/* SECCIONES */

.research-section{
    padding:50px 0;
}
.research-section-bg{
    position: relative;
    width: 100%;
    padding: 80px 0;
    overflow: hidden;
    color: white;
}

/* Fondo con blur */
.research-section-bg::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.1); /* evita bordes raros del blur */
    z-index: 1;
}

/* Oscurecido opcional para más contraste */
.research-section-bg::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2;
}

/* Texto arriba de todo */
.research-section-bg .container{
    position: relative;
    z-index: 3;
}
.research-section-bg::before{
    background-image: var(--bg);
}
/* AREAS */

.area-card{
    background:white;
    padding:40px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    margin-bottom:30px;
    transition:.3s;
    align-items: center;   /* Centra horizontalmente */
    text-align: center;    /* Centra el texto */
}

.area-card:hover{
    transform:translateY(-10px);
}

.area-card i{
    font-size:45px;
    color:#1a3f95;
    margin-bottom:20px;
    display:block;
    margin-left:auto;
    margin-right:auto;
     margin-top:15px;

}

/* DEPARTAMENTOS */

.departamentos{
    background:#f7f9fc;
    padding:100px 0;
}

.dep-card{
    background:white;
    padding:40px;
    text-align:center;
    border-radius:20px;
}

.dep-card i{
    font-size:45px;
    color:#1a3f95;
    margin-bottom:20px;
}

/* IMPACTO */

.impacto{
    padding:100px 0;
}

.impact-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.impact-item{
    background:#1a3f95;
    color:white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.impact-item i{
    display:block;
    font-size:35px;
    margin-bottom:15px;
}

/* INVESTIGADORES */

.researcher-card{
    background: #fff;
    width: 100%;
    height: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
}

.researcher-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 15px;
    border: 3px solid #ddd;
}

.researcher-card h3{
    padding: 0 10px;
    font-size: 16px;
    line-height: 1.2;

    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.researcher-card span{
    color:#1a3f95;
    font-weight:600;
    margin-bottom: 5px;
}

.researcher-card p{
    padding:10px 20px;
}

.researcher-card a{
    display:block;
    margin-top: auto;
    text-align:center;
    background:#1a3f95;
    color:white;
    padding:12px;
    border-radius:30px;
}

.researcher-card{
    transition: all 0.3s ease;
}

.researcher-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* LABS */

.lab-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
     display: flex;
    flex-direction: column;
    height: 100%;
}

.lab-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.lab-content{
    padding:25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lab-stats{
    margin-top: auto;
}

.lab-content h3{
    font-size: 16px !important;
    line-height: 1.3;
}

.lab-content p{
    font-size: 12px !important;
    line-height: 1.4;
    color: #444;
}

.lab-area{
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.lab-content h3{
    text-align: center;
}

.lab-content p{
    text-align: justify;
}
.lab-stats span{
    font-size: 11px;
}

.lab-content a{
    color:#1a3f95;
}

@media(max-width:768px){
    .impact-grid{
        grid-template-columns: 1fr;
    }
    .research-hero h1{
        font-size:40px;
    }

    .research-hero p{
        font-size:16px;
    }

    .nav-wrapper{
        gap:20px;
    }
}
/*investigador*/
.researcher-profile {
    padding: 60px 0;
    background: #f8f9fa;
}

.profile-header {
    display: flex;
    gap: 30px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.profile-header img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ddd;
}

.profile-info h1 {
    margin: 0;
    font-size: 28px;
}

.profile-info .role {
    font-weight: bold;
    color: #007bff;
}

.profile-info .snni {
    margin: 5px 0;
}

.btn-profile {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.researcher-section {
    padding: 40px 0;
}

.researcher-section h2 {
    margin-bottom: 20px;
}

.pub-year {
    font-weight: bold;
    font-size: 25px;
    margin-top: 20px;
    color: #1a3f95;
}
/* ================= NAV MOVIL FIX ================= */
@media (max-width: 768px) {
     .navigation.navbar .nav-link {
        padding: 12px 0 !important;
        color: #000 !important;
        text-align: center !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
    }

}
/* ================= FOOTER FIX ================= */
.footer-dark,
.footer-dark * {
    color: #fff !important;
}

.footer-dark a:hover {
    color: #7cb5ff !important;
}
/*---------------------tarjrta lineas------------------*/
.area-card {
    width: 100%;
    min-height:260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    border-radius: 12px;
    align-items:flex-start;
}
.area-card h3{
    font-size:18px;
    line-height:1.2;
    min-height:60px;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}
.area-researchers {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 10px;
    padding-left: 18px;
}

.area-researchers li {
    padding: 4px 0;
}
.area-card--active .area-researchers {
    max-height: 400px;
}

.toggle-researchers {
    margin-top: 10px;
    background: none;
    border: none;
    color: #1a3f95;
    cursor: pointer;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
}
/*---------------fotitos de investigadores laboratorios -------*/
.lab-section {
    margin: 60px 0; /* 60px arriba y abajo, 0 a los lados */
}
.lab-section.alt{
    padding: 80px 0;
    background: #f5f7fb;
}
.lab-stats{
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-stats .sede{
    margin-left: auto; /* Envía la sede al lado derecho */
}

.section-title{
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #0c2c6c;
}

/* CARD */
.person-card{
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.person-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* IMAGEN */
.person-img{
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #1a3f95;
}

.person-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXTO */
.person-card h3{
    margin: 10px 0 5px;
    font-size: 18px;
}

.btn-profile{
    text-decoration: none;
    color: #0c2c6c;
    font-weight: 700;
    transition: color 0.3s;
}

.btn-profile:hover{
    color: #1a3f95;
}

.person-card span{
    font-size: 14px;
    color: #666;
}
#laboratorios .row {
    row-gap: 30px;
}
/*==========================================
    Personas Ingenieras Académicas
==========================================*/

#ingenieros .engineer-card{
    max-width: 260px;
    margin: auto;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: all .3s ease;
}

#ingenieros .engineer-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

/* Imagen */
#ingenieros .card-img-top{
    width: 110px;
    height: 140px;
    object-fit: cover;
    margin: 22px auto 15px;
    border-radius: 18px;
}

/* Cuerpo */
#ingenieros .card-body{
    padding: 0 20px 22px;
}

/* Nombre */
#ingenieros .card-title{
font-family: Patria, "noso Sans", Helvetica, Arial, sans-serif;
    font-weight: 600;
    color: #222;
    min-height: 55px;
}

/* Laboratorio */
#ingenieros .card-body p{
    min-height: 30px;
}

#ingenieros .card-body p a{
    color: #0c3779;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
}

#ingenieros .card-body p a:hover{
    text-decoration: underline;
}

/* Botón */
#ingenieros .btn{
    border-radius: 30px;
    width: 100%;
    font-size: .9rem;
    font-weight: 500;
    padding: 9px 0;
}

.btn-primary {
    color: #122b61 !important;
    background-color: #fff;
    border-color: #122b61 !important;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #122e61 !important;
    border-color: #123461 !important;
}
.btn-primary:hover {
    color: #fff !important;
    background-color: #122b61 !important;
    border-color: #122b61 !important;
}
/*-------------- boton subir---------*/
#btnTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;

    width: 38px;
    height: 38px;   /* más pequeño */
    border-radius: 50%;

    border: 1px solid rgba(26, 63, 149, 0.3);
    background: rgba(26, 63, 149, 0.9);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px; /* más fino */
    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

#btnTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnTop:hover {
    background: #1a3f95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
