/* Ruleta de Escudos CV — widget flotante (19-20/11/2026) */
.iv-ruleta-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  background: #d10014;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 10px 24px rgba(209, 0, 20, 0.35);
  cursor: pointer;
  line-height: 1.2;
}
.iv-ruleta-fab:hover { background: #b50012; }

.iv-ruleta-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.iv-ruleta-backdrop.is-open { display: flex; }

.iv-ruleta-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  color: #1e293b;
}
.iv-ruleta-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 18px;
  cursor: pointer;
}
.iv-ruleta-header { text-align: center; margin-bottom: 18px; }
.iv-ruleta-header h2 { font-size: 19px; margin: 0 0 4px; }
.iv-ruleta-header p { font-size: 13px; color: #64748b; margin: 0; }

.iv-ruleta-wheel-stage { position: relative; width: 230px; height: 230px; margin: 0 auto 18px; }
.iv-ruleta-pointer {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid #0f172a;
}
#iv-ruleta-canvas { width: 230px; height: 230px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.14); }

.iv-ruleta-screen { display: none; }
.iv-ruleta-screen.is-active { display: block; }

.iv-ruleta-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 13px; font-weight: 600;
}
.iv-ruleta-escudo-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px; margin-bottom: 14px; min-height: 160px;
}
.iv-ruleta-escudo-box img { max-width: 120px; max-height: 135px; width: auto; height: auto; object-fit: contain; margin-bottom: 8px; }
.iv-ruleta-escudo-box small { color: #64748b; text-align: center; font-size: 13px; }

.iv-ruleta-hint {
  display: none; background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px;
}
.iv-ruleta-hint.is-visible { display: block; }

.iv-ruleta-input-group { display: flex; gap: 8px; margin-bottom: 10px; }
.iv-ruleta-input {
  flex: 1; width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;
  font-family: inherit; margin-bottom: 10px;
}
.iv-ruleta-input-group .iv-ruleta-input { margin-bottom: 0; }
.iv-ruleta-input:focus { outline: 2px solid rgba(209,0,20,.25); border-color: #d10014; }

.iv-ruleta-feedback { min-height: 20px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.iv-ruleta-feedback.iv-ruleta-error { color: #b91c1c; }
.iv-ruleta-feedback.iv-ruleta-ok { color: #15803d; }
.iv-ruleta-heading { font-size: 17px; color: #d10014; margin: 10px 0 6px; }
.iv-ruleta-heading.iv-ruleta-ok { color: #15803d; }

.iv-ruleta-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.iv-ruleta-card h3 { font-size: 16px; margin: 0 0 6px; }
.iv-ruleta-fact { font-size: 13.5px; color: #64748b; line-height: 1.5; margin: 0 0 12px; }

.iv-ruleta-consent { display: block; font-size: 12px; color: #475569; margin: 8px 0; line-height: 1.4; }
.iv-ruleta-consent a { color: #d10014; }
.iv-ruleta-honeypot { display: none !important; }

.iv-ruleta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
}
.iv-ruleta-btn-primary { background: #d10014; color: #fff; }
.iv-ruleta-btn-primary:hover { background: #b50012; }
.iv-ruleta-btn-secondary { background: #e2e8f0; color: #1e293b; }
.iv-ruleta-btn-secondary:hover { background: #cbd5e1; }
.iv-ruleta-btn-whatsapp { background: #25d366; color: #fff; width: 100%; }
.iv-ruleta-btn:disabled { opacity: .6; cursor: default; }

.iv-ruleta-share-box { display: none; margin-top: 12px; }
.iv-ruleta-share-box.is-visible { display: block; }

@media (max-width: 480px) {
  .iv-ruleta-fab { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
  .iv-ruleta-modal { padding: 18px; max-width: 100%; }
  .iv-ruleta-wheel-stage, #iv-ruleta-canvas { width: 200px; height: 200px; }
}
