/* =====================================================
   GUÍA DE ESTRUCTURA DEL SITIO

   01. Variables, reset y elementos globales.
   02. Navegación, hero, secciones de Inicio, botones y footer.
   03. Página Proyectos: hero, introducción y selector.
   04. Contenido desplegable de los proyectos y sus recursos.
   05. Reglas adaptativas para tabletas y móviles.

   MAPA DE CLASES DE PROYECTOS

   Selector común (los cuatro proyectos):
   - .project-cards: cuadrícula de los cuatro accesos.
   - .project-selector-item: contenedor de cada acceso.
   - .project-select-card: botón que activa un proyecto.
   - .project-select-content y .project-select-link: texto del botón.

   Proyecto 01, Escuelas Rurales Seguras (#project1):
   - .project-detail-grid, .project-description y .project-objectives.
   - .project-resources, .resource-grid y .resource-card.
   - .project-media, .media-links y .project-gallery.

   Proyecto 02, Misiones de Reconocimiento (#project2):
   - .project-case y .project-case-header para cada misión.
   - .mission-gallery, .mission-field-grid, .mission-info-grid y
     .mission-single-image para el material visual.
   - .mission-documents y .mission-document para los PDFs.

   Proyecto 03, Modelo Nacional (#project3):
   - .project-section, .project-section-heading y .project-single-image.
   - .project-award, .project-publications y .publication-item.

   Proyecto 04, Muros de Concreto Reforzado (#project4):
   - .project-section, .project-gallery, .mission-documents y
     .publication-item reutilizan los componentes comunes anteriores.

   Las reglas conservan exclusivamente la paleta y tipografías declaradas
   abajo. Este bloque es documentación: no modifica la apariencia.
===================================================== */

/* Paleta, dimensiones y transiciones compartidas por todo el sitio. */

:root {

    --black: #111111;
    --black-soft: #1b1b1b;

    --red: #c91f25;
    --red-dark: #99171c;

    --yellow: #f4c400;
    --yellow-soft: #ffd83d;

    --white: #ffffff;
    --light: #f5f5f3;
    --gray: #777777;
    --gray-light: #e5e5e5;

    --container: 1200px;

    --transition: .3s ease;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Inter", sans-serif;

    color: var(--black);

    background: var(--white);

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {

    width: min(
        calc(100% - 50px),
        var(--container)
    );

    margin: auto;
}

.section {
    padding: 110px 0;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255,255,255,.97);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--gray-light);
}

.nav-container {

    width: min(
        calc(100% - 50px),
        1300px
    );

    height: 86px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo img {

    width: 350px !important;
    max-width: none !important;
    height: auto !important;
}

.nav-menu {

    display: flex;

    align-items: center;

    gap: 42px;
}

.nav-menu a {

    position: relative;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;

    color: var(--black);

    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--red);
}

.nav-menu a.active {
    color: var(--red);
}

.nav-menu a.active::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -12px;

    width: 100%;

    height: 3px;

    background: var(--yellow);
}


/* =====================================================
   HAMBURGER
===================================================== */

.hamburger {

    display: none;

    border: none;

    background: transparent;

    cursor: pointer;

    padding: 5px;
}

.hamburger span {

    display: block;

    width: 29px;

    height: 3px;

    margin: 5px 0;

    background: var(--black);

    transition: var(--transition);
}


/* =====================================================
   HERO / SLIDER
===================================================== */

.hero {

    height: 680px;

    position: relative;

    overflow: hidden;

    background: var(--black);
}

.hero-slide {

    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.hero-slide.active {

    opacity: 1;

    visibility: visible;
}

.hero-slide > img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.60) 42%,
            rgba(0,0,0,.15) 100%
        );
}

.hero-content {

    position: absolute;

    left: max(
        25px,
        calc((100% - var(--container)) / 2)
    );

    top: 50%;

    transform: translateY(-50%);

    width: min(700px, 80%);

    color: white;
}

.hero-tag {

    display: inline-block;

    margin-bottom: 22px;

    padding-left: 15px;

    border-left: 4px solid var(--yellow);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.hero h1 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.05;

    font-weight: 800;

    margin-bottom: 25px;
}

.hero h1 span {

    display: block;

    color: var(--yellow);
}

.hero p {

    max-width: 620px;

    font-size: 17px;

    color: rgba(255,255,255,.88);
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.section-heading {
    margin-bottom: 55px;
}

.section-heading.centered {

    text-align: center;

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;
}

.section-label {

    display: inline-block;

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;

    margin-bottom: 12px;
}

.section-heading h2 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(34px, 4vw, 52px);

    line-height: 1.1;

    font-weight: 800;

    color: var(--black);
}

.section-heading p {

    margin-top: 20px;

    color: var(--gray);

    font-size: 15px;
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    background: white;
}

.about-layout {

    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 70px;

    align-items: start;
}

.about-accent {
    position: relative;
    min-height: 500px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-accent::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border: 4px solid var(--red);
    transform: rotate(45deg);
}

.about-accent::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 2px solid var(--yellow);
    transform: rotate(45deg);
    opacity: 0.8;
}

.about-accent span {
    position: relative;
    z-index: 3;
}

.about-accent span img {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.about-content {
    max-width: 900px;
}

.about-content > p {

    color: #444;

    font-size: 16px;

    margin-bottom: 22px;
}

.about-intro {

    font-size: 20px !important;

    line-height: 1.75;

    color: var(--black) !important;
}

.about-intro strong {
    color: var(--red);
}

.about-points {

    margin-top: 40px;

    border-top: 1px solid var(--gray-light);
}

.about-point {

    display: grid;

    grid-template-columns: 65px 1fr;

    gap: 25px;

    padding: 27px 0;

    border-bottom: 1px solid var(--gray-light);
}

.point-number {

    font-family: "Montserrat", sans-serif;

    font-size: 17px;

    font-weight: 800;

    color: var(--red);
}

.about-point p {

    color: #444;

    font-size: 15px;

    margin: 0;
}


/* =====================================================
   NEWS
===================================================== */

.news {
    background: var(--light);
}

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 45px;
}

.section-header h2 {

    font-family: "Montserrat", sans-serif;

    font-size: 45px;

    line-height: 1;
}

.news-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}

.news-card {

    background: white;

    overflow: hidden;

    transition: transform .3s ease;
}

.news-card:hover {
    transform: translateY(-7px);
}

.news-image {

    height: 390px;

    overflow: hidden;

    background: var(--gray-light);
}

.news-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

/* Noticias: se muestran únicamente como las imágenes originales. */
.news-card {
    background: transparent;
    overflow: visible;
    transition: none;
}

.news-card:hover {
    transform: none;
}

.news-card > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.news-content {
    padding: 28px 28px 32px;
}

.news-category {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    color: var(--red);
}

.news-content h3 {

    font-family: "Montserrat", sans-serif;

    font-size: 20px;

    line-height: 1.25;

    margin: 12px 0;
}

.news-content p {

    font-size: 13px;

    color: var(--gray);

    margin-bottom: 20px;
}

.news-content a {

    color: var(--black);

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.news-content a i {

    color: var(--red);

    margin-left: 7px;

    transition: var(--transition);
}

.news-content a:hover i {
    margin-left: 12px;
}


/* =====================================================
   PROJECTS PREVIEW
===================================================== */

.projects-preview {
    background: white;
}

.projects-preview-box {

    min-height: 420px;

    background: var(--black);

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;
}

.projects-preview-content {

    position: relative;

    z-index: 2;

    width: 60%;

    padding: 75px;
}

.projects-preview-content .section-label {
    color: var(--yellow);
}

.projects-preview-content h2 {

    color: white;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.05;

    margin-bottom: 22px;
}

.projects-preview-content h2 span {
    color: var(--red);
}

.projects-preview-content p {

    color: rgba(255,255,255,.75);

    max-width: 600px;

    margin-bottom: 30px;
}

.projects-preview-decoration {
    position: absolute;
    right: -80px;
    top: -30px;
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Eliminar cualquier decoración */
.projects-preview-decoration::before,
.projects-preview-decoration::after {
    display: none;
}

/* Isotipo */
.projects-preview-decoration span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-preview-decoration span img {
    display: block;
    width: 300px;
    height: 300px;
    object-fit: contain;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 15px 24px;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .8px;

    transition: var(--transition);
}

.btn i {
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-red {

    background: var(--red);

    color: white;
}

.btn-red:hover {

    background: var(--yellow);

    color: var(--black);
}

.btn-yellow {

    background: var(--yellow);

    color: var(--black);
}

.btn-yellow:hover {
    background: white;
}


/* =====================================================
   TEAM
===================================================== */

.team {
    background: white;
}

.team-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 55px 30px;
}

.team-member {

    border-top: 4px solid var(--black);

    padding-top: 22px;
}

.member-image {

    width: 155px;

    height: 155px;

    margin-bottom: 20px;

    overflow: hidden;

    background: var(--gray-light);
}

.member-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter: none;
    transition: none;
}

.team-member {
    display: grid;
    grid-template-columns: 155px 1fr;
    column-gap: 25px;
    align-items: center;
}

.member-image {
    margin-bottom: 0;
}

.member-info h3 {

    font-family: "Montserrat", sans-serif;

    font-size: 19px;

    line-height: 1.2;

    margin-bottom: 5px;
}

.member-university {

    display: block;

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 14px;
}

.member-info p {

    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;
}


/* =====================================================
   PARTNERS
===================================================== */

.partners {
    background: var(--light);
}

.partners-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.partner-logo {

    height: 140px;

    background: white;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    border: 1px solid var(--gray-light);

    transition: var(--transition);
}

.partner-logo:hover {

    border-color: var(--yellow);

    transform: translateY(-3px);
}

.partner-logo img {

    max-width: 190px;

    max-height: 75px;

    object-fit: contain;

    filter: grayscale(100%);

    opacity: .65;

    transition: var(--transition);
}

.partner-logo:hover img {

    filter: grayscale(0);

    opacity: 1;
}


/* =====================================================
   CONTACT CTA
===================================================== */

.contact-cta {

    background: var(--red);

    padding: 105px 0;

    text-align: center;

    position: relative;

    overflow: hidden;
}

.contact-cta::before {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    border: 50px solid rgba(0,0,0,.08);

    transform: rotate(45deg);

    left: -160px;

    top: -180px;
}

.contact-cta::after {

    content: "";

    position: absolute;

    width: 250px;

    height: 250px;

    background: var(--yellow);

    transform: rotate(45deg);

    right: -140px;

    bottom: -150px;

    opacity: .9;
}

.cta-content {

    position: relative;

    z-index: 2;

    max-width: 720px;

    margin: auto;
}

.cta-content > span {

    color: var(--yellow);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;
}

.cta-content h2 {

    color: white;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.05;

    margin: 15px 0 20px;
}

.cta-content p {

    color: rgba(255,255,255,.85);

    max-width: 600px;

    margin: 0 auto 30px;

    font-size: 15px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: var(--black);

    color: white;

    padding: 65px 0 20px;
}

.footer-main {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 50px;
}

.footer-brand img {

    width: 145px;

    margin-bottom: 18px;
}

.footer-brand p {

    color: #999;

    font-size: 13px;

    max-width: 300px;
}

.footer-navigation,
.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-navigation > span,
.footer-contact > span {

    color: var(--yellow);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.footer-navigation a,
.footer-contact p {

    color: #999;

    font-size: 13px;

    transition: var(--transition);
}

.footer-navigation a:hover {
    color: white;
}

.footer-bottom {

    border-top: 1px solid #303030;

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #666;

    font-size: 11px;
}


/* =====================================================
   PROJECTS PAGE
===================================================== */


/* =====================================================
   PROJECT HERO
   SE MANTIENE IGUAL
===================================================== */

.page-hero {

    position: relative;

    height: 520px;

    overflow: hidden;

    background: var(--black);
}

.page-hero-image {

    position: absolute;

    inset: 0;
}

.page-hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.page-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.58) 50%,
            rgba(0,0,0,.20) 100%
        );
}

.page-hero-content {

    position: relative;

    z-index: 2;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    width: min(
        calc(100% - 50px),
        var(--container)
    );

    margin: auto;

    color: white;
}

.page-hero-content .hero-tag {
    margin-bottom: 20px;
}

.page-hero-content h1 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        42px,
        6vw,
        72px
    );

    line-height: 1.05;

    font-weight: 800;

    max-width: 800px;

    margin-bottom: 20px;
}

.page-hero-content h1 span {

    display: block;

    color: var(--yellow);
}

.page-hero-content p {

    max-width: 650px;

    font-size: 16px;

    color: rgba(
        255,
        255,
        255,
        .85
    );
}


/* =====================================================
   PROJECT INTRO
===================================================== */

.projects-intro {
    background: white;
}

.projects-intro-content {
    max-width: 1000px;
}

.projects-intro-content p {

    color: #444;

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 20px;
}

.projects-intro-content p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   PROJECT SELECTION
   SE MANTIENE LA ESTRUCTURA ACTUAL
===================================================== */

.project-selection {
    background: var(--light);
}

.project-selection-header {

    max-width: 750px;

    margin-bottom: 45px;
}

.project-selection-header h2 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        32px,
        4vw,
        48px
    );

    line-height: 1.1;

    margin-bottom: 15px;
}

.project-selection-header p {

    color: var(--gray);

    font-size: 15px;
}

.project-cards {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.project-selector-item {

    display: block;

    background: var(--white);

    border-top: 5px solid var(--black);
}

.project-select-card {

    position: relative;

    width: 100%;

    min-height: 235px;

    padding: 30px 32px;

    border: none;

    border-top: 0;

    background: white;

    text-align: left;

    cursor: pointer;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.project-select-card::after {

    content: "→";

    position: absolute;

    right: 25px;

    bottom: 20px;

    font-size: 22px;

    color: var(--red);

    transition: var(--transition);
}

.project-select-card:hover {

    transform: translateY(-6px);

    background: #fafafa;
}

.project-select-card:hover::after {
    transform: translateX(6px);
}

.project-select-card.active {

    background: var(--black);

    color: white;

    border-top: 0;

    transform: none;
}

.project-select-card.active::after {
    color: var(--yellow);
}

.project-number {

    display: block;

    font-family: "Montserrat", sans-serif;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    color: var(--red);

    margin-bottom: 25px;
}

.project-select-card.active .project-number {
    color: var(--yellow);
}

.project-select-card h3 {

    font-family: "Montserrat", sans-serif;

    font-size: 20px;

    line-height: 1.2;

    max-width: none;
}

.project-select-card p {

    color: var(--gray);

    font-size: 13px;

    max-width: 36ch;

    margin: 16px 0 28px;

    line-height: 1.65;
}

.project-select-card.active p {
    color: #aaa;
}

.project-select-link {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* =====================================================
   PROJECT INFORMATION
===================================================== */

.project-information {

    margin-top: 70px;

    padding-bottom: 20px;

    background: white;

    border-top: 1px solid var(--gray-light);
}

.project-detail {

    display: none;

    animation: projectFade .45s ease;
}

.project-detail.active {

    display: block;

    padding: 70px 0 20px;
}

@keyframes projectFade {

    from {

        opacity: 0;

        transform: translateY(15px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}


/* =====================================================
   CONTENEDOR GENERAL DE CADA PROYECTO

   Antes estaba limitado a 1040px.
   Ahora aprovecha mucho mejor el ancho disponible.
===================================================== */

.project-detail > .project-section,
.project-detail > .project-case {

    width: min(
        calc(100% - 50px),
        1120px
    );

    max-width: none;

    margin-left: auto;

    margin-right: auto;
}


/* =====================================================
   PROJECT DETAIL HEADER
   TÍTULO PRINCIPAL ARTÍSTICO
===================================================== */

.project-detail-header {

    position: relative;

    width: min(
        calc(100% - 50px),
        1120px
    );

    min-height: 220px;

    margin: 0 auto 90px;

    padding: 55px 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    background: var(--red);

    color: white;

    isolation: isolate;
}


/* Número */

.project-detail-number {

    position: absolute;

    top: 25px;

    left: 30px;

    z-index: 3;

    display: block;

    color: var(--yellow);

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;
}


/* Líneas geométricas laterales */

.project-detail-header::before {

    content: "";

    position: absolute;

    width: 170px;

    height: 170px;

    left: -90px;

    top: -90px;

    border: 18px solid var(--yellow);

    transform: rotate(45deg);

    z-index: -1;
}

.project-detail-header::after {

    content: "";

    position: absolute;

    width: 115px;

    height: 115px;

    right: -65px;

    bottom: -65px;

    background: var(--black);

    transform: rotate(45deg);

    z-index: -1;
}


/* Pequeñas líneas adicionales */

.project-detail-header > div::before,
.project-detail-header > div::after {

    content: "";

    position: absolute;

    width: 80px;

    height: 4px;

    background: var(--black);

    top: 28px;
}

.project-detail-header > div::before {
    left: 70px;
}

.project-detail-header > div::after {
    right: 70px;
}


/* Título */

.project-detail-header h2 {

    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: 0;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        34px,
        5vw,
        60px
    );

    line-height: 1.05;

    font-weight: 800;

    color: white;
}


/* =====================================================
   ELEMENTOS ANTIGUOS DEL HEADER
   SE CONSERVAN POR COMPATIBILIDAD
===================================================== */

.project-detail-header .project-category {

    display: inline-block;

    padding: 8px 13px;

    background: var(--yellow);

    color: var(--black);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.project-detail-description p {

    color: #444;

    font-size: 16px;

    line-height: 1.85;

    margin-bottom: 20px;
}

.project-detail-description p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   PROJECT META
===================================================== */

.project-meta {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid var(--gray-light);

    border-bottom: 1px solid var(--gray-light);

    margin-bottom: 80px;
}

.project-meta-item {

    padding: 25px 20px;

    border-right: 1px solid var(--gray-light);
}

.project-meta-item:last-child {
    border-right: none;
}

.project-meta-item span {

    display: block;

    color: var(--red);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}

.project-meta-item strong {

    font-family: "Montserrat", sans-serif;

    font-size: 14px;
}


/* =====================================================
   PROJECT SECTIONS
===================================================== */

.project-section {

    position: relative;

    width: 100%;

    margin-bottom: 95px;
}


/* =====================================================
   ENCABEZADOS NUMERADOS
   FRANJA AMARILLA COMPLETA
===================================================== */

.project-section-heading {

    position: relative;

    width: 100%;

    min-height: 78px;

    display: flex;

    align-items: center;

    gap: 22px;

    margin-bottom: 38px;

    padding: 0 25px;

    background: var(--yellow);

    border: none;
}


/* Número */

.project-section-label {

    flex-shrink: 0;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--black);

    color: var(--white);

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* Contenedor del título */

.project-section-heading > div {

    flex: 1;

    min-width: 0;
}


/* Ocultar categoría vacía */

.project-section-heading .project-category {

    display: none;
}


/* Título */

.project-section-heading h3 {

    margin: 0;

    color: var(--black);

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        25px,
        3vw,
        38px
    );

    line-height: 1.1;

    font-weight: 800;
}


/* Línea roja decorativa */

.project-section-heading::after {

    content: "";

    position: absolute;

    right: 25px;

    bottom: 0;

    width: 85px;

    height: 5px;

    background: var(--red);
}


/* Etiqueta */

.project-section-heading .project-category {

    display: block;

    margin-bottom: 5px;

    color: var(--red);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* Título */

.project-section-heading h3 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        25px,
        3vw,
        38px
    );

    line-height: 1.1;

    color: var(--black);

    margin: 0;
}

.project-section-heading h4 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        22px,
        2.5vw,
        32px
    );

    line-height: 1.15;
}

.project-section-heading p {

    max-width: 700px;

    color: var(--gray);

    font-size: 13px;
}


/* =====================================================
   TEXTO GENERAL DE LOS PROYECTOS

   Elimina columnas vacías y aprovecha todo el ancho.
===================================================== */

.project-detail-grid,
.project-overview-content {

    display: block;

    width: 100%;
}

.project-overview-text,
.project-description-content,
.project-objectives {

    width: 100%;

    max-width: none;
}

.project-overview-text p,
.project-description-content p {

    width: 100%;

    max-width: none;

    color: #444;

    font-size: 16px;

    line-height: 1.85;

    margin-bottom: 22px;
}

.project-overview-text p:last-child,
.project-description-content p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   OBJETIVOS
===================================================== */

.project-objectives {

    width: 100%;

    border-top: 1px solid var(--gray-light);
}

.project-objectives ul {

    list-style: none;

    margin: 0;

    padding: 0;
}

.project-objectives li {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 18px 0;

    border-bottom: 1px solid var(--gray-light);

    color: #444;

    font-size: 15px;

    line-height: 1.7;
}

.project-objectives li i {

    flex-shrink: 0;

    margin-top: 4px;

    color: var(--red);
}


/* =====================================================
   PROJECT RESOURCES
===================================================== */

.project-resources {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.project-resource {

    position: relative;

    padding: 30px;

    background: var(--light);

    border-left: 4px solid var(--black);

    transition: var(--transition);
}

.project-resource:hover {

    border-left-color: var(--red);

    transform: translateY(-4px);
}

.project-resource-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    background: var(--black);

    color: var(--yellow);

    font-size: 17px;
}

.project-resource h4 {

    font-family: "Montserrat", sans-serif;

    font-size: 19px;

    margin-bottom: 10px;
}

.project-resource p {

    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 20px;
}

.project-resource .btn {

    font-size: 10px;

    padding: 11px 15px;
}


/* =====================================================
   RESOURCE CARDS - PROYECTO 01
===================================================== */

.project-resources-section .resource-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    width: 100%;
}

.project-resources-section .resource-card {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--light);

    border: 1px solid var(--gray-light);

    transition:
        transform .3s ease,
        border-color .3s ease;
}

.project-resources-section .resource-card:hover {

    transform: translateY(-5px);

    border-color: var(--red);
}

/* =====================================================
   RESOURCE IMAGES - PROYECTO 01
===================================================== */

.project-resources-section .resource-image {

    width: 100%;

    height: 260px;

    overflow: hidden;

    background: var(--gray-light);

    display: flex;

    align-items: center;

    justify-content: center;
}

.project-resources-section .resource-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

    display: block;

    transition:
        transform .5s ease;
}

.project-resources-section .resource-card:hover .resource-image img {
    transform: scale(1.025);
}

.resource-card:hover .resource-image img {
    transform: scale(1.04);
}

.project-resources-section .resource-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 22px 20px;
}

.project-resources-section .resource-content h4 {

    margin-bottom: 13px;

    font-family: "Montserrat", sans-serif;

    font-size: 17px;

    line-height: 1.25;
}

.project-resources-section .resource-content p {

    color: var(--gray);

    font-size: 12px;

    line-height: 1.65;

    margin-bottom: 15px;
}

.project-resources-section .resource-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: auto;

    color: var(--black);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.project-resources-section .resource-link i {

    color: var(--red);

    transition: var(--transition);
}

.project-resources-section .resource-link:hover i {
    transform: translateX(4px);
}


/* =====================================================
   PROJECT MEDIA / VIDEOS
===================================================== */

.project-media-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.project-media-card {

    background: var(--black);

    overflow: hidden;
}

.project-media-video {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #222;
}

.project-media-video iframe {

    width: 100%;

    height: 100%;

    border: none;
}

.project-media-content {

    padding: 22px 25px 25px;
}

.project-media-content span {

    display: block;

    color: var(--yellow);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.project-media-content h4 {

    color: white;

    font-family: "Montserrat", sans-serif;

    font-size: 18px;

    line-height: 1.25;
}


/* =====================================================
   SOCIAL MEDIA
===================================================== */

.project-social {

    margin-top: 20px;

    padding: 25px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: var(--black);

    color: white;
}

.project-social-content h4 {

    font-family: "Montserrat", sans-serif;

    font-size: 18px;

    margin-bottom: 5px;
}

.project-social-content p {

    color: #aaa;

    font-size: 13px;
}

.project-social .btn {
    flex-shrink: 0;
}


/* =====================================================
   PROJECT GALLERY
===================================================== */

.project-gallery {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    width: 100%;
}

.project-gallery-item {

    height: 220px;

    overflow: hidden;

    background: var(--gray-light);
}

.project-gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.05);
}


/* =====================================================
   PLACEHOLDER
===================================================== */

.project-placeholder {

    margin-top: 25px;

    padding: 50px 40px;

    background: var(--light);

    border-left: 5px solid var(--yellow);

    text-align: center;
}

.project-placeholder span {

    display: block;

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.project-placeholder h3 {

    font-family: "Montserrat", sans-serif;

    font-size: 34px;

    margin-bottom: 15px;
}

.project-placeholder p {

    max-width: 650px;

    margin: auto;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.6;
}


/* =====================================================
   MISIONES DE RECONOCIMIENTO
===================================================== */

.project-case {

    margin-top: 80px;

    padding-top: 70px;

    border-top: 1px solid var(--gray-light);
}

.project-case:first-of-type {
    margin-top: 40px;
}

.project-case-header {

    display: flex;

    align-items: flex-start;

    gap: 25px;

    margin-bottom: 35px;
}

.project-case-number {

    font-size: .8rem;

    font-weight: 700;

    color: var(--red);

    letter-spacing: .15em;

    min-width: 45px;
}

.project-case-header h3 {

    margin: 5px 0 0;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    line-height: 1.1;
}

.project-case-description {

    width: 100%;

    max-width: none;

    margin-bottom: 55px;
}

.project-case-description > p {

    width: 100%;

    font-size: 1.05rem;

    line-height: 1.8;

    color: #444;
}

.project-case-section {
    margin-top: 60px;
}

.project-case-section .project-section-heading {
    margin-bottom: 30px;
}


/* =====================================================
   MISSION GALLERY
   4 IMÁGENES = 2 ARRIBA + 2 ABAJO
===================================================== */

.mission-gallery {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: min(850px, 100%);

    margin: 0 auto;
}


/* Todas exactamente del mismo tamaño */

.mission-image,
.mission-image-large {

    width: 100%;

    height: 250px;

    margin: 0;

    overflow: hidden;

    background: var(--gray-light);

    grid-column: auto;

    grid-row: auto;
}

.mission-image img,
.mission-image-large img {

    width: 100%;

    height: 100%;

    min-height: 0;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}

.mission-image:hover img,
.mission-image-large:hover img {
    transform: scale(1.04);
}


/* =====================================================
   MISIONES - TRABAJO DE CAMPO
===================================================== */

.mission-field-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    width: min(850px, 100%);

    margin: 0 auto;
}

.mission-field-grid .mission-image {

    height: 260px;
}

.mission-field-grid .mission-image img {
    min-height: 0;
}


/* =====================================================
   MISIONES - MATERIAL INFORMATIVO
===================================================== */

.mission-info-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    width: min(850px, 100%);

    margin: 0 auto;
}

.mission-info-grid .mission-image {

    height: auto;

    background: var(--light);
}

.mission-info-grid .mission-image img {

    width: 100%;

    height: auto;

    min-height: 0;

    object-fit: contain;
}


/* =====================================================
   MISIONES - IMAGEN ÚNICA
===================================================== */

.mission-single-image {

    width: min(700px, 100%);

    margin: 0 auto;
}

.mission-single-image .mission-image {

    height: 320px;
}

.mission-single-image .mission-image img {
    min-height: 0;
}


/* =====================================================
   MISIONES - DOCUMENTOS
===================================================== */

.mission-documents {

    display: flex;

    flex-direction: column;

    gap: 13px;

    width: 100%;
}

.mission-document {

    display: grid;

    grid-template-columns:
        50px 1fr auto;

    align-items: center;

    gap: 20px;

    padding: 20px 24px;

    background: var(--light);

    border-left: 4px solid var(--yellow);

    transition: var(--transition);
}

.mission-document:hover {

    transform: translateX(5px);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .07);
}

.mission-document-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--black);

    color: var(--yellow);

    font-size: 1rem;
}

.mission-document-content h5 {

    margin: 4px 0 6px;

    font-family: "Montserrat", sans-serif;

    font-size: 1rem;

    line-height: 1.35;
}

.mission-document-content p {

    margin: 0;

    color: var(--gray);

    font-size: .82rem;

    line-height: 1.55;
}

.mission-document .project-category {

    font-size: 9px;

    letter-spacing: 1.5px;

    color: var(--red);

    font-weight: 800;

    text-transform: uppercase;
}


/* =====================================================
   MISIONES - CUADRÍCULA DE IMÁGENES SIN TEXTO

   Usada para material fotográfico o de apoyo que no
   necesita título ni descripción (p. ej. las imágenes
   del sismo de Chocó). Las imágenes originales son
   verticales (1000 x 1692), así que se conserva esa
   proporción con aspect-ratio en lugar de recortarlas,
   y se muestran de a dos por fila para que se lean bien.
===================================================== */

.mission-image-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: min(760px, 100%);

    margin: 0 auto 20px;
}

.mission-image-item {

    width: 100%;

    aspect-ratio: 1000 / 1692;

    height: auto;

    margin: 0;

    overflow: hidden;

    background: var(--gray-light);
}

.mission-image-item a {

    display: block;

    width: 100%;

    height: 100%;

    cursor: zoom-in;
}

.mission-image-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .5s ease;
}

.mission-image-item:hover img {
    transform: scale(1.06);
}


/* =====================================================
   INSTITUCIONES
===================================================== */

.project-institutions {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.institution-item {

    min-height: 180px;

    padding: 22px;

    background: var(--light);

    border-top: 4px solid var(--black);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition: var(--transition);
}

.institution-item:hover {

    border-top-color: var(--red);

    transform: translateY(-4px);
}

.institution-logo {

    width: 100%;

    height: 90px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}

.institution-logo img {

    width: auto;

    max-width: 150px;

    max-height: 75px;

    object-fit: contain;
}

.institution-item p {

    margin: 0;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.35;
}


/* =====================================================
   MODELO NACIONAL
===================================================== */

.project-single-image {

    width: min(800px, 100%);

    margin: 30px auto 0;
}

.project-image {

    width: 100%;

    overflow: hidden;
}

.project-image img {

    width: 100%;

    height: auto;

    max-height: 500px;

    display: block;

    object-fit: contain;
}


/* =====================================================
   PREMIO
===================================================== */

.project-award {

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    align-items: center;

    padding: 30px;

    background: var(--black);

    color: var(--white);
}

.project-award-icon {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--yellow);

    color: var(--black);

    font-size: 25px;
}

.project-award-content h4 {

    margin: 5px 0 8px;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        21px,
        2.5vw,
        30px
    );

    line-height: 1.15;
}

.project-award-content p {

    margin: 0;

    max-width: 750px;

    color: #ccc;

    line-height: 1.65;
}


/* =====================================================
   PUBLICACIONES
   Más pequeñas + más color
===================================================== */

.project-publications {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.publication-item {

    position: relative;

    padding: 22px 25px;

    background:
        linear-gradient(
            90deg,
            rgba(244,196,0,.12),
            transparent 28%
        );

    border: 1px solid var(--gray-light);

    border-left: 5px solid var(--red);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.publication-item:hover {

    transform: translateX(4px);

    border-left-color: var(--yellow);

    box-shadow:
        0 8px 22px
        rgba(0,0,0,.06);
}

.publication-item-header {

    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 15px;

    align-items: start;
}

.publication-number {

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 800;

    color: var(--red);
}

.publication-item h4 {

    margin: 3px 0 10px;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(
        17px,
        1.8vw,
        22px
    );

    line-height: 1.25;
}

.publication-item p {

    margin: 0 0 10px;

    color: var(--gray);

    font-size: 13px;

    line-height: 1.65;
}

.publication-highlight {

    display: inline-block;

    margin-bottom: 12px;

    padding: 5px 9px;

    background: var(--yellow);

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: var(--black);
}


/* =====================================================
   ANIMACIONES DE APARICIÓN AL HACER SCROLL

   El JS agrega la clase .reveal a ciertos elementos y
   luego .is-visible cuando entran en el viewport.
   El movimiento es sutil (leve desvanecido + desplazamiento).
===================================================== */

.reveal {

    opacity: 0;

    transform: translateY(26px);

    transition:
        opacity .65s ease,
        transform .65s ease;

    transition-delay: var(--reveal-delay, 0s);

    will-change: opacity, transform;
}

.reveal.is-visible {

    opacity: 1;

    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal {

        opacity: 1;

        transform: none;

        transition: none;
    }

}


/* =====================================================
   RESPONSIVE GLOBAL
   NAVBAR, HERO Y SECCIONES DE INICIO

   Estas reglas afectan a las tres páginas, ya que
   comparten la misma navegación, footer y componentes.
===================================================== */

@media (max-width: 1100px) {

    .about-layout {

        grid-template-columns: 140px 1fr;

        gap: 45px;
    }

    .about-accent {
        min-height: 380px;
    }

    .team-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .partners-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

    .footer-main {

        grid-template-columns:
            1.3fr 1fr 1fr;

        gap: 40px;
    }
}

@media (max-width: 860px) {

    .nav-container {
        position: relative;
    }

    .hamburger {

        display: block;

        position: relative;

        z-index: 1200;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        max-height: 0;

        overflow: hidden;

        background: white;

        border-bottom: 1px solid var(--gray-light);

        box-shadow: 0 12px 20px rgba(0,0,0,.06);

        transition: max-height .35s ease;
    }

    .nav-menu.open {
        max-height: 280px;
    }

    .nav-menu a {

        padding: 16px 25px;

        border-top: 1px solid var(--gray-light);
    }

    .nav-menu a.active::after {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        width: min(600px, 85%);
    }

    .about-layout {

        grid-template-columns: 1fr;
    }

    .about-accent {

        min-height: 220px;
    }

    .about-accent::before {

        width: 130px;

        height: 130px;
    }

    .about-accent::after {

        width: 170px;

        height: 170px;
    }

    .about-accent span img {

        width: 105px;

        height: 105px;
    }

    .news-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .section-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

    .projects-preview-box {

        flex-direction: column;

        align-items: stretch;

        padding: 55px 0;
    }

    .projects-preview-content {

        width: 100%;

        padding: 0 40px;
    }

    .projects-preview-decoration {

        position: relative;

        right: auto;

        top: auto;

        width: 240px;

        height: 240px;

        margin: 35px auto 0;
    }

    .projects-preview-decoration span img {

        width: 190px;

        height: 190px;
    }

    .team-member {

        grid-template-columns: 115px 1fr;

        column-gap: 18px;
    }

    .member-image {

        width: 115px;

        height: 115px;
    }

    .partners-grid {

        grid-template-columns:
            repeat(3, 1fr);

        gap: 14px;
    }

    .partner-logo {

        height: 115px;

        padding: 20px;
    }
}

@media (max-width: 600px) {

    .section {
        padding: 70px 0;
    }

    .hero {
        height: 520px;
    }

    .hero-content {

        width: min(100%, 90%);
    }

    .hero p {
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .about-point {

        grid-template-columns: 45px 1fr;

        gap: 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {

        grid-template-columns: 90px 1fr;
    }

    .member-image {

        width: 90px;

        height: 90px;
    }

    .partners-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .partner-logo {

        height: 105px;

        padding: 18px;
    }

    .projects-preview-content {
        padding: 0 25px;
    }

    .footer-main {

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }
}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 1000px) {

    .project-detail-header {

        width: min(
            calc(100% - 40px),
            1120px
        );

        padding: 50px 55px;
    }

    .project-detail > .project-section,
    .project-detail > .project-case {

        width: min(
            calc(100% - 40px),
            1120px
        );
    }

    .project-resources-section .resource-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .project-gallery {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .project-institutions {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .mission-gallery {

        width: min(760px, 100%);
    }

    .mission-image,
    .mission-image-large {
        height: 230px;
    }
}


/* =====================================================
   RESPONSIVE - 800 PX
===================================================== */

@media (max-width: 800px) {

    .project-cards {
        grid-template-columns: 1fr;
    }

    .project-detail-header {

        min-height: 190px;

        margin-bottom: 65px;

        padding: 45px 35px;
    }

    .project-detail-header > div::before,
    .project-detail-header > div::after {

        width: 55px;
    }

    .project-detail-header > div::before {
        left: 45px;
    }

    .project-detail-header > div::after {
        right: 45px;
    }

    .project-detail > .project-section,
    .project-detail > .project-case {

        width: calc(100% - 40px);
    }

    .project-section {

        margin-bottom: 70px;
    }

    .project-section-heading {

        align-items: flex-start;

        gap: 15px;
    }

    .project-section-label {

        width: 48px;

        height: 48px;
    }

    .project-resources {

        grid-template-columns: 1fr;
    }

    .project-media-grid {

        grid-template-columns: 1fr;
    }

    .project-social {

        flex-direction: column;

        align-items: flex-start;
    }

    .project-gallery {

        grid-template-columns: 1fr;
    }

    .project-gallery-item {
        height: 260px;
    }

    .mission-gallery {

        width: min(700px, 100%);

        gap: 14px;
    }

    .mission-image,
    .mission-image-large {

        height: 210px;
    }

    .mission-image-grid {

        width: 100%;

        gap: 14px;
    }

    .mission-field-grid,
    .mission-info-grid {

        grid-template-columns: 1fr;
    }

    .mission-document {

        grid-template-columns:
            50px 1fr;
    }

    .mission-document .btn {

        grid-column: 2;

        justify-self: start;
    }

    .project-institutions {

        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */

@media (max-width: 600px) {

    .project-detail.active {
        padding-top: 45px;
    }

    .project-detail-header {

        width: calc(100% - 30px);

        min-height: 175px;

        padding: 45px 25px;

        margin-bottom: 55px;
    }

    .project-detail > .project-section,
    .project-detail > .project-case {

        width: calc(100% - 30px);
    }

    .project-detail-header h2 {

        font-size: 32px;
    }

    .project-detail-number {

        top: 17px;

        left: 18px;

        font-size: 11px;
    }

    .project-detail-header::before {

        width: 115px;

        height: 115px;

        left: -65px;

        top: -65px;

        border-width: 12px;
    }

    .project-detail-header::after {

        width: 85px;

        height: 85px;

        right: -48px;

        bottom: -48px;
    }

    .project-detail-header > div::before,
    .project-detail-header > div::after {

        width: 35px;

        height: 3px;

        top: 20px;
    }

    .project-detail-header > div::before {
        left: 25px;
    }

    .project-detail-header > div::after {
        right: 25px;
    }

    .project-section-heading {

        gap: 12px;

        margin-bottom: 30px;
    }

    .project-section-heading::after {

        bottom: -12px;
    }

    .project-section-label {

        width: 42px;

        height: 42px;

        font-size: 11px;
    }

    .project-section-heading h3 {

        font-size: 25px;
    }

    .project-section-heading h4 {

        font-size: 22px;
    }

    .project-overview-text p,
    .project-description-content p {

        font-size: 15px;

        line-height: 1.8;
    }

    .project-resources-section .resource-grid {

        grid-template-columns: 1fr;
    }

    .resource-image {

        height: 190px;
    }

    .project-gallery-item {
        height: 240px;
    }

    .mission-gallery {

        grid-template-columns: 1fr;

        width: 100%;

        gap: 12px;
    }

    .mission-image,
    .mission-image-large {

        height: 230px;

        grid-column: auto;

        grid-row: auto;
    }

    .mission-image-grid {

        width: 100%;

        gap: 10px;
    }

    .mission-single-image {

        width: 100%;
    }

    .mission-single-image .mission-image {

        height: 260px;
    }

    .mission-document {

        grid-template-columns: 1fr;

        gap: 12px;

        padding: 18px;
    }

    .mission-document .btn {

        grid-column: auto;

        justify-self: start;
    }

    .project-institutions {

        grid-template-columns: 1fr;
    }

    .institution-item {

        min-height: 165px;
    }

    .project-award {

        grid-template-columns: 1fr;

        gap: 18px;

        padding: 25px;
    }

    .publication-item {

        padding: 18px;

        border-left-width: 4px;
    }

    .publication-item-header {

        grid-template-columns:
            35px 1fr;

        gap: 10px;
    }

    .publication-item h4 {

        font-size: 17px;
    }

    .publication-item p {

        font-size: 12px;

        line-height: 1.6;
    }

    .project-case {

        margin-top: 50px;

        padding-top: 45px;
    }

    .project-case-header {

        gap: 12px;
    }

    .project-case-header h3 {

        font-size: 1.7rem;
    }

    .project-case-description > p {

        font-size: 15px;
    }
}


/* =====================================================
   RESPONSIVE - PANTALLAS MUY PEQUEÑAS (≤ 380 PX)
===================================================== */

@media (max-width: 380px) {

    .project-resources-section .resource-image,
    .mission-image,
    .mission-image-large {

        height: 180px;
    }

    .institution-item {

        padding: 16px;
    }

    .project-select-card {

        padding: 24px 22px;
    }
}


/* En teléfonos muy angostos, dos columnas de imágenes
   verticales quedan demasiado estrechas para leerse bien,
   así que se pasa a una sola columna. */

@media (max-width: 420px) {

    .mission-image-grid {

        grid-template-columns: 1fr;

        gap: 12px;

        width: 100%;
    }
}

/* =====================================================
   CONTACT PAGE
===================================================== */

.contact-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.contact-hero .page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-hero .page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero .page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.25)
        );
}


/* =====================================================
   CONTACT INTRO
===================================================== */

.contact-intro {
    padding: 110px 0;
    background: #ffffff;
}

/* TÍTULO ARRIBA */
.contact-intro-header {
    max-width: 850px;
    margin-bottom: 60px;
}

.contact-intro-header h2 {
    max-width: 800px;
    margin-top: 18px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    color: #111111;
}

/* TEXTO + IMAGEN */
.contact-intro-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 75px;
    align-items: center;
}

/* TEXTO */
.contact-intro-text {
    max-width: 650px;
}

.contact-intro-text p {
    margin: 0 0 25px;
    color: #555555;
    font-size: 1rem;
    line-height: 1.9;
}

.contact-intro-text p:last-child {
    margin-bottom: 0;
}

.contact-intro-text strong {
    color: #111111;
}

/* IMAGEN */
.contact-intro-image {
    position: relative;
}

.contact-intro-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* DETALLES DECORATIVOS */
.contact-intro-image::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    left: -18px;
    bottom: -18px;
    background: var(--yellow);
    z-index: 0;
}

.contact-intro-image::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    right: -14px;
    top: -14px;
    border: 7px solid var(--red);
    z-index: 0;
}

.contact-intro-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .contact-intro {
        padding: 90px 0;
    }

    .contact-intro-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-intro-text {
        max-width: 750px;
    }

}

@media (max-width: 600px) {

    .contact-intro {
        padding: 70px 0;
    }

    .contact-intro-header {
        margin-bottom: 40px;
    }

    .contact-intro-header h2 {
        font-size: 2.1rem;
    }

    .contact-intro-image::before {
        width: 55px;
        height: 55px;
        left: -10px;
        bottom: -10px;
    }

    .contact-intro-image::after {
        width: 40px;
        height: 40px;
        right: -8px;
        top: -8px;
        border-width: 6px;
    }

}

/* =====================================================
   MISSION AND VISION
===================================================== */

.contact-main {
    padding: 110px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    align-items: stretch;
}

/* -----------------------------------------------------
   TARJETAS
----------------------------------------------------- */

.contact-information,
.contact-form-wrapper {
    position: relative;
    min-width: 0;
    min-height: 500px;
    padding: 55px;
    background: var(--yellow);
    overflow: hidden;
}

/* Detalle rojo decorativo */
.contact-information::before,
.contact-form-wrapper::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -35px;
    bottom: -35px;
    border: 12px solid var(--red);
    transform: rotate(45deg);
}



/* -----------------------------------------------------
   CONTENIDO
----------------------------------------------------- */

.contact-information > *,
.contact-form-header > * {
    position: relative;
    z-index: 2;
}

.contact-information .section-label,
.contact-form-header .section-label {
    display: inline-block;
    color: var(--black);
    font-family: "Montserrat", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-information h2,
.contact-form-wrapper h2 {
    margin: 15px 0 28px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--black);
    max-width: 450px;
}

.contact-information > p,
.contact-form-header p {
    color: #222222;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 22px;
    max-width: 620px;
}

/* -----------------------------------------------------
   DIFERENCIAR VISIÓN
----------------------------------------------------- */

.contact-form-wrapper {
    background: var(--black);
}

.contact-form-wrapper .section-label {
    color: var(--yellow);
}

.contact-form-wrapper h2 {
    color: white;
}

.contact-form-header p {
    color: rgba(255, 255, 255, 0.78);
}

/* Decoración de la tarjeta oscura */
.contact-form-wrapper::before {
    border-color: var(--yellow);
}

.contact-form-wrapper::after {
    background: var(--red);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-information,
    .contact-form-wrapper {
        min-height: auto;
    }

}

@media (max-width: 600px) {

    .contact-main {
        padding: 70px 0;
    }

    .contact-information,
    .contact-form-wrapper {
        padding: 35px 28px;
    }

    .contact-information h2,
    .contact-form-wrapper h2 {
        font-size: 2rem;
    }

}


/* =====================================================
   RESEARCH LINES
===================================================== */

.universities-section {
    padding: 100px 0;
    background: #ffffff;
}

.universities-header {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.universities-header h2 {
    margin: 18px 0 22px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 800;
    color: #111111;
}

.universities-header p {
    margin: 0 auto;
    max-width: 760px;
    color: #666666;
    line-height: 1.8;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.university-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    min-width: 0;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.university-card:hover {
    transform: translateY(-4px);
    border-color: #d71920;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.university-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 65px;
    width: 65px;
    height: 65px;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.45rem;
}

.university-card > div:last-child {
    min-width: 0;
}

.university-card span {
    display: block;
    margin-bottom: 10px;
    color: #d71920;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.university-card h3 {
    margin: 0 0 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 800;
    color: #111111;
}

.university-card p {
    margin: 0;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.75;
}



/* =====================================================
   CONTACT INFORMATION
===================================================== */

.location-section {
    padding: 55px 0;
    background: #c91f25;
    color: #ffffff;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

/* Distribución principal en dos columnas */
.location-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 100px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

/* Columna izquierda: título y descripción */
.location-content h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 20px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
}

.location-content > p {
    grid-column: 1;
    grid-row: 2;
    max-width: 520px;
    margin: 0;
    color: #ffffff;
    line-height: 1.8;
}

/* Columna derecha: correo y ubicación */
.location-details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: end;
}

.location-details > div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.location-details i {
    flex-shrink: 0;
    width: 22px;
    margin-top: 4px;
    color: #f5c400;
    font-size: 1.1rem;
}

.location-details span {
    color: #ffffff;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* LinkedIn debajo de los datos */
.contact-social {
    grid-column: 2;
    grid-row: 2;
    margin-top: 25px;
}

.contact-social > span {
    display: block;
    margin-bottom: 15px;
    color: #f5c400;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.contact-social > div {
    display: flex;
    gap: 12px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #ffffff;
    background: #252525;
    border: 1px solid #444444;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease;
}

.contact-social a:hover {
    color: #111111;
    background: #f5c400;
    border-color: #f5c400;
}

/* Tablet y móvil */
@media (max-width: 768px) {
    .location-section {
        padding: 45px 0;
    }

    .location-content {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 25px;
    }

    .location-content h2 {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: -10px;
    }

    .location-content > p {
        grid-column: 1;
        grid-row: 2;
    }

    .location-details {
        grid-column: 1;
        grid-row: 3;
        align-self: auto;
        gap: 16px;
    }

    .contact-social {
        grid-column: 1;
        grid-row: 4;
        margin-top: 0;
    }
}



/* =====================================================
   CTA
===================================================== */

.contact-cta {
    padding: 100px 0;
    background: #d71920;
    color: #ffffff;
}

.cta-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.cta-content > span {
    display: block;
    margin-bottom: 20px;
    color: #f5c400;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.cta-content h2 {
    margin: 0 auto 35px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
}

.contact-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f5c400;
    color: #111111;
    border: 2px solid #f5c400;
}

.contact-cta .btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}




/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {

    .contact-intro-grid,
    .contact-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .universities-grid {
        grid-template-columns: 1fr;
    }

    .contact-intro,
    .contact-main,
    .universities-section,
    .location-section,
    .contact-cta {
        padding: 75px 0;
    }

}

@media (max-width: 650px) {

    .contact-hero {
        min-height: 390px;
    }

    .contact-intro-grid,
    .contact-grid,
    .location-grid {
        gap: 35px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .university-card {
        flex-direction: column;
        padding: 28px;
        gap: 20px;
    }

    .university-logo {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .map-container,
    .map-placeholder {
        min-height: 300px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

}

@media (max-width: 420px) {

    .location-details i {
        font-size: 1rem;
    }

    .contact-social a {
        width: 40px;
        height: 40px;
    }

    .universities-header p,
    .location-content > p {
        font-size: .92rem;
    }

    .university-card {
        padding: 22px;
    }
}