/* ========== BANNER DE TRADUCCIÓN GASTRONÓMICO ========== */

.translation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1a1a1a 0%, #C41E3A 50%, #1a1a1a 100%);
    border-bottom: 3px solid #F43333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    font-family: 'Lora', serif;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.translation-banner.hidden {
    display: none;
}

.translation-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.translation-banner-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 500;
}

.translation-banner-icon {
    font-size: 1.5rem;
    color: #F43333;
    text-shadow: 0 0 10px rgba(244, 51, 51, 0.5);
}

.translation-banner-message {
    color: #f2f2f2;
    font-size: 1rem;
    line-height: 1.4;
}

.translation-banner-message strong {
    color: #F43333;
    font-weight: 600;
}

.translation-banner-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.translation-language-selector {
    background: rgba(18, 20, 26, 0.8);
    border: 2px solid #F43333;
    border-radius: 25px;
    padding: 8px 15px;
    color: #f2f2f2;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 120px;
}

.translation-language-selector:hover {
    background: rgba(244, 51, 51, 0.1);
    border-color: #FF6B6B;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 51, 51, 0.3);
}

.translation-language-selector:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(244, 51, 51, 0.2);
}

.translation-language-selector option {
    background: #1a1a1a;
    color: #f2f2f2;
    padding: 8px;
}

.translation-banner-button {
    background: linear-gradient(135deg, #F43333 0%, #C41E3A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 51, 51, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.translation-banner-button:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #F43333 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 51, 51, 0.4);
}

.translation-banner-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 51, 51, 0.3);
}

.translation-banner-close {
    background: rgba(196, 30, 58, 0.8);
    color: #f2f2f2;
    border: 2px solid #C41E3A;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.translation-banner-close:hover {
    background: #C41E3A;
    border-color: #F43333;
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

/* Animaciones */
@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.translation-banner.closing {
    animation: slideUp 0.2s ease-in forwards;
}

/* Ajustar contenido cuando el banner está visible */
body.translation-banner-visible {
    padding-top: 60px;
}

body.translation-banner-visible header {
    margin-top: 60px;
}

/* Indicador de traducción */
.translation-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #C41E3A 100%);
    border: 2px solid #F43333;
    border-radius: 15px;
    padding: 12px 18px;
    color: #f2f2f2;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.translation-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

.translation-indicator span:first-child {
    color: #F43333;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(244, 51, 51, 0.5);
}

.translation-indicator .close {
    background: rgba(196, 30, 58, 0.8);
    color: #f2f2f2;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    margin-left: 10px;
}

.translation-indicator .close:hover {
    background: #C41E3A;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Estilos para el widget de Google Translate */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget {
    display: none !important;
}

.goog-te-combo {
    background: #1a1a1a;
    color: #f2f2f2;
    border: 2px solid #F43333;
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
}

.goog-te-combo:hover {
    background: rgba(244, 51, 51, 0.1);
    border-color: #FF6B6B;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .translation-banner {
        padding: 8px 15px;
    }
    
    .translation-banner-content {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }
    
    .translation-banner-text {
        display: none; /* Ocultar texto descriptivo en móviles */
    }
    
    .translation-banner-controls {
        justify-content: flex-end;
        gap: 8px;
        flex: 1;
    }
    
    .translation-language-selector {
        min-width: 80px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .translation-banner-button {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .translation-banner-button span:first-child {
        display: none; /* Ocultar icono 🌐 en móviles */
    }
    
    .translation-banner-close {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .translation-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    body.translation-banner-visible {
        padding-top: 50px;
    }
    
    body.translation-banner-visible header {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .translation-banner {
        padding: 6px 10px;
    }
    
    .translation-banner-content {
        gap: 6px;
    }
    
    .translation-banner-controls {
        gap: 6px;
    }
    
    .translation-language-selector {
        min-width: 70px;
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .translation-banner-button {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .translation-banner-close {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
    
    body.translation-banner-visible {
        padding-top: 40px;
    }
    
    body.translation-banner-visible header {
        margin-top: 40px;
    }
}