/* ==================== Print styles ==================== */
@media print {
  /* Reset backgrounds, save ink */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 11pt;
    line-height: 1.5;
    background: white !important;
  }

  /* Hide everything non-essential */
  nav, header.nav, .nav, .topnav, .masthead-nav,
  .filters-wrap, .filters, .filter,
  .hero-actions, .hero-cta, .video-cta,
  .footer, footer, .sir-copyright,
  .back-to-hub, .scroll-top, .whatsapp-fab, .theme-btn,
  .reading-progress, .skip-link,
  .cart, .wishlist, .cart-overlay,
  button:not([type="submit"]), .btn, .cta, .cta-ghost, .btn-primary,
  .share-bar, .newsletter, .trending,
  iframe, video, audio,
  .floating-card, .bg-orb, .bg-grid, .bg-gradient {
    display: none !important;
  }

  /* Make sure images print well */
  img, .card-img, .featured-img, .hero-photo, .gallery-item img {
    max-width: 100% !important;
    page-break-inside: avoid;
    filter: none !important;
  }

  /* Article body */
  article, .article, .article-body, main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000 !important;
  }

  /* Headings */
  h1, h2, h3, h4 {
    page-break-after: avoid;
    page-break-inside: avoid;
    color: #000 !important;
    font-family: Georgia, serif !important;
  }
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }
  p { orphans: 3; widows: 3; }

  /* Links with URL inline */
  a[href^="http"]:after,
  a[href^="mailto"]:after {
    content: " <" attr(href) ">";
    font-size: 9pt;
    color: #555 !important;
  }

  /* Avoid blank pages */
  body > * { page-break-after: auto; }

  /* Tablas legibles */
  table { border-collapse: collapse; width: 100%; }
  table, th, td { border: 1px solid #ccc; }
  th, td { padding: 6px 8px; }

  /* Print URL of current page */
  @page { margin: 2cm; }
}
