
#page-loader {
    position: fixed; /* Mantiene el loader visible mientras el resto carga */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fondo negro o el color de tu tema */
    display: flex; /* Habilita el centrado */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    z-index: 9999; /* Asegura que esté por encima de todo */
}

/* 2. El Spinner de CSS Puro */
.css-spinner {
    width: 50px; /* Tamaño del círculo */
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3); /* Base transparente/clara */
    border-top-color: #e62154; /* Color de carga (ajusta a tu color principal) */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Aplica la animación */
}

/* 3. Definición de la Animación */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Contenedor del contenido del modal */
.custom-modal-content {
    background-color: #333; /* Fondo oscuro sutil */
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px; /* Tamaño fijo para móviles y escritorios */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-weight: 700;
    margin: 0;
    font-size: 24px;
    color: #e62154; /* Color de acento */
}

/* -------------------------------------------------------------------
   ESTILOS PARA CADA MONEDA
----------------------------------------------------------------------*/
.wallets-container {
    max-height: 70vh; /* Altura máxima para permitir scroll */
    overflow-y: auto;
    padding: 0 5px;
}

.currency-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative; /* Para posicionar el ícono de cambio */
}

.currency-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.currency-item.active {
    background-color: #e62154; /* Color de acento para la moneda activa */
    border-color: #fff;
    font-weight: bold;
}

.currency-info {
    flex-grow: 1;
}

.currency-info .currency-name {
    display: block;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 5px;
}

.balance-total .amount {
    font-size: 18px;
    font-weight: 700;
    color: #00d200; /* Color distintivo para el total */
}

.currency-item.active .balance-total .amount {
    color: #fff; /* Blanco para el total de la moneda activa */
}


.balance-details {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
}

.real-balance, .bonus-balance {
    display: block;
}

/* Ícono de Cambio de Moneda (flechas) */
.fa-exchange-alt {
    color: #00d200;
    margin-left: 15px;
    font-size: 1.2em;
    transition: color 0.2s;
}

.currency-item.active .fa-exchange-alt {
    color: #fff; /* Blanco o el color principal si está activa */
}

/* Botón Cerrar */
.modal-footer {
    text-align: center;
    padding-top: 20px;
}

.currency-options{
    margin-top: 10px;
}


.modal-title {
    color: #ffffff;
    font-size: 16pxem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-content: center;
    display: grid;
}

.modal-subtitle {
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 25px;
    justify-content: center;
    display: grid;
}

.select-menu-lang {
    color: var(--header-sc, #FFFFFF); 
    border: 1px solid var(--b-hover, #242D38);
    border-radius: 5px;
    padding: 5px 25px 5px 10px; 
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M7.41%208.59L12%2013.17l4.59-4.58L18%2010l-6%206-6-6z%22%2F%3E%3C%2Fsvg%3E");
    background-position: right 8px center;
    background-size: 10px; 
    background-repeat: no-repeat;
}


.select-menu-lang option {
    background-color: #EEE !important; 
    color: #333 !important; 
    font-weight: normal; 
}

.select-menu-lang option:checked,
.select-menu-lang option:hover {
    background-color: #DDD !important; 
    color: #000 !important;
}

/* ===== ESTILOS ESPECÍFICOS PARA MOZILLA FIREFOX ===== */
/* Solución de compatibilidad para Firefox con DOCTYPE HTML5 */
@-moz-document url-prefix() {
    /* Corregir box-sizing en Firefox */
    *, *::before, *::after {
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    /* Asegurar que el body y html ocupen toda la altura */
    html {
        height: 100%;
        width: 100%;
    }

    body {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Corregir el posicionamiento de modales en Firefox */
    .popup-holder-bc {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10000 !important;
    }

    .popup-holder-bc.login-modal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Corregir animaciones en Firefox */
    .popup-holder-bc.login-modal .popup-inner-bc {
        will-change: transform, opacity;
        -moz-transform: scale(0.9);
        transform: scale(0.9);
    }

    .popup-holder-bc.login-modal.show .popup-inner-bc {
        -moz-transform: scale(1);
        transform: scale(1);
    }

    /* Corregir flexbox en Firefox */
    .popup-middleware-bc {
        display: -moz-box !important;
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Asegurar que los formularios se vean correctamente */
    .form-control-bc {
        display: block !important;
    }

    /* Corregir inputs en Firefox */
    input, select, textarea {
        -moz-appearance: none;
        appearance: none;
    }

    /* Corregir scrollbar en Firefox */
    * {
        scrollbar-width: thin;
        scrollbar-color: #888 #2a2a2a;
    }
}

/* ===== ESTILOS PARA MODAL LOGIN PERSONALIZADO ===== */

/* Asegurar que el popup-holder se muestre correctamente */
.popup-holder-bc.login-modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.popup-holder-bc.login-modal .popup-middleware-bc {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.popup-holder-bc.login-modal .popup-inner-bc {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1000000 !important;
    background: #1a1d29 !important;
    border-radius: 12px;
}

.popup-holder-bc.login-modal #contenido-modal {
    display: block !important;
    visibility: visible !important;
}

.popup-holder-bc.login-modal .entrance-popup-bc {
    display: block !important;
    visibility: visible !important;
}

/* ESTILOS PARA DESKTOP (pantallas >= 769px) */
@media (min-width: 769px) {
    .popup-holder-bc.login-modal .popup-middleware-bc {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        padding: 20px;
    }

    .popup-holder-bc.login-modal .popup-inner-bc {
        width: 450px;
        max-width: 90vw;
        height: 50vh;
        max-height: 50vh;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

        /* Ocultar scrollbar */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }

    .popup-holder-bc.login-modal .popup-inner-bc::-webkit-scrollbar {
        display: none; /* WebKit */
    }

    .popup-holder-bc.login-modal.show .popup-inner-bc {
        transform: scale(1);
        opacity: 1;
    }
}

/* ESTILOS PARA MOBILE (pantallas <= 768px) */
@media (max-width: 768px) {
    .popup-holder-bc.login-modal {
        align-items: flex-end;
    }

    .popup-holder-bc.login-modal .popup-middleware-bc {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 100vh;
        padding: 0;
    }

    .popup-holder-bc.login-modal .popup-inner-bc {
        width: 100%;
        height: auto;
        max-height: 85vh;
        min-height: 50vh;
        margin: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 1;
        overflow-y: auto;
        position: relative;

        /* Ocultar scrollbar en mobile también */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }

    .popup-holder-bc.login-modal .popup-inner-bc::-webkit-scrollbar {
        display: none; /* WebKit */
    }

    .popup-holder-bc.login-modal.show .popup-inner-bc {
        transform: translateY(0);
    }

    /* Indicador visual de arrastre en mobile */
    .popup-holder-bc.login-modal .popup-inner-bc::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        z-index: 1001;
    }
}

/* ESTILOS GENERALES PARA AMBOS DISPOSITIVOS */
.popup-holder-bc.login-modal {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.popup-holder-bc.login-modal .entrance-popup-bc {
    height: auto;
    min-width: auto;
}

/* Ajustes para el contenido del formulario */
.popup-holder-bc.login-modal .entrance-popup-bc.sign-in {
    height: 80%;
    min-width: auto;
}

.popup-holder-bc.login-modal .e-p-content-holder-bc {
    padding: 20px;
}

.popup-holder-bc.login-modal .slider-bc {
    margin-bottom: 15px;
}

/* Mejoras para mobile */
@media (max-width: 768px) {
    .popup-holder-bc.login-modal .e-p-content-holder-bc {

        padding: 20px 20px 30px;
    }

    .popup-holder-bc.login-modal .e-p-header-bc {
        padding-top: 20px;
        text-align: center;
    }

    .popup-holder-bc.login-modal .slider-bc {
        margin-bottom: 10px;
    }

    .popup-holder-bc.login-modal .sdr-image-bc {
        max-height: 60px;
    }
}

/* Botón cerrar personalizado */
.popup-holder-bc.login-modal .e-p-close-icon-bc {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1002;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-holder-bc.login-modal .e-p-close-icon-bc:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

/* Estilos para login social */
.social-login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    font-size: 12px;
    color: #666;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.social-login-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-login-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.google-btn {
    border-color: #dadce0;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.popup-holder-bc.login-modal .entrance-popup-bc,
.popup-holder-bc.login-modal .e-p-content-holder-bc,
.popup-holder-bc.login-modal .entrance-form-bc {
    scrollbar-width: none;
    -ms-overflow-style: none; 
}

.popup-holder-bc.login-modal .entrance-popup-bc::-webkit-scrollbar,
.popup-holder-bc.login-modal .e-p-content-holder-bc::-webkit-scrollbar,
.popup-holder-bc.login-modal .entrance-form-bc::-webkit-scrollbar {
    display: none; 
}

.view-see-more {
    display: none !important;
}

.games-horiz-scroll {
    mask-image: linear-gradient( to right, transparent 0%, black 5%, black 95%, transparent 100% );
}

/* botones index promo */

.div-botones-element {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    overflow-x: auto !important;   
    overflow-y: hidden !important; 
    width: 100% !important;
    max-width: 100vw;            
    gap: 10px;                 
    padding: 10px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
}

.div-botones-element .product-banner-info-bc {
    flex: 0 0 auto !important; 
    width: 160px;            
    display: block;
    text-decoration: none;
}

.div-botones-element .product-banner-img-bc {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease; 
}

.div-botones-element .product-banner-info-bc:hover .product-banner-img-bc {
    /* transform: scale(1.05); */
    border: 1px solid #5cb85c;
}

.div-botones-element::-webkit-scrollbar {
    display: none;
}

.div-botones-element {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.product-banner-img-bc {
    border: 1px solid #EEEEEE63;
}

.product-banner-info-bc.product-banner-bc {
    width: 100px;
}

.product-banner-img-bc {
    will-change: auto;
}


/* cinta */

.cinta-cine-container {
    position: relative !important;
    width: 100%;
    overflow: hidden;
}

.div-botones-element.cinta-infinita {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important; 
    scroll-behavior: smooth;
    gap: 12px;
    padding: 10px 0;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.div-botones-element.cinta-infinita::-webkit-scrollbar {
    display: none;
}

.cinta-infinita .product-banner-info-bc {
    flex: 0 0 auto !important;
    width: 140px;
    transition: transform 0.3s ease;
}

.cinta-infinita .product-banner-info-bc:hover {
  /*  transform: scale(1.05); */
}

.cinta-infinita .product-banner-img-bc {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.btn-scroll {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    width: 40px !important;
    height: 45px !important;
    z-index: 100 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-scroll:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

.btn-scroll.left { left: 0 !important; }
.btn-scroll.right { right: 0 !important; }

.cinta-wrapper {
    gap: 12px;
}


@media (max-width: 768px) { /* Version Movil */
    .btn-scroll {
        display: none !important;
    }

    .div-botones-element.cinta-infinita {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px; 
    }

    .cinta-infinita .product-banner-info-bc {
        width: 110px; 
    }

    .cinta-wrapper {
        gap: 8px;
    }
}

#tu-id-contenedor {
    overflow: hidden;
    width: 100%;
    display: flex;
}

.cinta-wrapper {
    display: flex;
    white-space: nowrap;
    animation: moverCinta 50s linear infinite; 
    will-change: transform; 
}

@keyframes moverCinta {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}