/* =============================================================================
   BIURY PRIZE WHEEL — Frontend Styles v2.1
   Diseño de Alta Gama: Marco dorado reflectante, LEDs responsivos,
   Tarjeta de Premio VIP y disparadores inteligentes.
   ============================================================================= */

/* ── Variables de Marca ───────────────────────────────────────────── */
:root {
  --bpw-primary: #F440A8;
  --bpw-secondary: #EF7088;
  --bpw-primary-gradient: linear-gradient(135deg, #F440A8 0%, #EF7088 100%);
  --bpw-gold-gradient: linear-gradient(135deg, #FFEFA6 0%, #E8C876 30%, #C5963A 70%, #7A5812 100%);
  --bpw-dark: #2E2926;
  --bpw-text-muted: #777777;
  --bpw-radius: 28px;
  --bpw-font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bpw-shadow-deep: 0 35px 90px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(244, 64, 168, 0.15);
}

/* ── Capa de Fondo (Overlay) ──────────────────────────────────────── */
.bpw-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999999 !important;
  background: radial-gradient(circle at center, rgba(38, 16, 32, 0.88) 0%, rgba(14, 7, 13, 0.95) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bpwOverlayFade 0.4s ease forwards;
}

@keyframes bpwOverlayFade {
  to { opacity: 1; }
}

/* ── Contenedor del Popup Flotante (Sin caja blanca rígida) ───────── */
.bpw-popup {
  position: relative;
  background: transparent !important;
  border-radius: var(--bpw-radius);
  box-shadow: none !important;
  border: none !important;
  max-width: 480px;
  width: 100%;
  margin: auto; /* Centrado flex seguro: nunca se corta arriba si el contenido excede el alto */
  overflow: visible;
  transform: translateY(30px) scale(0.95);
  animation: bpwPopEntrance 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  font-family: var(--bpw-font);
}

/* Modo Resultado: adapta el popup para mostrar la tarjeta de premio y reclamo sin scroll */
.bpw-popup.bpw-has-result {
  max-width: 440px;
  width: 92vw;
  max-height: 96vh;
  overflow: hidden;
  border-radius: 26px;
}

@media (max-height: 500px) {
  .bpw-popup.bpw-has-result {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bpw-primary) rgba(255, 255, 255, 0.08);
  }
}

.bpw-popup.bpw-has-result .bpw-popup-content,
.bpw-popup.bpw-has-result .bpw-disclaimer {
  display: none !important;
}

.bpw-popup.bpw-has-result .bpw-popup-close {
  top: 10px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  z-index: 999 !important;
}

@keyframes bpwPopEntrance {
  to {
    transform: translateY(0) scale(1);
  }
}

/* ── Botón Cerrar (X) Flotante de Alta Gama ────────────────────────── */
.bpw-popup-close {
  position: absolute !important;
  top: 0px !important;
  right: 6px !important;
  z-index: 99 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

.bpw-popup-close .bpw-close-cross {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #FFFFFF !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: color 0.2s ease !important;
}

.bpw-popup-close:hover {
  background: var(--bpw-primary-gradient) !important;
  border-color: #F440A8 !important;
  transform: rotate(90deg) scale(1.1) !important;
  box-shadow: 0 6px 22px rgba(244, 64, 168, 0.55) !important;
}

.bpw-popup-close:hover .bpw-close-cross {
  color: #FFFFFF !important;
}

/* ── Insignia de Modo de Prueba Flotante ──────────────────────────── */
.bpw-test-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(244, 64, 168, 0.25);
  backdrop-filter: blur(8px);
  border: 1.5px dashed #FF7BD2;
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Contenido Interior Flotante & Pasos Secuenciales ─────────────── */
.bpw-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 14px;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Pasos Secuenciales */
.bpw-step-lead,
.bpw-step-wheel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bpw-fade-in {
  animation: bpwStepFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bpwStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bpw-wheel-header {
  text-align: center;
  margin-bottom: 6px;
  width: 100%;
}

.bpw-btn-spin-now {
  background: var(--bpw-primary-gradient) !important;
  color: #FFFFFF !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(244, 64, 168, 0.45) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  font-family: var(--bpw-font) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  width: 100% !important;
  max-width: 290px !important;
}

.bpw-btn-spin-now:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 26px rgba(244, 64, 168, 0.6) !important;
}

.bpw-popup button.bpw-btn-link-edit,
.bpw-popup #bpw-edit-lead-btn,
button.bpw-btn-link-edit,
#bpw-edit-lead-btn,
.bpw-btn-link-edit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 6px 14px !important;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: var(--bpw-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.bpw-popup button.bpw-btn-link-edit:hover,
.bpw-popup #bpw-edit-lead-btn:hover,
button.bpw-btn-link-edit:hover,
#bpw-edit-lead-btn:hover,
.bpw-btn-link-edit:hover {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #FF85D5 !important;
  text-decoration: underline !important;
  transform: translateX(-3px) !important;
}

.bpw-popup button.bpw-btn-link-edit:focus,
.bpw-popup #bpw-edit-lead-btn:focus,
.bpw-popup button.bpw-btn-link-edit:active,
.bpw-popup #bpw-edit-lead-btn:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #FFFFFF !important;
}

/* ── Insignia Destacada ───────────────────────────────────────────── */
.bpw-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 64, 168, 0.22);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(244, 64, 168, 0.5);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FF85D5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.bpw-badge-sparkle {
  font-size: 13px;
  animation: bpwSparkle 1.8s ease-in-out infinite alternate;
}

@keyframes bpwSparkle {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.3) rotate(15deg); }
}

/* ── Título & Subtítulo Flotantes ────────────────────────────────── */
.bpw-info-panel {
  text-align: center;
  width: 100%;
}

.bpw-title {
  font-family: var(--bpw-font);
  font-size: 26px;
  font-weight: 800;
  color: var(--bpw-title-col, #FFFFFF) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 64, 168, 0.35);
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.bpw-subtitle {
  font-family: var(--bpw-font);
  font-size: 13.5px;
  color: var(--bpw-sub-col, rgba(255, 255, 255, 0.88)) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  margin: 0;
  line-height: 1.5;
}

/* ── Formulario de Registro Previo al Giro (Lead Form Centrado) ──── */
.bpw-lead-form {
  margin-top: 16px;
  width: 100%;
  max-width: 410px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 22px 24px;
  box-sizing: border-box;
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(244, 64, 168, 0.14);
}

.bpw-lead-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bpw-lead-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  text-align: left;
}

.bpw-lead-field-group label {
  font-family: var(--bpw-font);
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0;
  letter-spacing: 0.2px;
}

.bpw-lead-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border: 1.5px solid rgba(244, 64, 168, 0.35);
  border-radius: 14px;
  padding: 0 14px;
  font-family: var(--bpw-font);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  outline: none;
  transition: all 0.2s ease;
}

.bpw-lead-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.bpw-lead-input:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--bpw-primary);
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px rgba(244, 64, 168, 0.28);
}

.bpw-lead-terms-row {
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  width: 100%;
}

.bpw-form-status {
  font-size: 11.5px;
  font-weight: 700;
  color: #FF80A0;
  margin: 6px 0;
  text-align: center;
  min-height: 18px;
  line-height: 1.35;
}

.bpw-btn-spin-lead {
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(244, 64, 168, 0.45);
}

/* ── Botones Principales ──────────────────────────────────────────── */
.bpw-btn-primary {
  padding: 12px 24px;
  background: var(--bpw-primary-gradient);
  color: var(--bpw-btn-text, #FFFFFF);
  border: none;
  border-radius: 14px;
  font-family: var(--bpw-font);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(244, 64, 168, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bpw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 64, 168, 0.45);
}

.bpw-btn-primary:active {
  transform: translateY(0);
}

.bpw-btn-secondary-close {
  background: #2E2926 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(46, 41, 38, 0.25) !important;
}

.bpw-btn-secondary-close:hover {
  background: #000000 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

.bpw-btn-test-retry {
  display: block;
  margin: 10px auto 0;
  width: 100%;
  padding: 10px 16px;
  background: #FFF0F6;
  border: 1.5px dashed #F440A8;
  border-radius: 12px;
  color: #F440A8;
  font-family: var(--bpw-font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bpw-btn-test-retry:hover {
  background: #FFE4EF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 64, 168, 0.15);
}

/* ── Contenedor de la Ruleta ──────────────────────────────────────── */
.bpw-wheel-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 6px 0;
}

.bpw-wheel-container {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 45px rgba(244, 64, 168, 0.35));
}

/* ── Canvas de la Ruleta (HiDPI Vectorial) ────────────────────────── */
#bpw-wheel-canvas {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  display: block;
}

/* ── Puntero Superior (Aguja de Lujo con articulación) ────────────── */
.bpw-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  transform-origin: 50% 12px;
  transition: transform 0.05s ease;
}

.bpw-pointer.bpw-ticking {
  animation: bpwPointerTick 0.12s ease-in-out;
}

@keyframes bpwPointerTick {
  0%   { transform: translateX(-50%) rotate(0deg); }
  50%  { transform: translateX(-50%) rotate(-14deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* ── Botón Central de Giro ────────────────────────────────────────── */
.bpw-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bpw-primary-gradient);
  color: var(--bpw-btn-text, #FFFFFF);
  border: 4px solid #FFFFFF;
  font-family: var(--bpw-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(244, 64, 168, 0.5),
    0 0 0 4px rgba(244, 64, 168, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.5),
    inset 0 -3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bpw-spin-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 12px 30px rgba(244, 64, 168, 0.65),
    0 0 0 6px rgba(244, 64, 168, 0.25),
    inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

.bpw-spin-btn:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.96);
}

.bpw-spin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  filter: grayscale(0.2);
}

.bpw-spin-text {
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ── Disclaimer Inferior Flotante & Términos ────────────────────── */
.bpw-disclaimer {
  text-align: center;
  padding: 8px 24px 10px;
  font-size: 11.5px;
  color: var(--bpw-sub-col, rgba(255, 255, 255, 0.88)) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.bpw-terms-link {
  color: #FFB5D5 !important;
  text-decoration: underline !important;
  text-underline-offset: 2.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline;
  cursor: pointer;
}

.bpw-terms-link:hover {
  color: #FFFFFF !important;
  text-shadow: 0 0 10px rgba(244, 64, 168, 0.75);
}

.bpw-email-terms-hint {
  font-size: 11px;
  color: var(--bpw-sub-col, rgba(255, 255, 255, 0.82)) !important;
  margin: 6px 0 0;
  line-height: 1.35;
  text-align: center;
}

/* ── Panel de Ganador VIP Flotante ────────────────────────────────── */
.bpw-result-panel {
  position: relative;
  width: 100%;
  background: rgba(18, 9, 16, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 30;
  padding: 18px 20px 16px;
  border-radius: 26px;
  border: 1.5px solid rgba(244, 64, 168, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(244, 64, 168, 0.22);
  box-sizing: border-box;
  animation: bpwResultFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bpwResultFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.bpw-result-card {
  text-align: center;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bpw-result-ribbon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF0F6 0%, #FAF4EE 100%);
  border: 2px solid var(--bpw-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 6px 18px rgba(244, 64, 168, 0.35);
  animation: bpwBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.bpw-result-icon {
  font-size: 24px;
  line-height: 1;
}

@keyframes bpwBadgePop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

.bpw-result-title {
  font-family: var(--bpw-font);
  font-size: 19px;
  font-weight: 800;
  color: var(--bpw-title-col, #FFFFFF) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 64, 168, 0.45);
  margin: 0 0 6px;
  line-height: 1.2;
}

.bpw-result-prize-box {
  background: rgba(244, 64, 168, 0.16);
  border: 1.5px dashed rgba(244, 64, 168, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.bpw-result-prize-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #FFB5D5 !important;
  display: block;
  margin-bottom: 2px;
}

.bpw-result-prize {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF !important;
  text-shadow: 0 0 18px rgba(244, 64, 168, 0.75);
  margin: 0;
  line-height: 1.2;
}

/* ── Formulario Completo de Reclamación (Datos Obligatorios) ─────── */
.bpw-claim-full-form {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px;
  padding: 12px 14px 10px;
  margin: 2px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.bpw-claim-form-intro {
  font-family: var(--bpw-font);
  font-size: 11.5px;
  color: #FFFFFF !important;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
  text-align: center;
}

.bpw-claim-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  margin-bottom: 6px;
}

.bpw-field-name {
  grid-column: 1 / 2;
}

.bpw-field-dni {
  grid-column: 2 / 3;
}

.bpw-field-email {
  grid-column: 1 / -1;
}

.bpw-claim-field-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bpw-claim-field-group label {
  font-family: var(--bpw-font);
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0;
  letter-spacing: 0.2px;
}

.bpw-claim-input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  border: 1.5px solid rgba(244, 64, 168, 0.35);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--bpw-font);
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  transition: all 0.2s ease;
}

.bpw-claim-input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.bpw-claim-input:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--bpw-primary);
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(244, 64, 168, 0.25);
  outline: none;
}

.bpw-claim-check-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.bpw-claim-check-group label,
.bpw-claim-check-group label span,
.bpw-claim-check-group span,
.bpw-check-label,
.bpw-check-label *,
.bpw-check-label span {
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.bpw-check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.bpw-check-label input[type="checkbox"] {
  accent-color: #F440A8;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.bpw-claim-check-group a,
.bpw-claim-check-group a.bpw-terms-link,
.bpw-check-label a,
.bpw-check-label a.bpw-terms-link {
  color: #FF7BD2 !important;
  text-decoration: underline !important;
  text-underline-offset: 2.5px;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline !important;
  transition: color 0.2s ease;
}

.bpw-claim-check-group a:hover,
.bpw-check-label a:hover {
  color: #FFFFFF !important;
  text-shadow: 0 0 8px rgba(244, 64, 168, 0.6);
}

.bpw-claim-status {
  font-size: 11.5px;
  font-weight: 700;
  color: #FF80A0 !important;
  margin: 4px 0;
  text-align: center;
  min-height: 16px;
  line-height: 1.3;
}

.bpw-btn-claim-submit {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(244, 64, 168, 0.35);
  transition: all 0.25s ease;
}

.bpw-btn-claim-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(244, 64, 168, 0.5);
}

/* ── Caja de Cupón con Botón Copiar ──────────────────────────────── */
.bpw-voucher-wrap {
  width: 100%;
  margin-bottom: 10px;
  position: relative;
  box-sizing: border-box;
}

.bpw-voucher-desc {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
  display: block;
}

.bpw-voucher-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px dashed var(--bpw-primary);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.bpw-voucher-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF !important;
  background: transparent;
  padding: 0;
}

.bpw-copy-btn {
  background: var(--bpw-primary-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--bpw-font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(244, 64, 168, 0.35);
}

.bpw-copy-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(244, 64, 168, 0.5);
}

.bpw-copy-toast {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #2E2926;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.bpw-copy-toast.visible {
  opacity: 1;
}

.bpw-result-instructions {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0 0 10px;
  line-height: 1.4;
}

.bpw-result-instructions:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Aviso y Entrega por Correo Electrónico ──────────────────────── */
.bpw-email-notice {
  background: rgba(244, 64, 168, 0.12) !important;
  border: 1px solid rgba(244, 64, 168, 0.4);
  border-left: 4px solid var(--bpw-primary);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.bpw-email-notice-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.bpw-email-notice-text {
  font-size: 11.5px;
  color: #FFFFFF !important;
  line-height: 1.35;
  font-family: var(--bpw-font);
}

.bpw-email-notice-text strong {
  color: #FF7BD2 !important;
  font-weight: 800;
  word-break: break-all;
}

.bpw-result-close {
  width: 100%;
  height: 42px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(244, 64, 168, 0.35);
}

/* ── Botón Probar Otro Giro (Modo Test) ───────────────────────────── */
.bpw-btn-test-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border-radius: 18px;
  font-family: var(--bpw-font);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.bpw-btn-test-retry:hover {
  background: rgba(244, 64, 168, 0.25);
  border-color: #F440A8;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 64, 168, 0.3);
}

/* ── Confeti y Celebración ────────────────────────────────────────── */
.bpw-confetti {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 9999999999 !important;
  animation: bpwConfettiFall var(--bpw-confetti-duration, 2.5s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

@keyframes bpwConfettiFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(var(--bpw-confetti-rotation, 720deg)) scale(0.25);
    opacity: 0;
  }
}

/* ── Botón Flotante Permanente (Gift Launcher) ────────────────────── */
.bpw-floating-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.bpw-floating-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bpw-primary-gradient);
  color: #FFFFFF;
  border: 3.5px solid #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 28px rgba(244, 64, 168, 0.45),
    0 0 0 0 rgba(244, 64, 168, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: bpwFloatPulse 2.2s infinite;
  padding: 0;
}

@keyframes bpwFloatPulse {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(244, 64, 168, 0.45), 0 0 0 0 rgba(244, 64, 168, 0.35);
  }
  50% {
    box-shadow: 0 8px 28px rgba(244, 64, 168, 0.45), 0 0 0 12px rgba(244, 64, 168, 0);
  }
}

.bpw-floating-btn:hover {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 12px 34px rgba(244, 64, 168, 0.6);
}

.bpw-float-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpw-float-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 14px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Tooltip interactivo al lado del botón flotante */
.bpw-floating-tooltip {
  background: #FFFFFF;
  border: 1.5px solid rgba(244, 64, 168, 0.3);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

.bpw-tooltip-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--bpw-primary);
  font-family: var(--bpw-font);
}

.bpw-tooltip-sub {
  font-size: 10.5px;
  color: #777777;
  font-family: var(--bpw-font);
}

.bpw-floating-container:hover .bpw-floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Responsividad & Móviles ──────────────────────────────────────── */
@media (max-width: 520px) {
  .bpw-popup {
    max-width: 94vw;
    width: 100%;
    margin: auto;
    border-radius: 22px;
  }

  .bpw-popup-close {
    top: -4px !important;
    right: 4px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .bpw-popup-content {
    padding: 24px 12px 14px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .bpw-title {
    font-size: 21px;
    line-height: 1.25;
  }

  .bpw-subtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  .bpw-lead-form {
    padding: 16px 14px;
    margin-top: 12px;
    border-radius: 18px;
    max-width: 100%;
  }

  .bpw-lead-fields {
    gap: 10px;
  }

  .bpw-lead-input {
    height: 42px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
  }

  .bpw-btn-spin-lead {
    height: 44px !important;
    font-size: 13px !important;
    margin-top: 6px !important;
  }

  .bpw-disclaimer {
    font-size: 10.5px;
    margin-top: 8px;
    padding: 0 8px;
  }

  .bpw-wheel-container {
    width: 290px;
    height: 290px;
  }

  #bpw-wheel-canvas {
    width: 290px;
    height: 290px;
  }

  .bpw-pointer {
    top: -8px;
  }

  .bpw-pointer svg {
    width: 28px;
    height: 38px;
  }

  .bpw-spin-btn {
    width: 62px;
    height: 62px;
    font-size: 11px;
    border-width: 3.5px;
  }

  .bpw-email-row {
    flex-direction: column;
  }

  .bpw-overlay {
    padding: 12px 8px;
  }

  .bpw-popup.bpw-has-result {
    max-width: 95vw !important;
    max-height: 98vh !important;
    overflow: hidden;
    border-radius: 22px;
  }

  .bpw-result-panel {
    padding: 14px 12px 12px !important;
    border-radius: 22px;
  }

  .bpw-result-ribbon {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
  }

  .bpw-result-icon {
    font-size: 20px;
  }

  .bpw-result-title {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .bpw-result-prize-box {
    padding: 4px 10px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .bpw-result-prize-label {
    font-size: 8.5px;
  }

  .bpw-result-prize {
    font-size: 15px;
  }

  .bpw-claim-full-form {
    padding: 10px 10px 8px;
    border-radius: 14px;
    margin: 2px 0 6px;
  }

  .bpw-claim-form-intro {
    font-size: 10.5px;
    margin-bottom: 6px;
  }

  .bpw-claim-fields-grid {
    gap: 5px 6px;
    margin-bottom: 4px;
  }

  .bpw-claim-field-group label {
    font-size: 9.5px;
  }

  .bpw-claim-input {
    height: 32px;
    font-size: 11px;
    padding: 0 8px;
  }

  .bpw-claim-check-group {
    gap: 4px;
    margin: 4px 0 6px;
    padding-top: 4px;
  }

  .bpw-check-label {
    font-size: 9.5px;
  }

  .bpw-btn-claim-submit {
    height: 36px;
    font-size: 12px;
    border-radius: 10px;
  }

  .bpw-btn-test-retry {
    padding: 6px 12px;
    font-size: 10.5px;
    margin-top: 6px;
  }

  .bpw-voucher-box {
    padding: 5px 5px 5px 10px;
  }

  .bpw-voucher-code {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .bpw-copy-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .bpw-email-notice {
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .bpw-email-notice-text {
    font-size: 10.5px;
  }

  .bpw-floating-container {
    bottom: 20px;
    right: 20px;
  }

  .bpw-floating-btn {
    width: 54px;
    height: 54px;
  }

  .bpw-floating-tooltip {
    display: none; /* En móvil simplificar */
  }
}

@media (max-width: 360px) {
  .bpw-wheel-container {
    width: 250px;
    height: 250px;
  }

  #bpw-wheel-canvas {
    width: 250px;
    height: 250px;
  }

  .bpw-spin-btn {
    width: 54px;
    height: 54px;
    font-size: 10px;
    letter-spacing: 1px;
  }
}

/* ── Layout en Pantallas Medianas y Grandes (Centrado Elegante Biury) ── */
@media (min-width: 860px) {
  .bpw-popup {
    max-width: 480px;
    margin: auto;
  }

  .bpw-popup-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .bpw-info-panel {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .bpw-info-panel .bpw-badge-pill {
    margin-bottom: 10px;
  }

  .bpw-lead-form {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .bpw-step-wheel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
