/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;

    font-family: Arial, Helvetica, sans-serif;

    background: #ffffff;
    color: #294968;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --azul-oscuro: #0b355f;
    --azul: #1769b0;
    --azul-claro: #4d9be0;

    --azul-fondo: #f4faff;

    --texto: #294968;

    --blanco: #ffffff;

    --gris: #708397;

    --borde: rgba(23, 105, 176, 0.18);

    --ancho: 1180px;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background-color: var(--azul-oscuro);

    background-image: url("assets/header-banner.jpg");

    /* Ancho completo en todas las pantallas (cover recortaba los costados en mobile) */
    background-size: 100% 160%;

    background-position: center 57%;

    background-repeat: no-repeat;

    box-shadow:
        0 2px 14px
        rgba(0, 0, 0, 0.18);
}


.header-contenido {

    width: min(1400px, 92%);

    height: 82px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

.logo {

    display: flex;

    align-items: center;
}


.logo-img {

    display: block;

    height: 70px;

    width: auto;

    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}


/* NAV */

.nav {

    display: flex;

    align-items: center;

    gap: 22px;
}

.nav a {

    position: relative;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.7px;

    color: #ffffff;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);

    white-space: nowrap;

    transition: color 0.3s ease;
}

.nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: #ffffff;

    transition: width 0.3s ease;
}

.nav a:hover {
    color: #cfe8ff;
}

.nav a:hover::after {
    width: 100%;
}


/* MENU MOBILE */

.menu-btn {

    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;
}

.menu-btn span {

    display: block;

    width: 25px;

    height: 2px;

    background: #ffffff;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);

    transition: 0.3s;
}


/* =========================================================
   PORTADA
========================================================= */

.portada {

    width: 100%;

    min-height: 100svh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 90px 20px 20px;

    /* Imagen institucional (ya incluye el nombre de la empresa), version horizontal */
    background-image: url("assets/portada-web-v3.jpg");

    background-color: #02113f;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


/* Pantallas verticales (celulares y tablets): version vertical de la imagen */
@media (orientation: portrait) {

    .portada {

        background-image: url("assets/portada-mobile-v3.png");

        background-size: cover;
    }
}


.portada-contenido {

    width: 100%;

    max-width: 720px;

    margin: 0 auto;

    /* Kicker arriba y boton abajo, para no tapar el texto de la imagen */
    min-height: calc(100svh - 70px);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    color: #ffffff;

    animation: aparecer 1.2s ease;
}


.portada-kicker {

    display: inline-block;

    padding-bottom: 14px;

    margin-bottom: 30px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.4);

    font-size: 11px;

    letter-spacing: 6px;

    font-weight: 600;

    color: rgba(255, 255, 255, 0.75);
}


.portada-titulo {

    display: flex;

    flex-direction: column;

    align-items: center;

    line-height: 1;
}


.portada-titulo-pre {

    font-size: clamp(26px, 5vw, 48px);

    letter-spacing: 12px;

    font-weight: 600;

    color: rgba(255, 255, 255, 0.85);
}


.portada-titulo-main {

    margin-top: 18px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(64px, 12vw, 148px);

    font-weight: 700;

    letter-spacing: 2px;
}


.portada-titulo-post {

    margin-top: 14px;

    font-size: 14px;

    letter-spacing: 8px;

    font-weight: 300;

    color: rgba(255, 255, 255, 0.7);
}


.portada-linea {

    width: 60px;

    height: 1px;

    margin: 36px auto;

    background: rgba(255, 255, 255, 0.5);
}


.portada-subtitulo {

    font-size: 13px;

    letter-spacing: 4px;

    font-weight: 500;

    color: rgba(255, 255, 255, 0.85);
}


.boton-portada {

    display: inline-block;

    margin-top: 46px;

    padding: 15px 30px;

    border: 1px solid rgba(255, 255, 255, 0.6);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    background: transparent;

    transition: 0.3s;
}


.boton-portada:hover {

    background: #ffffff;

    color: var(--azul-oscuro);

    transform: translateY(-3px);
}


/* El nombre ya esta en la imagen de fondo: se oculta el titulo en texto
   (va despues de los estilos del titulo para que tenga prioridad) */
.portada .portada-titulo,
.portada .portada-linea,
.portada .portada-subtitulo {

    display: none;
}


/* =========================================================
   CARPETA CERRADA: SOLO SE VE LA PORTADA HASTA INGRESAR
========================================================= */

.carpeta-cerrada main > section:not(.portada),
.carpeta-cerrada .footer,
.carpeta-cerrada .header {

    display: none !important;
}


.carpeta-cerrada .portada {

    padding-top: 50px;
}


.carpeta-abierta main > section:not(.portada),
.carpeta-abierta .footer {

    animation: aparecer 0.8s ease;
}


.carpeta-abierta .header {

    animation: fundido 0.8s ease;
}


@keyframes fundido {

    from {

        opacity: 0;
    }

    to {

        opacity: 1;
    }
}


/* =========================================================
   PRESENTACIÓN
========================================================= */

.carta-presentacion {

    width: 100%;

    min-height: 100svh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 110px 7%;

    background-image:
        url("assets/img/fondo-institucional.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


.carta-contenido {

    width: min(900px, 100%);

    padding: 55px 65px;
}


.carta-etiqueta {

    display: block;

    margin-bottom: 15px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--azul);
}


.carta-contenido h1 {

    margin: 0;

    font-size: clamp(34px, 5vw, 60px);

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: 1px;

    color: var(--azul-oscuro);
}


.linea-carta {

    width: 75px;

    height: 4px;

    margin: 22px 0 32px;

    background: var(--azul);
}


.carta-contenido p {

    max-width: 800px;

    margin-bottom: 20px;

    font-size: 17px;

    line-height: 1.8;

    color: var(--texto);
}


.carta-contenido .saludo {

    font-size: 19px;

    font-weight: 600;

    color: var(--azul-oscuro);
}


.carta-contenido strong {

    color: var(--azul-oscuro);
}


/* =========================================================
   SECCIONES INSTITUCIONALES
========================================================= */

.seccion-institucional {

    width: 100%;

    min-height: 70vh;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 110px 7%;

    background: #ffffff;

    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(23, 105, 176, 0.035) 0px,
            rgba(23, 105, 176, 0.035) 1px,
            transparent 1px,
            transparent 42px
        );

    border-top:
        1px solid
        var(--borde);
}


.seccion-institucional::before {

    content: attr(data-numero);

    position: absolute;

    top: -0.12em;

    right: 3%;

    font-size: clamp(160px, 22vw, 360px);

    font-weight: 800;

    line-height: 1;

    color: var(--azul);

    opacity: 0.045;

    pointer-events: none;

    z-index: 0;
}


.institucional-contenido {

    position: relative;

    z-index: 1;

    width: min(900px, 100%);

    margin: auto;
}


.numero-seccion {

    display: block;

    margin-bottom: 12px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--azul-claro);
}


.etiqueta-seccion {

    display: block;

    margin-bottom: 16px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--azul);
}


.institucional-contenido h2,
.seccion-titulo h2 {

    font-size: clamp(38px, 6vw, 70px);

    line-height: 1;

    color: var(--azul-oscuro);

    letter-spacing: 1px;
}


.separador {

    width: 75px;

    height: 4px;

    margin: 25px 0 35px;

    background: var(--azul);
}


.institucional-contenido p {

    max-width: 850px;

    margin-bottom: 20px;

    font-size: 17px;

    line-height: 1.8;

    color: var(--texto);
}


/* =========================================================
   ACTIVIDADES
========================================================= */

.actividades {

    width: 100%;

    padding: 110px 7%;

    background: var(--azul-fondo);
}


.seccion-titulo {

    width: min(1180px, 100%);

    margin: 0 auto 60px;
}


.seccion-titulo > p {

    max-width: 750px;

    font-size: 16px;

    line-height: 1.7;

    color: var(--texto);
}


.actividades-grid {

    width: min(1180px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}


.actividad {

    position: relative;

    padding: 34px;

    background: #ffffff;

    border:
        1px solid
        var(--borde);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.actividad:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px
        rgba(11, 53, 95, 0.07);
}


.actividad-ancha {

    grid-column: span 2;
}


.actividad-numero {

    margin-bottom: 20px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--azul-claro);
}


.actividad h3 {

    margin-bottom: 20px;

    font-size: 22px;

    letter-spacing: 1px;

    color: var(--azul-oscuro);
}


.actividad ul {

    list-style: none;
}


.actividad li {

    position: relative;

    padding-left: 17px;

    margin-bottom: 10px;

    font-size: 14px;

    line-height: 1.6;

    color: var(--texto);
}


.actividad li::before {

    content: "";

    position: absolute;

    left: 0;

    top: 9px;

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: var(--azul);
}


/* =========================================================
   TALLER
========================================================= */

.taller {

    width: 100%;

    padding: 110px 7%;

    background: #ffffff;
}


.taller-grid {

    width: min(1180px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


.taller-card {

    overflow: hidden;

    border:
        1px solid
        var(--borde);

    background: #ffffff;
}


.taller-imagen {

    height: 300px;

    overflow: hidden;

    background: #e8f2fa;
}


.taller-imagen-multi {

    display: grid;

    grid-auto-flow: column;

    grid-auto-columns: 1fr;

    height: 100%;

    gap: 2px;
}


.taller-imagen-multi img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.imagen-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #7fa2bf;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    background:
        linear-gradient(
            135deg,
            #edf7ff,
            #dcecf8
        );
}


.taller-card h3 {

    padding: 22px;

    font-size: 14px;

    letter-spacing: 1.5px;

    color: var(--azul-oscuro);
}


/* =========================================================
   ANTECEDENTES
========================================================= */

.antecedentes {

    width: 100%;

    padding: 110px 7%;

    background: #f5faff;

    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(23, 105, 176, 0.04) 0px,
            rgba(23, 105, 176, 0.04) 1px,
            transparent 1px,
            transparent 42px
        );
}


.antecedentes-intro {

    width: min(850px, 100%);

    margin: 0 auto 60px;

    text-align: center;
}


.antecedentes-intro p {

    font-size: 17px;

    line-height: 1.8;

    color: var(--texto);
}


.antecedente-lista {

    width: min(1000px, 100%);

    margin: auto;
}


.antecedente {

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 35px;

    padding: 45px 0;

    border-bottom:
        1px solid
        var(--borde);
}


.antecedente-numero {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--azul);
}


.antecedente h3 {

    margin-bottom: 18px;

    font-size: 25px;

    line-height: 1.2;

    color: var(--azul-oscuro);
}


.antecedente p {

    margin-bottom: 12px;

    font-size: 15px;

    line-height: 1.7;

    color: var(--texto);
}


/* =========================================================
   OBRAS
========================================================= */

.obras {

    width: 100%;

    padding: 120px 7%;

    background: #ffffff;
}


.obras-titulo {

    margin-bottom: 80px;
}


.obras-titulo > p {

    max-width: 750px;

    margin-top: 10px;

    font-size: 16px;

    line-height: 1.7;

    color: var(--texto);
}


/* =========================================================
   GRILLA DE TARJETAS (vista tipo "autos")
========================================================= */

.obras-lista {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 34px;
}


.obra-card {

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border: 1px solid var(--borde);

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.obra-card.visible:hover,
.obra-card.visible:focus-visible {

    transform: translateY(-6px);

    border-color: var(--azul-claro);

    box-shadow:
        0 20px 40px
        rgba(11, 53, 95, 0.14);
}


.obra-card:focus-visible {

    outline: 2px solid var(--azul);

    outline-offset: 2px;
}


.obra-card-foto {

    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eaf4fb;
}


.obra-card-foto img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.obra-card.visible:hover .obra-card-foto img {

    transform: scale(1.05);
}



.obra-card-cuerpo {

    display: flex;

    flex: 1;

    flex-direction: column;

    padding: 22px 24px 24px;

    border-top:
        3px solid
        var(--azul);
}


.obra-card-numero {

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul-claro);
}


.obra-card-cuerpo h3 {

    font-size: 20px;

    line-height: 1.25;

    color: var(--azul-oscuro);
}


.obra-card-datos {

    margin-top: 10px;

    font-size: 13px;

    line-height: 1.5;

    color: var(--texto);
}


.obra-card-cta {

    margin-top: auto;

    padding-top: 18px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--azul);
}


/* =========================================================
   MODAL FICHA DE OBRA
========================================================= */

body.modal-abierto {

    overflow: hidden;
}


.obra-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 9000;

    align-items: center;

    justify-content: center;

    padding: 40px 16px;
}


.obra-modal.activo {

    display: flex;
}


.obra-modal-fondo {

    position: absolute;

    inset: 0;

    background: rgba(11, 53, 95, 0.75);
}


.obra-modal-panel {

    position: relative;

    z-index: 1;

    width: min(1100px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    box-shadow:
        0 30px 70px
        rgba(11, 53, 95, 0.35);
}


.obra-modal-cerrar {

    position: sticky;

    top: 0;

    left: 100%;

    z-index: 2;

    width: 44px;

    height: 44px;

    margin-bottom: -44px;

    border: 0;

    background: var(--azul-oscuro);

    color: #ffffff;

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    transition: 0.25s;
}


.obra-modal-cerrar:hover {

    background: var(--azul);
}


.obra-modal-contenido {

    padding: 50px 7%;
}


.obra-modal-contenido .obra {

    width: 100%;

    margin: 0;

    padding-top: 0;

    border-top: 0;

    opacity: 1;

    transform: none;

    transition: none;
}


.obra-header {

    display: flex;

    align-items: flex-start;

    gap: 30px;

    margin-bottom: 35px;
}



.obra-numero {

    flex-shrink: 0;

    padding-top: 7px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul);
}


.obra-kicker {

    display: block;

    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--azul-claro);
}


.obra h3 {

    font-size: clamp(30px, 5vw, 56px);

    line-height: 1.05;

    color: var(--azul-oscuro);

    overflow-wrap: break-word;
}


.obra h3 span {

    font-weight: 400;

    color: var(--azul);
}


/* =========================================================
   DATOS OBRA
========================================================= */

.obra-datos {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    padding: 23px 0;

    border-top:
        1px solid
        var(--borde);

    border-bottom:
        1px solid
        var(--borde);
}


.obra-datos div {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.obra-datos span {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul-claro);
}


.obra-datos strong {

    font-size: 14px;

    line-height: 1.4;

    color: var(--texto);

    overflow-wrap: break-word;
}


/* =========================================================
   DESCRIPCIÓN OBRA
========================================================= */

.obra-descripcion {

    max-width: 900px;

    margin: 45px 0 40px;
}


.obra-descripcion h4 {

    margin-bottom: 18px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul);
}


.obra-descripcion p {

    margin-bottom: 15px;

    font-size: 16px;

    line-height: 1.75;

    color: var(--texto);
}


.obra-descripcion strong {

    color: var(--azul-oscuro);
}


/* =========================================================
   TRABAJOS OBRA
========================================================= */

.obra-trabajos {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    margin-bottom: 50px;
}


.trabajo-item {

    padding: 25px;

    background: #f4f9fd;

    border-left:
        3px solid
        var(--azul);
}


.trabajo-item span {

    display: block;

    margin-bottom: 10px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul);
}


.trabajo-item p {

    font-size: 14px;

    line-height: 1.7;

    color: var(--texto);
}


/* =========================================================
   GALERÍA OBRA
========================================================= */

.obra-galeria {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


.foto-obra {

    position: relative;

    width: 100%;

    height: 400px;

    overflow: hidden;

    background: #eaf4fb;
}


.foto-obra.foto-destacada {

    grid-column: span 2;

    height: 480px;
}


.foto-obra img {

    transition: transform 0.5s ease;
}


.foto-obra:hover img {

    transform: scale(1.04);
}


.foto-obra img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.foto-obra-caption {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    padding: 10px 14px;

    font-size: 11px;

    line-height: 1.4;

    color: #ffffff;

    background: linear-gradient(
        to top,
        rgba(11, 53, 95, 0.82),
        rgba(11, 53, 95, 0)
    );
}


.foto-oculta {

    display: none;
}


.boton-mas-fotos {

    display: block;

    margin: 16px auto 0;

    padding: 12px 22px;

    border: 1px solid var(--borde);

    background: #ffffff;

    color: var(--azul);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition: 0.3s;
}


.boton-mas-fotos:hover {

    background: var(--azul);

    color: #ffffff;
}


.placeholder-foto {

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #edf7ff,
            #d9eaf7
        );

    border:
        1px dashed
        rgba(23, 105, 176, 0.30);
}


.placeholder-foto::before {

    content: "";

    position: absolute;

    inset: 18px;

    border:
        1px solid
        rgba(23, 105, 176, 0.15);
}


.placeholder-foto div {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    text-align: center;
}


.placeholder-foto span {

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul);
}


.placeholder-foto small {

    font-size: 11px;

    color: var(--gris);
}


/* =========================================================
   PIE OBRA
========================================================= */

.obra-pie {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 18px;

    margin-top: 18px;

    border-top:
        1px solid
        var(--borde);
}


.obra-pie span {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul-claro);
}


/* =========================================================
   ÍNDICE / BÚSQUEDA DE OBRAS
========================================================= */

.obras-index {

    width: min(1200px, 100%);

    margin: 0 auto 50px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 16px;
}


.obras-buscador {

    flex: 1 1 260px;

    min-width: 0;

    padding: 13px 16px;

    border: 1px solid var(--borde);

    background: #ffffff;

    color: var(--texto);

    font-size: 14px;

    font-family: inherit;
}


.obras-buscador:focus {

    outline: none;

    border-color: var(--azul);
}


.obras-filtro-anios {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.filtro-anio {

    padding: 9px 16px;

    border: 1px solid var(--borde);

    background: #ffffff;

    color: var(--texto);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.5px;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.25s;
}


.filtro-anio:hover {

    border-color: var(--azul);

    color: var(--azul);
}


.filtro-anio.activo {

    background: var(--azul);

    border-color: var(--azul);

    color: #ffffff;
}


.obras-contador {

    width: 100%;

    font-size: 12px;

    color: var(--gris);
}


.obras-cargar-mas-wrap {

    width: min(1200px, 100%);

    margin: 40px auto 0;

    text-align: center;
}


.boton-cargar-mas {

    padding: 15px 34px;

    border: 1px solid var(--azul);

    background: #ffffff;

    color: var(--azul-oscuro);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition: 0.3s;
}


.boton-cargar-mas:hover {

    background: var(--azul);

    color: #ffffff;
}


/* Obras sin fotos: grilla compacta de solo texto al final */
.obras-otras {

    width: min(1200px, 100%);

    margin: 80px auto 0;
}


.obras-otras[hidden] {

    display: none;
}


.obras-otras-titulo {

    padding-bottom: 14px;

    margin-bottom: 28px;

    border-bottom: 1px solid var(--borde);

    font-size: 13px;

    letter-spacing: 3px;

    color: var(--azul-oscuro);
}


.obras-otras-lista {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 20px;
}


.obra-card-texto {

    padding: 20px 22px 22px;

    border-top: 3px solid var(--azul);
}





.obra-card-texto h3 {

    font-size: 16px;

    line-height: 1.3;

    color: var(--azul-oscuro);
}


.obra-card-texto .obra-card-datos {

    font-size: 12px;
}


.obras-sin-resultados {

    margin-top: 20px;

    font-size: 14px;

    color: var(--gris);
}


/* =========================================================
   EMPRESAS QUE NOS ELIGEN (carrusel de logos)
========================================================= */

.clientes {

    width: 100%;

    padding: 70px 0 80px;

    background: var(--azul-fondo);

    text-align: center;

    overflow: hidden;
}


.clientes-titulo {

    display: inline-block;

    padding-bottom: 12px;

    margin-bottom: 40px;

    border-bottom: 2px solid var(--azul);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 4px;

    color: var(--azul-oscuro);
}


.clientes-carrusel {

    width: 100%;

    overflow: hidden;

    /* Los logos aparecen y desaparecen suavemente en los bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}


.clientes-pista {

    display: flex;

    width: max-content;

    gap: 24px;

    list-style: none;

    animation: clientes-desplazar 40s linear infinite;
}


.clientes-carrusel:hover .clientes-pista {

    animation-play-state: paused;
}


.cliente-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    /* El ancho depende de cada logo: el tamaño de cada imagen (width/height en el HTML)
       esta calculado para que todos tengan un peso visual parecido */
    height: 100px;

    padding: 0 30px;

    background: #ffffff;

    border: 1px solid var(--borde);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.cliente-logo:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 24px rgba(11, 53, 95, 0.12);
}


.cliente-logo img {

    object-fit: contain;
}


@keyframes clientes-desplazar {

    from {
        transform: translateX(0);
    }

    /* -50% = una lista completa, mas medio espacio entre logos */
    to {
        transform: translateX(calc(-50% - 12px));
    }
}


@media (max-width: 768px) {

    .clientes {

        padding: 50px 0 60px;
    }

    .cliente-logo {

        height: 76px;

        padding: 0 20px;
    }

    .cliente-logo img {

        zoom: 0.75;
    }

    .clientes-pista {

        gap: 16px;

        animation-duration: 30s;
    }

    @keyframes clientes-desplazar {

        to {
            transform: translateX(calc(-50% - 8px));
        }
    }
}


/* Si el dispositivo pide menos movimiento: logos quietos y centrados */
@media (prefers-reduced-motion: reduce) {

    .clientes-carrusel {

        -webkit-mask-image: none;
        mask-image: none;
    }

    .clientes-pista {

        width: auto;

        flex-wrap: wrap;

        justify-content: center;

        padding: 0 20px;

        animation: none;
    }

    .clientes-pista [aria-hidden="true"] {

        display: none;
    }
}


/* =========================================================
   NUESTRA ESTRUCTURA (FLOTA)
========================================================= */

.flota {

    width: 100%;

    padding: 110px 7%;

    background: var(--azul-fondo);
}


.flota .seccion-titulo > p {

    margin-top: 14px;

    max-width: 800px;

    font-size: 16px;

    line-height: 1.7;

    color: var(--texto);
}


.flota-listas {

    width: min(1180px, 100%);

    margin: 0 auto 50px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}


.flota-lista-item {

    padding: 28px 30px;

    background: #ffffff;

    border: 1px solid var(--borde);
}


.flota-lista-item h3 {

    margin-bottom: 12px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--azul);
}


.flota-lista-item p {

    font-size: 14px;

    line-height: 1.7;

    color: var(--texto);
}


.flota-galeria {

    width: min(1180px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}


.flota-foto {

    height: 160px;

    overflow: hidden;

    background: #e8f2fa;

    opacity: 0;

    transform: translateY(16px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.flota-foto.visible {

    opacity: 1;

    transform: translateY(0);
}


.flota-foto img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.foto-obra img,
.taller-imagen-multi img,
.flota-foto img {

    cursor: zoom-in;
}


.lightbox {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 10000;

    align-items: center;

    justify-content: center;

    padding: 60px 16px;

    background: rgba(11, 53, 95, 0.94);
}


.lightbox.activo {

    display: flex;
}


.lightbox-contenido {

    display: flex;

    flex-direction: column;

    align-items: center;

    max-width: min(1100px, 100%);

    max-height: 100%;
}


.lightbox-contenido img {

    display: block;

    max-width: 100%;

    max-height: 72vh;

    width: auto;

    height: auto;

    object-fit: contain;

    background: #000000;

    cursor: default;
}


.lightbox-caption {

    margin-top: 16px;

    max-width: 90%;

    text-align: center;

    font-size: 13px;

    line-height: 1.6;

    color: #ffffff;
}


.lightbox-contador {

    margin-top: 8px;

    font-size: 11px;

    letter-spacing: 1px;

    color: rgba(255, 255, 255, 0.6);
}


.lightbox-cerrar {

    position: fixed;

    top: 18px;

    right: 18px;

    width: 44px;

    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    transition: 0.25s;
}


.lightbox-cerrar:hover {

    background: rgba(255, 255, 255, 0.2);
}


.lightbox-flecha {

    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    width: 48px;

    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    transition: 0.25s;
}


.lightbox-flecha:hover {

    background: rgba(255, 255, 255, 0.2);
}


.lightbox-flecha:disabled {

    opacity: 0.25;

    cursor: default;
}


.lightbox-anterior {

    left: 14px;
}


.lightbox-siguiente {

    right: 14px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    padding: 65px 7%;

    background: var(--azul-oscuro);

    color: #ffffff;

    text-align: center;
}


.footer-contenido {

    display: flex;

    flex-direction: column;

    align-items: center;
}


.footer-logo-img {

    display: block;

    height: 56px;

    width: auto;
}


.footer p {

    margin-top: 18px;

    font-size: 10px;

    letter-spacing: 2px;

    opacity: 0.75;
}


.footer-linea {

    width: 55px;

    height: 2px;

    margin: 22px 0;

    background: var(--azul-claro);
}


.footer-contacto {

    max-width: 520px;

    margin-bottom: 22px;
}


.footer-contacto p {

    margin-top: 0;

    font-size: 12px;

    line-height: 1.8;

    letter-spacing: 0.3px;

    opacity: 0.85;
}


.footer-contacto a {

    color: var(--azul-claro);

    text-decoration: underline;
}


.footer small {

    font-size: 11px;

    opacity: 0.6;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes aparecer {

    from {

        opacity: 0;

        transform: translateY(25px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}


.actividad,
.taller-card,
.antecedente,
.obra-card {

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.actividad.visible,
.taller-card.visible,
.antecedente.visible,
.obra-card.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-contenido {

        height: 70px;
    }


    .nav {

        display: none;

        position: absolute;

        top: 70px;

        left: 0;

        width: 100%;

        max-height: calc(100vh - 70px);

        overflow-y: auto;

        padding: 25px;

        background: #ffffff;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        border-bottom:
            1px solid
            var(--borde);

        box-shadow:
            0 10px 25px
            rgba(0,0,0,0.06);
    }


    .nav.activo {

        display: flex;
    }


    .nav a {

        font-size: 13px;

        color: var(--azul-oscuro);

        text-shadow: none;
    }


    .nav a::after {

        background: var(--azul);
    }


    .nav a:hover {

        color: var(--azul);
    }


    .menu-btn {

        display: flex;
    }


    .actividades-grid {

        grid-template-columns: 1fr;
    }


    .actividad-ancha {

        grid-column: span 1;
    }


    .taller-grid {

        grid-template-columns: 1fr;
    }


    .obra-datos {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .obra-trabajos {

        grid-template-columns: 1fr;
    }


    .obra-galeria {

        grid-template-columns: 1fr;
    }


    .foto-obra {

        height: 360px;
    }


    .foto-obra.foto-destacada {

        grid-column: span 1;
    }


    .flota-listas {

        grid-template-columns: 1fr;
    }


    .flota-galeria {

        grid-template-columns: repeat(3, 1fr);
    }


    .obras-index {

        gap: 14px;
    }


    .obras-buscador {

        flex-basis: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    /* GENERAL */

    body {
        font-size: 16px;
    }


    /* HEADER */

    .header-contenido {

        width: 90%;

        height: 64px;
    }


    .logo-img {

        height: 52px;
    }


    .menu-btn {

        width: 40px;

        height: 40px;
    }


    .nav {

        top: 64px;

        max-height:
            calc(100svh - 64px);

        padding:
            22px 7%;

        gap: 17px;
    }


    .nav a {

        width: 100%;

        padding-bottom: 5px;

        font-size: 13px;
    }


    /* PORTADA */

    .portada {

        min-height: 100svh;

        padding:
            85px 20px 20px;

        /* En mobile: imagen institucional vertical cubriendo toda la pantalla */
        background-image:
            url("assets/portada-mobile-v3.png");

        background-color: #02113f;

        background-size: cover;

        background-position: center;
    }


    .portada-contenido {

        max-width: 100%;
    }


    .portada-kicker {

        font-size: 9px;

        letter-spacing: 4px;

        margin-bottom: 24px;
    }


    .portada-titulo-pre {

        letter-spacing: 6px;
    }


    .portada-titulo-post {

        font-size: 12px;

        letter-spacing: 6px;
    }


    .portada-subtitulo {

        font-size: 11px;

        letter-spacing: 3px;
    }


    .boton-portada {

        margin-top: 32px;

        padding:
            13px 18px;

        font-size: 9px;

        letter-spacing: 1.2px;
    }


    /* PRESENTACIÓN */

    .carta-presentacion {

        min-height: auto;

        padding:
            90px 6%;

        background-position:
            center center;
    }


    .carta-contenido {

        padding:
            25px 5px;
    }


    .carta-etiqueta {

        font-size: 9px;

        letter-spacing: 2px;

        margin-bottom: 12px;
    }


    .carta-contenido h1 {

        font-size: 32px;

        line-height: 1.05;
    }


    .linea-carta {

        width: 55px;

        height: 3px;

        margin:
            18px 0 25px;
    }


    .carta-contenido .saludo {

        font-size: 17px;
    }


    .carta-contenido p {

        font-size: 15px;

        line-height: 1.7;

        margin-bottom: 17px;
    }


    /* SECCIONES */

    .seccion-institucional {

        min-height: auto;

        padding:
            90px 6%;
    }


    .numero-seccion {

        font-size: 10px;

        letter-spacing: 2px;

        margin-bottom: 10px;
    }


    .etiqueta-seccion {

        font-size: 9px;

        letter-spacing: 2.5px;

        margin-bottom: 13px;
    }


    .institucional-contenido h2,
    .seccion-titulo h2 {

        font-size: 39px;

        line-height: 1.05;
    }


    .separador {

        width: 55px;

        height: 3px;

        margin:
            20px 0 28px;
    }


    .institucional-contenido p {

        font-size: 15px;

        line-height: 1.7;

        margin-bottom: 17px;
    }


    /* ACTIVIDADES */

    .actividades {

        padding:
            90px 6%;
    }


    .seccion-titulo {

        margin-bottom: 45px;
    }


    .seccion-titulo > p {

        font-size: 15px;
    }


    .actividades-grid {

        gap: 15px;
    }


    .actividad {

        padding: 25px 22px;
    }


    .actividad-numero {

        margin-bottom: 15px;

        font-size: 10px;
    }


    .actividad h3 {

        font-size: 19px;

        margin-bottom: 17px;
    }


    .actividad li {

        padding-left: 15px;

        margin-bottom: 9px;

        font-size: 13px;

        line-height: 1.55;
    }


    /* TALLER */

    .taller {

        padding:
            90px 6%;
    }


    .taller-grid {

        gap: 18px;
    }


    .taller-imagen {

        height: 220px;
    }


    .taller-card h3 {

        padding: 18px;

        font-size: 11px;

        letter-spacing: 1.2px;
    }


    /* ANTECEDENTES */

    .antecedentes {

        padding:
            90px 6%;
    }


    .antecedentes-intro {

        margin-bottom: 40px;
    }


    .antecedentes-intro p {

        font-size: 15px;

        line-height: 1.7;
    }


    .antecedente {

        grid-template-columns: 1fr;

        gap: 12px;

        padding:
            35px 0;
    }


    .antecedente-numero {

        font-size: 10px;
    }


    .antecedente h3 {

        font-size: 21px;

        line-height: 1.25;
    }


    .antecedente p {

        font-size: 14px;

        line-height: 1.65;
    }


    /* OBRAS */

    .obras {

        padding:
            90px 6%;
    }


    .obras-titulo {

        margin-bottom: 55px;
    }


    .obras-titulo > p {

        font-size: 15px;
    }


    .obra {

        margin-bottom: 80px;

        padding-top: 30px;

        border-top-width: 3px;
    }


    .obra-header {

        display: block;

        margin-bottom: 28px;
    }


    .obra-numero {

        display: block;

        padding: 0;

        margin-bottom: 12px;

        font-size: 10px;
    }


    .obra-kicker {

        margin-bottom: 7px;

        font-size: 9px;

        letter-spacing: 2px;
    }


    .obra h3 {

        font-size: 30px;

        line-height: 1.08;

        letter-spacing: 0;
    }


    .obra h3 span {

        display: inline;
    }


    /* DATOS */

    .obra-datos {

        grid-template-columns: 1fr;

        gap: 0;

        padding: 0;

        border-top:
            1px solid
            var(--borde);

        border-bottom:
            1px solid
            var(--borde);
    }


    .obra-datos div {

        padding: 15px 0;

        border-bottom:
            1px solid
            rgba(23, 105, 176, 0.10);
    }


    .obra-datos div:last-child {

        border-bottom: 0;
    }


    .obra-datos span {

        font-size: 8px;

        letter-spacing: 1.8px;
    }


    .obra-datos strong {

        font-size: 14px;
    }


    /* DESCRIPCIÓN */

    .obra-descripcion {

        margin:
            35px 0;
    }


    .obra-descripcion h4 {

        font-size: 9px;

        line-height: 1.5;

        letter-spacing: 1.8px;

        margin-bottom: 15px;
    }


    .obra-descripcion p {

        font-size: 14px;

        line-height: 1.7;

        margin-bottom: 13px;
    }


    /* TRABAJOS */

    .obra-trabajos {

        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;

        margin-bottom: 35px;
    }


    .trabajo-item {

        padding: 20px;

        border-left-width: 3px;
    }


    .trabajo-item span {

        font-size: 9px;

        letter-spacing: 1.5px;

        margin-bottom: 8px;
    }


    .trabajo-item p {

        font-size: 13px;

        line-height: 1.6;
    }


    /* GALERÍA */

    .obra-galeria {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .foto-obra {

        width: 100%;

        height: 240px;

        min-height: 240px;
    }


    .foto-obra.foto-destacada {

        grid-column: span 1;

        height: 260px;
    }


    .placeholder-foto::before {

        inset: 12px;
    }


    .placeholder-foto span {

        font-size: 11px;

        letter-spacing: 1.5px;
    }


    .placeholder-foto small {

        font-size: 10px;
    }


    .foto-obra-caption {

        font-size: 10px;

        padding: 8px 10px;
    }


    .boton-mas-fotos {

        width: 100%;

        padding: 13px 18px;
    }


    /* PIE */

    .obra-pie {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        padding-top: 15px;

        margin-top: 15px;
    }


    .obra-pie span {

        font-size: 8px;

        letter-spacing: 1.5px;
    }


    /* GRILLA DE TARJETAS */

    .obras-lista {

        grid-template-columns: 1fr;

        gap: 24px;
    }


    .obra-card-cuerpo {

        padding: 18px 20px 20px;
    }


    .obra-card-cuerpo h3 {

        font-size: 18px;
    }


    .obra-modal {

        padding: 0;
    }


    .obra-modal-panel {

        width: 100%;

        max-height: 100vh;

        height: 100%;
    }


    .obra-modal-contenido {

        padding: 40px 6%;
    }


    /* FOOTER */

    .footer {

        padding:
            55px 6%;
    }


    .footer-logo-img {

        height: 44px;
    }


    .footer p {

        font-size: 8px;

        letter-spacing: 1.5px;
    }


    .footer-contacto p {

        font-size: 11px;

        line-height: 1.7;
    }


    /* ÍNDICE / BÚSQUEDA DE OBRAS */

    .obras-index {

        margin-bottom: 35px;

        gap: 12px;
    }


    .obras-buscador {

        flex-basis: 100%;

        font-size: 13px;

        padding: 12px 14px;
    }


    .filtro-anio {

        padding: 8px 13px;

        font-size: 11px;
    }


    .obras-cargar-mas-wrap {

        margin-top: 30px;
    }


    .boton-cargar-mas {

        width: 100%;

        padding: 14px 20px;
    }


    /* NUESTRA ESTRUCTURA (FLOTA) */

    .flota {

        padding: 90px 6%;
    }


    .flota .seccion-titulo > p {

        font-size: 15px;
    }


    .flota-listas {

        margin-bottom: 35px;

        gap: 14px;
    }


    .flota-lista-item {

        padding: 22px 20px;
    }


    .flota-lista-item p {

        font-size: 13px;
    }


    .flota-galeria {

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }


    .flota-foto {

        height: 120px;
    }


    /* LIGHTBOX */

    .lightbox {

        padding: 50px 8px;
    }


    .lightbox-contenido img {

        max-height: 62vh;
    }


    .lightbox-caption {

        font-size: 12px;
    }


    .lightbox-cerrar {

        top: 10px;

        right: 10px;

        width: 38px;

        height: 38px;

        font-size: 22px;
    }


    .lightbox-flecha {

        width: 40px;

        height: 40px;

        font-size: 24px;
    }


    .lightbox-anterior {

        left: 6px;
    }


    .lightbox-siguiente {

        right: 6px;
    }

}


/* =========================================================
   MOBILE MUY PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .portada-titulo-pre {

        letter-spacing: 4px;
    }


    .portada-kicker {

        letter-spacing: 3px;
    }


    .carta-contenido h1 {

        font-size: 29px;
    }


    .institucional-contenido h2,
    .seccion-titulo h2 {

        font-size: 35px;
    }


    .obra h3 {

        font-size: 27px;
    }


    .foto-obra {

        height: 210px;

        min-height: 210px;
    }

}