/* Variables base para integrarse con tus clases y Tailwind */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(13, 17, 23, 0.85);
    --border-color: #1f2937;
    --accent-color: #3b82f6;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --metal: #bdc3c7; /* Extra para la aguja de la ruleta */
}

/* Unificación global (Reset) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar estilo mparamos */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0f19; }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* Configuración del fondo de vídeo */
.video-container {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
    background-color: var(--bg-color);
}

#bg-video { width: 100vw; height: 100vh; object-fit: cover; opacity: 0.3; }

/* Línea degradada estilo mparamos.com */
.mparamos-line {
    height: 2px; width: 100%;
    background: linear-gradient(to right, #10b981, #3b82f6);
    border-radius: 2px;
}

/* Componentes de la guía (Mantenidos por si reutilizas) */
.step-number {
    background-color: var(--accent-color); color: white;
    width: 2.5rem; height: 2.5rem; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
}

.prompt-box {
    background-color: #0d1117; border-left: 4px solid var(--accent-color);
    padding: 1.5rem; border-radius: 0 0.75rem 0.75rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem; color: #c9d1d9;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3); white-space: pre-wrap;
}

a.mparamos-link {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    color: #10b981; text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent; 
}

a.mparamos-link:hover {
    transform: scale(1.08); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
    color: transparent; font-weight:bold;
    background-image: 
        linear-gradient(90deg, #10b981, #3b82f6, #10b981),
        linear-gradient(#0b0f19, #0b0f19),                 
        linear-gradient(90deg, #10b981, #3b82f6, #10b981); 
    background-size: 200% auto, 100% 100%, 200% auto;
    -webkit-background-clip: text, padding-box, border-box;
    background-clip: text, padding-box, border-box;
    background-origin: border-box, padding-box, border-box;
    animation: rotarColores 3s linear infinite;
}

/* Clases de utilidad personalizadas ligadas al :root */
.bg-mparamos-bg { background-color: var(--bg-color); }
.bg-mparamos-card { background-color: var(--card-bg); }
.border-mparamos-border { border-color: var(--border-color); }
.text-mparamos-accent { color: var(--accent-color); }
.text-mparamos-text { color: var(--text-primary); }
.text-mparamos-text-muted { color: var(--text-muted); }

/* Animaciones del template */
@keyframes brilloAzul { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }
@keyframes rotarColores { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

header, footer {
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
header { border-bottom: 3px solid transparent; border-image: linear-gradient(to right, #10b981, #3b82f6) 1; }
footer { border-top: 3px solid transparent; border-image: linear-gradient(to right, #10b981, #3b82f6) 1; }

/* --- AÑADIDOS ESPECÍFICOS DE LA RULETA --- */

#canvas-container { margin: 0 auto; }

/* El Puntero "Metálico" */
#pointer {
    position: absolute;
    top: -15px; 
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 20px; height: 50px;
    background: linear-gradient(135deg, var(--metal) 0%, #7f8c8d 100%);
    border-radius: 5px 5px 50% 50%; 
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    transform-origin: top center; 
    transition: transform 0.1s ease-out; 
}

/* Efecto de física (rebote) de la aguja */
#pointer.tick {
    transform: translateX(-50%) rotate(-20deg);
}

.animate-spin-slow {
    animation: spin 4s linear infinite;
}

#winnerName {
    font-size: 5rem; /* Tamaño masivo */
    line-height: 1.1;
    color: transparent;
    /* Usamos el mismo gradiente esmeralda/azul que tienes en el theme */
    background-image: linear-gradient(90deg, #10b981, #3b82f6, #10b981);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    /* Reutilizamos tu animación rotarColores */
    animation: rotarColores 3s linear infinite;
    /* La sombra la aplicamos con filter para que respete el texto transparente */
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.8));
}

/* Hacer que el Canvas parezca un elemento reactivo sin cursor de mano */
#wheelCanvas {
    /* Brillo permanente activado desde el inicio */
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.6); 
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#wheelCanvas:hover {
    /* Mantenemos solo el latido de tamaño, el brillo ya está fijo */
    transform: scale(1.03); 
}

/* --- ESTADOS DESHABILITADOS --- */
#spinBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
    transform: none !important;
    box-shadow: none !important;
}

