/* Clean editorial header. Loaded after general.min.css so the legacy header rules cannot leak into it. */
:root {
    --origami-navy: #102968;
    --origami-orange: #ef803d;
    --origami-ink: #172449;
    --origami-line: #dce1e5;
    --origami-paper: #fafbf9;
    --origami-header-height: 101px;
}

body {
    padding-top: var(--origami-header-height);
}

#origami-clean-header.clean-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    z-index: 1000;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid var(--origami-line);
    box-shadow: none !important;
    font-family: GothamRounded-Medium, Arial, sans-serif;
}

main > #s-banner,
main > #s-info-contacto,
main > #s-blog,
main > #s-proyectos,
main > #s-contacto,
main > #s-soluciones,
main > #s-blog-interno,
main > #content-404 {
    margin-top: 0 !important;
}

main > #s-banner {
    height: calc(100vh - var(--origami-header-height));
}

#origami-clean-header .clean-header__inner {
    width: min(1320px, calc(100% - 48px));
    min-height: 101px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 32px);
}

#origami-clean-header .clean-header__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 174px;
    height: 52px;
}

#origami-clean-header .clean-header__brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#origami-clean-header .clean-header__nav {
    flex: 1 1 auto;
    min-width: 0;
    position: static !important;
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    gap: clamp(20px, 3vw, 38px);
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

#origami-clean-header .clean-header__nav a,
#origami-clean-header .clean-header__contact {
    color: var(--origami-navy) !important;
    font-family: GothamRounded-Medium, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

#origami-clean-header .clean-header__nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 101px;
    padding: 4px 0 !important;
    border: 0 !important;
    transition: color .2s ease;
}

#origami-clean-header .clean-header__nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 25px;
    left: 0;
    height: 3px;
    background: var(--origami-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

#origami-clean-header .clean-header__nav a:hover,
#origami-clean-header .clean-header__nav a:focus-visible,
#origami-clean-header .clean-header__nav a.is-active {
    color: var(--origami-orange) !important;
}

#origami-clean-header .clean-header__nav a:hover::after,
#origami-clean-header .clean-header__nav a:focus-visible::after,
#origami-clean-header .clean-header__nav a.is-active::after {
    transform: scaleX(1);
}

#origami-clean-header .clean-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    padding: 11px 18px;
    border: 1px solid #d8dce4;
    border-radius: 999px;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

#origami-clean-header .clean-header__contact span {
    color: var(--origami-orange);
    font-size: 21px;
    line-height: .8;
}

#origami-clean-header .clean-header__contact span i,
#origami-clean-header .clean-header__mobile-contact span i {
    font-size: .72em;
}

#origami-clean-header .clean-header__quick-links {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

#origami-clean-header .clean-header__quick-links a {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--origami-line);
    border-radius: 50%;
    color: var(--origami-navy);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

#origami-clean-header .clean-header__quick-links a:hover,
#origami-clean-header .clean-header__quick-links a:focus-visible {
    border-color: var(--origami-orange);
    background: #fffaf6;
    color: var(--origami-orange);
    transform: translateY(-1px);
}

#origami-clean-header .clean-header__contact:hover,
#origami-clean-header .clean-header__contact:focus-visible,
#origami-clean-header .clean-header__contact[aria-current='page'] {
    color: var(--origami-orange) !important;
    border-color: var(--origami-orange);
    background: #fffaf6;
}

#origami-clean-header .clean-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid var(--origami-line);
    border-radius: 50%;
    background: #fff;
    color: var(--origami-navy);
}

#origami-clean-header .clean-header__toggle > span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

#origami-clean-header.is-menu-open .clean-header__toggle > span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

#origami-clean-header.is-menu-open .clean-header__toggle > span:nth-child(3) {
    opacity: 0;
}

#origami-clean-header.is-menu-open .clean-header__toggle > span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

#origami-clean-header .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#origami-clean-header .clean-header__mobile-contact {
    display: none !important;
}

@media (max-width: 760px) {
    :root {
        --origami-header-height: 82px;
    }

    #origami-clean-header .clean-header__inner {
        min-height: 82px;
        width: calc(100% - 48px);
        gap: 16px;
    }

    #origami-clean-header .clean-header__brand {
        width: 145px;
        height: 46px;
    }

    #origami-clean-header .clean-header__toggle {
        display: block;
    }

    #origami-clean-header .clean-header__nav {
        display: none !important;
        position: absolute !important;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 10;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px !important;
        border-bottom: 1px solid var(--origami-line);
        background: #fff !important;
        box-shadow: 0 14px 24px rgba(16, 41, 104, .1);
    }

    #origami-clean-header.is-menu-open .clean-header__nav {
        display: flex !important;
    }

    #origami-clean-header .clean-header__nav a {
        min-height: 0;
        padding: 16px 0 !important;
        border-bottom: 1px solid var(--origami-line) !important;
    }

    #origami-clean-header .clean-header__nav a:last-child {
        border-bottom: 0 !important;
    }

    #origami-clean-header .clean-header__nav a::after {
        right: auto;
        bottom: 9px;
        width: 42px;
    }

    #origami-clean-header .clean-header__contact {
        padding: 9px 12px;
        font-size: 11px !important;
    }

    #origami-clean-header .clean-header__contact span {
        margin-left: 0;
        font-size: 18px;
    }

    #origami-clean-header .clean-header__quick-links {
        gap: 6px;
    }

    #origami-clean-header .clean-header__quick-links a {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    #origami-clean-header .clean-header__mobile-contact {
        display: inline-flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    #origami-clean-header .clean-header__inner {
        width: calc(100% - 32px);
    }

    #origami-clean-header .clean-header__brand {
        width: 132px;
    }

    #origami-clean-header .clean-header__contact {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #origami-clean-header * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
