/* ruleta.css */
#ruletaModal .modal-content {
    background: transparent;
    border: none;
}
#ruletaModal .modal-header {
    border-bottom: none;
}
.ruleta-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
}
.ruleta {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #F4C70F; /* Amarillo MegaOutlet */
    box-shadow: 0 0 30px #ff0000;
    overflow: hidden;
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); /* Spin animation */
    /* Sectores dibujados con conic-gradient */
    background: conic-gradient(
        #ff0000 0deg 60deg,    /* Rojo Intenso */
        #0B2447 60deg 120deg,  /* Azul Marino */
        #F4C70F 120deg 180deg, /* Amarillo */
        #ff0000 180deg 240deg, /* Rojo Intenso */
        #0B2447 240deg 300deg, /* Azul Marino */
        #F4C70F 300deg 360deg  /* Amarillo */
    );
    animation: neonGlow 1.5s infinite alternate;
}

.ruleta-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
}

.ruleta-texto span {
    position: absolute;
    left: 35px; /* Separarlo del borde */
    top: -25px; /* Centrar verticalmente respecto a la línea */
    width: 160px;
    transform-origin: left center;
    font-size: 22px; /* Texto mucho más grande */
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 5px black, 0 0 10px rgba(255,255,255,0.5);
    text-align: right;
    padding-right: 15px;
}

.puntero {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #ff0000; /* Rojo intenso */
    z-index: 10;
    filter: drop-shadow(0px 0px 10px #ff0000); /* Sombra brillante */
}

.btn-girar-ruleta {
    background-color: #F4C70F;
    color: #0B2447;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    margin-top: 25px;
    box-shadow: 0 0 20px #F4C70F;
    transition: transform 0.2s;
    animation: pulseGlow 1s infinite alternate;
}

.btn-girar-ruleta:hover {
    transform: scale(1.05);
}

/* Modal text styles */
.ruleta-title {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Widget flotante del cupón ganado */
.cupon-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #0B2447;
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1050;
    display: none;
    border-left: 5px solid #F4C70F;
    animation: slideIn 0.5s ease-out;
}

.cupon-widget h5 {
    color: #F4C70F;
    margin-bottom: 5px;
    font-weight: bold;
}

.cupon-codigo {
    background: white;
    color: #EC1D1D;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
}

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

@keyframes neonGlow {
    from {
        box-shadow: 0 0 15px #ff0000, inset 0 0 10px #000;
        border-color: #F4C70F;
    }
    to {
        box-shadow: 0 0 40px #ff0000, 0 0 60px #ff0000, inset 0 0 20px #000;
        border-color: #ffe600;
    }
}

@keyframes pulseGlow {
    from {
        transform: scale(1);
        box-shadow: 0 0 15px #F4C70F;
    }
    to {
        transform: scale(1.1);
        box-shadow: 0 0 30px #F4C70F, 0 0 50px #F4C70F;
    }
}

/* =========================================================
   ADAPTACIÓN RESPONSIVA DE RULETA Y CUPÓN PARA MÓVILES
   ========================================================= */
@media (max-width: 575.98px) {
    #ruletaModal .modal-dialog {
        margin: 0.75rem auto;
        max-width: min(440px, 94vw);
    }

    .ruleta-title {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .ruleta-container {
        width: 290px;
        height: 290px;
    }

    .ruleta {
        border-width: 6px;
    }

    .ruleta-texto span {
        left: 22px;
        top: -15px;
        width: 112px;
        font-size: 13.5px;
        padding-right: 10px;
    }

    .puntero {
        top: -12px;
        border-left-width: 14px;
        border-right-width: 14px;
        border-top-width: 26px;
    }

    .btn-girar-ruleta {
        font-size: 1rem;
        padding: 12px 28px;
        margin-top: 16px;
    }

    .cupon-widget {
        left: 12px;
        right: auto;
        bottom: 72px;
        max-width: calc(100vw - 92px);
        padding: 10px 14px;
    }

    .cupon-codigo {
        font-size: 1rem;
        padding: 4px 8px;
    }
}

@media (max-width: 359.98px) {
    .ruleta-container {
        width: 250px;
        height: 250px;
    }

    .ruleta-texto span {
        left: 18px;
        top: -13px;
        width: 96px;
        font-size: 11.5px;
        padding-right: 8px;
    }
}
