/**
 * Estilos Bento Grid Táctiles para Mostrador POS (VITA & THC).
 *
 * Optimizado para Tablets Android de 10" (1280x800 / 1920x1200 apaisado).
 * - Latencia de respuesta táctil < 50ms (touch-action: manipulation, transform scale).
 * - Objetivos de toque accesibles (mínimo 48x48px, teclado numérico 64x64px).
 * - Estética Bento Dark Glassmorphism con paleta temática dual-brand.
 */

:root {
  --bg-dark: #0b0f19;
  --bg-panel: rgba(18, 24, 38, 0.85);
  --bg-card: rgba(28, 36, 56, 0.7);
  --bg-card-hover: rgba(40, 52, 80, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Temas Dual-Brand */
  --vita-primary: #00e5ff;
  --vita-glow: rgba(0, 229, 255, 0.25);
  --thc-primary: #10b981;
  --thc-glow: rgba(16, 185, 129, 0.25);

  /* Alertas Operativas */
  --alert-red: #ef4444;
  --alert-red-bg: rgba(239, 68, 68, 0.15);
  --alert-yellow: #f59e0b;
  --alert-yellow-bg: rgba(245, 158, 11, 0.15);
  --alert-green: #22c55e;
  --alert-green-bg: rgba(34, 197, 94, 0.15);

  /* Dimensiones Táctiles */
  --touch-target-min: 48px;
  --touch-numpad-size: 68px;
  --header-height: 64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  touch-action: manipulation;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 16, 0.96);
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--border-focus);
  border-radius: 18px;
  background: #131a2a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
  font-size: 24px;
}

.auth-card p {
  color: var(--text-muted);
}

.auth-field {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-field input,
#pin-login-user-id {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  background: #0b0f19;
  color: var(--text-main);
  font: inherit;
  user-select: text;
}

.auth-submit,
.auth-pin-link {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-submit {
  background: var(--vita-primary);
  color: #07131a;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.auth-pin-link {
  background: transparent;
  color: var(--text-main);
}

.auth-error {
  min-height: 18px;
  color: var(--alert-red);
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Contenedor Principal Bento Grid
 * ───────────────────────────────────────────────────────────────────────────── */
.pos-container {
  display: grid;
  grid-template-rows: var(--header-height) auto 1fr;
  height: 100vh;
  width: 100vw;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.05), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.05), transparent 40%), var(--bg-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Encabezado de Mostrador
 * ───────────────────────────────────────────────────────────────────────────── */
.pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.brand-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
}

.brand-btn {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.08s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-btn.active.vita {
  background: var(--vita-primary);
  color: #0b0f19;
  box-shadow: 0 0 15px var(--vita-glow);
}

.brand-btn.active.thc {
  background: var(--thc-primary);
  color: #0b0f19;
  box-shadow: 0 0 15px var(--thc-glow);
}

.brand-btn:active {
  transform: scale(0.96);
}

.header-status-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert-green);
  box-shadow: 0 0 8px var(--alert-green);
}

.status-badge.offline .dot {
  background: var(--alert-red);
  box-shadow: 0 0 8px var(--alert-red);
}

.status-badge.warning .dot {
  background: var(--alert-yellow);
  box-shadow: 0 0 8px var(--alert-yellow);
}

.lock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  min-height: var(--touch-target-min);
  transition: transform 0.05s ease-out;
}

.lock-btn:active {
  transform: scale(0.95);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Banner Preventivo Circuit Breaker (B-02)
 * ───────────────────────────────────────────────────────────────────────────── */
.prevention-banner {
  display: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  animation: slideDown 0.15s ease-out;
}

.prevention-banner.show {
  display: flex;
}

.prevention-banner.alerta-amarillo {
  background: var(--alert-yellow-bg);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fef3c7;
}

.prevention-banner.alerta-rojo {
  background: var(--alert-red-bg);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fee2e2;
}

.prevention-banner-icon {
  font-size: 18px;
  margin-right: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Layout Principal de Mostrador Bento Grid
 * ───────────────────────────────────────────────────────────────────────────── */
.pos-workspace {
  display: grid;
  grid-template-columns: 1fr 420px;
  height: 100%;
  overflow: hidden;
  gap: 16px;
  padding: 16px;
}

@media (max-width: 1024px) {
  .pos-workspace {
    grid-template-columns: 1fr 380px;
  }
}

/* Panel Izquierdo: Catálogo y Categorías */
.catalog-bento-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.catalog-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.search-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  min-height: var(--touch-target-min);
}

.search-input:focus {
  border-color: var(--border-focus);
}

.catalog-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.catalog-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.catalog-status.error {
  color: #fca5a5;
}

.catalog-empty {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--text-muted);
  text-align: center;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.08s ease-out;
  min-height: 42px;
}

.category-pill.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

.category-pill:active {
  transform: scale(0.95);
}

/* Rejilla de Tarjetas de Producto */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition:
    transform 0.05s ease-out,
    background 0.1s ease-out;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.product-card.read-only {
  cursor: default;
}

.product-card.read-only:active {
  transform: none;
  background: var(--bg-card);
}

.product-card:active {
  transform: scale(0.96);
  background: var(--bg-card-hover);
}

.product-card .card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text-main);
}

.product-card .card-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.product-card .card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--vita-primary);
  margin-top: auto;
}

.product-card.thc-card .card-price {
  color: var(--thc-primary);
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Panel Derecho: Carrito / Ticket de Venta
 * ───────────────────────────────────────────────────────────────────────────── */
.cart-bento-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
  position: relative;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.cart-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.cart-item-info .item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.cart-item-info .item-mods {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 2px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-display {
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  min-width: 60px;
  text-align: right;
}

.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 13px;
  gap: 8px;
}

/* Desglose Financiero Determinista e IVA 16% (B-06) */
.cart-summary {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
}

.summary-row .iva-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Candado de Descuentos B-05 */
.discount-alert-badge {
  display: none;
  background: var(--alert-yellow-bg);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
}

.discount-alert-badge.show {
  display: flex;
}

/* Botones de Acción de Mostrador */
.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.action-btn {
  height: var(--touch-target-min);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease-out;
}

.action-btn:active {
  transform: scale(0.96);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.checkout-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.05s ease-out;
}

.checkout-btn:active {
  transform: scale(0.97);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Modales Táctiles (PIN Pad, Modificadores, Cobro)
 * ───────────────────────────────────────────────────────────────────────────── */
.pos-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.pos-modal-overlay.open {
  display: flex;
}

#modal-pinpad {
  z-index: 300;
}

.pos-modal-card {
  background: #131a2a;
  border: 1px solid var(--border-focus);
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalScale 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-camera-scan .pos-modal-card {
  display: grid;
  gap: 16px;
}

.camera-scan-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  min-width: 36px;
  min-height: 36px;
}

.authorization-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.authorization-field input {
  min-height: 48px;
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 0 12px;
  background: #0d1320;
  color: var(--text-primary);
  font: inherit;
}

/* Teclado Táctil PIN de 6 Dígitos (B-05) */
.pinpad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pinpad-dots {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
  background: transparent;
  transition: all 0.08s ease-out;
}

.pin-dot.filled {
  background: var(--vita-primary);
  border-color: var(--vita-primary);
  box-shadow: 0 0 10px var(--vita-glow);
}

.pinpad-grid {
  display: grid;
  grid-template-columns: repeat(3, var(--touch-numpad-size));
  gap: 12px;
}

.pin-btn {
  width: var(--touch-numpad-size);
  height: var(--touch-numpad-size);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.05s ease-out,
    background 0.05s ease-out;
}

.pin-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.pin-btn.action {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.pinpad-error {
  font-size: 12px;
  color: var(--alert-red);
  min-height: 16px;
  text-align: center;
  font-weight: 600;
}

/* Modal de Modificadores (THC) */
.modifiers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin: 14px 0;
}

.modifier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  min-height: var(--touch-target-min);
}

.modifier-row.selected {
  border-color: var(--thc-primary);
  background: rgba(16, 185, 129, 0.15);
}

/* Modal de Cobro & Pagos Mixtos */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  height: 64px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.08s ease-out;
}

.payment-method-card.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-focus);
}

.fast-cash-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.fast-cash-btn {
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.fast-cash-btn:active {
  transform: scale(0.95);
}

.change-display-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin: 12px 0;
}

.change-display-box .change-label {
  font-size: 12px;
  color: var(--text-muted);
}

.change-display-box .change-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--alert-green);
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Modal 6: Terminal Mercado Pago Point (Directiva B-02)
 * ───────────────────────────────────────────────────────────────────────────── */
.point-terminal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin: 14px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.point-terminal-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  animation: pulsePointGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulsePointGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.point-icon-display {
  font-size: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

.point-amount-display {
  font-size: 32px;
  font-weight: 900;
  color: #60a5fa;
  margin-bottom: 4px;
}

.point-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  margin-bottom: 12px;
}

.point-status-badge.aprobado {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.point-status-badge.cancelado,
.point-status-badge.rechazado,
.point-status-badge.expirado {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.point-timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.point-countdown-clock {
  font-family: monospace;
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-countdown-clock.alerta {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
  animation: timerBlink 1s ease-in-out infinite;
}

@keyframes timerBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.point-order-meta {
  font-family: monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  word-break: break-all;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Modal 7: Transferencia Interbancaria SPEI
 * ───────────────────────────────────────────────────────────────────────────── */
.spei-clabe-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}

.spei-clabe-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.spei-clabe-value {
  font-family: monospace;
  font-weight: 700;
  color: var(--text-main);
}

.spei-tracking-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-focus);
  border-radius: 10px;
  padding: 0 14px;
  background: #0d1320;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 14px;
  outline: none;
  margin-top: 6px;
  box-sizing: border-box;
}

.spei-tracking-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.spei-error-text {
  color: var(--alert-red);
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 16px;
}
