.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 40px;
}

/* BOTÓN */
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    cursor: pointer !important;
    color: #ffffff !important;
}

.dropdown-toggle span:first-child {
    display: inline-block;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.nav-dropdown.active .dropdown-toggle span:first-child {
    color: #fb6f6f;
    font-weight: 600;
}

/* FLECHA */
.dropdown-arrow {
    width: 9px;
    height: 9px;
    border-right: 1.6px solid #ffffff;
    border-bottom: 1.6px solid #ffffff;
    transform: translateY(-1px) rotate(45deg);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.nav-dropdown.active .dropdown-arrow {
    border-right-color: #fb6f6f;
    border-bottom-color: #fb6f6f;
}

.nav-dropdown.open .dropdown-arrow {
    transform: translateY(2px) rotate(-135deg);
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);

    width: 152px;
    padding: 0 !important;

    background: rgba(31, 29, 29, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);

    display: flex;
    flex-direction: column;
    gap: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
    font-family: "Red Hat Display", sans-serif !important;
}

/* SHOW */
.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ITEMS */
.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;
    padding: 0 !important;
    margin: 0 !important;

    color: #ffffff !important;
    text-decoration: none;

    font-family: "Red Hat Display", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    outline: none;
    appearance: none;

    transition: color 0.2s ease, background 0.2s ease;
}

/* FORZAR COLOR */
.dropdown-link,
.dropdown-link:visited,
.dropdown-link:active,
.dropdown-link span,
.dropdown-menu * {
    color: #ffffff;
}

/* HOVER */
.dropdown-link:hover {
    color: #fb6f6f !important;
    background: rgba(255, 255, 255, 0.03);
}

.dropdown-link:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* MOBILE */
@media (max-width: 900px) {
    .nav-dropdown {
        margin-left: 28px;
    }

    .dropdown-menu {
        left: 0;
        transform: translateX(0) translateY(8px);
        width: 152px;
    }

    .nav-dropdown.open .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 640px) {
    .nav-dropdown {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 14px;
        width: 100%;
        padding: 0 !important;
        box-shadow: none;

        transform: none;
        max-height: 0;
        overflow: hidden;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
    }

    .nav-dropdown:not(.open) .dropdown-menu {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 260px;
    }
}
