@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600;700&family=Manrope:wght@600;700&display=swap');

:root {
  /* Paleta Corporativa Azul CRM */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #DBEAFE;

  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --card: #FFFFFF;

  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;

  /* Estados Semánticos */
  --success: #0F766E;
  --success-light: #CCFBF1;
  --warning: #B45309;
  --warning-light: #FEF3C7;
  --error: #B91C1C;
  --error-light: #FEE2E2;
  --info: #0369A1;
  --info-light: #DBEAFE;

  /* Tipografía */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometría y Sombras Discretas */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-modal: 0 12px 28px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);

  /* Curva y Duraciones de Animación */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-btn: 150ms;
  --dur-card: 200ms;
  --dur-modal: 250ms;
  --dur-nav: 300ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--surface);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 40px;
}

/* UTILIDADES Y TRANSICIONES ENTRE PANTALLAS (300ms) */
.hidden {
  display: none !important;
}

section:not(.hidden) {
  animation: screenFadeSlide var(--dur-nav) var(--ease) forwards;
}

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

/* ==================== 1. PANTALLA DE LOGIN ==================== */
.login-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
}

.brand-minimal {
  text-align: center;
  margin-bottom: 28px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.brand-minimal h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.brand-minimal p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.auth-tab {
  font-family: var(--font-body);
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-btn) var(--ease),
              color var(--dur-btn) var(--ease),
              box-shadow var(--dur-btn) var(--ease);
}

.auth-tab.active {
  background: var(--card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.input-minimal {
  font-family: var(--font-body);
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 400;
  outline: none;
  transition: border-color var(--dur-btn) var(--ease),
              box-shadow var(--dur-btn) var(--ease),
              background-color var(--dur-btn) var(--ease);
}

.input-minimal:hover {
  border-color: #CBD5E1;
}

.input-minimal:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-primary {
  font-family: var(--font-body);
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid transparent;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease),
              box-shadow var(--dur-btn) var(--ease);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-gold {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-gold:hover {
  background: var(--primary-hover);
}

.biometric-box {
  text-align: center;
  padding: 20px 8px;
}

.bio-circle {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background-color var(--dur-btn) var(--ease),
              border-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.bio-circle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.bio-circle:active {
  transform: scale(0.98);
}

.auth-notice {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== HEADER CORPORATIVO SUPERIOR ==================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.user-Meta {
  display: flex;
  flex-direction: column;
}

.user-greeting {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.points-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-pill {
  font-family: var(--font-mono);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 7px 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  transition: background-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.points-pill:hover {
  background: #BFDBFE;
}

.points-pill:active {
  transform: scale(0.98);
}

.points-pill small {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--info);
}

/* ==================== 2. PANTALLA PRINCIPAL (HOME EJECUTIVO) ==================== */
.home-container {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.big-option-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  text-align: left;
  width: 100%;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-card) var(--ease),
              box-shadow var(--dur-card) var(--ease),
              transform var(--dur-btn) var(--ease),
              background-color var(--dur-card) var(--ease);
}

.big-option-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  background: var(--surface);
}

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

.option-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.icon-premios,
.icon-jugada,
.icon-tickets {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.option-info h2 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.option-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.winner-Floating-badge {
  font-family: var(--font-mono);
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--warning-light);
  border: 1px solid rgba(180, 83, 9, 0.25);
  color: var(--warning);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.active-tickets-floating-badge {
  font-family: var(--font-mono);
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--info-light);
  border: 1px solid rgba(3, 105, 161, 0.2);
  color: var(--info);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

/* ==================== SUB-ENCABEZADOS DE MÓDULOS ==================== */
.sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--bg);
}

.btn-back {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background-color var(--dur-btn) var(--ease),
              border-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.btn-back:hover {
  background: var(--surface);
  border-color: #CBD5E1;
}

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

.sub-header h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

/* ==================== 3. MÓDULO VER PREMIOS ==================== */
.consensus-banner {
  margin: 0 20px 14px;
  padding: 12px 14px;
  background: var(--info-light);
  border: 1px solid rgba(3, 105, 161, 0.2);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--info);
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  padding: 0 20px 14px;
  overflow-x: auto;
}

.pill-btn {
  font-family: var(--font-body);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-btn) var(--ease);
}

.pill-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
}

.results-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lottery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-card) var(--ease),
              box-shadow var(--dur-card) var(--ease);
}

.lottery-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-card-hover);
}

.lottery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lottery-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lottery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary) !important;
}

.lottery-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.lottery-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.verified-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.verified-ok {
  background: var(--success-light);
  color: var(--success);
}

.verified-wait {
  background: var(--warning-light);
  color: var(--warning);
}

.bolos-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bolo {
  font-family: var(--font-mono);
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.bolo.primera {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.bolo-pos {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

/* ==================== 4. MÓDULO HACER JUGADA ==================== */
.play-section {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mode-switch-pill {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius);
}

.mode-switch-btn {
  font-family: var(--font-body);
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-btn) var(--ease);
}

.mode-switch-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
}

.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-quick-tool {
  font-family: var(--font-body);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: background-color var(--dur-btn) var(--ease),
              border-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.btn-quick-tool:hover {
  background: var(--surface);
  border-color: #CBD5E1;
}

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

.hot-cold-drawer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.hc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hc-chip {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-btn) var(--ease);
}

.hc-chip.hot {
  background: var(--warning-light);
  border-color: rgba(180, 83, 9, 0.25);
  color: var(--warning);
}

.hc-chip.cold {
  background: var(--info-light);
  border-color: rgba(3, 105, 161, 0.25);
  color: var(--info);
}

.hc-chip:active {
  transform: scale(0.98);
}

.time-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-sim-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.time-sim-btn {
  font-family: var(--font-mono);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-btn) var(--ease);
}

.time-sim-btn.active {
  border-color: var(--primary);
  color: #FFFFFF;
  background: var(--primary);
  font-weight: 600;
}

.lottery-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
}

.lot-select-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-card) var(--ease),
              background-color var(--dur-card) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.lot-select-chip:hover {
  border-color: #CBD5E1;
  background: var(--surface);
}

.lot-select-chip:active {
  transform: scale(0.98);
}

.lot-select-chip.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.play-builder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.detected-badge {
  font-family: var(--font-mono);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--info-light);
  color: var(--info);
  margin-bottom: 10px;
}

/* 3 CASILLAS DE BOLOS (QUINIELA / PALÉ / TRIPLETA) */
.triple-bolos-inputs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.bolo-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bolo-input-wrap label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-align: center;
}

.bolo-box-input {
  font-family: var(--font-mono);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 8px;
  letter-spacing: 0.05em;
  background: var(--surface);
}

.bolo-sep {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 10px;
}

.play-monto-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#input-puntos {
  font-family: var(--font-mono);
  font-weight: 600;
}

.btn-add-line {
  font-family: var(--font-body);
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.btn-add-line:hover {
  background: var(--primary-hover);
}

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

.ticket-cart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.btn-remove {
  background: var(--error-light);
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: var(--radius-sm);
  color: var(--error);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 8px;
  transition: background-color var(--dur-btn) var(--ease),
              transform var(--dur-btn) var(--ease);
}

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

/* ==================== MODALES CORPORATIVOS (250ms) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: modalFadeIn var(--dur-modal) var(--ease) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalSlideUp var(--dur-modal) var(--ease) forwards;
}

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

.winner-modal {
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.winner-trophy {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--success-light);
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.winner-ticket-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
  text-align: left;
}

.bank-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.84rem;
  box-shadow: var(--shadow-modal);
  z-index: 200;
  animation: modalFadeIn var(--dur-modal) var(--ease) forwards;
}

/* ==================== TICKET DIGITAL IMPRESO (FORMATO CORPORATIVO LIMPIO) ==================== */
.thermal-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 24px;
}

.rd-thermal-ticket {
  background: var(--card);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 22px 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}

.receipt-header {
  text-align: center;
  margin-bottom: 12px;
}

.receipt-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.receipt-header .sub-banca {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.receipt-status-stamp {
  font-family: var(--font-body);
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: var(--info-light);
  color: var(--info);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.receipt-divider {
  border-top: 1px dashed var(--border);
  margin: 10px 0;
}

.receipt-double-divider {
  border-top: 2px solid var(--text);
  margin: 10px 0;
}

.receipt-meta {
  font-size: 0.76rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-muted);
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.8125rem;
}

.receipt-table th {
  font-family: var(--font-body);
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  color: var(--text-muted);
}

.receipt-table td {
  padding: 7px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px dashed #F1F5F9;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 0;
  color: var(--text);
}

.receipt-barcode {
  text-align: center;
  margin-top: 12px;
  padding-top: 8px;
}

.barcode-bars {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: -1px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  user-select: none;
}

.barcode-serial {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 4px;
  color: var(--text-muted);
}

.receipt-footer-note {
  font-family: var(--font-body);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ==================== CARGA DIRECTA DE COMPROBANTE Y CHAT DE SOPORTE CORPORATIVO ==================== */
.upload-dropzone {
  border: 1.5px dashed #CBD5E1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: border-color var(--dur-btn) var(--ease),
              background-color var(--dur-btn) var(--ease);
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-preview-wrap {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-preview-wrap img {
  height: 64px;
  width: auto;
  max-width: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.btn-support-home {
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-card) var(--ease),
              background-color var(--dur-card) var(--ease),
              transform var(--dur-btn) var(--ease);
}

.btn-support-home:hover {
  border-color: var(--primary);
  background: var(--card);
}

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

.support-unread-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card);
}

.support-chat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
  height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-bubble.admin {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-bubble.usuario {
  align-self: flex-end;
  background: var(--primary);
  color: #FFFFFF;
}

.chat-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  opacity: 0.75;
}
