/* Estilos para la Máquina de la Suerte - balotas.com */

.luck-machine-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.luck-title {
    color: #227207;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zodiac-selector-container {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

.zodiac-select {
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #298a08;
    font-weight: bold;
    color: #333;
}

/* Bolas de Lotería */
.balls-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    min-height: 80px;
}

.lucky-ball {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15), inset -4px -4px 8px rgba(0,0,0,0.1);
    border: 3px solid #eee;
    color: #333;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

.lucky-ball.blue { background: radial-gradient(circle at 30% 30%, #e3f2fd, #90caf9); color: #0d47a1; border-color: #42a5f5; }
.lucky-ball.red { background: radial-gradient(circle at 30% 30%, #ffebee, #ef9a9a); color: #b71c1c; border-color: #ef5350; }
.lucky-ball.green { background: radial-gradient(circle at 30% 30%, #e8f5e9, #a5d6a7); color: #1b5e20; border-color: #66bb6a; }
.lucky-ball.gold { background: radial-gradient(circle at 30% 30%, #fffde7, #fff59d); color: #f57f17; border-color: #ffee58; }

/* Billetes de 4 cifras */
.tickets-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.lucky-ticket {
    background: #fff9c4;
    border: 2px dashed #fbc02d;
    padding: 10px 25px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    letter-spacing: 8px;
    position: relative;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.lucky-ticket::before, .lucky-ticket::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.lucky-ticket::before { left: -12px; border-right: 1px solid #fbc02d; }
.lucky-ticket::after { right: -12px; border-left: 1px solid #fbc02d; }

/* Botón Generador */
.btn-generate {
    background: #298a08;
    color: white;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 0 #1e6105;
    transition: all 0.1s ease;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-generate:hover {
    background: #227207;
    transform: translateY(2px);
    box-shadow: 0 4px 0 #1e6105;
}

.btn-generate:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #1e6105;
}

.btn-generate:disabled {
    background: #ccc;
    box-shadow: 0 4px 0 #999;
    cursor: not-allowed;
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

.spin-animation {
    animation: spin 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividad */
@media (max-width: 480px) {
    .lucky-ball { width: 50px; height: 50px; font-size: 20px; }
    .lucky-ticket { font-size: 24px; padding: 8px 15px; }
    .btn-generate { padding: 12px 25px; font-size: 16px; }
}
