/* Estilos para el sistema de traducción */

.translation-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.translation-btn {
    background: #2a4546;
    color: #fff;
    border: 2px solid #2a4546;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: space-between;
}

.translation-btn:hover {
    background: #1e3536;
    border-color: #1e3536;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(42, 69, 70, 0.3);
}

.translation-icon {
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.translation-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.translation-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #2a4546;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
    overflow: hidden;
}

.translation-dropdown.active .translation-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.translation-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.translation-option:last-child {
    border-bottom: none;
}

.translation-option:hover {
    background: #f8f9fa;
    color: #2a4546;
}

.flag-icon {
    font-size: 12px;
    font-weight: bold;
    background: #2a4546;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .translation-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .translation-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Posicionamiento del botón en el header */
.header-translation {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .header-translation {
        top: 15px;
        right: 15px;
    }
}
