.eo-print-action {
  display: flex;
  justify-content: flex-end;
  margin: 1.35rem 0 0;
}

.eo-print-button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  color: #4b4b4b;
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.eo-print-button:hover {
  border-color: #8f8f8f;
  color: #1f1f1f;
  background: #fafafa;
}

.eo-print-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.eo-print-button__icon {
  flex: 0 0 auto;
}

@page {
  size: letter portrait;
  margin: 18mm 17mm 20mm;
}

@media print {
  html,
  body.single-post {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000 !important;
    background: #fff !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
  }

  body.single-post *,
  body.single-post *::before,
  body.single-post *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body.single-post #masthead,
  body.single-post .site-header,
  body.single-post .bs-head-detail,
  body.single-post .bs-menu-full,
  body.single-post .navbar,
  body.single-post .elementor-location-header,
  body.single-post .elementor-location-footer,
  body.single-post .bs-breadcrumb-section,
  body.single-post .breadcrumb,
  body.single-post .breadcrumbs,
  body.single-post #secondary,
  body.single-post .bs-sidebar,
  body.single-post .widget-area,
  body.single-post .post-navigation,
  body.single-post .navigation.post-navigation,
  body.single-post .comments-area,
  body.single-post .comment-respond,
  body.single-post .related-posts,
  body.single-post .bs-related-post,
  body.single-post .post-share,
  body.single-post .post-share-icons,
  body.single-post .sharedaddy,
  body.single-post .addtoany_share_save_container,
  body.single-post .heateor_sss_sharing_container,
  body.single-post .eo-print-action,
  body.single-post .bs_upscr,
  body.single-post .bs-footer-one,
  body.single-post .bs-footer-bottom-area,
  body.single-post footer.footer,
  body.single-post footer.footer.one,
  body.single-post footer.site-footer {
    display: none !important;
  }

  body.single-post #content,
  body.single-post .site-content,
  body.single-post main,
  body.single-post .container,
  body.single-post .container-fluid,
  body.single-post .row,
  body.single-post .bs-main-content,
  body.single-post .bs-blog-post,
  body.single-post article,
  body.single-post .entry-content {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #000 !important;
    background: #fff !important;
  }

  body.single-post .entry-title,
  body.single-post .bs-blog-post h1.title,
  body.single-post article > h1 {
    margin: 0 0 9pt !important;
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 18pt !important;
    line-height: 1.18 !important;
    text-align: left !important;
  }

  body.single-post .entry-content,
  body.single-post .bs-blog-post .single,
  body.single-post article {
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
  }

  /* Mantiene la firma editorial, pero no la fotografía del autor. */
  body.single-post .bs-info-author-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.single-post .bs-blog-meta {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.single-post .bs-author,
  body.single-post .bs-author-pic {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
    font-size: 9pt !important;
  }

  /* La imagen principal ocupa media caja y el texto comienza a su izquierda. */
  body.single-post article.small.single > .wp-block-cover:first-of-type {
    float: right !important;
    display: block !important;
    width: 48% !important;
    max-width: 48% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 8pt 16pt !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  body.single-post article.small.single > .wp-block-cover:first-of-type .wp-block-cover__image-background {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.single-post article.small.single > .wp-block-cover:first-of-type .wp-block-cover__background,
  body.single-post article.small.single > .wp-block-cover:first-of-type .wp-block-cover__inner-container {
    display: none !important;
  }

  /* Newsxo convierte estos subtítulos en contenedores flex de ancho completo.
     En impresión deben volver al flujo normal para que el texto rodee la imagen. */
  body.single-post article.small.single > .wp-block-cover:first-of-type ~ .bs-widget-title {
    display: block !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  body.single-post article.small.single > .wp-block-cover:first-of-type + .bs-widget-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.single-post article.small.single > .wp-block-cover:first-of-type ~ .bs-widget-title .border-line {
    display: none !important;
  }

  body.single-post article.small.single > .wp-block-cover:first-of-type ~ p,
  body.single-post article.small.single > .wp-block-cover:first-of-type ~ ul,
  body.single-post article.small.single > .wp-block-cover:first-of-type ~ ol,
  body.single-post article.small.single > .wp-block-cover:first-of-type ~ blockquote {
    display: block !important;
    clear: none !important;
    overflow: visible !important;
  }

  body.single-post .entry-content p,
  body.single-post .entry-content li,
  body.single-post .bs-blog-post p,
  body.single-post .bs-blog-post li {
    color: #000 !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
    text-align: justify !important;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    orphans: 3;
    widows: 3;
  }

  body.single-post .entry-content p,
  body.single-post .bs-blog-post p {
    margin: 0 0 7pt !important;
  }

  body.single-post h2 {
    font-size: 14pt !important;
  }

  body.single-post h3 {
    font-size: 12pt !important;
  }

  body.single-post h4,
  body.single-post h5,
  body.single-post h6 {
    font-size: 11pt !important;
  }

  body.single-post h1,
  body.single-post h2,
  body.single-post h3,
  body.single-post h4,
  body.single-post h5,
  body.single-post h6 {
    color: #000 !important;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  body.single-post .entry-content > p:first-of-type::first-letter,
  body.single-post .bs-blog-post p:first-of-type::first-letter {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    color: inherit !important;
  }

  /* Se elimina solo la imagen del autor; el nombre y la fecha permanecen. */
  body.single-post img.avatar,
  body.single-post .author img,
  body.single-post .bs-blog-meta img,
  body.single-post .bs-author-pic img,
  body.single-post .author-avatar,
  body.single-post .author-box__avatar,
  body.single-post .wp-block-post-author__avatar {
    display: none !important;
  }

  body.single-post a,
  body.single-post a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }

  body.single-post img,
  body.single-post figure,
  body.single-post blockquote,
  body.single-post pre,
  body.single-post tr {
    max-width: 100% !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  body.single-post img {
    height: auto !important;
  }

  body.single-post table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 9pt !important;
  }

  body.single-post thead {
    display: table-header-group;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eo-print-button {
    transition: none;
  }
}
