/*
  RIFA · SISTEMA
  Identidad visual: premium automotriz — rojo caramelo, dorado, negro carbón
  Tipografía: Inter + display weights
*/

/* ─── Reset & Base ─── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #fff8f0;
  color: #1c0a00;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

::selection {
  background: #1c0a00;
  color: #fff8f0;
}

/* ─── Container ─── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Tipografía ─── */

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-center { text-align: center; }
.text-muted { color: #f59e0b; }
.text-sm { font-size: 0.875rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ─── Header/Nav ─── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1c0a00;
  color: #fff8f0;
  border-bottom: 3px solid #dc2626;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: #fff8f0;
}

.header-logo .logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.admin-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin: 0 20px;
  font-size: 1.8rem;
  line-height: 0.3;
  color: #dc2626;
  user-select: none;
  cursor: default;
}

.admin-dots .dot {
  transition: color 0.15s;
}

.admin-dots .dot:hover {
  color: #ef4444;
}

#adminTrigger {
  cursor: pointer;
  color: #f59e0b;
  font-size: 2.4rem;
}

#adminTrigger:hover {
  color: #fbbf24;
}

.header-logo .logo-star {
  display: none;
}

.header-logo em {
  font-style: normal;
  color: #dc2626;
}

.header-nav {
  display: flex;
  list-style: none;
  gap: 2px;
}

.header-nav a {
  display: block;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4a853;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
}

.header-nav a:hover {
  color: #fff8f0;
  background: rgba(255,255,255,0.06);
}

.header-nav a.active {
  color: #fff8f0;
  background: #dc2626;
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff8f0;
  font-size: 1.5rem;
  padding: 4px;
  cursor: pointer;
}

/* ─── Hero ─── */

.hero {
  background: #1c0a00;
  color: #fff8f0;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.6) 50%, rgba(26,26,26,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,107,53,0.03) 40px,
    rgba(255,107,53,0.03) 41px
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: #dc2626;
  color: #1c0a00;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: #dc2626;
}

.hero p {
  color: #d4a853;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: #dc2626;
  color: #1c0a00;
  box-shadow: 4px 4px 0 #1c0a00;
}

.btn-primary:hover {
  background: #ef4444;
  box-shadow: 6px 6px 0 #1c0a00;
}

.btn-outline {
  background: transparent;
  border: 2px solid #1c0a00;
  color: #1c0a00;
  box-shadow: 3px 3px 0 #1c0a00;
}

.btn-outline:hover {
  background: #1c0a00;
  color: #fff8f0;
  box-shadow: 5px 5px 0 #1c0a00;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid #fff8f0;
  color: #fff8f0;
}

.btn-outline-light:hover {
  background: #fff8f0;
  color: #1c0a00;
}

.btn-success {
  background: #22c55e;
  color: #1c0a00;
  box-shadow: 3px 3px 0 #1c0a00;
}

.btn-success:hover { background: #16a34a; }

.btn-danger {
  background: #ef4444;
  color: #fff8f0;
  box-shadow: 3px 3px 0 #1c0a00;
}

.btn-danger:hover { background: #dc2626; }

.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* ─── Sections ─── */

.section {
  padding: 64px 0;
}

.section-dark {
  background: #1c0a00;
  color: #fff8f0;
}

.section-light {
  background: #f0ede8;
}

.section-label {
  display: inline-block;
  background: #1c0a00;
  color: #fff8f0;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-dark .section-label { background: #dc2626; color: #1c0a00; }

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-sub {
  color: #f59e0b;
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 40px;
}

.section-dark .section-sub { color: #d4a853; }

/* ─── Prize Card ─── */

.prize-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.prize-visual {
  aspect-ratio: 1;
  background: #1c0a00;
  border: 3px solid #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.prize-info h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.prize-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
  margin-bottom: 4px;
}

.prize-label {
  font-size: 0.85rem;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Stats (home) ─── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.stat-box {
  border: 2px solid #1c0a00;
  padding: 20px;
  text-align: center;
}

.stat-box-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2px;
}

.stat-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f59e0b;
}

/* ─── Progress ─── */

.progress-track {
  max-width: 480px;
  margin: 0 auto;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar {
  height: 24px;
  background: #e0dcd5;
  border: 2px solid #1c0a00;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #dc2626;
  transition: width 0.6s ease;
}

/* ─── Steps ─── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-item {
  border: 2px solid #1c0a00;
  padding: 28px 20px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #dc2626;
  color: #1c0a00;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 10px;
}

.step-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  color: #f59e0b;
  line-height: 1.5;
}

/* ─── Page Header ─── */

.page-header {
  background: #1c0a00;
  color: #fff8f0;
  padding: 48px 0 40px;
  border-bottom: 4px solid #dc2626;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 6px;
}

.page-header p {
  color: #d4a853;
  font-size: 1rem;
  max-width: 520px;
}

/* ─── Tickets Grid ─── */

.tickets-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: #fff8f0;
  border: 2px solid #1c0a00;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.selected-count {
  font-weight: 800;
  font-size: 0.9rem;
}

.selected-count span {
  color: #dc2626;
  font-size: 1.2rem;
}

.ticket-legend {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legend-item { display: flex; align-items: center; gap: 6px; }

.legend-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #1c0a00;
}

.legend-dot.available { background: #fff8f0; }
.legend-dot.selected { background: #dc2626; }
.legend-dot.reserved { background: #fbbf24; }
.legend-dot.sold { background: #1c0a00; }

.toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

#ticketsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 4px;
  margin-bottom: 16px;
}

.ticket-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
  border: 2px solid #ccc;
  background: #fff8f0;
  color: #1c0a00;
  user-select: none;
}

.ticket-item:hover:not(.sold):not(.reserved) {
  border-color: #dc2626;
  background: #fff5f0;
}

.ticket-item.available { border-color: #ddd; background: #fff8f0; }
.ticket-item.selected { border-color: #dc2626; background: #dc2626; color: #1c0a00; }
.ticket-item.reserved { border-color: #fbbf24; background: #fef3c7; color: #92400e; cursor: not-allowed; opacity: 0.7; }
.ticket-item.sold { border-color: #1c0a00; background: #1c0a00; color: #fff8f0; cursor: not-allowed; }

.tickets-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 2px solid #1c0a00;
  background: #fff8f0;
}

/* ─── Form elements ─── */

.input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #1c0a00;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff8f0;
  color: #1c0a00;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
}

.input:focus {
  border-color: #dc2626;
}

.input-sm { padding: 7px 12px; font-size: 0.8rem; }
.input-lg { padding: 12px 16px; font-size: 1rem; }

textarea.input {
  resize: vertical;
  min-height: 80px;
}

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

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: #1c0a00;
}

/* ─── Alerts ─── */

.alert {
  padding: 14px 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 2px solid #1c0a00;
  font-weight: 500;
}

.alert-warning {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

.alert-danger {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert-success {
  background: #d1fae5;
  border-color: #22c55e;
  color: #065f46;
}

/* ─── Modal ─── */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.7);
}

.modal-content {
  position: relative;
  background: #fff8f0;
  border: 3px solid #1c0a00;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-sm { max-width: 440px; }

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f59e0b;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.modal-close:hover { color: #1c0a00; }

.modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.confirm-numbers { margin: 20px 0; }
.confirm-label { margin-bottom: 8px; font-size: 0.85rem; color: #f59e0b; }

.numbers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.number-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 2px solid #1c0a00;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1c0a00;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ─── Maquinita ─── */

.machine-container {
  max-width: 600px;
  margin: 0 auto;
}

.machine-display {
  border: 3px solid #1c0a00;
  background: #fff8f0;
  padding: 48px 32px;
  text-align: center;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-icon { font-size: 4rem; opacity: 0.15; margin-bottom: 12px; }
.machine-placeholder p { color: #d4a853; font-weight: 500; }

.machine-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.machine-num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c0a00;
  color: #dc2626;
  font-size: 1rem;
  font-weight: 900;
  animation: popIn 0.25s ease;
}

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

.machine-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.btn-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  border: 2px solid #1c0a00;
  background: #fff8f0;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-machine:hover {
  background: #1c0a00;
  color: #fff8f0;
}

.btn-machine.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #1c0a00;
}

.btn-machine-num { font-size: 1.5rem; font-weight: 900; }
.btn-machine-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.machine-total {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.machine-total span { color: #dc2626; }

.machine-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ─── Timer ─── */

.timer-block {
  text-align: center;
  border: 2px solid #1c0a00;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff8f0;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  margin-bottom: 4px;
}

.timer-display {
  font-size: 3rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1c0a00;
}

.timer-bar {
  height: 6px;
  background: #e0dcd5;
  margin-top: 8px;
  border: 1px solid #1c0a00;
}

.timer-fill {
  height: 100%;
  background: #dc2626;
  transition: width 1s linear;
}

/* ─── Checkout ─── */

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.checkout-card {
  border: 2px solid #1c0a00;
  padding: 20px;
  background: #fff8f0;
}

.checkout-card h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1c0a00;
}

.checkout-info p {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.checkout-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}

.total-final {
  border-top: 2px solid #1c0a00;
  margin-top: 8px;
  padding-top: 10px;
  font-size: 1.1rem;
  font-weight: 900;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.checkout-bank {
  border: 2px solid #1c0a00;
  padding: 20px;
  background: #fff8f0;
  margin-top: 16px;
}

.checkout-bank h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1c0a00;
}

.bank-card {
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 10px;
  background: #fefefe;
}

.bank-name {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #dc2626;
}

.bank-row {
  font-size: 0.85rem;
  margin-bottom: 3px;
}

/* ─── Pago ─── */

.pago-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pago-card {
  border: 2px solid #1c0a00;
  padding: 20px;
  background: #fff8f0;
}

.pago-card h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1c0a00;
}

.pago-card-full { grid-column: 1 / -1; }

.pago-details p { font-size: 0.85rem; margin-bottom: 6px; }
.pago-numbers { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }

.pago-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid #1c0a00;
  font-weight: 700;
}

.pago-total strong { color: #dc2626; }

.bank-card {
  padding: 14px;
  border: 2px solid #ddd;
  margin-bottom: 10px;
}

.bank-card:last-child { margin-bottom: 0; }

.bank-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.bank-head .bank-icon { font-size: 1.2rem; }

.bank-body p {
  font-size: 0.8rem;
  margin-bottom: 2px;
  color: #555;
}

/* File upload */

.file-zone {
  border: 2px dashed #1c0a00;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.file-zone:hover {
  background: #f0ede8;
}

.file-zone-icon { font-size: 2.5rem; margin-bottom: 8px; opacity: 0.3; }
.file-zone-text { font-weight: 700; color: #555; margin-bottom: 2px; }
.file-zone-hint { font-size: 0.75rem; color: #aaa; }

.file-preview {
  text-align: center;
}

.file-preview img {
  max-width: 100%;
  max-height: 280px;
  border: 2px solid #1c0a00;
  margin-bottom: 12px;
}

/* ─── Checador ─── */

.checar-box {
  max-width: 480px;
  margin: 0 auto 32px;
}

.checar-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.checar-quickies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.checar-result {
  max-width: 400px;
  margin: 0 auto;
  border: 3px solid #1c0a00;
  background: #fff8f0;
}

.checar-head {
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #1c0a00;
  background: #f0ede8;
}

.checar-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.checar-badge {
  display: inline-block;
  padding: 4px 16px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success { background: #22c55e; color: #1c0a00; }
.badge-warning { background: #fbbf24; color: #1c0a00; }
.badge-danger { background: #ef4444; color: #fff8f0; }
.badge-secondary { background: #ccc; color: #1c0a00; }

.checar-body { padding: 20px; text-align: center; }

.checar-available { color: #16a34a; font-weight: 700; margin-bottom: 12px; }
.checar-reserved { color: #d97706; font-weight: 700; }
.checar-sold { color: #dc2626; font-weight: 700; }
.checar-pending { color: #d97706; font-weight: 700; }
.checar-buyer-info { margin-top: 8px; font-size: 0.85rem; color: #f59e0b; }

/* ─── Toast ─── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: #1c0a00;
  color: #fff8f0;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #dc2626;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 300;
  animation: slideUp 0.25s ease;
}

.toast button {
  background: none;
  border: none;
  color: #fff8f0;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
}

.toast button:hover { opacity: 1; }

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

/* ─── Misc ─── */

.loading {
  text-align: center;
  padding: 40px;
  color: #aaa;
  font-size: 0.9rem;
}

.error-text { color: #ef4444; }

/* ─── Footer ─── */

.footer {
  background: #1c0a00;
  color: #666;
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  border-top: 3px solid #dc2626;
}

/* ─── Expired ─── */

.expired-icon {
  font-size: 5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .prize-block { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pago-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1c0a00;
    flex-direction: column;
    padding: 8px;
    border-bottom: 3px solid #dc2626;
  }
  .header-nav.active { display: flex; }
  .header-toggle { display: block; }

  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.6rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-box { padding: 14px; }
  .stat-box-num { font-size: 1.8rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.6rem; }
  #ticketsGrid { grid-template-columns: repeat(10, 1fr); gap: 3px; }
  .ticket-item { font-size: 0.6rem; }
  .tickets-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left { flex-direction: column; align-items: stretch; gap: 8px; }
  .modal-content { padding: 20px; }
  .machine-controls { flex-direction: column; align-items: stretch; }
}
