@media print {
  /* Configuración del tamaño de página */
  @page {
    size: A4 portrait;
    margin: 20mm;
  }

  /* Reset general */
  body {
    width: 210mm;
    height: auto;
    margin: 0;
    padding: 0;
    background: white !important;
    color: black !important;
  }

  .site-main {
    width: 100%;
    height: auto;
  }

  /* Ocultar elementos que no se imprimen */
  .site-header,
  .action-buttons,
  .footer-left .menu,
  .embarcacion-video,
  .no-print {
    display: none !important;
  }

  /* Footer */
  .single-embarcaciones .site-footer {
    margin-top: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
  }

  .site-footer .site-wrapper {
    justify-content: inherit;
  }

  .site-footer .footer-right {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 0;
  }

  .site-footer .footer-right div:nth-child(1) {
    grid-area: 1 / 1 / 5 / 2;
    align-self: center;
  }
  .site-footer .footer-right div:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }
  .site-footer .footer-right div:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
  }
  .site-footer .footer-right div:nth-child(4) {
    grid-area: 3 / 2 / 4 / 3;
  }
  .site-footer .footer-right div:nth-child(5) {
    grid-area: 4 / 2 / 5 / 3;
  }

  .site-footer .footer-logo {
    display: block;
  }

  /* ------------------------- */
  /* Contenedor principal de la embarcación con flex */
  .single-embarcaciones .site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Header ocupa todo el ancho */
  .embarcacion-header {
    flex-basis: 100%;
    display: block;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0.5rem;
  }

  /* Contenido y specs en dos columnas */
  .embarcacion-content {
    flex-basis: calc(65% - 0.5rem);
    break-inside: auto;
    margin-bottom: 0.5rem;
  }

  .embarcacion-specs {
    flex-basis: calc(35% - 0.5rem);
    break-inside: auto;
    margin-bottom: 0.5rem;
  }

  .single-embarcaciones .tag {
    background-color: transparent;
    color: #073450;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    margin-right: 0.5rem;
    line-height: 1rem;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Galería de imágenes */
  .embarcacion-gallery {
    height: auto;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 100px;
    grid-auto-rows: 100px;
    gap: 5mm;
    max-height: calc(500px + 15mm);
  }
  .embarcacion-gallery figure {
    width: 100% !important;
  }
  .embarcacion-gallery figure:first-child {
    grid-column: 1 / -1; /* hace que ocupe ambas columnas */
    max-height: 200px;
  }
  .embarcacion-gallery figure:nth-child(n + 8) {
    display: none !important;
  }

  /* Tablas de especificaciones */
  table.embarcacion-general-specs th,
  table.embarcacion-tech-specs th {
    text-align: left;
    font-weight: 700;
    padding: 0.1em 0.1em;
    vertical-align: top;
    white-space: nowrap;
  }

  table.embarcacion-general-specs td,
  table.embarcacion-tech-specs td {
    text-align: right;
    padding: 0.1em 0.1em;
    color: #333;
  }

  .embarcacion-specs h2 {
    font-size: var(--fs-big) !important;
    margin-bottom: 0.2rem;
  }

  .embarcacion-extras-tags {
    margin: 0.1rem 0;
  }

  .embarcacion-extras-tags .tag-group {
    margin-bottom: 0;
  }

  .embarcacion-extras-tags .tag-group h3 {
    margin-bottom: 0.1em;
  }
}
