/* ============================================================================
   SELECTOR DE IDIOMA DROPDOWN
   Archivo: language-dropdown.css
   ============================================================================ */


:root {
    /* === PALETA NEON === */
    --neon-pink: #ff2d78;
    --neon-blue: #00d4ff;
    --neon-purple: #bf00ff;
    --neon-green: #00ff88;

    /* === FONDOS === */
    --dark-bg: #050510;
    --dark-card: #0a0a1a;
    --dark-surface: #0f0f20;
    --dark-border: #1a1a35;
    --dark-border-bright: #2a2a50;

    /* === TEXTOS === */
    --text-primary: #ffffff;
    --text-muted: #8888aa;
    --text-dim: #555577;

    /* === GLOWS === */
    --glow-pink: 0 0 10px #ff2d78, 0 0 30px #ff2d7850, 0 0 60px #ff2d7820;
    --glow-blue: 0 0 10px #00d4ff, 0 0 30px #00d4ff50, 0 0 60px #00d4ff20;
    --glow-purple: 0 0 10px #bf00ff, 0 0 30px #bf00ff50;

    /* === COMPATIBILIDAD CON CÓDIGO EXISTENTE === */
    --primary-white: #ffffff;
    --primary-black: #050510;
    --primary-green: var(--neon-blue);
    --secondary-green: var(--neon-purple);
    --accent-green: var(--neon-pink);
    --light-green: var(--neon-blue);
    --cream: #1a1a35;
    --dark-text: var(--text-primary);
    --light-text: var(--text-muted);
    --white-text: #ffffff;
    --white: #ffffff;
    --light-bg: var(--dark-surface);
    --shadow: 0 4px 20px rgba(255, 45, 120, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 212, 255, 0.1);
    --border-radius: 4px;
    --border-radius-medium: 4px;
    --border-radius-large: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.language-dropdown {
    position: relative;
    display: inline-block;
    margin: 0;
}

.language-btn {
    background: transparent;
    background: var(--neon-blue);
    border: none;
    cursor: pointer;
    font-size: 28px;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
}

.language-btn:hover {
    background: var(--neon-pink);
    transform: scale(1.1);
}

.language-btn:active {
    transform: scale(0.95);
}

/* Indicador de dropdown */
.language-btn::after {
    content: '▼';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    color: var(--neon-pink);
}



.flag-icon {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
}

/* Menú desplegable */
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Opciones del menú */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #333;
}

.language-option:hover {
    background: rgba(76, 175, 80, 0.1);
}

.language-option.active {
    background: rgba(76, 175, 80, 0.2);
    font-weight: 600;
}

.language-option .flag-icon {
    font-size: 24px;
}

.language-option .lang-name {
    flex: 1;
    text-align: left;
}

/* Separadores entre opciones */
.language-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animación al hacer clic */
.language-option:active {
    transform: scale(0.95);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .language-dropdown {
        margin: 0 10px;
    }
    
    .language-btn {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .language-menu {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .language-btn {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .language-menu {
        min-width: 150px;
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .language-option .flag-icon {
        font-size: 20px;
    }
}