/* === 01. Vista Previa de Hoja de Impresión === */

.print-page {
  display: flex;
  min-height: 100dvh;
  margin: 0;
  padding: 24px 16px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--page);
  color: var(--ink);
}

.print-sheet {
  width: 100%;
  max-width: 640px;
  padding: 32px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.print-sheet__title {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.3;
}

.print-sheet__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 24px;
  padding: 0;
}

.print-sheet__details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.print-sheet__details dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.print-sheet__note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.print-sheet__note h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.print-sheet__note-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.print-sheet__note-text--empty {
  color: var(--muted);
  font-style: italic;
}

.print-sheet__questions {
  margin: 0;
  padding-left: 22px;
}

.print-sheet__questions li {
  margin: 0 0 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.plan-emergency-card {
  border: 3px solid var(--primary);
}

.plan-emergency-card .print-sheet__title {
  margin-bottom: 18px;
}

.plan-emergency-card .print-sheet__details dd {
  font-size: 16px;
}

.plan-emergency-card .print-sheet__note h2 {
  color: var(--primary);
}

.plan-emergency-card .print-sheet__questions li {
  font-size: 15px;
  line-height: 1.5;
}

.print-page__actions {
  display: flex;
  width: 100%;
  max-width: 640px;
  flex-direction: column;
  gap: 12px;
}

.print-page__warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f2d185;
  border-radius: 12px;
  background: #fff8e7;
  color: #654b13;
  font-size: 13px;
  line-height: 1.5;
}

.print-page__actions .button {
  min-height: 48px;
  gap: 6px;
}

.print-page__actions .text-link {
  justify-content: center;
}

/* === 02. Reglas de Impresión Nativa === */

@media print {
  .no-print {
    display: none !important;
  }

  .print-page {
    padding: 0;
    background: #fff;
  }

  .print-sheet {
    max-width: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
