/* ==============================================
   DROPDOWN DE IDIOMA
   ============================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    min-width: 140px;
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dropdown button:hover {
    background: #2e2e2e;
}

.dropdown button img {
    width: 26px;
    height: auto;
    border-radius: 3px;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: auto;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    border-color: #F6C60D transparent transparent transparent;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Contenido desplegable */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    overflow-y: auto;
    max-height: 300px;
    z-index: 100;
    padding: 4px 0;
    animation: dropDown 0.2s ease;
}

@keyframes dropDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #1a1a1a;
    list-style: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-content li:hover {
    background: #f4f4f4;
}

.dropdown-content li img {
    width: 26px;
    height: auto;
    border-radius: 3px;
}

.dropdown:focus-within .dropdown-content {
    display: block;
}


.dropdown-label {
    font-size: 1lh;
    font-weight: 500;
}

.dropdown button {
    background-color: #253849;
    min-width: 130px;
    width: max-content;
    height: 40px;
    border-radius: 5px;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    justify-content: space-evenly;
}

.dropdown button img {
    margin: 0 5px 0 0;
}

.dropdown button img,
.dropdown-content li img {
    width: 28px;
}

.dropdown button,
.dropdown-content li {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    font-family: "Noto Sans JP", sans-serif;
    font-family: "Noto Sans Arabic", sans-serif;
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 500;
}

.arrow-down {
    width: 0;
    height: 0;
    display: inline-block;
    vertical-align: middle;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #fff transparent transparent transparent;
    margin: 0 0 0 5px;
}

.dropdown button:hover {
    cursor: pointer;
    background-color: #3c5b77;
}


/* Style for the dropdown content */

.dropdown-content {
    display: none;
    position: absolute;
    margin: 1px 0 0 0;
    padding: 0;
    background-color: #f5f5f5;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    overflow-y: scroll;
    max-height: 315px;
}


/* Style for the dropdown content items */

.dropdown-content li {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    justify-content: end;
}

.dropdown-content li img {
    margin: 0 20px 0px 20px;
}


/* Style for the dropdown content items on hover */

.dropdown-content li:hover {
    background-color: #f1f1f1;
    cursor: pointer;
    color: blue;
    border-radius: 5px;
}


/* Show the dropdown content when the dropdown button is clicked */

.dropdown:focus-within .dropdown-content {
    display: block;
}


/* Animate the dropdown content */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content {
    animation: slideIn 0.3s ease-out;
}


/* Scrollbar styles */

::-webkit-scrollbar {
    width: 8px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #c2c9d2;
}

@media(max-width: 700px) {
    .dropdown {
        margin: 0;
        padding-left: 20px;
    }
}