* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; }

.ruleta-overlay {
  /* Blindaje contra el tema de Jumpseller perfecto */
  position: fixed !important; 
  top: 0 !important; 
  left: 0 !important; 
  width: 100vw !important; /* Usamos viewport width en vez de % */
  height: 100vh !important; /* Usamos viewport height en vez de % */
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(10, 10, 10, 0.95); 
  backdrop-filter: blur(8px);
  display: flex !important; 
  justify-content: center !important; 
  align-items: center !important;
  z-index: 999999 !important; /* Forzamos que quede por encima de todo el header/footer */
  opacity: 0; 
  visibility: hidden; 
  transition: 0.5s;
}

.ruleta-overlay.visible { 
  opacity: 1 !important; 
  visibility: visible !important; 
}

/* 1. CAJA AÚN MÁS ALTA (880px) PARA ACOMODAR LOS 3 INPUTS */
.ruleta-caja-pro {
  background: radial-gradient(circle at top, #2a2a2a 0%, #111 100%);
  color: #fff; border: 2px solid #444; border-radius: 20px;
  position: relative; max-width: 850px; width: 95%;
  height: 880px; /* Ajuste clave aquí */
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(241, 196, 15, 0.05);
  overflow: hidden;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cerrar-ruleta {
  position: absolute; top: 20px; right: 25px; font-size: 32px;
  cursor: pointer; color: #777; transition: 0.3s; z-index: 50;
}
#cerrar-ruleta:hover { color: #F1C40F; }

.ruleta-contenido {
  position: absolute; top: 0; left: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 0; z-index: 20;
}

.ruleta-texto { text-align: center; max-width: 600px; width: 100%; position: relative; }
.ruleta-texto h2 {
  font-size: 2.8rem; margin-bottom: 5px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #F1C40F 100%); background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#bloque-formulario { transition: all 0.6s ease; opacity: 1; transform: translateY(0); width: 100%; }
#bloque-formulario.oculto { opacity: 0; transform: translateY(-30px); pointer-events: none; }
#bloque-formulario p { font-size: 1.1rem; color: #ddd; margin: 10px 0 20px; line-height: 1.5; }

.input-grupo { 
  display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%;
}

.input-grupo input, .input-grupo button {
  width: 100%; max-width: 380px; 
  padding: 15px; border-radius: 8px; font-size: 1rem; outline: none; transition: 0.3s;
}

.input-grupo input {
  border: 2px solid #555; background: #222; color: #fff;
}
.input-grupo input:focus { border-color: #F1C40F; box-shadow: 0 0 15px rgba(241, 196, 15, 0.4); }

.input-grupo button {
  background: linear-gradient(180deg, #ff5f5f 0%, #e60000 100%);
  color: #fff; border: none; font-weight: 900; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 5px 15px rgba(230, 0, 0, 0.5); margin-top: 5px;
}
.input-grupo button:hover { filter: brightness(1.2); }

.terminos-texto { display: block; margin-top: 15px; color: #aaa; font-size: 0.85rem; }

.mensaje-contenedor { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); width: 100%; z-index: 50; display: flex; justify-content: center; }
.mensaje-oculto { display: none; }
.mensaje-visible {
  padding: 20px 30px; background: rgba(40, 167, 69, 0.98); color: #fff;
  border: 2px solid #28a745; border-radius: 12px; font-weight: 900; font-size: 1.3rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. EMPUJAMOS LA RUEDA HACIA EL FONDO (-580px) */
.rueda-contenedor {
  position: absolute; width: 900px; height: 900px;
  bottom: -580px; /* Ajuste clave aquí: la hundimos 100px más */
  left: 50%; transform: translateX(-50%) scale(1);
  transform-origin: 50% 100%; z-index: 10;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.rueda-contenedor.modo-giro { bottom: 20px; transform: translateX(-50%) scale(0.75); }

.rueda-sombra {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; box-shadow: inset 0 30px 50px rgba(0,0,0,0.9);
  z-index: 15; pointer-events: none;
}

.puntero-pro { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); z-index: 20; }
#rueda-svg-container { width: 100%; height: 100%; }
#rueda-svg { width: 100%; height: 100%; transition: transform 6s cubic-bezier(0.1, 0.9, 0.15, 1); }

@keyframes popIn { from { transform: scale(0.8) translateY(50px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
/* ======================================================= */
/* AJUSTES PARA NOTEBOOKS (PANTALLAS BAJITAS)              */
/* ======================================================= */
@media (max-height: 900px) and (min-width: 769px) {
  .ruleta-caja-pro { 
    height: 90vh; 
    min-height: 650px;
  }
  .ruleta-contenido { padding-top: 20px; }
  .ruleta-texto h2 { font-size: 2.2rem; }
  #bloque-formulario p { font-size: 1rem; margin: 5px 0 15px; }
  
  .input-grupo { gap: 8px; }
  .input-grupo input, .input-grupo button { padding: 12px; }
  
  /* AJUSTE CLAVE: Hundimos la rueda 50px más para alejar la flecha del texto */
  .rueda-contenedor { 
    width: 700px; 
    height: 700px; 
    bottom: -530px; /* Antes estaba en -480px */
  }
  
  .rueda-contenedor.modo-giro { 
    bottom: 20px; 
    transform: translateX(-50%) scale(0.65); 
  }
}

/* ======================================================= */
/* AJUSTES PARA MÓVILES COMPLETAMENTE OPTIMIZADOS          */
/* (Este es el bloque que ya tenías al final)              */
/* ======================================================= */
@media (max-width: 768px) {
/* ... tu código móvil sigue intacto aquí abajo ... */
/* AJUSTES PARA MÓVILES COMPLETAMENTE OPTIMIZADOS (VERSIÓN EQUILIBRADA) */
@media (max-width: 768px) {
  .ruleta-caja-pro { height: 760px; } 
  .ruleta-contenido { padding: 30px 15px 0; }
  .ruleta-texto h2 { font-size: 2rem; }
  #bloque-formulario p { font-size: 0.95rem; margin: 8px 0 15px; }
  
  .input-grupo { gap: 10px; }
  .input-grupo input, .input-grupo button { max-width: 320px; padding: 12px 15px; font-size: 0.95rem; }
  .terminos-texto { margin-top: 12px; color: #bbb; font-size: 0.75rem; line-height: 1.3; }
  
  .rueda-contenedor { width: 750px; height: 750px; bottom: -450px; } 
  .rueda-contenedor.modo-giro { bottom: 30px; transform: translateX(-50%) scale(0.65); }
  .mensaje-contenedor { top: 210px; }
}
