/* Ruleta Jackpot Premium - Gigot */
#ruleta-gigot-container {
    font-family: 'Arial', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b0d 100%);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.ruleta-wrapper {
    background: linear-gradient(160deg, #8B0000 0%, #5a0000 50%, #8B0000 100%);
    border: 8px solid #FFD700;
    border-radius: 25px;
    padding: 40px 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ruleta-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    z-index: -1;
    border-radius: 30px;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.ruleta-header {
    margin-bottom: 40px;
}

.ruleta-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

.ruleta-header p {
    font-size: 1.3em;
    opacity: 0.9;
    color: #FFD700;
    font-weight: bold;
}

.ruleta-container {
    position: relative;
    margin: 50px auto;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2d1b0d 0%, #1a1a1a 70%);
    border-radius: 50%;
    padding: 20px;
    border: 4px solid #FFD700;
    box-shadow: 0 0 50px rgba(255,215,0,0.3);
}

.ruleta {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 6px solid #8B0000;
    background: #1a1a1a;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.ruleta-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Segmentos para 5 opciones */
.segmento {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: bold;
    text-align: center;
    padding-left: 60px;
    box-sizing: border-box;
    font-size: 20px;
    border-right: 3px solid #FFD700;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.segmento-contenido {
    transform: rotate(36deg);
    width: 150px;
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
}

.segmento.premio {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B0000;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
    font-weight: 900;
}

.segmento.normal {
    background: linear-gradient(45deg, #8B0000, #5a0000);
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Flecha exterior que apunta al segmento ganador */
.ruleta-flecha-exterior {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 50px solid #FF0000;
    z-index: 30;
    filter: drop-shadow(0 0 15px rgba(255,0,0,0.8));
    animation: flechaBrillo 1.5s ease-in-out infinite;
}

@keyframes flechaBrillo {
    0%, 100% { border-top-color: #FF0000; }
    50% { border-top-color: #FF6B6B; }
}

/* Centro de la ruleta */
.ruleta-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #8B0000, #5a0000);
    border: 6px solid #FFD700;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 0 30px rgba(255,215,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

.ruleta-controls {
    margin-top: 40px;
}

.btn-girar {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B0000;
    border: none;
    padding: 20px 60px;
    font-size: 1.4em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-girar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,215,0,0.6);
    background: linear-gradient(45deg, #FFA500, #FFD700);
}

.btn-girar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ruleta-contador {
    margin-top: 20px;
    font-size: 1.2em;
    color: #FFD700;
    font-weight: bold;
    background: rgba(139, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.ruleta-resultado {
    margin-top: 30px;
    padding: 30px;
    border-radius: 15px;
    font-size: 1.5em;
    font-weight: bold;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    animation: resultadoEntrada 0.5s ease-out;
}

@keyframes resultadoEntrada {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.mensaje-ganador {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B0000;
    border-color: #FFD700 !important;
    animation: ganadorBrillo 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

@keyframes ganadorBrillo {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255,215,0,0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255,215,0,0.8);
        transform: scale(1.05);
    }
}

.mensaje-perdedor {
    background: linear-gradient(45deg, #8B0000, #5a0000);
    color: #FFD700;
    border-color: #8B0000 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Modal mejorado */
.ruleta-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.ruleta-modal-content {
    background: linear-gradient(160deg, #8B0000 0%, #5a0000 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    color: white;
    position: relative;
    border: 4px solid #FFD700;
    box-shadow: 0 0 50px rgba(255,215,0,0.5);
}

.ruleta-close {
    color: #FFD700;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s ease;
}

.ruleta-close:hover {
    color: white;
}

.ruleta-modal-content h2 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFD700;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #FFD700;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    background: #ffffff; /* Fondo blanco sólido */
    color: #333333 !important; /* Texto gris oscuro */
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-group input:focus {
    outline: none;
    background: #ffffff;
    border-color: #FFA500;
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.4), inset 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #888888 !important;
    font-weight: normal;
}

/* Estilo para cuando el input tiene contenido válido */
.form-group input:valid {
    border-color: #28a745;
    background: #f8fff9;
}

/* Estilo específico para el tipo email */
.form-group input[type="email"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: 95% center;
    background-size: 20px;
    padding-right: 50px;
}

/* Estilo específico para el tipo teléfono */
.form-group input[type="tel"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
    background-repeat: no-repeat;
    background-position: 95% center;
    background-size: 20px;
    padding-right: 50px;
}

/* Estados de ganadores completos */
.ruleta-ganadores-completos {
    text-align: center;
    padding: 80px 40px;
}

.ruleta-mensaje-especial {
    background: linear-gradient(160deg, #8B0000 0%, #5a0000 100%);
    color: #FFD700;
    padding: 60px 40px;
    border-radius: 25px;
    border: 6px solid #FFD700;
    box-shadow: 0 0 50px rgba(255,215,0,0.5);
}

.ruleta-mensaje-especial h1 {
    font-size: 3.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255,215,0,0.8);
}

.ruleta-mensaje-especial h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: white;
}

.ruleta-fireworks {
    font-size: 3em;
    margin-top: 30px;
    animation: fireworks 2s infinite;
}

@keyframes fireworks {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 20px #FFD700;
    }
    25% { 
        transform: scale(1.2) rotate(5deg);
        text-shadow: 0 0 30px #FF6B6B;
    }
    50% { 
        transform: scale(1.3) rotate(-5deg);
        text-shadow: 0 0 40px #4ECDC4;
    }
    75% { 
        transform: scale(1.2) rotate(3deg);
        text-shadow: 0 0 30px #FFD700;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ruleta-container {
        width: 350px;
        height: 350px;
    }
    
    .ruleta-header h1 {
        font-size: 2.2em;
    }
    
    .segmento {
        font-size: 16px;
        padding-left: 40px;
    }
    
    .segmento-contenido {
        width: 100px;
        transform: rotate(36deg);
    }
    
    .btn-girar {
        padding: 15px 40px;
        font-size: 1.2em;
    }
    
    .ruleta-centro {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }
}