/* ============================================ */
/* CSS MÓVIL CUPÓN - Solo para pantallas móviles */
/* ============================================ */

/* Solo aplicar en móviles (max-width: 768px) */
@media only screen and (max-width: 768px) {
    
    /* ============================================ */
    /* OCULTAR CUPÓN INICIALMENTE EN MÓVIL */
    /* ============================================ */
    
    /* Ocultar el cupón completo en móvil cuando no hay apuestas */
    .cupon-oculto-movil {
        display: none !important;
    }
    
    /* Mostrar el cupón cuando está activo */
    .cupon-activo-movil {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: rgba(0, 0, 0, 0.95) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        padding: 20px !important;
        animation: cuponSlideUp 0.3s ease-out !important;
    }
    
    /* ============================================ */
    /* INDICADOR FLOTANTE TIPO WHATSAPP */
    /* ============================================ */
    
    .cupon-indicador-flotante {
        position: fixed;
        bottom: 120px; /* Encima del ícono de WhatsApp */
        right: 20px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #FFD700, #FFA500);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        z-index: 1000;
        transition: all 0.3s ease;
        animation: cuponPulse 2s infinite;
        border: 3px solid #fff;
    }
    
    .cupon-indicador-flotante:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
    
    .cupon-indicador-flotante:active {
        transform: scale(0.95);
    }
    
    /* Ícono del cupón */
    .cupon-indicador-icono {
        font-size: 24px;
        color: #000;
        font-weight: bold;
        position: relative;
    }
    
    /* Contador de apuestas */
    .cupon-contador-apuestas {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: #FF4444;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        font-family: "BAHNSCHRIFT", Arial, sans-serif;
        border: 2px solid #fff;
        min-width: 24px;
        animation: cuponCounterBounce 0.5s ease;
    }
    
    /* ============================================ */
    /* BOTÓN CERRAR CUPÓN */
    /* ============================================ */
    
    .cupon-cerrar-movil {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.2);
        border: 2px solid #FFD700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 24px;
        color: #FFD700;
        font-weight: bold;
        transition: all 0.3s ease;
        z-index: 10000;
    }
    
    .cupon-cerrar-movil:hover {
        background-color: #FFD700;
        color: #000;
        transform: rotate(90deg);
    }
    
    /* ============================================ */
    /* ANIMACIONES */
    /* ============================================ */
    
    /* Animación de pulso para el indicador */
    @keyframes cuponPulse {
        0% {
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }
        50% {
            box-shadow: 0 4px 25px rgba(255, 215, 0, 0.7);
        }
        100% {
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        }
    }
    
    /* Animación para el contador */
    @keyframes cuponCounterBounce {
        0% {
            transform: scale(0);
        }
        50% {
            transform: scale(1.2);
        }
        100% {
            transform: scale(1);
        }
    }
    
    /* Animación para mostrar el cupón */
    @keyframes cuponSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ============================================ */
    /* ESTILOS MEJORADOS PARA EL CUPÓN MÓVIL */
    /* ============================================ */
    
    /* Mejorar la visualización del cupón en móvil cuando está activo */
    .cupon-activo-movil .container-fluid {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 30px 0 0 0 !important;
    }
    
    .cupon-activo-movil .row {
        margin: 0 !important;
    }
    
    .cupon-activo-movil .col-md-6 {
        width: 50% !important;
        padding: 5px !important;
    }
    
    /* Título del cupón más visible en móvil */
    .cupon-activo-movil .deportes-cupon-titulo {
        font-size: 12pt !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        color: #FFD700 !important;
    }
    
    /* ============================================ */
    /* OCULTAR ELEMENTOS INNECESARIOS EN MÓVIL */
    /* ============================================ */
    
    /* Cuando el cupón está abierto, ocultar otros elementos */
    body.cupon-abierto-movil {
        overflow: hidden;
    }
    
    body.cupon-abierto-movil .deportes-fondo,
    body.cupon-abierto-movil .deportes-marco {
        filter: blur(3px);
        pointer-events: none;
    }
    
    /* ============================================ */
    /* MENSAJE SIN APUESTAS */
    /* ============================================ */
    
    .cupon-sin-apuestas-movil {
        position: fixed;
        bottom: 120px;
        right: 20px;
        background-color: rgba(0, 0, 0, 0.8);
        color: #FFD700;
        padding: 10px 15px;
        border-radius: 20px;
        font-size: 12px;
        font-family: "BAHNSCHRIFT", Arial, sans-serif;
        border: 1px solid #FFD700;
        display: none;
        z-index: 999;
        max-width: 200px;
        text-align: center;
        animation: cuponTooltipFade 0.3s ease;
    }
    
    @keyframes cuponTooltipFade {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ============================================ */
    /* RESPONSIVE ADICIONAL */
    /* ============================================ */
    
    /* Para pantallas muy pequeñas */
    @media only screen and (max-width: 380px) {
        .cupon-indicador-flotante {
            width: 55px;
            height: 55px;
            bottom: 110px;
            right: 15px;
        }
        
        .cupon-indicador-icono {
            font-size: 20px;
        }
        
        .cupon-contador-apuestas {
            width: 20px;
            height: 20px;
            font-size: 10px;
            top: -6px;
            right: -6px;
        }
        
        .cupon-activo-movil {
            padding: 15px !important;
        }
    }
    
    /* ============================================ */
    /* EFECTOS ADICIONALES */
    /* ============================================ */
    
    /* Efecto de ondas cuando se toca el indicador */
    .cupon-indicador-flotante::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 215, 0, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .cupon-indicador-flotante.wave-effect::before {
        width: 120px;
        height: 120px;
    }
    
    /* Mejorar la visibilidad en fondos oscuros */
    .cupon-indicador-flotante {
        backdrop-filter: blur(10px);
    }
}