/* ========================================
   HEADER — DESKTOP
======================================== */

.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 143px;
}

.site-header__inner {
    width: min(100% - 150px);
    height: 100%;
    max-height: 143px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 56px;
}

.site-nav__dropdown-menu a[aria-current="page"] {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px !important;
}

.site-nav__dropdown-menu a[aria-current="page"]::after {
    transform: scaleX(1);
    width: 100%;
    opacity: 1;
}

.site-nav__link[aria-current] {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 8px !important; /* mismo que tu hover */
}

.site-nav a[aria-current]::after,
.site-nav a[aria-current] > span::after,
.site-nav a[aria-current] span::after {
    content: none !important;
    display: none !important;
}

/* ========================================
   LOGO
======================================== */

.site-header__brand-link {
    display: flex;
    align-items: center;
    height: 30px;
    text-decoration: none;
}

.site-header__brand {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    transition: transform 0.30s ease;
}

.site-header__brand-link:hover .site-header__brand {
    transform: scale(1.03);
}

/* ========================================
   DESKTOP NAV
======================================== */

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 30px;
}

.site-nav__links {
    display: flex;
    align-items: center;
}

.site-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 134px;
    height: 28px;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 13.6px;
    letter-spacing: -0.96px;
    text-decoration: none;
}

.site-nav__link:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
}

/* ========================================
   DESPLEGABLE SERVICIOS
======================================== */

.site-nav__dropdown {
    position: relative;
    height: 30px;
}

.site-nav__dropdown .site-nav__link {
    position: relative;
    z-index: 2;
}

.site-nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: 270px;
    padding: 12px 0;
    transform: translateX(-50%);
    background: var(--color-background);
    border: 1px solid rgba(0, 63, 92, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-nav__dropdown-menu::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    height: 18px;
}

.site-nav__dropdown-menu a {
    display: block;
    width: fit-content;
    margin: 0 20px;
    padding: 10px 0;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    position: relative;
}



.site-nav__dropdown:hover .site-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ========================================
   CTA DESKTOP
======================================== */

.site-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 35px;
    padding: 1px 7px;
    border: 0.5px solid var(--color-primary);
    border-radius: 20px;
    background: rgba(243, 243, 243, 0.7);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 13.6px;
    letter-spacing: -0.96px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.site-nav__cta:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   MOBILE TOGGLE
======================================== */

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ========================================
   MOBILE MENU
   OCULTO POR DEFECTO
======================================== */

.mobile-menu {
    display: none;
}


/* ========================================
   TABLET
======================================== */
@media (max-width: 1199px) {

    .site-header {
        height: 100px;
    }

    .site-header__inner {
        width: min(100% - 40px, 1440px);
        padding-top: 35px;
        align-items: flex-start;
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .site-header__brand-link {
        height: 26px;
    }

    .site-header__brand {
        width: 140px;
        height: auto;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: block;
        max-height: 0;
        overflow: hidden;
        background: var(--color-background);
        transition: max-height 0.35s ease;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 30px 20px 35px;
        gap: 4px;
    }

    .mobile-menu__nav a {
        display: block;
        padding: 17px 0;
        color: var(--color-primary);
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    .mobile-menu__nav a:hover {
        text-decoration: none;
    }

    .mobile-menu__nav .mobile-menu__cta {
        width: fit-content;
        margin-top: 22px;
        padding: 10px 20px;
        border: 0.5px solid var(--color-primary);
        border-radius: 20px;
        background: transparent;
    }

    .site-header.menu-open .mobile-menu {
        max-height: 500px;
    }

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}


/* ========================================
   MÓVIL
======================================== */

@media (max-width: 767px) {

    .site-header {
        height: 85px;
    }

    .site-header__inner {
        width: calc(100% - 40px);
        padding-top: 25px;
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .site-header__brand-link {
        height: 22px;
    }

    .site-header__brand {
        width: 110px;
        height: auto;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: block;
        max-height: 0;
        overflow: hidden;
        background: var(--color-background);
        transition: max-height 0.35s ease;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 30px 20px 35px;
        gap: 5px;
    }

    .mobile-menu__nav a {
        display: block;
        padding: 18px 0;
        color: var(--color-primary);
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    .mobile-menu__nav a:hover {
        text-decoration: none;
    }

    .mobile-menu__nav .mobile-menu__cta {
        width: fit-content;
        margin-top: 22px;
        padding: 10px 20px;
        border: 0.5px solid var(--color-primary);
        border-radius: 20px;
        background: transparent;
    }

    .site-header.menu-open .mobile-menu {
        max-height: 500px;
    }

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}