/* ==========================================================================
   LicitaciónYa — Live Preview & Demo Cards (WhatsApp & Excel Mockups)
   Compact, Mobile-Friendly Deliverables
   ========================================================================== */

.demo-section {
  padding: 3.5rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

/* Card Container */
.mockup-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.mockup-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Card Header */
.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.mockup-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mockup-header-left small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mockup-header-left strong {
  font-size: 0.86rem;
  color: var(--brand-navy);
}

.online-status {
  color: var(--brand-green) !important;
  font-weight: 600;
}

.wa-avatar, .excel-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-wa {
  background: var(--brand-green-soft);
  color: var(--brand-green-text);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.pill-excel {
  background: var(--brand-blue-soft);
  color: var(--brand-navy-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* WhatsApp Message Bubble */
.wa-container-box {
  background: #f1f5f9;
  padding: 1.15rem;
}

.wa-message-bubble {
  background: #ffffff;
  border-left: 3px solid var(--brand-whatsapp);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.84rem;
  box-shadow: var(--shadow-xs);
  color: var(--text-main);
}

.wa-message-title {
  color: var(--brand-navy);
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.wa-phase-badge {
  display: inline-block;
  background: var(--brand-green-soft);
  color: var(--brand-green-text);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.wa-message-body p {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.wa-message-body strong {
  color: var(--brand-navy);
}

.highlight-amount {
  color: var(--brand-green-text);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.wa-message-body code {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 0.08rem 0.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  color: var(--brand-navy);
  font-size: 0.75rem;
}

.wa-message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}

.wa-link {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.wa-time {
  color: var(--text-dim);
}

/* Excel Mockup Table */
.excel-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

.excel-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 480px;
}

.excel-preview-table th {
  background: var(--bg-surface-alt);
  color: var(--brand-navy);
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}

.excel-preview-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.excel-preview-table tr:hover td {
  background: var(--bg-surface);
}

.text-link {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Excel Formula Bar */
.excel-formula-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.excel-formula-fx {
  font-weight: 700;
  color: var(--brand-navy);
}

.excel-formula-val {
  background: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--brand-navy);
  font-weight: 600;
}

/* Excel Bottom Sheet Tabs */
.excel-sheet-tabs {
  display: flex;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem 0;
  gap: 0.25rem;
  overflow-x: auto;
}

.excel-sheet-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #e2e8f0;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
}

.excel-sheet-tab:hover:not(.active) {
  background: #f1f5f9;
  color: var(--brand-navy);
}

.excel-sheet-tab.active {
  background: #ffffff;
  color: var(--brand-green-text);
  font-weight: 700;
  border-top: 2px solid var(--brand-green);
}

.excel-card-footer {
  padding: 0.65rem 1.15rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .demo-section {
    padding: 2.25rem 0;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
