/* ============================================================
   PDLAB – Sistema de Diseño Oficial (Montserrat + White / Red)
   ============================================================ */

/* ─── Variables de Marca PDLAB ─── */
:root {
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --card: #FFFFFF;
  --card-border: #E2E8F0;
  --card-hover: #F1F5F9;

  /* Colores Corporativos */
  --red: #E11D24;
  --red-dark: #BA1319;
  --red-light: #FF4D4F;
  --red-subtle: #FFF1F0;
  --red-glow: rgba(225, 29, 36, 0.22);

  --dark: #0A0E1A;
  --dark-2: #1E293B;
  --text-main: #0A0E1A;
  --text-body: #1F2937;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border: #E2E8F0;
  --border-focus: #E11D24;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-red: 0 4px 18px rgba(225, 29, 36, 0.28);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ─── App Shell ─── */
#app {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

/* ─── Background Atmospherics (Zero GPU Overhead) ─── */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(225, 29, 36, 0.04) 0%, transparent 65%);
  top: -100px;
  right: -80px;
}
.ambient-glow-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(10, 14, 26, 0.02) 0%, transparent 65%);
  bottom: -80px;
  left: -60px;
}

/* ═══════════════════════════════════════════════
   SCREEN SYSTEM
   ═══════════════════════════════════════════════ */

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px 60px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.screen-content {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100%;
  padding-top: 10px;
}

/* ═══════════════════════════════════════════════
   SCREEN 1 – BIENVENIDA (Fiel a la Referencia)
   ═══════════════════════════════════════════════ */

.welcome-layout {
  padding-top: 20px;
  gap: 0;
  text-align: center;
}

/* Logo */
.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s var(--spring) both;
}

.main-brand-logo {
  max-width: 320px;
  width: 82%;
  height: auto;
  max-height: 110px;
  display: block;
  object-fit: contain;
}

/* Taglines */
.welcome-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 22px;
  animation: fadeInUp 0.5s 0.15s var(--ease) both;
}

.quote-black {
  font-size: 15px;
  font-weight: 800;
  color: #0A0E1A;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.quote-red {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Headline */
.welcome-headline {
  font-size: 32px;
  font-weight: 900;
  color: #0A0E1A;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeInUp 0.5s 0.25s var(--ease) both;
}

/* Subtitle */
.welcome-sub {
  font-size: 16px;
  font-weight: 400;
  color: #262626;
  line-height: 1.45;
  max-width: 440px;
  margin-bottom: 28px;
  text-align: center;
  animation: fadeInUp 0.5s 0.35s var(--ease) both;
}

/* 3 Badges Rectangulares Rojos */
.welcome-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  width: 100%;
  animation: fadeInUp 0.5s 0.45s var(--ease) both;
}

.badge-red {
  background: var(--red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 2px;
  box-shadow: 0 3px 12px rgba(225, 29, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 120px;
}

/* Acciones en Inicio */
.welcome-actions {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  animation: fadeInUp 0.5s 0.55s var(--ease) both;
}

.welcome-actions .btn {
  margin-top: 0;
}

.btn-outline-bonus {
  width: 100%;
  padding: 15px 22px;
  background: #FFFFFF;
  color: #0A0E1A;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.btn-outline-bonus:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-subtle);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(225, 29, 36, 0.16);
}

.btn-outline-bonus svg {
  color: var(--red);
  flex-shrink: 0;
}

/* Botón Principal */
.btn-hero {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  width: 100%;
  padding: 16px 28px;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease), background 0.2s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  border-radius: 4px;
}

.btn:active {
  transform: scale(0.98);
}

/* Solid Red Primary */
.btn-red {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 36, 0.4);
}

/* WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Ghost / Secondary */
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
}

.btn-ghost:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: var(--bg-subtle);
}

.btn-arrow-svg {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow-svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════
   SCREEN 2 – REGISTER
   ═══════════════════════════════════════════════ */

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

.screen-header h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.screen-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.form-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.field label .req {
  color: var(--red);
  font-weight: 900;
  margin-left: 3px;
  font-size: 13px;
}

.form-req-banner {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(225, 29, 36, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-req-banner svg {
  flex-shrink: 0;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.field input.input-error {
  border-color: var(--red) !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 36, 0.2) !important;
}

.field-error-msg {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-top: 2px;
  display: none;
}

.field-error-msg.show {
  display: block;
  animation: fadeIn 0.2s var(--ease);
}

.field input::placeholder {
  color: var(--text-light);
}

/* ═══════════════════════════════════════════════
   SCREEN 3 – ROLE SELECTION
   ═══════════════════════════════════════════════ */

.role-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.role-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--spring);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
}

.role-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--red-glow);
}

.role-card:active {
  transform: scale(0.98);
}

.role-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: transform 0.25s var(--spring), background 0.2s, border-color 0.2s;
  overflow: hidden;
  padding: 10px;
}

.role-card:hover .role-icon {
  background: var(--red-subtle);
  border-color: var(--red);
  transform: scale(1.08);
}

.role-icon-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s var(--spring);
}

.role-card:hover .role-icon-img {
  transform: scale(1.12);
}

.role-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

.role-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   SCREEN 4 – INTRO DINÁMICA
   ═══════════════════════════════════════════════ */

.intro-badge {
  background: var(--red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 2px;
  text-transform: uppercase;
}

.intro-title {
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  color: var(--text-main);
}

.phases-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s var(--ease) both;
}

.phase-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-subtle);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phase-item-info { flex: 1; }

.phase-item-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 2px;
}

.phase-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* Prize Table */
.prize-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.prize-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}

.prize-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.prize-row:last-child { margin-bottom: 0; }

.prize-row-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-main);
}

.prize-row-info { flex: 1; }

.prize-row-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-main);
}

.prize-row-pts {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.prize-row-amount {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
}

.prize-gold {
  background: #FFF5F5;
  border-color: rgba(225, 29, 36, 0.2);
}
.prize-gold .prize-row-icon { color: var(--red); }
.prize-gold .prize-row-name { color: var(--red); }
.prize-gold .prize-row-amount { color: var(--red); }

/* ═══════════════════════════════════════════════
   SCREEN 5 – QUESTION
   ═══════════════════════════════════════════════ */

.progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.progress-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s var(--ease);
}

.pdot.done {
  background: rgba(225, 29, 36, 0.4);
}

.pdot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

.q-phase {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.q-phase-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
}

.q-phase-sub {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.q-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.q-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.q-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--text-main);
}

.q-case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(225, 29, 36, 0.25);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(225, 29, 36, 0.08);
}

.q-case-body {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-main);
  text-align: left;
}

.opts-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn {
  width: 100%;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--spring), box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.opt-btn:hover {
  border-color: var(--red);
  background: var(--red-subtle);
  transform: translateX(4px);
}

.opt-btn.selected {
  border-color: var(--red);
  background: var(--red-subtle);
  pointer-events: none;
}

.opt-btn.selected .opt-letter {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.opt-btn.not-selected {
  opacity: 0.45;
  pointer-events: none;
}

.opt-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.opt-text { flex: 1; }

/* ═══════════════════════════════════════════════
   SCREEN 6 – RESULTS & WALLET DIGITAL PASSPORT
   ═══════════════════════════════════════════════ */

#screen-results {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 14px 60px;
}

#screen-results .screen-content.results-layout {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* NFT Hero Wrapper */
.nft-hero-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
  perspective: 1200px;
}

.nft-glow-ring {
  position: absolute;
  width: 320px;
  height: 400px;
  max-width: 90vw;
  border-radius: 36px;
  background: var(--red);
  filter: blur(48px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  top: 10px;
}

/* WALLET PASS */
#nft-card.wallet-pass {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background: linear-gradient(150deg, #121727 0%, #080A12 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.1s ease-out;
}

#nft-card.wallet-pass.interacting {
  transition: none;
}

/* Holo Foil */
.nft-holo-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 70%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 4;
}

.nft-holo-foil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--holo-angle, 135deg),
    rgba(255, 0, 0, 0.25),
    rgba(255, 120, 0, 0.25),
    rgba(255, 255, 0, 0.25),
    rgba(0, 255, 180, 0.25),
    rgba(0, 150, 255, 0.25),
    rgba(200, 0, 255, 0.25),
    rgba(255, 0, 0, 0.25)
  );
  background-size: 250% 250%;
  opacity: 0.22;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  z-index: 3;
}

.nft-guilloche {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(225, 29, 36, 0.08) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 0, transparent 8px);
  pointer-events: none;
  z-index: 1;
}

.pass-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0 0 6px 6px;
  z-index: 5;
}

.nft-inner {
  position: relative;
  z-index: 2;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
}

/* Pass Header */
.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pass-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pass-brand-logo {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.pass-brand-logo span { color: var(--red); }

.pass-logo-img {
  height: 22px;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.pass-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.pass-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(225, 29, 36, 0.15);
  border: 1px solid rgba(225, 29, 36, 0.4);
  border-radius: 100px;
  font-size: 8.5px;
  font-weight: 800;
  color: #FF6B6E;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* Chip & Meta */
.pass-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pass-chip-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emv-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4);
}

.emv-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.nfc-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
}

.pass-token-id {
  text-align: right;
}
.pass-token-id .label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}
.pass-token-id .value {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
}

/* Pass Profile */
.pass-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hologram-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 36, 0.25) 0%, rgba(10, 14, 26, 0.8) 100%);
  border: 1.5px solid rgba(225, 29, 36, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(225, 29, 36, 0.3);
  flex-shrink: 0;
}

.pass-profile-info { flex: 1; }

.pass-tier-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
}

.nft-card-name {
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 2px 0 4px;
}

.pass-sub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pass-tag-role, .pass-tag-spec, .pass-tag-dni {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.4px;
}

.pass-tag-dni {
  background: rgba(225, 29, 36, 0.18);
  color: #FF7875;
  border: 1px solid rgba(225, 29, 36, 0.35);
}

/* Ticket Divider */
.pass-ticket-divider {
  display: flex;
  align-items: center;
  position: relative;
  margin: 2px 0;
}

.stub-line {
  flex: 1;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.2) 4px, transparent 0, transparent 8px);
}

.stub-notch {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
}
.stub-left { left: -27px; }
.stub-right { right: -27px; }

/* Voucher Box */
.pass-voucher-box {
  background: rgba(225, 29, 36, 0.1);
  border: 1px solid rgba(225, 29, 36, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voucher-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.nft-prize-num {
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 2px 0;
}

.voucher-terms {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.voucher-badge {
  font-size: 8px;
  font-weight: 800;
  background: var(--red);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

/* Barcode */
.pass-barcode-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pass-qr-wrap {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0E1A;
  flex-shrink: 0;
}

.pass-barcode-lines { flex: 1; }

.barcode-bars {
  display: flex;
  gap: 2px;
  height: 22px;
  align-items: flex-end;
}

.barcode-bars span {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  height: 100%;
}
.barcode-bars span:nth-child(2n) { width: 1px; }
.barcode-bars span:nth-child(3n) { width: 3px; }
.barcode-bars span:nth-child(5n) { width: 2px; height: 80%; }

.barcode-serial {
  font-size: 9px;
  font-family: monospace;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.pass-date-badge {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}

/* Results CTA */
.result-cta {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 2px;
}

.result-cta h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin: 0;
}

.result-cta p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

#screen-results .cta-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

#screen-results .cta-buttons .btn {
  width: 100%;
  min-height: 48px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
}

#screen-results .result-cta .btn-ghost {
  width: auto;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: transparent;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

#screen-results .result-cta .btn-ghost:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: #FFFFFF;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  white-space: nowrap;
  transition: transform 0.3s var(--spring), opacity 0.3s;
  opacity: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.loader.active { opacity: 1; pointer-events: auto; }
.loader-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

/* Confetti */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════════
   FASE BONUS / PREGUNTAS ADICIONALES
   ═══════════════════════════════════════════════ */

.bonus-invite-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin: 18px 0 6px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.bonus-invite-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

.bonus-invite-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 8px 0 4px;
  letter-spacing: -0.3px;
}

.bonus-invite-header p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.bonus-badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--red);
  background: var(--red-subtle);
  padding: 4px 10px;
  border-radius: 100px;
}

.btn-bonus-action {
  width: 100%;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bonus-completed-card {
  text-align: center;
  padding: 36px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  animation: fadeInUp 0.4s var(--ease);
}

.bonus-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--red-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(225, 29, 36, 0.2);
}

.bonus-completed-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.bonus-completed-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Modal Base */
.modal-bd {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  padding: 16px;
}

.modal-bd.open {
  opacity: 1;
  pointer-events: all;
}

/* Home Bonus Modal */
.home-bonus-modal {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  max-width: 420px;
  width: 100%;
  color: var(--text-main);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  animation: pop-in 0.3s var(--spring) both;
  position: relative;
  text-align: left;
}

.home-bonus-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.home-bonus-modal h3 {
  font-size: 19px;
  font-weight: 900;
  color: #0A0E1A;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.home-bonus-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.modal-close-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.modal-close-icon-btn:hover {
  color: var(--red);
}

.home-bonus-role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.btn-role-mini {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
}

.btn-role-mini:hover {
  border-color: var(--red);
  background: var(--red-subtle);
  color: var(--red);
}

.btn-role-mini.selected {
  border-color: var(--red);
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--red-glow);
}

.role-mini-img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.btn-role-mini:hover .role-mini-img {
  transform: scale(1.1);
}

.btn-role-mini.selected .role-mini-img {
  filter: brightness(0) invert(1);
}

.nft-role-mini-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: -2px;
  margin-right: 4px;
  filter: brightness(0) invert(1);
}

.lookup-msg {
  font-size: 11px;
  font-weight: 700;
  margin-top: 5px;
  min-height: 16px;
}
.lookup-msg.found {
  color: #10B981;
}
.lookup-msg.info {
  color: var(--text-muted);
}

.bonus-finish-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pop-in { animation: pop-in 0.5s var(--spring) both; }
.fade-up { animation: fadeInUp 0.4s var(--ease) both; }

/* ═══════════════════════════════════════════════
   RESPONSIVE SYSTEM
   ═══════════════════════════════════════════════ */

/* Mobile extra-small: <= 375px */
@media (max-width: 375px) {
  .screen {
    padding: 16px 12px 48px;
  }
  .welcome-layout {
    padding-top: 6px;
  }
  .main-brand-logo {
    max-width: 210px;
    max-height: 72px;
  }
  .welcome-quote {
    gap: 2px;
    margin-bottom: 14px;
  }
  .quote-black, .quote-red {
    font-size: 12px;
  }
  .welcome-headline {
    font-size: 21px;
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .welcome-sub {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 16px;
  }
  .welcome-badges {
    gap: 6px;
    margin-bottom: 20px;
  }
  .badge-red {
    font-size: 9px;
    padding: 7px 8px;
    min-width: 85px;
  }
  .btn {
    padding: 13px 16px;
    font-size: 13px;
  }
  .btn-outline-bonus {
    padding: 12px 14px;
    font-size: 12px;
  }
  #nft-card.wallet-pass {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: unset;
  }
  .nft-inner {
    padding: 14px 14px 12px;
  }
  .nft-card-name {
    font-size: 14px;
  }
  .pass-tag-role, .pass-tag-spec, .pass-tag-dni {
    font-size: 8px;
    padding: 2px 4px;
  }
  .role-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .role-card {
    padding: 16px 14px;
  }
  .q-card {
    padding: 14px 12px;
  }
  .q-text {
    font-size: 13.5px;
  }
  .opt-btn {
    padding: 12px 12px;
    font-size: 12px;
  }
  .opt-letter {
    min-width: 26px;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* Mobile regular: 376px - 540px */
@media (min-width: 376px) and (max-width: 540px) {
  .screen {
    padding: 22px 16px 55px;
  }
  .welcome-headline {
    font-size: 26px;
    line-height: 1.18;
  }
  .welcome-sub {
    font-size: 13.5px;
  }
  .badge-red {
    font-size: 10.5px;
    padding: 8px 12px;
  }
  .role-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .btn {
    padding: 15px 20px;
    font-size: 14px;
  }
  #nft-card.wallet-pass {
    width: 100%;
    max-width: 350px;
  }
}

/* Tablets and larger: >= 541px */
@media (min-width: 541px) {
  .screen {
    padding: 36px 24px 65px;
    align-items: center;
  }
  .welcome-headline {
    font-size: 34px;
    line-height: 1.18;
  }
  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-buttons {
    flex-direction: row;
  }
  .cta-buttons .btn {
    flex: 1;
  }
}

/* Desktop and Large Screens: >= 992px */
@media (min-width: 992px) {
  .screen-content {
    max-width: 520px;
  }
}
