/**
 * Theme Name:     Betheme Child 1
 * Author:         Muffin group
 * Template:       betheme
 * Text Domain:	   betheme-child
 * Description:    The biggest WordPress Theme ever
 */


body.disable-parallax .mfn-parallax {
  background-attachment: scroll !important;
  transform: none !important;
}

// Cloudbeds
.cloudbeds-discount-button {
    display: inline-block;
    margin: 10px 0;
}

.discount-btn {
    background: linear-gradient(135deg, #540526 0%, #540526 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-align: center;
}

.discount-btn:hover {
    background: linear-gradient(135deg, #540526 0%, #540526 100%);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    transform: translateY(-2px);
}

.discount-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 21, 56, 0.3);
}

.discount-btn::before {
    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;
}

.discount-btn:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .discount-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .discount-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 220px;
        letter-spacing: 0.5px;
    }
}

/* ===== CUSTOM LANGUAGE SWITCHER ===== */

.custom-lang-switcher {
    display: inline-block;
    position: relative;
}

/* ===== DESKTOP STYLES - DROPDOWN CON BANDERA ACTUAL EN GRIS ===== */
@media(min-width: 769px) {
    .custom-lang-switcher .lang-switcher-mobile {
        display: none !important;
    }
    
    .custom-lang-switcher .lang-switcher-desktop {
        display: block !important;
        position: relative;
    }
    
    .lang-switch-link {
        display: block;
        position: relative;
        text-decoration: none;
        width: 24px;
        height: 16px;
    }
    
    /* Bandera actual - siempre visible */
    .flag-current {
        display: block !important;
        width: 24px !important;
        height: 16px !important;
        border-radius: 2px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 2;
        filter: none;
        opacity: 1;
    }
    
    /* Bandera hover - se despliega DEBAJO */
    .flag-hover {
        display: block !important;
        width: 24px !important;
        height: 16px !important;
        border-radius: 2px;
        position: absolute;
        top: 20px;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 3;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        filter: none; /* A color completo */
    }
    
    /* Efectos hover */
    .lang-switch-link:hover .flag-current {
        /* Bandera actual en GRIS en hover */
        filter: grayscale(100%) !important;
        opacity: 0.6 !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .lang-switch-link:hover .flag-hover {
        /* Bandera disponible a COLOR en hover */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        filter: none;
    }
    
    /* Área expandida para mantener el hover */
    .lang-switch-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: -5px;
        right: -5px;
        bottom: -25px;
        z-index: 1;
    }
    
    /* Indicador visual adicional (opcional) */
    .lang-switch-link:hover::before {
        content: '';
        position: absolute;
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-bottom: 3px solid rgba(0,0,0,0.2);
        z-index: 4;
    }
}

/* ===== MOBILE STYLES - SIN CAMBIOS ===== */
@media(max-width: 768px) {
    .custom-lang-switcher .lang-switcher-desktop {
        display: none !important;
    }
    
    .custom-lang-switcher .lang-switcher-mobile {
        display: flex !important;
        gap: 15px;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        width: 100%;
    }
    
    .lang-switcher-mobile .lang-item {
        display: flex;
        align-items: center;
    }
    
    .lang-switcher-mobile img {
        width: 28px !important;
        height: 18px !important;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* Idioma actual (en gris) */
    .lang-switcher-mobile .current-lang {
        opacity: 0.4;
        background: rgba(0,0,0,0.05);
        padding: 8px 12px;
        border-radius: 6px;
        pointer-events: none;
    }
    
    .lang-switcher-mobile .current-lang img {
        filter: grayscale(100%) !important;
        opacity: 0.6 !important;
    }
    
    /* Idioma disponible (a color) */
    .lang-switcher-mobile .other-lang {
        display: inline-block !important;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 6px;
        background: rgba(0,0,0,0.02);
        border: 1px solid rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .lang-switcher-mobile .other-lang:hover {
        background: rgba(0,0,0,0.1);
        transform: scale(1.05);
    }
    
    .lang-switcher-mobile .other-lang img {
        filter: none !important;
        opacity: 1 !important;
    }
}

/* ===== INTEGRACIÓN CON BETHEME MENU ===== */
.mfn-menu-li .custom-lang-switcher {
    margin: 10px 0 0 10px;
}

@media(min-width: 769px) {
    .mfn-menu .mfn-menu-li .custom-lang-switcher {
        margin: 0 10px;
        padding: 5px 0;
    }
    
    /* Asegurar que el dropdown tenga espacio */
    .mfn-menu .mfn-menu-li:has(.custom-lang-switcher) {
        position: static !important;
    }
    
    .custom-lang-switcher {
        overflow: visible !important;
    }
}

@media(max-width: 768px) {
    #Side_slide .custom-lang-switcher,
    .mfn-responsive-menu .custom-lang-switcher {
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* Efecto más dramático (opcional) */
@media(min-width: 769px) {
    .lang-switch-link:hover .flag-current {
        filter: grayscale(100%) brightness(0.8) !important;
        opacity: 0.5 !important;
        background: rgba(0,0,0,0.05);
        padding: 1px;
    }
    
    .lang-switch-link:hover .flag-hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
        border: 1px solid rgba(0,0,0,0.1);
    }
}

/* Agregar en tu child theme CSS */
/* img.scale-with-grid {
    width: 612px;
    height: 820px;
    max-width: 100%;
    height: auto;
} */