/* ═══════════════════════════════════════════════════════════
   ERP.COM.BO — ventas.css (Fase 2: Clean White SaaS Redesign)
   ═══════════════════════════════════════════════════════════ */

.page-ventas {
  background-color: #ffffff;
  color: var(--ink-800);
}

.pos-hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 90px 0;
  background: radial-gradient(circle at 50% 0%, rgba(254, 203, 24, 0.12), transparent 60%),
              radial-gradient(circle at 85% 60%, rgba(99, 102, 241, 0.08), transparent 50%),
              #ffffff;
  color: var(--ink-800);
  border-bottom: 1px solid var(--border-subtle);
}

.pos-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.pos-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: rgba(254, 203, 24, 0.15);
  border: 1px solid rgba(254, 203, 24, 0.4);
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.pos-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--ink-800);
}

.pos-hero__title span {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pos-hero__desc {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
}

/* POS Demo Container */
.pos-simulator-section {
  padding: 100px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pos-simulator {
  background: #ffffff;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 540px;
}

.pos-simulator__catalog {
  padding: 32px;
  background: #ffffff;
  border-right: 1px solid var(--border);
}

.pos-simulator__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pos-simulator__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-800);
}

.pos-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pos-product-card {
  background: #f8fafc;
  border-radius: var(--r-lg);
  padding: 18px;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}

.pos-product-card:hover {
  border-color: #f59e0b;
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pos-product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(254, 203, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pos-product-info {
  flex-grow: 1;
}

.pos-product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 2px;
}

.pos-product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #b45309;
}

.pos-add-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--ink-800);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: background var(--dur-fast);
}

.pos-product-card:hover .pos-add-btn {
  background: #f59e0b;
  color: var(--ink-800);
}

/* POS Cart Side */
.pos-simulator__cart {
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

.pos-cart__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-cart__items {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  max-height: 280px;
}

.pos-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.pos-cart-item__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-800);
}

.pos-cart-item__price {
  font-size: 0.82rem;
  color: var(--muted);
}

.pos-cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pos-cart__summary {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.pos-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--ink-600);
}

.pos-summary-row--total {
  border-top: 2px solid var(--border);
  padding-top: 12px;
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink-800);
}

.pos-cobrar-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fecb18, #f59e0b);
  color: var(--ink-800);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(254, 203, 24, 0.45);
  transition: all var(--dur-base) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.pos-cobrar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(254, 203, 24, 0.6);
}

/* Custom Rich Visual Payment Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pay-visual-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all var(--dur-base) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.pay-visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: #f59e0b;
}

.pay-visual-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pay-visual-card--cash .pay-visual-badge { background: rgba(16, 185, 129, 0.12); color: #059669; }
.pay-visual-card--card .pay-visual-badge { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.pay-visual-card--qr .pay-visual-badge { background: rgba(254, 203, 24, 0.2); color: #b45309; }
.pay-visual-card--other .pay-visual-badge { background: rgba(244, 63, 94, 0.12); color: #e11d48; }

.pay-graphic-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 0.82rem;
}

.pay-visual-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-800);
  margin-bottom: 6px;
}

.pay-visual-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Domain Feature Mini Compositions (Replaces generic icons) */
.feature-comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-comp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all var(--dur-base) var(--ease-spring);
}

.feature-comp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
  border-color: #f59e0b;
}

.mini-pos-widget {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  .pos-hero__grid { grid-template-columns: 1fr; }
  .pos-simulator { grid-template-columns: 1fr; }
  .payment-methods-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-comp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .payment-methods-grid { grid-template-columns: 1fr; }
  .feature-comp-grid { grid-template-columns: 1fr; }
  .pos-products-grid { grid-template-columns: 1fr; }
}
