/* ===== CONFIGURACIÓN LADO A LADO ACTIVADA ===== */

/* El botón visible de cambio de idioma ahora vive dentro del navbar
   (#tc-lang-btn). Este selector original se oculta visualmente para
   evitar el cuadro azul duplicado en la esquina superior derecha,
   pero permanece en el DOM y funcional para el script de toggle. */
.language-switcher {
    position: fixed;
    top: 10px;
    right: 20px; /* Botón de idiomas en la esquina superior derecha */
    z-index: 9999;
    background: linear-gradient(135deg, #0c5adb 0%, #1e40af 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: 0 4px 15px rgba(12, 90, 219, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 6px;
    max-width: 120px;
}

/* ===== CONFIGURACIÓN PARA TU BOTÓN DE WHATSAPP ===== */
/* Agrega esta clase a tu botón de WhatsApp o modifica su CSS existente */
.navbar-button,
.whatsapp-button,
a[href*="wa.me"] {
    position: fixed !important;
    top: 20px !important;        /* Misma altura que el idiomas */
    right: 160px !important;     /* Separado hacia la izquierda */
    bottom: auto !important;     /* Quitar posición bottom si la tiene */
    z-index: 9998;              /* Un nivel abajo del idiomas */
}

.language-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 90, 219, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #0c5adb 100%);
}

.language-switcher::before {
    content: "🌍";
    font-size: 12px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.language-switcher select {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    outline: none;
    padding: 3px 6px;
    font-family: 'Poppins', sans-serif;
    border-radius: 15px;
    transition: all 0.2s ease;
    min-width: 70px;
}

.language-switcher select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher select option {
    background: #0c5adb;
    color: white;
    padding: 8px 12px;
    font-weight: 600;
    border: none;
    font-size: 11px;
}

.language-switcher select option:hover {
    background: #1e40af;
}

.fade-transition {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-transition.show {
    opacity: 1;
}

/* ===== RESPONSIVE LADO A LADO ===== */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 5px 10px;
        border-radius: 18px;
        max-width: 100px;
    }
    
    /* WhatsApp en tablets */
    .navbar-button,
    .whatsapp-button,
    a[href*="wa.me"] {
        top: 15px !important;
        right: 130px !important; /* Menos separación en tablets */
    }
    
    .language-switcher::before {
        font-size: 11px;
    }
    
    .language-switcher select {
        font-size: 10px;
        padding: 2px 4px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        right: 10px;
        padding: 4px 8px;
        border-radius: 15px;
        max-width: 80px;
    }
    
    /* WhatsApp en móviles - stack vertical automático */
    .navbar-button,
    .whatsapp-button,
    a[href*="wa.me"] {
        top: 60px !important;     /* Mover WhatsApp abajo del idiomas */
        right: 10px !important;   /* Alineado con idiomas */
    }
    
    .language-switcher::before {
        font-size: 10px;
    }
    
    .language-switcher select {
        font-size: 9px;
        padding: 2px 3px;
        min-width: 50px;
    }
}

/* ===== EFECTOS SUAVES ===== */
.language-switcher {
    animation: subtle-pulse 5s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(12, 90, 219, 0.3);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(12, 90, 219, 0.4);
    }
}

.language-switcher:hover {
    animation: none;
}

.language-switcher::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    border-radius: 20px;
}

.language-switcher:hover::after {
    left: 100%;
}

/* ===== AJUSTE MANUAL SI ES NECESARIO ===== */
/* Si tu botón de WhatsApp tiene una clase específica diferente, 
   reemplaza .navbar-button con el nombre correcto de tu clase */

/* Ejemplo si tu botón tiene clase .mi-boton-whatsapp: */
/*
.mi-boton-whatsapp {
    position: fixed !important;
    top: 20px !important;
    right: 160px !important;
    bottom: auto !important;
}
*/