/* ==========================================================================
   GEROS ERP - HOJA DE ESTILOS PARA EXPORTACIÓN A PDF / IMPRESIÓN
   Optimizado para Formato A4 / Carta Apaisado (Landscape)
   ========================================================================== */

@media print {
  @page {
    size: A4 landscape;
    margin: 1.2cm 1.4cm;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.45 !important;
    overflow: visible !important;
  }

  /* Ocultar elementos interactivos no imprimibles */
  .app-header,
  .deck-controls-floating,
  .btn-mode-toggle,
  .nav-actions,
  .module-tabs-wrapper,
  .sim-slider,
  .sim-input-group,
  .bg-glow-1,
  .bg-glow-2,
  .btn,
  #deck-controls {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Saltos de Página Limpios */
  .print-page {
    page-break-after: always !important;
    break-after: page !important;
    min-height: 18cm;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5cm 0;
    box-sizing: border-box;
  }

  .print-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  /* Encabezado y Pie de Página Impreso */
  .print-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #015537;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  .print-header-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 14pt;
    font-weight: 800;
    color: #015537;
    letter-spacing: -0.02em;
  }

  .print-header-tag {
    font-size: 9pt;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
  }

  .print-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #cbd5e1;
    padding-top: 8px;
    margin-top: 16px;
    font-size: 8pt;
    color: #64748b;
  }

  /* Ajustes tipográficos para impresión */
  h1 { font-size: 24pt !important; color: #015537 !important; line-height: 1.15 !important; }
  h2 { font-size: 18pt !important; color: #0f172a !important; margin-bottom: 8px !important; }
  h3 { font-size: 13pt !important; color: #015537 !important; margin-bottom: 4px !important; }
  h4 { font-size: 11pt !important; color: #1e293b !important; }
  p { font-size: 9.5pt !important; color: #334155 !important; }

  /* Asegurar que las tarjetas impriman con bordes limpios */
  .hero-visual-card,
  .module-showcase-card,
  .risk-card,
  .aux-card,
  .service-card,
  .story-box,
  .features-delivery-card,
  .comparison-table-wrapper {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .story-box.box-pain {
    border-left: 4px solid #ef4444 !important;
    background: #fff5f5 !important;
  }

  .story-box.box-solution {
    border-left: 4px solid #04b86d !important;
    background: #f0fdf4 !important;
  }

  .kpi-chip {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }

  .kpi-chip-val {
    color: #015537 !important;
  }

  .hero-pill, .badge-tag {
    border: 1px solid #015537 !important;
    color: #015537 !important;
    background: #f0fdf4 !important;
  }

  /* Tabla comparativa en impresión */
  .comparison-table th.col-geros {
    background: #015537 !important;
    color: #ffffff !important;
  }

  .comparison-table td.cell-geros {
    background: #f0fdf4 !important;
    font-weight: 600 !important;
    color: #015537 !important;
  }

  /* Capturas de pantalla e imágenes en impresión */
  .zoom-hover-overlay,
  .lightbox-modal {
    display: none !important;
  }

  .hero-screenshot-frame,
  .showcase-visual-banner {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
  }

  .visual-banner-img-wrapper {
    max-height: 220px !important;
  }

  .hero-dashboard-img,
  .visual-banner-img {
    max-height: 220px !important;
    object-fit: cover !important;
  }
}
