body {
    line-height: 2;
    font-family: var(--fuente-parrafos);
    padding-top: 90px;
}

@media (max-width: 768px) {
    body {
        padding-top: 150px;
    }
}





.header {
    background: #eaf5fb;
    padding: 1.5rem 0;
    border-bottom: 1px solid #d6e9f3;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.header.hide {
    transform: translateY(-100%);
}

.header--home {
    background: linear-gradient(
        rgba(234,245,251,.92),
        rgba(234,245,251,.92)
    ), url(../img/blue.jpg);
    background-size: cover;
    background-position: center;
}

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

.logo__nombre {
    width: 18rem;
    margin: 0;
}

.navegacion {
    display: flex;
    gap: 2rem;
}

.navegacion__enlace {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 2rem;
    position: relative;
    text-decoration: none;
    padding: .5rem 0;
}

.navegacion__enlace::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #1e3a8a;
    transition: width .3s ease;
}

.navegacion__enlace:hover::after {
    width: 100%;
}

.navegacion__enlace:hover {
    color: #102a66;
}

/* Mobile */
@media (max-width: 768px) {
    .barra {
        flex-direction: column;
        gap: 1rem;
    }

    .navegacion {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.header__texto {
    text-align: center;
    color: #0f2a44;
    margin-top: 8rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease forwards;
}

.header__texto h2 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.header__texto strong {
    color: #1e3a8a;
}

.header__texto p {
    font-size: 1.8rem;
    color: #334155;
    max-width: 60rem;
    margin: 0 auto;
}

/* Animación */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header__texto {
        margin-top: 5rem;
        padding: 0 1.5rem;
    }
}









/* misión visión */
.mision-vision {
    position: relative;
    width: 80%;
    max-width: 70rem;
    margin: 6rem auto;
    text-align: center;
    overflow: hidden;
    min-height: 12rem;
    height: auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: height 0.8s ease;
}

@media (max-width: 768px) {
    .mision-vision {
        width: 100%;
        padding: 1.5re, 1rem;
    }

    .mision-vision p {
        max-width: 95%;
    }
}

.mision-vision h2 {
    margin: 1.5rem 0 1rem;
    color: #222;
    letter-spacing: 1px;
}

.mision-vision p {
    color: #555;
    max-width: 85%;
    margin: 1rem auto;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.mision-vision .contenido {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.mision-vision .contenido.activo {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.mision-vision::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #102a66, #1e3a8a);
}





/* Contenido Principal */
@media (min-width: 768px) {
    .main-investigadores {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .entrada {
        border: none;
        margin-bottom: 0;
    }
}

.main-investigadores, .main {
    margin: 10rem 0;
}

.entrada {
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
    width: 100%;
}

.boton {
    display: block;
    font-family: var(--fuente-heading);
    color: var(--blanco);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 2rem;
    border: none;
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
    }
}

.boton:hover {
    cursor: pointer;
}

.boton--primario {
    background-color: #1e3a8a;
}

.boton--primario:hover {
    background-color: #102a66;
}

.div__entrada {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entrada__imagen {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.entrada-contenido {
    margin-top: 2rem;
}



.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.social-card {
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.social-card iframe {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.fb-card {
    overflow: visible;
}








/* Footer */
.footer {
    background: linear-gradient(180deg, #0f1f33, #132a44);
    color: #fff;
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    font-size: 1.5rem;
}

.footer .contenedor {
    max-width: 1200px;
    margin: auto;
}

.footer .barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer .logo__nombre {
    width: 180px;
    filter: brightness(0) invert(1);
}

.footer .navegacion {
    display: flex;
    gap: 1.5rem;
}

.footer .navegacion__enlace {
    color: #cfd8e3;
    text-decoration: none;
    font-weight: 500;
    transition: all .3s ease;
}

.footer .navegacion__enlace:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer__contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-box {
    background: rgba(255,255,255,.04);
    padding: 2rem 2.5rem;
    border-radius: 14px;
}

.footer-box h4 {
    margin: 0 0 .8rem;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: .5px;
}

.footer-box p {
    margin: 0;
    color: #cfd8e3;
    line-height: 1.6;
}


.footer .center-text {
    text-align: center;
    color: #a9b4c7;
    font-size: 1.3rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .footer__contenedor {
        grid-template-columns: 1fr;
    }
}







/* ===== PERFIL INVESTIGADOR ===== */
.perfil-investigador {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Header */
.perfil-header {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.perfil-foto {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e3a8a;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.perfil-info h1 {
    font-size: 2.6rem;
    margin-bottom: .6rem;
    color: #1f2933;
}

.perfil-datos {
    list-style: none;
    padding: 0;
    margin: .5rem 0 1.4rem;
}

.perfil-datos li {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: .3rem;
}

/* Botón CV */
.btn-cv {
    display: inline-block;
    padding: .7rem 1.6rem;
    background: linear-gradient(135deg,#1e3a8a,#3b82f6);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

.sin-cv {
    font-size: .9rem;
    color: #777;
    font-style: italic;
}


/* ===== TABS ===== */
.perfil-tabs {
    display: flex;
    gap: .3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab {
    background: none;
    border: none;
    padding: 1rem 1.6rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.4rem;
    color: #555;
    position: relative;
    transition: all .25s ease;
}

.tab:hover {
    color: #1e3a8a;
}

.tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: #1e3a8a;
    transition: width .3s ease;
}

.tab.active {
    color: #1e3a8a;
}

.tab.active::after {
    width: 100%;
}

/* Contenido */
.tab-content {
    display: none;
    animation: fadeIn .4s ease;
}

.tab-content.active {
    display: block;
}

/* Items */
.tab-content .item {
    background: #f9fafb;
    padding: 1.4rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #1e3a8a;
}

.tab-content .item h3 {
    margin-bottom: .4rem;
    color: #1f2933;
}

.tab-content .item p {
    font-size: 1.4rem;
    color: #555;
}

/* Animación */
@keyframes fadeIn {
    from {opacity:0; transform:translateY(10px);}
    to {opacity:1; transform:translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
    .perfil-header {
        flex-direction: column;
        text-align: center;
    }

    .perfil-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}
