/* ==========================================================================
   FEROXSOFT DEMOS - HOJA DE ESTILOS DEDICADA (/demos)
   Diseño de Interfaces B2B Modernas, Glassmorphism y Sistemas de Alta Escala
   ========================================================================== */

:root {
  --demo-bg: #090a0f;
  --demo-card-bg: #0e1117;
  --demo-card-border: #1f242e;
  --demo-card-hover-border: #2e384d;
  --demo-panel-bg: #121620;
  --demo-sidebar-bg: #0b0e14;
  --demo-primary: #0284c7;
  --demo-primary-hover: #0369a1;
  --demo-primary-glow: rgba(2, 132, 199, 0.15);
  --demo-accent: #38bdf8;
  --demo-text: #f8fafc;
  --demo-text-muted: #94a3b8;
  --demo-text-dim: #64748b;
  --demo-border-subtle: #1c2331;
  --demo-success: #10b981;
  --demo-warning: #f59e0b;
  --demo-danger: #ef4444;
}

body.demos-body {
  background-color: var(--demo-bg);
  color: var(--demo-text);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ==========================================
   HERO DE LA PÁGINA DE DEMOS
   ========================================== */
.demos-hero {
  padding: 7.5rem 2rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.demos-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: #111622;
  border: 1px solid #1f242e;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 1.25rem;
}

.demos-title {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.demos-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.demos-subtitle {
  font-size: 1.12rem;
  color: var(--demo-text-muted);
  max-width: 760px;
  margin: 0 auto 2.2rem;
  line-height: 1.65;
}

/* ==========================================
   FRANJA INFORMATIVA: BASE Y ADAPTABILIDAD
   ========================================== */
.demo-notice-container {
  max-width: 1100px;
  margin: 0 auto 2.2rem;
  padding: 0 1.5rem;
}

.demo-notice-strip {
  background: #0e1117;
  border: 1px solid #1f242e;
  border-left: 3px solid #0284c7;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.demo-notice-strip:hover {
  border-color: #2e384d;
  border-left-color: #38bdf8;
}

.demo-notice-badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.demo-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.demo-desktop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.demo-notice-content {
  flex-grow: 1;
}

.demo-notice-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.demo-notice-text strong {
  color: #f1f5f9;
  font-weight: 600;
}

@media (max-width: 768px) {
  .demo-notice-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }
}

/* ==========================================
   SELECTOR DE PESTAÑAS (TABS DE SOLUCIONES)
   ========================================== */
.demos-nav-container {
  max-width: 1280px;
  margin: 0 auto 2.2rem;
  padding: 0 1.5rem;
}

.demos-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  background: #0d1117;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #1f242e;
}

.demo-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--demo-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.demo-tab-btn:hover {
  background: #141923;
  color: #ffffff;
  border-color: #273042;
}

.demo-tab-btn.active {
  background: #161d2b;
  border-color: #0284c7;
  color: #ffffff;
}

.tab-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #121622;
  border: 1px solid #1f242e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--demo-accent);
  flex-shrink: 0;
}

.demo-tab-btn.active .tab-icon-box {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.tab-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.tab-tagline {
  display: block;
  font-size: 0.73rem;
  color: var(--demo-text-muted);
  margin-top: 2px;
}

/* ==========================================
   SANDBOX VISOR CONTAINER
   ========================================== */
.sandbox-wrapper {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.sandbox-window {
  background: var(--demo-card-bg);
  border: 1px solid var(--demo-card-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

/* Barra superior de la ventana (Header Sobrio SaaS) */
.sandbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #0b0e14;
  border-bottom: 1px solid #1f242e;
  flex-wrap: wrap;
  gap: 12px;
}

.sandbox-breadcrumb-box {
  display: flex;
  align-items: center;
}

.sandbox-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.breadcrumb-root {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 600;
}

.breadcrumb-root i {
  font-size: 0.8rem;
  color: #0284c7;
}

.breadcrumb-sep {
  color: #334155;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
}

.breadcrumb-current {
  color: #f1f5f9;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sandbox-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sandbox-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.pulse-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: led-pulse 1.8s infinite;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.btn-reset-demo {
  background: #141923;
  border: 1px solid #273042;
  color: #94a3b8;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-reset-demo:hover {
  background: #1c2331;
  color: #ffffff;
  border-color: #38bdf8;
}

/* Área principal interactiva de la demo */
.sandbox-body {
  padding: 2rem;
  min-height: 540px;
}

/* ==========================================
   KPIs ROW
   ========================================== */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.kpi-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: var(--demo-card-hover-border);
  background: rgba(30, 41, 59, 0.7);
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--demo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--demo-accent);
  margin-top: 4px;
}

/* ==========================================
   TABLAS Y ELEMENTOS UI COMUNES
   ========================================== */
.demo-table-wrapper {
  background: #0d1117;
  border: 1px solid #1f242e;
  border-radius: 8px;
  overflow-x: auto;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.demo-table th {
  background: #111622;
  padding: 9px 13px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #1f242e;
}

.demo-table td {
  padding: 9px 13px;
  border-bottom: 1px solid #181f2b;
  color: #f1f5f9;
}

.demo-table tr:hover td {
  background: #131823;
}

/* Badges de estado interactivos */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-badge.pendiente {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.status-badge.reparto, .status-badge.preparacion {
  background: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.3);
}

.status-badge.entregado, .status-badge.atendido {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.status-badge.consulta, .status-badge.espera {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

/* Botones de acción dentro de tablas */
.btn-action-sm {
  background: #141923;
  border: 1px solid #273042;
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-action-sm:hover {
  background: #1e2638;
  color: #ffffff;
  border-color: #38bdf8;
}

/* ==========================================
   UI ESPECÍFICA: FEROX POS
   ========================================== */
.pos-layout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.pos-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.pos-product-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-product-card:hover {
  border-color: var(--demo-primary);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
}

.pos-product-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pos-product-cat {
  font-size: 0.7rem;
  color: var(--demo-text-muted);
}

.pos-product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--demo-accent);
  font-family: var(--font-mono, monospace);
  margin-top: 10px;
}

.pos-cart-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 520px;
}

.pos-cart-items {
  overflow-y: auto;
  flex-grow: 1;
  margin: 12px 0;
  padding-right: 4px;
}

.pos-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.btn-qty {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(51, 65, 85, 0.8);
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.btn-qty:hover {
  background: var(--demo-primary);
  color: #0f172a;
}

.pos-cart-total-box {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.pos-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
}

.btn-checkout {
  width: 100%;
  padding: 11px;
  background: #059669;
  border: 1px solid #10b981;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.btn-checkout:hover {
  background: #047857;
  border-color: #34d399;
}

/* ==========================================
   UI ESPECÍFICA: FEROX POS (SUITE COMPLETA)
   ========================================== */
.pos-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0d1117;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.pos-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pos-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #141923;
  border: 1px solid #273042;
  border-radius: 6px;
  padding: 6px 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-subnav-btn:hover {
  color: #ffffff;
  background: #1c2331;
  border-color: #38bdf8;
}

.pos-subnav-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: none;
}

.pos-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.78rem;
}

.pos-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pos-stock-badge.normal {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pos-stock-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pos-stock-badge.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modal de Cobro & Métodos */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method-card {
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid rgba(51, 65, 85, 0.8);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
}

.payment-method-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  color: #ffffff;
}

.payment-method-card.active {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  font-weight: 700;
}

.cash-quick-denoms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}

.cash-quick-btn {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 6px;
  padding: 5px 10px;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cash-quick-btn:hover {
  background: var(--demo-primary);
  color: #0f172a;
}

/* Ticket Térmico 80mm */
.thermal-paper {
  background: #ffffff;
  color: #111827;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  padding: 20px 16px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-top: 4px solid #111827;
}

.thermal-paper hr {
  border: none;
  border-top: 1px dashed #000;
  margin: 8px 0;
}

.thermal-barcode {
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 800;
  text-align: center;
  padding: 6px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  margin: 10px 0;
}

/* Etiqueta Térmica de Producto (58mm) */
.thermal-label-box {
  background: #ffffff;
  color: #000000;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 6px;
  border: 2px solid #000;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   UI ESPECÍFICA: FEROX ERP (DISTRIBUIDORA & LOGÍSTICA)
   ========================================== */
.erp-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0d1117;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.erp-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.erp-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #141923;
  border: 1px solid #273042;
  border-radius: 6px;
  padding: 6px 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.erp-subnav-btn:hover {
  color: #ffffff;
  background: #1c2331;
  border-color: #38bdf8;
}

.erp-subnav-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: none;
}

.erp-dual-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}

.remito-sheet {
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  padding: 24px;
  font-family: Arial, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.85rem;
  line-height: 1.4;
}

.remito-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.remito-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.remito-table th {
  background: #f1f5f9;
  color: #0f172a;
  padding: 8px;
  font-size: 0.78rem;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
}

.remito-table td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

/* ==========================================
   UI ESPECÍFICA: FEROX CRM (KANBAN)
   ========================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-column {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
  padding: 14px;
  min-width: 240px;
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  margin-bottom: 12px;
}

.kanban-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.kanban-card:hover {
  border-color: var(--demo-primary);
  transform: translateY(-2px);
}

.kanban-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.kanban-card-val {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  font-weight: 700;
  color: var(--demo-accent);
  margin: 6px 0;
}

/* ==========================================
   BANNER CALL TO ACTION CONTEXTUAL
   ========================================== */
.sandbox-cta-banner {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-text-group h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.cta-text-group p {
  color: var(--demo-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transform: scale(1.02);
}

/* ==========================================
   MODALES (FICHA CLÍNICA & TICKET POS)
   ========================================== */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.demo-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.demo-modal-card.modal-lg {
  max-width: 880px;
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--demo-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

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

/* ==========================================================================
   FEROXMED - ESTILOS CLÍNICOS DEDICADOS (Réplica consultorio/client)
   ========================================================================== */
.med-shell {
  display: flex;
  min-height: 590px;
  background: #090e1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.med-sidebar {
  width: 225px;
  background: #0b0e14;
  border-right: 1px solid #1f242e;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 0.85rem;
  flex-shrink: 0;
}

.med-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.med-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
}

.med-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.med-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.med-nav-link:hover {
  background: #141923;
  color: #f8fafc;
}

.med-nav-link.active {
  background: #161d2b;
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0284c7;
}

.med-sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid #1f242e;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}

.med-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #090a0f;
}

.med-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  padding-bottom: 1rem;
}

.med-quick-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border: none;
}

.med-quick-btn-primary {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.med-quick-btn-primary:hover {
  background: #0369a1;
}

.med-quick-btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #f8fafc;
  border: 1px solid rgba(71, 85, 105, 0.7);
}

.med-quick-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
}

.med-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.med-stat-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}

.med-stat-box:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.med-stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.med-prescription-paper {
  background: #ffffff;
  color: #0f172a;
  padding: 2.2rem;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   FEROXMED - CALENDARIO INTERACTIVO & AGENDA
   ========================================================================== */
.med-calendar-container {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.med-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.med-calendar-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.med-month-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 170px;
  text-align: center;
}

.med-cal-nav-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
  color: #f8fafc;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.med-cal-nav-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.med-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.med-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding-top: 8px;
}

.med-calendar-day {
  min-height: 58px;
  border-radius: 8px;
  padding: 5px 6px;
  border: 1px solid rgba(51, 65, 85, 0.4);
  background: rgba(30, 41, 59, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.med-calendar-day:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.med-calendar-day.empty {
  opacity: 0.2;
  cursor: default;
  background: transparent;
  border: 1px dashed rgba(51, 65, 85, 0.25);
  pointer-events: none;
}

.med-calendar-day.today {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
}

.med-calendar-day.selected {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.med-day-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.med-day-num .today-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
}

.med-day-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono, monospace);
  width: fit-content;
}

.med-view-toggle-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.med-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.med-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* ==========================================
   UI ESPECÍFICA: FEROX CRM // PIPELINE COMERCIAL
   ========================================== */
.crm-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0d1117;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.crm-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.crm-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.crm-btn-new-deal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.crm-btn-new-deal:hover {
  background: #0369a1;
}

/* Panel Superior de Analítica y Métricas */
.crm-analytics-panel {
  background: #0d1117;
  border: 1px solid #1f242e;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crm-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.crm-kpi-card {
  background: #111622;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.crm-kpi-card:hover {
  border-color: #2e384d;
  background: #151a27;
}

.crm-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.crm-kpi-label {
  font-size: 0.75rem;
  color: var(--demo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.crm-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.crm-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  margin: 4px 0 2px;
}

.crm-kpi-sub {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Barra de Progreso de Meta Mensual */
.crm-quota-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 10px;
  padding: 14px 18px;
}

.crm-quota-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-quota-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-quota-figures {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  color: #94a3b8;
}

.crm-quota-figures strong {
  color: #34d399;
}

.crm-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.crm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Gráfico de Distribución del Pipeline (Segmented Bar) */
.crm-distribution-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 10px;
  padding: 14px 18px;
}

.crm-distribution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.crm-segmented-bar {
  display: flex;
  width: 100%;
  height: 14px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.6);
  margin-bottom: 12px;
}

.crm-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
  position: relative;
}

.crm-bar-segment:hover {
  filter: brightness(1.25);
}

.crm-legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.crm-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.crm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.crm-legend-amount {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #ffffff;
}

/* Tablero Kanban */
.crm-kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.crm-kanban-column {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.crm-kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.crm-kanban-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-kanban-col-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.crm-kanban-col-count {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  font-weight: 700;
}

.crm-kanban-col-total {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.crm-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.crm-deal-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-deal-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

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

.crm-deal-id {
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

.crm-deal-source {
  font-size: 0.68rem;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crm-deal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.crm-deal-contact {
  font-size: 0.76rem;
  color: var(--demo-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-deal-service {
  font-size: 0.73rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.45);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-deal-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
}

.crm-deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.crm-deal-age {
  font-size: 0.7rem;
  color: var(--demo-text-muted);
}

.crm-deal-nav-btns {
  display: flex;
  gap: 4px;
}

.crm-btn-move {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crm-btn-move:hover {
  background: var(--demo-primary);
  color: #0f172a;
  border-color: var(--demo-primary);
}

/* Modal de Ficha de Oportunidad y Bitácora */
.crm-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.crm-info-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.crm-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.crm-info-label {
  color: var(--demo-text-muted);
}

.crm-info-val {
  color: #ffffff;
  font-weight: 600;
}

/* Bitácora de Actividades (Timeline) */
.crm-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.crm-timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.crm-timeline-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: -12px;
  width: 2px;
  background: rgba(51, 65, 85, 0.5);
}

.crm-timeline-item:last-child::before {
  display: none;
}

.crm-timeline-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  z-index: 1;
}

.crm-timeline-icon.ganada {
  border-color: #10b981;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.crm-timeline-icon.perdida {
  border-color: #ef4444;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

.crm-timeline-icon.whatsapp {
  border-color: #22c55e;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

.crm-timeline-content {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  flex-grow: 1;
}

.crm-timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.crm-timeline-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
}

.crm-timeline-time {
  font-size: 0.7rem;
  color: var(--demo-text-muted);
  font-family: var(--font-mono, monospace);
}

.crm-timeline-desc {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* Formulario de Nueva Actividad */
.crm-add-activity-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 8px;
  padding: 10px 12px;
}

/* ==========================================
   UI ESPECÍFICA: FEROX SHOP // E-COMMERCE
   ========================================== */
.shop-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0d1117;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.shop-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.shop-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.shop-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-view-toggle {
  display: inline-flex;
  background: #141923;
  border: 1px solid #273042;
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
}

.shop-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.shop-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: none;
}

.shop-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-cart-btn:hover {
  background: #047857;
}

.shop-cart-badge {
  background: #ffffff;
  color: #059669;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
}

/* Barra de Búsqueda y Categorías */
.shop-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.shop-categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-cat-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.65);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.shop-cat-pill:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
}

.shop-cat-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.shop-cat-pill-count {
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 9999px;
  color: #cbd5e1;
  font-family: var(--font-mono, monospace);
}

.shop-search-box {
  position: relative;
  min-width: 240px;
}

.shop-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
}

.shop-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Grilla de Productos de la Tienda */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.shop-product-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.shop-product-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.shop-product-thumb {
  width: 100%;
  height: 130px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.shop-product-card:hover .shop-product-thumb {
  transform: scale(1.03);
}

.shop-product-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.shop-product-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.shop-product-rating {
  font-size: 0.72rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.shop-product-desc {
  font-size: 0.75rem;
  color: var(--demo-text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.shop-spec-chip {
  font-size: 0.65rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.shop-product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.shop-product-price {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
}

.shop-product-stock-badge {
  font-size: 0.7rem;
  font-weight: 600;
}

.shop-product-stock-badge.in-stock {
  color: #34d399;
}

.shop-product-stock-badge.low-stock {
  color: #fbbf24;
}

.shop-product-stock-badge.no-stock {
  color: #f87171;
}

.shop-btn-add-cart {
  width: 100%;
  padding: 8px 12px;
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.shop-btn-add-cart:hover:not(:disabled) {
  background: #0369a1;
}

.shop-btn-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(51, 65, 85, 0.8);
}

/* Carrito Lateral / Drawer Deslizable */
.shop-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.shop-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.shop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #0b1120;
  border-left: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 1501;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.shop-drawer.open {
  transform: translateX(0);
}

.shop-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.shop-drawer-close {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.shop-drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.shop-drawer-shipping-banner {
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 18px;
  font-size: 0.76rem;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-drawer-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.shop-drawer-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.shop-drawer-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-drawer-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.shop-drawer-item-price {
  font-size: 0.82rem;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
  font-weight: 700;
}

.shop-drawer-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.shop-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
  color: #ffffff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-qty-btn:hover {
  background: var(--demo-primary);
  color: #0f172a;
}

.shop-qty-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 20px;
  text-align: center;
}

.shop-item-delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.shop-item-delete:hover {
  color: #ef4444;
}

.shop-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-drawer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.shop-drawer-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  padding-top: 6px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.shop-btn-checkout {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

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

/* Modal de Checkout / Finalizar Pedido */
.shop-checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.shop-checkout-summary {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Panel Administrador del Comerciante */
.shop-admin-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsividad */
@media (max-width: 900px) {
  .med-shell {
    flex-direction: column;
  }
  .med-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  }
  .med-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .pos-layout-grid {
    grid-template-columns: 1fr;
  }
  .kanban-board, .crm-kanban-board {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
  .crm-modal-grid, .shop-checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .demos-hero {
    padding-top: 6rem;
  }
  .kanban-board, .crm-kanban-board {
    grid-template-columns: 1fr;
  }
  .sandbox-body {
    padding: 1rem;
  }
  .shop-drawer {
    width: 100%;
  }
}

/* ==========================================
   PANTALLA DE AVISO / BLOQUEO PARA MÓVILES (< 1024px)
   ========================================== */
.demo-mobile-block-container {
  display: none;
  max-width: 680px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
}

.demo-mobile-block-card {
  background: #0e1117;
  border: 1px solid #1f242e;
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-block-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #131824;
  border: 1px solid #222b3d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mobile-block-monitor-icon {
  font-size: 2.2rem;
  color: #38bdf8;
}

.mobile-block-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.mobile-block-title {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.mobile-block-message {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 1.8rem;
  max-width: 540px;
}

.mobile-block-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 1.8rem;
}

.btn-mobile-copy-link {
  width: 100%;
  padding: 12px 18px;
  background: #141923;
  border: 1px solid #273042;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-mobile-copy-link:hover,
.btn-mobile-copy-link:active {
  background: #1c2331;
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-mobile-whatsapp {
  width: 100%;
  padding: 12px 18px;
  background: #25d366;
  border: 1px solid #22c55e;
  border-radius: 8px;
  color: #052e16;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-mobile-whatsapp:hover,
.btn-mobile-whatsapp:active {
  background: #1fa851;
  color: #ffffff;
}

.mobile-block-features-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 1.2rem;
  border-top: 1px solid #1f242e;
  width: 100%;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  background: #11151f;
  border: 1px solid #1c2331;
  padding: 4px 10px;
  border-radius: 6px;
}

.preview-chip i {
  color: #0284c7;
}

/* ==========================================
   REGLA DE BLOQUEO EN PANTALLAS < 1024px
   ========================================== */
@media (max-width: 1023px) {
  .demo-mobile-block-container {
    display: block;
  }

  .demos-nav-container,
  .sandbox-wrapper {
    display: none !important;
  }

  .demo-desktop-pill {
    display: none;
  }
}
