/*
 * Paridad H1, H2 y H7 con edilizia-themeV2.00.
 * Este archivo se carga al final para prevalecer sobre la base histórica.
 */

:root {
    --header-height: 72px;
    --header-compact-height: 32px;
}

html {
    scroll-padding-top: calc(var(--header-height) + 16px);
}

.site-header {
    min-height: var(--header-height);
    padding: 20px clamp(24px, 2.5vw, 40px);
    transition: min-height 500ms ease-in-out, padding 500ms ease-in-out;
}

.site-header.is-compact {
    min-height: var(--header-compact-height);
    padding-top: 0;
    padding-bottom: 0;
}

.main-nav a:focus-visible,
.social-links a:focus-visible,
.footer-nav a:focus-visible,
.footer-social a:focus-visible,
.home-alliances a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.home-hero__video {
    background: var(--secundario) var(--hero-fallback) center / cover no-repeat;
}

.home-alliances {
    padding-bottom: 8px;
    color: var(--white);
    background: var(--secundario);
}

.home-alliances__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding: 48px 0;
}

.home-alliances__title {
    margin: 0;
    padding: 0 24px;
    color: var(--white);
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
}

.home-alliances__logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    padding: 0 24px;
}

.home-alliances__logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-alliances__logos img {
    width: 250px;
    height: auto;
    filter: grayscale(1);
}

.site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
    padding: 48px 8px;
    border-top: 0;
}

.footer-brand {
    padding-left: 48px;
}

.footer-logo {
    margin-bottom: 16px;
}

.site-footer p {
    font-size: 13px;
}

.footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0 48px;
}

.footer-nav > div {
    display: grid;
    align-content: start;
}

.footer-nav a {
    padding: 8px 20px 3px;
    font-size: 15px;
}

.footer-certifications {
    justify-content: center;
    gap: 48px;
}

.footer-certifications img {
    width: auto;
    height: 160px;
    filter: none;
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: calc(var(--header-height) + 12px);
    }

    :root {
        --header-height: 64px;
        --header-compact-height: 44px;
    }

    .site-header {
        padding: 10px 14px;
    }

    .site-header.is-compact {
        min-height: var(--header-compact-height);
        padding: 10px 14px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        display: grid;
        max-height: 0;
        padding-top: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        border-top-color: transparent;
        pointer-events: none;
        transition: max-height 500ms ease, padding 300ms ease, opacity 300ms ease, visibility 0s linear 500ms;
    }

    .main-nav.is-open {
        max-height: calc(100vh - var(--header-compact-height));
        padding-top: 12px;
        visibility: visible;
        opacity: 1;
        border-top-color: rgba(255, 255, 255, 0.35);
        pointer-events: auto;
        transition: max-height 500ms ease, padding 300ms ease, opacity 300ms ease;
    }

    .home-alliances__inner {
        grid-template-columns: 1fr;
    }

    .home-alliances__title {
        font-size: 25px;
    }

    .home-alliances__logos {
        margin-top: 16px;
    }

    .home-alliances__logos img {
        width: 150px;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        margin-top: 40px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 24px;
    }

    .footer-nav a {
        padding-right: 0;
        padding-left: 0;
    }

    .footer-certifications {
        justify-content: flex-start;
        padding: 48px 0 8px 48px;
    }

    .footer-certifications img {
        height: 160px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .site-header,
    .main-nav {
        transition: none;
    }

    .home-hero__video {
        background-image: var(--hero-fallback);
    }
}
