:root {
    --gold: #d4af37;
    --glass: rgba(255, 255, 255, 0.08);
    --tiktok-gradient: linear-gradient(45deg, #ff0050, #00f2ea);
}

body {
    background: radial-gradient(circle, #1a0033 0%, #050505 100%);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden; /* Evita scrolls raros por la rotación */
}

header h1 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    text-align: center;
    z-index: 10; /* Asegura que esté sobre la imagen si se solapan */
}

/* --- SECCIÓN DE LA IMAGEN CENTRAL (HERO) CON ANIMACIÓN --- */
.hero-container {
    perspective: 1000px; /* Añade profundidad 3D a la rotación */
    margin: 20px 0;
}

.hero-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    transition: 0.6s ease-out; /* Transición suave para el hover */
    box-shadow: 0 0 25px var(--gold);
    object-fit: cover;
    
    /* APLICACIÓN DE LA ANIMACIÓN */
    /* nombre | duración | forma | repetición */
    animation: rotarRuleta 20s linear infinite;
    
    /* Asegura que la rotación sea fluida en móviles */
    will-change: transform; 
}

/* EFECTO AL PASAR EL RATÓN (HOVER) */
.hero-img:hover {
    transform: scale(1.1); /* Se agranda un poco */
    box-shadow: 0 0 50px var(--gold);
    border-color: white;
    
    /* PAUSAR LA ANIMACIÓN AL HACER HOVER */
    /* Esto permite al usuario hacer clic fácilmente sin que la imagen "huya" */
    animation-play-state: paused; 
    cursor: pointer;
}

/* DEFINICIÓN DE LA ANIMACIÓN (KEYFRAMES) */
/* Rota 360 grados en el sentido del reloj */
@keyframes rotarRuleta {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* -------------------------------------------------------- */

.instructions {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 20px;
    max-width: 500px;
    margin: 30px 10px;
    position: relative;
    z-index: 10;
}

.btn-main {
    background: var(--tiktok-gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
    position: relative;
    z-index: 10;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.5);
}

.zodiac-list {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    position: relative;
    z-index: 10;
}

.zodiac-banner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.zodiac-banner:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(10px);
}

.zodiac-banner img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-right: 1px solid var(--gold);
}

.zodiac-banner span { padding: 0 20px; font-weight: 500; }

footer { margin-top: 50px; opacity: 0.5; text-align: center; }

/* Estilos del Modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1a0033, #050505);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.modal-content input {
    width: 80%;
    padding: 12px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--gold);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-confirmar {
    background: var(--gold);
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-confirmar:hover { background-color: white; }

.btn-cancelar {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-cancelar:hover { background-color: rgba(255,255,255,0.1); }