/* ==========================================================================
   CHECKOUT FLOW - FULL-WIDTH IMMERSIVE MODAL & 4-STEP CHECKOUT
   Aligned with FLUJO_PUBLICO_COMPRA.md specifications
   ========================================================================== */

/* Full-Width Modal Dialog Overlay */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.checkout-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Full Width Modal Window */
.checkout-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: #0d0d0d;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform var(--transition-bounce), opacity var(--transition-normal);
  opacity: 0;
}

.checkout-modal-backdrop.active .checkout-modal {
  transform: none;
  opacity: 1;
}

/* Modal Floating Close Button (Solo Cruz) */
.modal-close-floating-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  cursor: pointer;
  z-index: 100;
  transition: all var(--transition-fast);
}

.modal-close-floating-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: rotate(90deg) scale(1.05);
}

/* Modal Body - Full Viewport Container (No screen scroll) */
.modal-body {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-view {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.25s ease-in-out;
}

.step-view.active {
  display: flex;
}

/* Paso 1: Fullscreen sin scroll de pantalla */
.step-view#step-view-1 {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Paso 2: El contenedor ocupa el 100% del ancho de la ventana para que el scroll esté al borde de la pantalla */
.step-view#step-view-2 {
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 32px 48px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  box-sizing: border-box;
}

/* Pasos 3 y 4: Contenedor con scroll al borde de la pantalla y contenido centrado */
.step-view#step-view-3,
.step-view#step-view-4 {
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 24px 48px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  box-sizing: border-box;
}

.step-view#step-view-4 .confirmation-view {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

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

/* ==========================================================================
   PASO 1: FULLSCREEN NO-SCROLL LAYOUT (3 COLUMNS)
   ========================================================================== */
.step1-fullscreen-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  align-items: stretch;
  position: relative;
}

/* Columna 1 / Izquierda: Card fija pegada a la izquierda (Sin padding exterior, foto al borde) */
.step1-left-sidebar-card {
  width: 300px;
  height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

/* Aspect ratio vertical estricto (3:4) - Llega hasta los bordes superior, izquierdo y derecho */
.step1-poster-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  background: #000000;
  position: relative;
  flex-shrink: 0;
}

.step1-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.step1-left-sidebar-card:hover .step1-poster-img {
  transform: scale(1.02);
}

.step1-info-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.step1-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step1-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.step1-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.step1-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-line);
  padding-top: 10px;
}

.step1-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
}

.step1-meta-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-dim);
}

.step1-meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 1px;
}

.step1-meta-val {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
}

.step1-meta-sub {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
}

.step1-producer-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-line);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Columna 2 / Centro: Canvas Amplio de Navegación, Zoom y Mapa Interactivo
   ========================================================================== */
.step1-center-canvas {
  flex: 1;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(26, 26, 26, 0.6) 0%, #0a0a0a 100%);
  user-select: none;
}

/* Controles de Zoom Flotantes (Parados a la derecha) */
.stage-zoom-controls {
  position: absolute;
  top: 20px;
  right: 24px;
  left: auto;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.zoom-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #22c55e;
}

.zoom-level-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 0;
  text-align: center;
  user-select: none;
}

/* Viewport y Contenido Escalable */
.stage-viewport-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}

.stage-scalable-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 620px;
  width: 90%;
  transform-origin: center center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge Superior Escenario */
.stage-graphic-badge {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  padding: 12px 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.stage-graphic-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #ffffff;
}

.sparkle-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

/* =========================================================================
   ARENA STADIUM MAP (ESCENARIO + 3 ZONAS) & VISTA DE BUTACAS
   ========================================================================= */

.arena-overview-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arena-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.arena-map-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.arena-map-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.arena-svg-container {
  width: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.5);
}

.arena-stadium-svg {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
}

/* Elementos del mapa SVG */
.arena-track-boundary {
  fill: #111111;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.backstage-poly {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

/* Zona 3: Platea Numerada (Terracota / Naranja - Ref. Imagen 2) */
.platea-poly {
  fill: #c25726;
  stroke: #ea580c;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arena-zone.zone-platea {
  cursor: pointer;
}

.arena-zone.zone-platea:hover .platea-poly,
.arena-zone.zone-platea.highlight .platea-poly,
.arena-zone.zone-platea.active-sector .platea-poly {
  fill: #e06830;
  stroke: #ff914d;
  filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.6));
}

.platea-text-main {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-anchor: middle;
  pointer-events: none;
}

.platea-text-sub {
  fill: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-anchor: middle;
  pointer-events: none;
}

.platea-text-side {
  fill: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-anchor: middle;
  pointer-events: none;
}

/* Zona 2: Campo General (Azul - Ref. Imagen 2) */
.campo-poly {
  fill: #27659a;
  stroke: #4d92d4;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arena-zone.zone-campo {
  cursor: pointer;
}

.arena-zone.zone-campo:hover .campo-poly,
.arena-zone.zone-campo.highlight .campo-poly,
.arena-zone.zone-campo.active-sector .campo-poly {
  fill: #347cb8;
  stroke: #7ec0f8;
  filter: drop-shadow(0 0 10px rgba(52, 124, 184, 0.6));
}

.campo-text-main {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-anchor: middle;
  pointer-events: none;
}

.campo-text-sub {
  fill: #bfdbfe;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-anchor: middle;
  pointer-events: none;
}

.campo-text-price {
  fill: #93c5fd;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

/* Zona 1: Campo VIP (Azul Intenso frente a escenario - Ref. Imagen 2) */
.campo-vip-poly {
  fill: #1d4ed8;
  stroke: #60a5fa;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arena-zone.zone-campo-vip {
  cursor: pointer;
}

.arena-zone.zone-campo-vip:hover .campo-vip-poly,
.arena-zone.zone-campo-vip.highlight .campo-vip-poly,
.arena-zone.zone-campo-vip.active-sector .campo-vip-poly {
  fill: #2563eb;
  stroke: #93c5fd;
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.7));
}

.vip-text-main {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-anchor: middle;
  pointer-events: none;
}

.vip-text-price {
  fill: #dbeafe;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

/* Escenario (STAGE) - Ref. Imagen 2 */
.stage-rect {
  fill: #18181b;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
}

.stage-text-title {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-anchor: middle;
}

.stage-text-sub {
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

/* Tiras de Leyenda Inferior */
.arena-legend-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.arena-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.arena-legend-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.swatch-vip {
  background: #2563eb;
  border: 1px solid #60a5fa;
}

.swatch-campo {
  background: #27659a;
  border: 1px solid #4d92d4;
}

.swatch-platea {
  background: #c25726;
  border: 1px solid #ea580c;
}

.legend-name {
  font-weight: 700;
  color: #ffffff;
}

.legend-val {
  color: var(--text-dim);
  font-weight: 600;
}

/* =========================================================================
   VISTA 2: SELECCIÓN DETALLADA DE BUTACAS (REF. IMAGEN 1)
   ========================================================================= */

.arena-seats-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInSeats 0.25s ease forwards;
}

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

.seat-view-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px 12px;
  text-align: left;
}

/* Botón Volver Flotante Fijo (A la izquierda) */
.floating-back-btn {
  position: absolute;
  top: 20px;
  left: 24px;
  right: auto;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-line);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.floating-back-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateX(-2px);
}

.floating-back-btn:hover svg {
  stroke: #000000;
}

.mini-stadium-indicator {
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.seat-view-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seat-view-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0;
}

.seat-view-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* Marco de Butacas estilo imagen 1 */
.seat-matrix-frame {
  border: 2px solid rgba(196, 88, 38, 0.6);
  border-radius: 14px;
  padding: 22px 18px 16px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.6);
  overflow-x: auto;
}

.seat-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 520px;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.seat-row-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  width: 24px;
  text-align: center;
  user-select: none;
}

.seat-row-seats {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seat-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.seat-dot.available {
  background: #ea580c;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.3);
}

.seat-dot.available:hover {
  transform: scale(1.4);
  background: #ff7828;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.8);
  z-index: 2;
}

.seat-dot.occupied {
  background: #3f3f46;
  cursor: not-allowed;
  opacity: 0.45;
}

.seat-dot.selected {
  background: #22c55e !important;
  box-shadow: 0 0 10px #22c55e !important;
  transform: scale(1.25);
  z-index: 2;
}

.seat-matrix-stage-indicator {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
}

.seat-legend-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.seat-dot-sample {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.seat-dot-available {
  background: #ea580c;
}

.seat-dot-selected {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.seat-dot-occupied {
  background: #3f3f46;
  opacity: 0.5;
}

.seat-selection-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-align: center;
}

.seat-status-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

/* Paneles de Sectores de Pie (Campo VIP y Campo General) */
.standing-zone-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  padding: 10px 6px;
  box-sizing: border-box;
}

.standing-zone-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-vip {
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.badge-campo {
  background: rgba(39, 101, 154, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(77, 146, 212, 0.5);
  box-shadow: 0 0 12px rgba(39, 101, 154, 0.25);
}

.standing-zone-card {
  width: 100%;
  border-radius: 14px;
  padding: 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.standing-zone-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
}

.standing-zone-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 330px;
  line-height: 1.35;
  margin: 0;
}

.standing-stepper-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.standing-zone-price {
  font-size: 1.18rem;
  font-weight: 900;
  color: #ffffff;
}


.boxes-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Hint flotante inferior */
.stage-canvas-hint {
  position: absolute;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   Columna 3 / Derecha: Zona Diferenciada Más Ancha (460px) con Cards
   ========================================================================== */
.step1-right-sidebar-zone {
  width: 460px;
  flex-shrink: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  z-index: 20;
  box-sizing: border-box;
  overflow: hidden;
}

.step1-drawer-sheet-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.step1-right-sidebar-header {
  padding-bottom: 16px;
  padding-right: 48px;
}

.step1-right-sidebar-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.step1-right-sidebar-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin: 0;
}

.ticket-cards-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Individual Ticket Cards en el Sidebar con Espacio Amplio */
.ticket-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ticket-card:hover,
.ticket-card.highlighted {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.ticket-card.selected {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ticket-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ticket-top-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-sector-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.ticket-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.ticket-pricing-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.ticket-price-total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.ticket-price-breakdown {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.2;
}

.step1-sidebar-fee-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 2px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Chip Disponible sin puntito */
.ticket-avail-chip {
  font-size: 0.65rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.ticket-pricing-action {
  flex-shrink: 0;
}

/* Quantity Stepper con Más Separación entre + y - */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  gap: 12px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  user-select: none;
}

.stepper-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.stepper-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.stepper-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  color: #ffffff;
}

/* Sidebar Footer con Total y Botón Continuar */
.step1-right-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.step1-sidebar-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.step1-total-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.step1-sidebar-total-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.step1-sidebar-total-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.step1-btn-continue {
  width: auto;
  flex-shrink: 0;
  min-width: 130px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* Inline Actions para Pasos 2 y 3 (Sin separador) */
.step-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

/* Desktop vs Mobile Helpers */
.mobile-drawer-toggle-btn,
.mobile-drawer-trigger-bar,
.step1-mobile-meta-sub {
  display: none;
}

/* Responsive: En pantallas <= 1300px, transformar el sidebar izquierdo en barra superior compacta */
@media (max-width: 1300px) {
  .step1-left-sidebar-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 56px;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-line);
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 40;
    padding: max(14px, env(safe-area-inset-top, 14px)) 56px 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
  }

  .step1-poster-wrap {
    display: none !important;
  }

  .desktop-only-meta {
    display: none !important;
  }

  .step1-info-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    overflow: visible;
  }

  .step1-mobile-top-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    width: 100%;
  }

  .step1-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
    text-align: left;
    letter-spacing: -0.01em;
  }

  .step1-mobile-meta-sub {
    display: block !important;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    text-align: left;
    line-height: 1.25;
  }

  .modal-close-floating-btn {
    top: max(11px, env(safe-area-inset-top, 11px));
    right: 14px;
    width: 36px;
    height: 36px;
    z-index: 60;
  }
}

/* Entre 901px y 1300px: Mantener canvas central y sidebar derecho debajo de la barra superior */
@media (max-width: 1300px) and (min-width: 901px) {
  .step1-center-canvas {
    margin-top: 58px;
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    max-height: calc(100dvh - 58px);
    flex: 1;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
  }

  .step1-right-sidebar-zone {
    margin-top: 58px;
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    max-height: calc(100dvh - 58px);
    width: 400px;
    border-left: 1px solid var(--border-line);
    padding: 20px 18px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .stage-scalable-content {
    max-width: 580px;
    width: 92%;
  }

  .step1-btn-continue {
    min-width: 120px;
    padding: 12px 18px;
    font-size: 0.92rem;
  }
}

@media (max-width: 1024px) and (min-width: 901px) {
  .step1-right-sidebar-zone {
    width: 350px;
    padding: 18px 14px 14px;
    box-sizing: border-box;
  }

  .stage-scalable-content {
    max-width: 500px;
    width: 95%;
  }

  .step1-sidebar-total-row {
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .step1-sidebar-total-label {
    font-size: 0.72rem;
  }

  .step1-sidebar-total-val {
    font-size: 1.35rem;
  }

  .step1-sidebar-fee-note {
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
  }

  .step1-btn-continue {
    min-width: 110px;
    padding: 11px 15px;
    font-size: 0.88rem;
    flex-shrink: 0;
  }
}

@media (max-width: 900px) {
  /* Pantalla completa sin scroll de ventana */
  .modal-body {
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .step-view#step-view-1 {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
  }

  .step1-fullscreen-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .step1-left-sidebar-card {
    height: calc(56px + env(safe-area-inset-top, 0px));
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    padding: max(8px, env(safe-area-inset-top, 8px)) 52px 8px 16px;
    justify-content: center;
    z-index: 40;
  }

  .step1-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 75px);
  }

  .step1-mobile-meta-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 75px);
  }

  /* 2. Mapa Interactivo Centrado y Nítido (sin blur ni capas oscuras encima) */
  .step1-center-canvas {
    position: absolute;
    top: calc(56px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    width: 100vw;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(26, 26, 26, 0.85) 0%, #0a0a0a 100%);
  }

  /* Botón Volver Flotante en Mobile: Esquina superior izquierda (fijo y visible) */
  .floating-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 6px;
    z-index: 45;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-full);
    pointer-events: auto;
  }

  .floating-back-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Controles de Zoom: Parados en la esquina superior derecha (fijo y visible) */
  .stage-zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 45;
    padding: 4px;
    gap: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
  }

  .zoom-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    border: none;
    cursor: pointer;
  }

  .zoom-btn:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .zoom-btn svg {
    width: 15px;
    height: 15px;
  }

  .zoom-level-badge {
    font-size: 0.625rem;
    font-weight: 800;
    padding: 1px 4px;
    min-width: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
  }

  .stage-viewport-wrapper {
    padding: 6px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    position: relative;
  }

  .stage-scalable-content {
    max-width: 355px;
    width: 95%;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform;
  }

  .stage-graphic-badge {
    padding: 6px 18px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 0;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
  }

  .stage-perspective-trapezoid {
    padding: 24px 18px 18px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(34, 197, 94, 0.28) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 3px solid #22c55e;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
  }

  .perspective-title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
  }

  .perspective-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .stage-floating-tooltip {
    top: 5px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .tooltip-badge {
    font-size: 0.5rem;
  }

  .tooltip-price {
    font-size: 0.68rem;
  }

  .stage-boxes-zone {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
  }

  .stage-boxes-strip {
    gap: 4px;
    margin-bottom: 6px;
  }

  .box-num-pill {
    padding: 5px 1px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
  }

  .box-num-pill span {
    font-size: 0.78rem;
    font-weight: 800;
  }

  .box-num-pill small {
    font-size: 0.48rem;
    color: var(--text-dim);
  }

  .boxes-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
  }

  .boxes-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
  }

  /* Ocultar hint en mobile para evitar cualquier superposición */
  .stage-canvas-hint {
    display: none !important;
  }

  /* =========================================================================
     BUTACAS EN MOBILE: NADA DE SCROLL HORIZONTAL, TODO VISIBLE Y APTO PARA ZOOM
     ========================================================================= */
  .arena-seats-view {
    width: 100%;
    max-width: 350px;
    gap: 6px;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .seat-view-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px 6px;
    gap: 12px;
  }

  .seat-view-info {
    text-align: left;
    align-items: flex-start;
  }

  .mini-stadium-indicator svg {
    width: 68px;
    height: 38px;
  }

  .seat-view-title {
    font-size: 0.95rem;
  }

  .seat-view-subtitle {
    font-size: 0.68rem;
  }

  .seat-matrix-frame {
    overflow: visible !important;
    overflow-x: visible !important;
    width: 100% !important;
    max-width: 345px;
    box-sizing: border-box;
    padding: 10px 4px 8px;
    border-radius: 12px;
  }

  .seat-matrix-grid {
    min-width: 0 !important;
    width: 100% !important;
    gap: 4px;
  }

  .seat-row {
    gap: 2px;
    width: 100%;
    justify-content: center;
  }

  .seat-row-label {
    width: 14px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
  }

  .seat-row-seats {
    gap: 2.5px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .seat-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
    border-radius: 50%;
    position: relative;
  }

  /* Área táctil ampliada invisible para facilitar el tap sin agrandar visualmente */
  .seat-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
  }

  .seat-matrix-stage-indicator {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 0.65rem;
    gap: 6px;
  }

  .seat-legend-row {
    gap: 10px;
    margin-top: 2px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .seat-legend-item {
    font-size: 0.68rem;
    gap: 4px;
  }

  .seat-dot-sample {
    width: 9px;
    height: 9px;
  }

  .seat-selection-status-bar {
    padding: 6px 12px;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 2px;
  }

  .seat-status-text {
    font-size: 0.76rem;
    text-align: center;
  }

  /* 3. Bottom Sheet Drawer: Panel deslizable */
  .step1-right-sidebar-zone {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.3s ease;
  }

  /* Backdrop oscuro semi-transparente cuando el drawer se expande */
  .step1-right-sidebar-zone.expanded {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.65) !important;
  }

  /* Panel Deslizable de Entradas:
     - Cuando está abajo (cerrado): se oculta la lista y queda visible únicamente la barra superior (44px) apoyada sobre el footer
     - Cuando sube (abierto): la barra superior viaja arriba como encabezado del modal con la lista visible debajo */
  .step1-drawer-sheet-body {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    background: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px 18px 0 0;
    flex-direction: column;
    overflow: hidden;
    z-index: 55;
    box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.9);
    pointer-events: auto;
    transform: translateY(calc(100% - 44px));
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  .step1-right-sidebar-zone.expanded .step1-drawer-sheet-body {
    transform: translateY(0);
  }

  /* Ocultar header de escritorio en mobile */
  .desktop-only-header {
    display: none !important;
  }

  /* LISTA DE ENTRADAS CON SCROLL INTERNO PROPIO */
  .ticket-cards-container {
    flex: 1 1 0px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 24px;
  }

  .ticket-card {
    padding: 10px 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
  }

  .ticket-title {
    font-size: 0.88rem;
  }

  .ticket-price-total {
    font-size: 1.05rem;
  }

  .stepper-btn {
    width: 28px;
    height: 28px;
    font-size: 1.05rem;
  }

  .quantity-stepper {
    gap: 8px;
    padding: 2px 4px;
  }

  /* FOOTER SIEMPRE FIJO AL PIE (Total de entradas, costo total y botón continuar) */
  .step1-right-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    padding: 0;
    pointer-events: auto;
  }

  /* Encabezado del modal en mobile: acompaña al subir y se apoya al bajar */
  .mobile-drawer-trigger-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    cursor: pointer;
    background: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
  }

  .drawer-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .drawer-chevron-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .drawer-chevron-pill svg {
    stroke: #000000;
    width: 14px;
    height: 14px;
  }

  .drawer-trigger-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
  }

  .drawer-trigger-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid #22c55e;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
  }

  /* Cuando el drawer está expandido, la flecha rota 180° */
  .step1-right-sidebar-zone.expanded .mobile-drawer-trigger-bar .drawer-chevron-pill {
    transform: rotate(180deg);
  }

  /* Fila de Total y Botón Continuar ajustados para evitar cualquier superposición con el fee */
  .step1-sidebar-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px max(10px, env(safe-area-inset-bottom, 10px));
    gap: 12px;
    box-sizing: border-box;
    min-height: 72px;
  }

  .step1-total-info-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
  }

  .step1-sidebar-total-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin-bottom: 1px;
    white-space: nowrap;
  }

  .step1-sidebar-total-val {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .step1-sidebar-fee-note {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 500;
    line-height: 1.15;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
  }

  .step1-btn-continue {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 120px;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
  }

  .step1-btn-continue:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
  }

  /* Pasos 2, 3 y 4 en mobile (con espacio superior para el botón de cerrar) */
  .step-view#step-view-2,
  .step-view#step-view-3,
  .step-view#step-view-4 {
    padding: 72px 16px 28px !important;
    gap: 18px;
  }

  /* Mobile: Inputs apilados estrictamente uno abajo del otro */
  .form-grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .form-grid-2 .form-group {
    width: 100% !important;
  }

  /* Medios de pago en mobile: Lista vertical limpia */
  .payment-tabs-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .payment-gateway-tab {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .payment-gateway-tab .gateway-tab-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .payment-gateway-tab .gateway-icon-box {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  .payment-gateway-tab .gateway-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 2px !important;
    flex: 1 !important;
  }

  .payment-gateway-tab .gateway-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
  }

  .payment-gateway-tab .gateway-tag {
    font-size: 0.74rem !important;
    color: var(--text-muted) !important;
    text-align: left !important;
  }

  .gateway-list-arrow {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--text-dim) !important;
    flex-shrink: 0 !important;
  }

  .gateway-list-badge {
    display: inline-block !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }

  .modo-qr-box {
    flex-direction: column;
    text-align: center;
  }

  .step2-summary-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .step2-event-meta-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .step2-event-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
  }

  .step2-event-details {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .step2-event-title {
    font-size: 0.98rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .step2-event-date-place {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .btn-modify-selection {
    align-self: center !important;
    flex-shrink: 0 !important;
    padding: 6px 11px !important;
    font-size: 0.76rem !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }

  .timer-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timer-main-info {
    width: 100%;
    justify-content: space-between;
  }

  /* Acciones inferiores en mobile: botón principal gigante full-width sin separador */
  .step-inline-actions,
  .step-inline-actions.borderless-actions {
    flex-direction: column-reverse !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .step-inline-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 14px 20px !important;
  }
}

/* ==========================================================================
   PASO 2: TWO-BLOCKS LAYOUT (LEFT: FORM & PAYMENT | RIGHT: TIMER & SUMMARY)
   ========================================================================== */
.step2-layout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.step2-col-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.step2-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.step2-col-right .reservation-timer-banner {
  padding: 14px 16px;
  width: 100%;
}

.step2-col-right .timer-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.step2-col-right .timer-main-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Trust / Guarantee Card */
.step2-trust-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-item svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* ==========================================================================
   RESERVATION COUNTDOWN BANNER (PROMINENT / HIGHLIGHTED)
   ========================================================================== */
.reservation-timer-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(20, 20, 20, 0.95) 55%, rgba(255, 107, 0, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}


.timer-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.timer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timer-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulseTimerDot 1.5s infinite;
}

@keyframes pulseTimerDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.timer-main-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-lead-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timer-countdown-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   STEP 2: ORDER & TICKETS SUMMARY CARD
   ========================================================================== */
.step2-summary-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
}

.step2-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step2-event-meta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.step2-event-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step2-event-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.step2-tag-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.step2-event-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.step2-event-date-place {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-modify-selection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-modify-selection:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.step2-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step2-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 4px 0;
}

.step2-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.step2-item-qty-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.step2-item-name {
  color: #ffffff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.3;
}

.step2-item-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: 12px;
}

.step2-pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step-section-heading {
  margin-top: 12px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   PASO 2: BUYER FORM & COUPON INPUT
   ========================================================================== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

/* Floating Group */
.form-group.floating-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 72px;
  box-sizing: border-box;
}

.floating-group .form-input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  box-sizing: border-box;
  background-color: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 20px 14px 6px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 20px;
  outline: none;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

/* Hide native placeholder so floating label takes its place */
.floating-group .form-input::placeholder {
  color: transparent;
  opacity: 0;
}

.floating-label {
  position: absolute;
  top: 16px;
  left: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.16s cubic-bezier(0.4, 0, 0.2, 1),
              font-size 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.label-optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
}

/* Floating behavior on focus, content, or autofill */
.floating-group .form-input:focus ~ .floating-label,
.floating-group .form-input:not(:placeholder-shown) ~ .floating-label,
.floating-group .form-input:-webkit-autofill ~ .floating-label,
.floating-group.is-floating .floating-label {
  transform: translateY(-9px) scale(0.74);
  font-weight: 600;
  color: #ffffff;
}

/* When not focused but has content, keep it floated in neutral color */
.floating-group .form-input:not(:focus):not(:placeholder-shown) ~ .floating-label,
.floating-group.is-floating:not(:focus-within) .floating-label {
  color: rgba(255, 255, 255, 0.6);
}

.floating-group .form-input:focus {
  border-color: #ffffff;
  outline: none;
  background-color: rgba(14, 14, 14, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.floating-group .form-input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 2px var(--error-subtle);
}

.floating-group .form-input.is-invalid ~ .floating-label {
  color: var(--error);
}

.floating-group .form-input.is-valid {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Form feedback with fixed height reservation so field height never shifts */
.form-feedback {
  font-size: 0.72rem;
  color: var(--error);
  line-height: 1.2;
  min-height: 16px;
  margin-top: 3px;
  display: block;
  visibility: hidden;
  box-sizing: border-box;
}

.form-feedback:not(:empty) {
  visibility: visible;
}

/* ==========================================================================
   SIMPLIFIED INLINE COUPON & DISCOUNT ROW
   ========================================================================== */
.coupon-action-row {
  margin: 6px 0;
}

.btn-add-coupon-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--accent, #00d26a);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-coupon-trigger:hover {
  color: #2bf58b;
  text-decoration: underline;
}

.coupon-plus-sign {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.coupon-inline-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
  animation: fadeIn 0.15s ease-out;
}

.coupon-inline-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.coupon-inline-input {
  flex: 1;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.coupon-inline-input:focus {
  border-color: var(--accent, #00d26a);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 210, 106, 0.15);
}

.coupon-inline-input::placeholder {
  color: var(--text-dim);
  text-transform: none;
  font-weight: 400;
  font-size: 0.8rem;
}

.btn-coupon-apply {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  padding: 0 14px;
  background: var(--accent, #00d26a);
  border: none;
  border-radius: 8px;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-coupon-apply:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-coupon-apply:active {
  transform: translateY(0);
}

.btn-coupon-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-coupon-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.coupon-inline-error {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  padding-left: 2px;
}

/* Fila de descuento aplicada con cruz */
.discount-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #22c55e;
  font-weight: 600;
  margin: 4px 0;
  animation: fadeIn 0.2s ease-out;
}

.discount-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 0.84rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discount-tag-icon {
  color: #22c55e;
  flex-shrink: 0;
}

.discount-val-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-remove-coupon-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.btn-remove-coupon-cross:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.08);
}

/* ==========================================================================
   PASO 3: ORDER SUMMARY & PAYMENT GATEWAYS (Unboxed & Seamless)
   ========================================================================== */
.summary-card {
  padding: 0 0 16px 0;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-event-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}

.summary-event-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.summary-buyer-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.buyer-pill-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.buyer-pill-name {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-item-name {
  color: #ffffff;
  font-weight: 700;
}

.summary-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.summary-item-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.summary-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-total-divider {
  height: 1px;
  background: var(--border-line);
  margin: 4px 0;
}

.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.summary-total-amount {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Payment Gateway Selector Tabs */
.payment-selection-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .payment-tabs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.payment-gateway-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-gateway-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.payment-gateway-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Pasarelas sin interacción: solo hover, sin selección ni popups externos */
.payment-gateway-tab.is-static {
  cursor: default;
}

.payment-gateway-tab.is-static:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.gateway-tab-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.gateway-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gateway-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.gateway-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-align: center;
}

.gateway-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.2;
  text-align: center;
}

/* Gateway List indicators (hidden on desktop cards) */
.gateway-list-arrow,
.gateway-list-badge {
  display: none;
}

/* Contenedor inferior de acciones del Paso 2 (inline en desktop) */
.step2-bottom-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  position: static;
}

/* Aceptar Términos y Condiciones */
.terms-acceptance-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.terms-label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.terms-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.terms-check-icon {
  color: #111111;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
}

.terms-checkbox:checked ~ .terms-checkbox-box {
  background: #ffffff;
  border-color: #ffffff;
}

.terms-checkbox:checked ~ .terms-checkbox-box .terms-check-icon {
  opacity: 1;
  transform: scale(1);
  color: #111111;
}

.terms-checkbox:focus ~ .terms-checkbox-box {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.terms-label-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.terms-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.terms-link:hover {
  opacity: 0.8;
  color: #ffffff;
}

/* Modal Popup: Datos Básicos para Transferencia (Talo) */
.transfer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.transfer-modal-backdrop.active {
  display: flex !important;
}

/* Mobile summary trigger and modal elements (hidden on desktop) */
.mobile-summary-pill-bar,
.mobile-summary-modal-header {
  display: none;
}

.transfer-modal-card {
  width: 100%;
  max-width: 440px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: scaleUp 0.2s ease-out;
}

.transfer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transfer-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transfer-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.transfer-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.transfer-modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.btn-close-modal-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-close-modal-round:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.transfer-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transfer-amount-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 10px;
}

.transfer-amount-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.transfer-amount-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.transfer-copy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
}

.copy-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.copy-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.copy-val {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
  font-family: monospace;
}

.transfer-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 4px;
}

.detail-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.detail-val {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.transfer-note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.transfer-note-box svg {
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 1px;
}

.transfer-modal-footer {
  padding: 16px 20px 20px;
}

/* ==========================================================================
   MODAL SIMPLE DE LEGALES (Términos y Privacidad)
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100010;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.legal-modal-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.legal-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.legal-modal-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

.legal-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.legal-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.legal-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-modal-body h4 {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  margin: 4px 0 2px 0;
}

.legal-modal-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.legal-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* Gateway Panels */
.gateway-panel {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.gateway-panel.active {
  display: block;
}

/* TALO PANEL */
.talo-transfer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.talo-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 14px;
}

.talo-header-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
}

.talo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.talo-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
}

.talo-fields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.talo-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.talo-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.talo-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: #ffffff;
  color: #000000;
}

.talo-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 2px;
}

.talo-meta-val {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
}

.talo-info-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.talo-info-note svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* NAVE PANEL */
.nave-form-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* MODO PANEL */
.modo-qr-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.modo-qr-preview {
  flex-shrink: 0;
}

.modo-qr-frame {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modo-svg-qr {
  width: 100%;
  height: 100%;
}

.modo-center-badge {
  position: absolute;
  background: #000;
  color: #38bdf8;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #38bdf8;
}

.modo-instructions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modo-instructions-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.modo-instructions-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.modo-polling-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 700;
  margin-top: 4px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38bdf8;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* ==========================================================================
   PASO 4: CONFIRMATION & DIGITAL PASS
   ========================================================================== */
.confirmation-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.success-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.success-check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--primary-glow);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.success-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.success-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
}

.digital-ticket-pass {
  width: 100%;
  max-width: 520px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.ticket-pass-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
  padding: 20px 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ticket-pass-header::before,
.ticket-pass-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  width: 24px;
  height: 24px;
  background-color: #0a0a0a;
  border-radius: 50%;
  z-index: 2;
}

.ticket-pass-header::before { left: -12px; }
.ticket-pass-header::after { right: -12px; }

.pass-event-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
}

.pass-venue-text {
  font-size: 0.9rem;
  color: #a1a1aa;
}

.pass-code-pill {
  background: var(--primary);
  color: #000000;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.ticket-pass-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pass-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pass-detail-item {
  display: flex;
  flex-direction: column;
}

.pass-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.pass-detail-val {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.pass-hash-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  font-weight: 700;
}

.pass-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-line);
}

.qr-code-box {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.qr-code-box svg {
  width: 120px;
  height: 120px;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Processing Overlay */
.payment-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.payment-processing-overlay.active {
  opacity: 1;
  visibility: visible;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.processing-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.processing-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 380px;
}

/* Full-Width Modal Footer Actions */
.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-line);
  background: rgba(16, 16, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-footer-price {
  display: flex;
  flex-direction: column;
}

.modal-footer-price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.modal-footer-price-val {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
}

.modal-footer-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   EXTERNAL GATEWAY REDIRECT BOX & SIMULATED POPUP WINDOW / MODAL
   ========================================================================== */
.external-redirect-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.external-redirect-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.external-redirect-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.external-redirect-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.external-redirect-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.external-redirect-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 4px;
}

/* External Gateway Mock Window / Modal Styles */
.external-gateway-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.external-gateway-modal-backdrop.active {
  display: flex;
}

.external-gateway-modal-window {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.external-modal-titlebar {
  background: #202020;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.window-traffic-lights {
  display: flex;
  gap: 6px;
}

.window-traffic-lights .light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-traffic-lights .light.red { background: #ef4444; }
.window-traffic-lights .light.yellow { background: #f59e0b; }
.window-traffic-lights .light.green { background: #10b981; }

.external-modal-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-close-external-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.btn-close-external-modal:hover {
  color: #ffffff;
}

.external-modal-content {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.external-modal-badge {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.external-modal-sim-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.external-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.external-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.external-modal-amount-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 20px;
  width: 100%;
}

.external-modal-amount-box .amount-label {
  font-size: 0.725rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.external-modal-amount-box .amount-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.external-modal-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES: PASO 2 TWO-BLOCKS & MOBILE MODAL SIDEBAR
   ========================================================================== */
@media (max-width: 900px) {
  .step-view#step-view-2 {
    padding: 16px 16px 145px !important;
  }
  
  .step2-layout-grid {
    display: block !important;
    width: 100% !important;
  }

  .step2-col-left {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 20px !important;
  }

  /* Barra inferior FIJADA ABAJO en mobile con el resumen y el botón de pago */
  .step2-bottom-bar-wrap {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(12, 12, 12, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 8px 16px max(14px, env(safe-area-inset-bottom, 14px)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
  }

  /* Resumen compacto fijado arriba del botón de pago */
  .mobile-summary-pill-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 0 !important;
    width: 100%;
  }

  .step-inline-actions,
  .step-inline-actions.borderless-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .step-inline-actions .js-step-back-to-1 {
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 12px 14px !important;
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: var(--text-muted) !important;
    text-align: center !important;
  }

  .step-inline-actions #btn-step2-pay {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 13px 18px !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .mobile-pill-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #ffffff;
    min-width: 0;
    flex: 1;
  }

  .mobile-pill-timer {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: #fbbf24;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .mobile-pill-divider {
    color: rgba(255, 255, 255, 0.25);
  }

  .mobile-pill-info {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .btn-mobile-open-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
  }

  .btn-mobile-open-summary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  /* En mobile el sidebar de la derecha se oculta del flujo principal (prioridad: completar form) */
  .step2-col-right {
    display: none !important;
  }

  /* Al hacer clic en "Ver resumen", se abre como modal completo superpuesto */
  .step2-col-right.mobile-modal-open {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: max(20px, env(safe-area-inset-top, 20px)) 16px max(24px, env(safe-area-inset-bottom, 24px)) !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    animation: fadeIn 0.2s ease-out;
  }

  .mobile-summary-modal-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    padding-bottom: 12px;
    color: #ffffff;
  }

  .mobile-summary-modal-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
  }

  .btn-close-mobile-summary {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .btn-close-mobile-summary:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .step2-col-right.mobile-modal-open .reservation-timer-banner,
  .step2-col-right.mobile-modal-open .step2-summary-card {
    width: 100% !important;
    max-width: 480px !important;
    box-sizing: border-box !important;
  }

  .step2-col-right.mobile-modal-open .step2-summary-card {
    padding: 16px 14px !important;
  }

  .form-grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   CONFIRMATION DIGITAL PASS & SEATS DETAIL
   ========================================================================== */
.conf-ticket-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.conf-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conf-ticket-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.conf-seats-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.conf-seats-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.conf-seats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conf-seat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.conf-sector-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* En mobile: Encabezado del pase con nombre de evento y #VEXI-... en columna */
@media (max-width: 768px) {
  .ticket-pass-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 18px 18px !important;
  }

  .pass-code-pill {
    align-self: flex-start !important;
  }
}

/* ==========================================================================
   AUTH & MY TICKETS MODALS (LOGIN SIMPLE Y GESTIÓN DE ENTRADAS)
   ========================================================================== */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease-out;
}

.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.auth-modal-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.auth-modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.35;
}

.auth-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.auth-modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.auth-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.req-star {
  color: #ef4444 !important;
  font-weight: 700;
  margin-left: 2px;
}

.auth-extra-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-forgot-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.auth-legal-notice {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  margin: 2px 0 6px;
  padding: 0 4px;
}

.auth-legal-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.auth-legal-link:hover {
  color: var(--primary);
}

.auth-switch-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
}

.auth-switch-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.auth-switch-link:hover {
  color: #ffffff;
  text-decoration: underline;
}



