/* =========================================================
   TÍTULO SOLO PARA IMPRESIÓN — ESTABLE MULTI NAVEGADOR
   ========================================================= */

/* -------- PANTALLA -------- */
@media screen {
  .print-only-title {
    width: 0;
    height: 0;
    overflow: hidden;
  }
}

/* -------- IMPRESIÓN -------- */
@media print {

  /* Título generado */
  .print-only-title::before {
    content: "Inteligencia Fractal";

    display: block;
    text-align: center;

    font-family: "Times New Roman", Georgia, serif;
    font-size: 26pt;
    font-weight: bold;
    letter-spacing: 1px;

    margin: 0 0 12pt 0;
    padding: 0;

    color: #000;
  }

  /* Ocultar PNG del título */
  img[src*="inteligencia fractal"] {
    display: none !important;
  }

  /* ❗ SOLO evitar cortes en tablas chicas */
  table.footer,
  table.figure {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Permitir flujo normal en tablas grandes */
  table {
    page-break-inside: auto;
    break-inside: auto;
  }
}

/* Página */
@page {
  size: A4;
  margin: 2cm;
}
/* Centrar el contenido sin <center> */
.page-wrap {
  width: 600px;
  margin: 0 auto;
}

/* Título SOLO para imprimir */
@media screen {
  .print-only-title {
    display: none;
  }
}

@media print {
  .print-only-title::before {
    content: "Inteligencia Fractal";
    display: block;
    text-align: center;
    font-size: 26pt;
    font-weight: bold;
    margin-bottom: 10pt;
  }

  /* Ocultar imagen del título */
  img[src*="inteligencia fractal"] {
    display: none;
  }
}

/* Página */
@page {
  size: A4;
  margin: 1.5cm;
}

/* =========================================
   OCULTAR BOTONES FLOTANTES AL IMPRIMIR
   ========================================= */
@media print {

  .btn-flotante,
  .no-print {
    display: none !important;
    visibility: hidden !important;
  }

}

