:root {
    --verde-oscuro: #12413b;
    --verde-oscuro-suave: #1f4f48;
    --dorado: #4a4a4a;
    --dorado-oscuro: #2d2d2d;
    --gris-claro: #f4f4f4;
    --gris-medio: #d8d8d8;
    --texto: #333333;
    --fondo: #ffffff;
    --radius-card: 18px;
    --sombra-suave: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Reset mínimo */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--texto);
    background-color: var(--fondo);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--verde-oscuro);
    backdrop-filter: blur(4px);
    border-bottom: 3px solid var(--dorado);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand__logo-link {
    text-decoration: none;
    display: block;
    line-height: 0;
}

.brand__logo-link:hover .brand__logo-img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand__logo {
     
    height: 85px;
    
     
    display: flex;
    align-items: center;
    justify-content: center;
     
    overflow: hidden;
}

.brand__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand__emblem {
    font-size: 1.4rem;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.brand__subtitle {
    font-size: 0.8rem;
    color: #ffffff;
}

/* NAV */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    position: relative;
    padding-block: 0.35rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--dorado);
    transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 34px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 70%;
    height: 2px;
    margin-inline: auto;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* IMAGEN DE BIENVENIDA */

.welcome-banner {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    background-color: var(--gris-claro);
}

.welcome-banner__image {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* HERO */

.hero {
    max-width: 1200px;
    margin: 1.8rem auto 0;
    padding: 2.2rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: stretch;
}

.hero__content {
    position: relative;
}

.hero__badge {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--dorado);
}

.hero__dots {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.hero__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--verde-oscuro);
}

.hero__number {
    font-size: clamp(5rem, 8vw, 6.5rem);
    font-weight: 800;
    color: var(--dorado);
    line-height: 0.85;
}

.hero__info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero__label {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--verde-oscuro);
}

.hero__entity {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.hero__to {
    margin-top: 0.2rem;
    font-size: 0.93rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #555;
}

.hero__period {
    margin-top: 0.3rem;
    display: inline-block;
    background: var(--dorado);
    color: #fff;
    font-weight: 700;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
}

.hero__text {
    margin: 1.2rem 0 1.6rem;
    max-width: 40rem;
    font-size: 1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Botones */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.08s ease;
}

.btn--primary {
    background-color: var(--verde-oscuro);
    color: #fff;
    border-color: var(--verde-oscuro);
    box-shadow: var(--sombra-suave);
}

.btn--primary:hover {
    background-color: var(--verde-oscuro-suave);
    transform: translateY(-1px);
}

.btn--outline {
    background-color: transparent;
    color: var(--verde-oscuro);
    border-color: var(--dorado);
}

.btn--outline:hover {
    background-color: var(--dorado);
    color: #fff;
}

.btn-link {
    border: none;
    background: none;
    color: var(--verde-oscuro);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Hero side card */

.hero__side-card {
    display: none;
    border-left: 6px solid var(--dorado);
    background: linear-gradient(135deg, var(--gris-claro), #ffffff);
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius-card);
    box-shadow: var(--sombra-suave);
    position: relative;
    overflow: hidden;
}

.hero__side-card::before {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 32px;
    border: 3px solid rgba(18, 65, 59, 0.12);
}

.hero__side-card h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero__side-card p {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.hero__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero__highlights li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.hero__highlights span {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--verde-oscuro);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* SECCIONES GENERALES */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.section--light {
    background-color: var(--gris-claro);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section__header {
    text-align: left;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--dorado);
    padding-left: 0.75rem;
}

.section__header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--verde-oscuro);
}

.section__header p {
    margin: 0.2rem 0 0;
    color: #666;
}

/* GRID */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CARDS */

.card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1.4rem 1.5rem;
}

.card--elevated {
    box-shadow: var(--sombra-suave);
}

.card--accent {
    background: linear-gradient(135deg, var(--verde-oscuro), #031f1c);
    color: #fff;
}

.card--accent h3 {
    margin-top: 0;
}

.card--axis {
    border-top: 4px solid var(--dorado);
    box-shadow: var(--sombra-suave);
}

/* Definition list */

.definition-list {
    margin: 0;
}

.definition-list div {
    margin-bottom: 0.7rem;
}

.definition-list dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    opacity: 0.8;
}

.definition-list dd {
    margin: 0;
    font-weight: 600;
}

/* RESULTADOS */

.results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.results__item {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1rem 1.1rem;
    box-shadow: var(--sombra-suave);
    border-left: 4px solid var(--dorado);
}

.results__value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--verde-oscuro);
}

.results__label {
    font-size: 0.9rem;
}

/* Timeline */

.timeline {
    border-left: 3px solid var(--dorado);
    padding-left: 1.1rem;
    display: grid;
    gap: 1rem;
}

.timeline__item {
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -1.45rem;
    top: 0.3rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--verde-oscuro);
    border: 2px solid #fff;
}

.timeline__date {
    font-weight: 700;
    color: var(--verde-oscuro);
}

/* VIDEO */

.video-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--sombra-suave);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    text-align: center;
    padding: 0 1rem;
}

.video-description h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: var(--verde-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.video-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* DOCUMENTOS */

.documents__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.documents__controls select {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--gris-medio);
    font-size: 0.9rem;
}

.table-wrapper {
    overflow-x: auto;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.documents-table th,
.documents-table td {
    padding: 0.55rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--gris-medio);
}

.documents-table thead {
    background-color: var(--verde-oscuro);
    color: #fff;
}

.documents-table tbody tr:hover {
    background-color: #f7f3ea;
}

.documents__note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

/* OCULTAR SECCIONES */

#presentacion,
#resultados,
#galeria {
    display: none;
}

/* GALERÍA */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.gallery__item {
    background-color: #fff;
    border-radius: var(--radius-card);
    padding: 0.7rem;
    box-shadow: var(--sombra-suave);
}

.gallery__thumb {
    border-radius: 12px;
    height: 140px;
    background: linear-gradient(135deg, var(--dorado), var(--verde-oscuro));
}

.gallery__thumb--informe {
    background-image: linear-gradient(135deg, var(--dorado), #f7f3ea);
}

.gallery__thumb--servicio {
    background-image: linear-gradient(135deg, var(--dorado), var(--verde-oscuro));
}

.gallery__item figcaption {
    margin-top: 0.45rem;
    font-size: 0.85rem;
}

/* CONTACTO */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.contact-list li {
    margin-bottom: 0.3rem;
}

/* FOOTER */

.site-footer {
    border-top: 3px solid var(--dorado-oscuro);
    background: #111;
    color: #eee;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    color: #eee;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__social-label {
    font-size: 0.85rem;
    color: #ccc;
    margin-right: 0.25rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #eee;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    color: var(--dorado);
    transform: translateY(-2px);
}

.footer__top-link {
    color: #eee;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.footer__top-link:hover {
    text-decoration: underline;
}

/* BOTÓN VOLVER ARRIBA */

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    border: none;
    background-color: var(--verde-oscuro);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.back-to-top--visible {
    display: flex;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        align-items: center;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: var(--verde-oscuro);
        border-bottom: 2px solid var(--dorado);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 1.5rem 1rem;
    }
    
    .main-nav a {
        color: #ffffff;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .grid--3,
    .results,
    .gallery {
        grid-template-columns: 1fr;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__social-label {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animación icono menú */

.main-nav--open + .nav-toggle span:nth-child(1),
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.main-nav--open + .nav-toggle span:nth-child(2),
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.main-nav--open + .nav-toggle span:nth-child(3),
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
