/* ==========================================================================
   RESCATE MANCO CÁPAC - CALCULADORA & PLATAFORMA DE NEGOCIACIÓN BCP
   Light Mode Design System - Vanilla CSS (Diseño Claro Corporativo)
   ========================================================================== */

:root {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-card-inner: #F1F5F9;
  --border-card: #E2E8F0;
  --border-focus: #2563EB;
  
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --primary: #2563EB;
  --primary-light: #EFF6FF;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --success: #059669;
  --success-light: #ECFDF5;
  --success-glow: rgba(5, 150, 105, 0.15);
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --accent-cyan: #0284C7;
  --accent-purple: #7C3AED;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hero: 0 10px 30px -5px rgba(5, 150, 105, 0.15), 0 0 0 1.5px rgba(16, 185, 129, 0.4);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(241, 245, 249, 0.5) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-card);
  flex-wrap: wrap;
  gap: 16px;
}

.brand-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-badge {
  font-size: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.currency-badge strong {
  color: var(--warning);
  margin-left: 4px;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */
.nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: #F8FAFC;
}

.tab-btn.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.tab-icon {
  font-size: 16px;
}

/* ==========================================================================
   TAB PANELS
   ========================================================================== */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   TAB 1: CALCULADORA GRID & CARDS
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GLASS CARD (LIGHT) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* FORMS & INPUTS */
.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 14px;
}

.flex-1 {
  flex: 1;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 6px;
}

.label-with-val {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.range-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-title);
}

.range-val.highlight-green {
  color: var(--success);
}

.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
}

.input-primary {
  width: 100%;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 14px 10px 30px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.input-primary:focus {
  background: #FFFFFF;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* SLIDERS */
.slider-accent {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  margin-top: 6px;
}

.slider-accent::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s ease;
}

.slider-accent.green::-webkit-slider-thumb {
  background: var(--success);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}

.slider-accent::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* SUBKPI BANNER */
.subkpi-banner {
  margin-top: 14px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #1E40AF;
}

.subkpi-banner strong {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text-main);
}

/* DROPZONE */
.dropzone {
  position: relative;
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.dropzone-empty svg {
  color: var(--text-muted);
}

.dropzone-empty small {
  color: var(--text-dim);
  font-size: 10px;
}

.dropzone-preview {
  position: relative;
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.dropzone-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.dropzone-preview:hover img {
  transform: scale(1.02);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-sm);
}

.dropzone-preview:hover .preview-overlay {
  opacity: 1;
}

.btn-expand-img {
  background: #FFFFFF;
  color: #0F172A;
  border: none;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

.btn-expand-img:hover {
  transform: scale(1.05);
  background: var(--primary);
  color: white;
}

.btn-remove-img {
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

.btn-remove-img:hover {
  transform: scale(1.1);
  background: #DC2626;
}

/* ==========================================================================
   IMAGE MODAL LIGHTBOX (CON ZOOM & SCROLL)
   ========================================================================== */
.img-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.img-modal-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 95vw;
  height: 92vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.img-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 12px;
}

.img-modal-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

.img-modal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tool {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-tool:hover {
  background: #EFF6FF;
  border-color: var(--primary);
  transform: scale(1.05);
}

.btn-tool-text {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tool-text:hover {
  background: #EFF6FF;
  border-color: var(--primary);
  color: var(--primary);
}

.zoom-badge {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 10px;
  border-radius: 14px;
  min-width: 54px;
  text-align: center;
}

.btn-close-modal {
  background: #EF4444;
  color: white;
  border: none;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: #DC2626;
  transform: scale(1.03);
}

.img-modal-body {
  flex: 1;
  padding: 20px;
  overflow: auto;
  background: #0B1120;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}

.img-modal-body.dragging {
  cursor: grabbing;
}

.img-zoom-viewport {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}

.img-zoom-viewport img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.img-modal-footer {
  padding: 8px 16px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  text-align: center;
  font-size: 11.5px;
  color: #64748B;
}

.img-modal-footer strong {
  color: #1E293B;
}



.hidden {
  display: none !important;
}

/* ==========================================================================
   HERO OFFER CARD (LIGHT)
   ========================================================================== */
.offer-hero-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #10B981;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}

.hero-top-tag {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #065F46;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-amount {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #064E3B;
  margin-bottom: 8px;
}

.hero-badge-wrap {
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.1);
}

.hero-desc {
  font-size: 13px;
  color: #065F46;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.45;
}

.hero-desc strong {
  color: #064E3B;
}

/* ==========================================================================
   REMATES SELECTOR (REMAJU)
   ========================================================================== */
.remates-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .remates-selector {
    grid-template-columns: 1fr;
  }
}

.remate-option {
  position: relative;
  background: #F8FAFC;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remate-option input {
  position: absolute;
  opacity: 0;
}

.remate-option:hover {
  border-color: #94A3B8;
  background: #FFFFFF;
}

.remate-option.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary);
}

.remate-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.remate-option.active .remate-badge {
  color: var(--primary);
}

.remate-formula {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.remate-val {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   BREAKDOWN LIST
   ========================================================================== */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.breakdown-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-info {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-direction: column;
}

.item-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.item-dot.blue { background: var(--primary); }
.item-dot.purple { background: var(--accent-purple); }
.item-dot.orange { background: var(--warning); }
.item-dot.red { background: var(--danger); }
.item-dot.green { background: var(--success); }

.item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}

.item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 12px;
}

.item-val {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.item-val.negative {
  color: #DC2626;
}

.item-val.highlight-green {
  color: #059669;
  font-size: 19px;
}

.breakdown-item.total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 2px solid #E2E8F0;
}

.breakdown-item.total .item-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

/* BUTTONS */
.action-buttons-row {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--success-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--success-glow);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   TAB 2: FLUJOGRAMAS
   ========================================================================== */
.flows-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flows-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.flow-selector-group {
  display: flex;
  gap: 8px;
}

.btn-flow-toggle {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-flow-toggle.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.flow-display-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.flow-card-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-card);
}

.flow-title-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-title-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
}

.badge-tag.green {
  background: var(--success-light);
  color: var(--success);
}

.flow-img-wrapper {
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  overflow-x: auto;
}

.flow-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==========================================================================
   TAB 3: SPEECH DE NEGOCIACIÓN
   ========================================================================== */
.speech-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.speech-header-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.speech-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 6px;
}

.speech-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.speech-subtitle {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.speech-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.speech-step-card {
  display: flex;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.speech-step-card.highlight {
  border-color: #A7F3D0;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-title);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.speech-step-card.highlight .step-num {
  background: var(--success);
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.speech-bubble {
  background: #F8FAFC;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: #1E293B;
  line-height: 1.6;
  margin-bottom: 10px;
}

.speech-bubble.highlight {
  border-left-color: var(--success);
  background: #ECFDF5;
}

.speech-bubble strong {
  color: #1D4ED8;
}

.speech-bubble.highlight strong {
  color: #047857;
}

.speech-offer-highlight {
  margin: 14px 0;
  padding: 12px 18px;
  background: #FFFFFF;
  border: 1.5px solid #10B981;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.offer-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--success);
}

.offer-value {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: #064E3B;
}

.step-tip {
  font-size: 12px;
  color: var(--text-muted);
}

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

.obj-item {
  background: #F8FAFC;
  border: 1px solid var(--border-card);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.obj-q {
  display: block;
  font-size: 13px;
  color: #B45309;
  margin-bottom: 4px;
}

.obj-a {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

/* ==========================================================================
   TAB 4: HOJA DE PROPUESTA & RESUMEN (PRINTABLE)
   ========================================================================== */
.propuesta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.propuesta-card-print {
  width: 100%;
  max-width: 800px;
  background: #FFFFFF;
  color: #1E293B;
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.prop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.prop-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  color: #0F172A;
}

.prop-date {
  font-size: 12px;
  color: #64748B;
}

.prop-title-box {
  text-align: center;
  margin-bottom: 24px;
}

.prop-title-box h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.prop-title-box p {
  font-size: 13px;
  color: #475569;
}

.prop-section {
  margin-bottom: 20px;
}

.prop-sec-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E40AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prop-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
}

.prop-table td:last-child {
  text-align: right;
  font-family: var(--font-title);
  font-weight: 700;
}

.prop-table tr.highlight-row {
  background: #EFF6FF;
}

.prop-table tr.prop-total-row {
  background: #ECFDF5;
  border-top: 2px solid #10B981;
}

.prop-table tr.prop-total-row td {
  font-size: 14px;
  font-weight: 800;
  color: #065F46;
  padding: 12px;
}

.prop-footer-note {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #CBD5E1;
  font-size: 11px;
  color: #64748B;
  line-height: 1.4;
}

/* PRINT STYLES */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .app-header, .nav-tabs, .prop-actions, #tab-calculadora, #tab-flujos, #tab-speech {
    display: none !important;
  }

  #tab-propuesta {
    display: block !important;
  }

  .propuesta-card-print {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    border: none !important;
  }
}
