/* =========================================================
   HEADER
   ========================================================= */

.eco-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

/* Solo el header usa ancho completo.
   No tocar .eco-shell global porque rompes el resto del sitio. */
.eco-header .eco-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.eco-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75px;
    gap: 28px;
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: auto;
}

.eco-header__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.eco-header__brand img {
    display: block;
    width: 200px;
    height: auto;
}

.eco-header__nav {
    flex: 1;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.eco-header__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eco-header__menu li {
    margin: 0;
    padding: 0;
}

.eco-header__menu li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: var(--ecoquim-gray);
    transition: color 0.2s ease;
}

.eco-header__menu li a:hover {
    color: var(--ecoquim-navy);
}

.eco-header__menu li.is-current a {
    font-weight: 600;
    color: var(--ecoquim-navy);
}

.eco-header__menu li.is-current a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--ecoquim-primary);
    border-radius: 999px;
}

.eco-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 109px;
    height: 28px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ecoquim-primary);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--ecoquim-white);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.eco-header__cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.eco-about-page,
.eco-solutions-page,
.eco-contact-page {
    padding-top: 75px;
}

/* =========================================================
   ELEMENTOS SOLO RESPONSIVE
   ========================================================= */

.eco-header__toggle,
.eco-header__close,
.eco-header__mobile-top,
.eco-header__mobile-brand,
.eco-header__backdrop {
    display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
    .eco-header {
        pointer-events: none;
    }

    .eco-header__inner {
        position: relative;
        min-height: 78px;
        padding: 0 20px;
        gap: 16px;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 10px 30px rgba(2, 52, 102, 0.08);
        pointer-events: auto;
    }

    .eco-header__brand {
        position: relative;
        z-index: 1004;
    }

    .eco-header__brand img {
        width: 150px;
    }

    .eco-header__toggle {
        position: relative;
        z-index: 1005;
        width: 46px;
        height: 46px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(2, 52, 102, 0.06);
        cursor: pointer;
        flex-shrink: 0;
    }

    .eco-header__toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--ecoquim-navy);
        transition:
            transform 0.28s ease,
            opacity 0.28s ease;
    }

    .eco-header.is-open .eco-header__toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .eco-header.is-open .eco-header__toggle span:nth-child(2) {
        opacity: 0;
    }

    .eco-header.is-open .eco-header__toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .eco-header__backdrop {
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        background: rgba(1, 24, 44, 0.34);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.32s ease,
            visibility 0.32s ease;
    }

    .eco-header__nav {
        position: fixed;
        top: 78px;
        right: 0;
        z-index: 1002;
        width: min(88vw, 380px);
        height: calc(100dvh - 78px);
        margin-left: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 18px 18px 20px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-left: 1px solid rgba(2, 52, 102, 0.08);
        box-shadow: -20px 0 50px rgba(2, 52, 102, 0.14);
        transform: translateX(104%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.28s ease,
            visibility 0.28s ease;
    }

    /* no mostrar logo duplicado ni botón close interno */
    .eco-header__mobile-top,
    .eco-header__mobile-brand,
    .eco-header__close {
        display: none !important;
    }

    .eco-header__menu {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        padding: 0 0 12px;
    }

    .eco-header__menu li {
        width: 100%;
    }

    .eco-header__menu li a {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        color: var(--ecoquim-navy-deep);
        background: transparent;
        transition:
            background 0.25s ease,
            color 0.25s ease,
            transform 0.25s ease;
    }

    .eco-header__menu li a:hover {
        background: rgba(2, 52, 102, 0.06);
        color: var(--ecoquim-navy);
        transform: translateX(2px);
    }

    .eco-header__menu li.is-current a {
        color: var(--ecoquim-navy);
        background: rgba(141, 198, 63, 0.12);
    }

    .eco-header__menu li.is-current a::after {
        display: none;
    }

    .eco-header__cta {
        width: auto;
        min-width: 0;
        max-width: 150px;
        align-self: flex-start;
        height: 40px;
        padding: 0 16px;
        border-radius: 999px;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
        text-align: center;
    }

    .eco-header.is-open .eco-header__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .eco-header.is-open .eco-header__nav {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .eco-about-page,
    .eco-solutions-page,
    .eco-contact-page {
        padding-top: 78px;
    }
}

@media (max-width: 640px) {
    .eco-header__inner {
        min-height: 72px;
        padding: 0 14px;
    }

    .eco-header__brand img {
        width: 132px;
    }

    .eco-header__toggle {
        width: 42px;
        height: 42px;
    }

    .eco-header__backdrop {
        top: 72px;
    }

    .eco-header__nav {
        top: 72px;
        width: min(92vw, 360px);
        height: calc(100dvh - 72px);
        padding: 16px 14px 18px;
    }

    .eco-header__menu li a {
        min-height: 42px;
        padding: 0 10px;
        font-size: 14px;
    }

    .eco-header__cta {
        max-width: 138px;
        height: 38px;
        padding: 0 14px;
        font-size: 11px;
    }

    .eco-about-page,
    .eco-solutions-page,
    .eco-contact-page {
        padding-top: 72px;
    }
}