:root {
  --gp-bg-deep: #000914;
  --gp-bg-mid: #001226;
  --gp-bg-soft: #09243b;
  --gp-gold: #c5a059;
  --gp-blue: #00538b;
  --gp-white: #f1f5f9;
  --gp-ink: #d9e5f2;
  --gp-line: rgba(197, 160, 89, 0.18);
  --gp-ok: #23b26d;
  --gp-warn: #d79d25;
  --gp-bad: #d84f57;
  --gp-radius: 14px;
  --gp-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

#gp-nom035 {
  color: var(--gp-white);
  background:
    radial-gradient(circle at top right, rgba(197, 160, 89, 0.18), transparent 26%),
    radial-gradient(circle at left center, rgba(0, 83, 139, 0.24), transparent 30%),
    linear-gradient(180deg, var(--gp-bg-mid), var(--gp-bg-deep));
  min-height: 100vh;
  padding: 32px 18px 64px;
  font-family: "DM Sans", sans-serif;
}

.gp-app-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gp-modulo {
  margin-bottom: 18px;
}

.gp-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.gp-hero {
  padding: 34px 24px;
}

.gp-kicker,
.gp-eyebrow {
  color: var(--gp-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.gp-title,
.gp-section-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  margin: 0;
  color: var(--gp-white);
}

.gp-title {
  font-size: 36px;
  line-height: 1.08;
  max-width: 780px;
}

.gp-section-title {
  font-size: 24px;
  line-height: 1.1;
}

.gp-copy {
  color: var(--gp-ink);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
  margin: 14px 0 0;
}

.gp-copy-tight {
  max-width: none;
  font-size: 15px;
}

.gp-section-head {
  margin-bottom: 18px;
}

.gp-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gp-role-card {
  padding: 24px;
  border-radius: var(--gp-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(0, 83, 139, 0.18), rgba(0, 9, 20, 0.12));
  box-shadow: var(--gp-shadow);
}

.gp-role-card.is-active {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.gp-role-card .gp-btn {
  margin-top: 18px;
}

.gp-status,
.gp-alert,
.gp-placeholder,
.gp-summary,
.gp-aviso,
.gp-token-box {
  border-radius: 12px;
}

.gp-mt {
  margin-top: 18px;
}

.gp-status,
.gp-alert,
.gp-placeholder {
  padding: 16px 18px;
  border: 1px solid transparent;
}

.gp-status-info {
  background: rgba(0, 83, 139, 0.18);
  border-color: rgba(0, 83, 139, 0.36);
}

.gp-status-ok {
  background: rgba(35, 178, 109, 0.14);
  border-color: rgba(35, 178, 109, 0.34);
}

.gp-status-warn {
  background: rgba(215, 157, 37, 0.14);
  border-color: rgba(215, 157, 37, 0.34);
}

.gp-status-bad,
.gp-alert-bad {
  background: rgba(216, 79, 87, 0.14);
  border-color: rgba(216, 79, 87, 0.34);
}

.gp-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.gp-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.gp-check-row.is-ok strong {
  color: var(--gp-ok);
}

.gp-check-row.is-bad strong {
  color: var(--gp-bad);
}

.gp-form {
  display: grid;
  gap: 18px;
}

.gp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gp-span-2 {
  grid-column: span 2;
}

.gp-form label,
.gp-token-box label {
  display: grid;
  gap: 8px;
  color: var(--gp-ink);
  font-size: 14px;
}

.gp-form input,
.gp-token-box input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--gp-white);
  padding: 13px 14px;
  font-size: 14px;
  box-sizing: border-box;
}

.gp-form input:focus,
.gp-token-box input:focus {
  outline: none;
  border-color: var(--gp-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.gp-token-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(197, 160, 89, 0.38);
  background: rgba(197, 160, 89, 0.05);
}

.gp-token-kicker {
  margin: 0 0 12px;
  color: var(--gp-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.gp-m7-state {
  padding: 18px;
  border-radius: 14px;
}

.gp-m7-state-legal {
  border: 1px solid rgba(197, 160, 89, 0.38);
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.14), rgba(197, 160, 89, 0.06));
}

.gp-m7-legal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.gp-m7-state-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #07111b;
  background: linear-gradient(135deg, var(--gp-gold), #e0c083);
}

.gp-m8-legal-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gp-gold);
  font-weight: 500;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
}
.gp-m8-legal-chip::before {
  content: 'ℹ';
  font-size: 13px;
}

.gp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 9, 20, 0.78);
}

.gp-modal-card {
  width: min(680px, 100%);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  background: linear-gradient(180deg, rgba(0, 18, 38, 0.98), rgba(0, 9, 20, 0.98));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
}

.gp-modal-card p {
  color: var(--gp-ink);
  line-height: 1.7;
}

.gp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gp-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.gp-btn:hover {
  transform: translateY(-1px);
}

.gp-btn-primary {
  color: #07111b;
  background: linear-gradient(135deg, var(--gp-gold), #e0c083);
  box-shadow: 0 10px 22px rgba(197, 160, 89, 0.22);
}

.gp-btn-secondary {
  color: var(--gp-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.gp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.gp-summary > div {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gp-line);
}

.gp-span-full {
  grid-column: 1 / -1;
}

.gp-summary span {
  display: block;
  color: var(--gp-ink);
  font-size: 12px;
  margin-bottom: 6px;
}

.gp-summary strong {
  font-size: 15px;
  color: var(--gp-white);
}

.gp-aviso {
  border: 1px solid var(--gp-line);
  overflow: hidden;
}

.gp-aviso-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(197, 160, 89, 0.08);
  padding: 14px 16px;
  border-bottom: 1px solid var(--gp-line);
}

.gp-aviso-body {
  padding: 18px;
  max-height: 480px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.02);
}

.gp-aviso-meta {
  margin: 6px 0 0;
  color: var(--gp-ink);
  font-size: 13px;
  line-height: 1.5;
}

.gp-aviso-seccion + .gp-aviso-seccion {
  margin-top: 14px;
}

.gp-aviso-titulo {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.gp-aviso-texto {
  margin: 0;
  color: var(--gp-ink);
  line-height: 1.6;
  font-size: 14px;
}

.gp-doc {
  display: grid;
  gap: 16px;
}

.gp-doc-section {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gp-doc-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: "Syne", sans-serif;
}

.gp-doc-list {
  margin: 0;
  padding-left: 20px;
  color: var(--gp-ink);
  line-height: 1.7;
}

.gp-doc-list li + li {
  margin-top: 8px;
}

.gp-m8-shell {
  overflow: hidden;
}

.gp-m8-report {
  border-radius: var(--gp-radius);
  border: 1px solid rgba(197, 160, 89, 0.18);
  background:
    radial-gradient(circle at top right, rgba(197, 160, 89, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(0, 9, 20, 0.96), rgba(0, 18, 38, 0.94));
  padding: 24px;
}

.gp-m8-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.gp-m8-brand,
.gp-m8-pattern-title,
.gp-m8-title {
  font-family: "Syne", sans-serif;
}

.gp-m8-brand {
  margin: 0 0 6px;
  color: var(--gp-gold);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

.gp-m8-title {
  margin: 0;
  font-size: 28px;
  color: var(--gp-white);
}

.gp-m8-badge,
.gp-m8-reference-chip,
.gp-m8-chip,
.gp-m8-pattern-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.gp-m8-badge {
  padding: 10px 14px;
  color: #07111b;
  background: linear-gradient(135deg, var(--gp-gold), #e0c083);
}

.gp-m8-divider,
.gp-m8-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.9), rgba(197, 160, 89, 0.12));
}

.gp-m8-divider {
  margin: 18px 0 20px;
}

.gp-m8-meta {
  display: grid;
  gap: 10px;
}

.gp-m8-reference-chip {
  width: fit-content;
  padding: 8px 12px;
  color: var(--gp-white);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.gp-m8-reference-note,
.gp-m8-pattern-copy,
.gp-m8-empty-copy,
.gp-m8-disclaimer {
  color: var(--gp-ink);
}

.gp-m8-reference-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.gp-m8-section {
  margin-top: 20px;
}

.gp-m8-grid {
  display: grid;
  gap: 14px;
}

.gp-m8-card,
.gp-m8-empty,
.gp-m8-cta {
  border-radius: 14px;
}

.gp-m8-card {
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-left: 4px solid var(--gp-gold);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.05), rgba(241, 245, 249, 0.02));
  padding: 18px 20px;
}

.gp-m8-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.gp-m8-pattern-badge {
  min-width: 42px;
  justify-content: center;
  padding: 8px 12px;
  color: #07111b;
  background: linear-gradient(135deg, var(--gp-gold), #e0c083);
}

.gp-m8-pattern-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--gp-white);
}

.gp-m8-pattern-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.gp-m8-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.gp-m8-chip {
  gap: 6px;
  padding: 8px 12px;
  color: var(--gp-white);
  background: rgba(0, 83, 139, 0.22);
  border: 1px solid rgba(0, 83, 139, 0.4);
}

.gp-m8-chip strong {
  color: var(--gp-gold);
}

.gp-m8-empty {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(35, 178, 109, 0.32);
  background: linear-gradient(180deg, rgba(35, 178, 109, 0.14), rgba(35, 178, 109, 0.08));
}

.gp-m8-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #07111b;
  font-size: 22px;
  font-weight: 700;
  background: #7be0a8;
}

.gp-m8-empty-title {
  margin: 0 0 6px;
  font-family: "Syne", sans-serif;
  font-size: 24px;
  color: var(--gp-white);
}

.gp-m8-empty-copy {
  margin: 0;
  line-height: 1.6;
}

.gp-m8-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(197, 160, 89, 0.16);
  background: rgba(197, 160, 89, 0.08);
}

.gp-m8-cta-copy {
  margin: 0;
  color: var(--gp-white);
  font-size: 15px;
  line-height: 1.6;
}

.gp-m8-cta-link {
  text-decoration: none;
}

.gp-m8-footer-divider {
  margin: 20px 0 14px;
}

.gp-m8-footer {
  padding-bottom: 2px;
}

.gp-m8-disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.gp-survey {
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.gp-survey-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.gp-subtitle {
  margin: 4px 0 0;
  font-size: 20px;
  font-family: "Syne", sans-serif;
}

.gp-progress-chip {
  min-width: 90px;
  text-align: right;
}

.gp-progress-chip strong,
.gp-progress-chip span {
  display: block;
}

.gp-progress-chip span {
  color: var(--gp-ink);
  font-size: 12px;
}

.gp-meter {
  height: 10px;
  margin: 14px 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.gp-meter-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gp-blue), var(--gp-gold));
}

.gp-helper {
  color: var(--gp-ink);
  margin: 0 0 18px;
  line-height: 1.6;
}

.gp-question-list {
  display: grid;
  gap: 14px;
}

.gp-question-section {
  padding-top: 6px;
}

.gp-question-section h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-family: "Syne", sans-serif;
}

.gp-question-section p {
  margin: 0;
  color: var(--gp-ink);
  line-height: 1.5;
}

.gp-question-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gp-gold);
  font-size: 11px;
  font-weight: 700;
}

.gp-question-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gp-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gp-ink);
  font-size: 12px;
  margin-bottom: 10px;
}

.gp-question-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
}

.gp-worker-close {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(35, 178, 109, 0.24);
  background: linear-gradient(180deg, rgba(35, 178, 109, 0.12), rgba(35, 178, 109, 0.04));
}

.gp-worker-close.is-ats {
  border-color: rgba(197, 160, 89, 0.34);
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.12), rgba(197, 160, 89, 0.05));
}

.gp-worker-close-copy p {
  margin: 0 0 12px;
  color: var(--gp-white);
  line-height: 1.7;
}

.gp-worker-close-copy p:last-child {
  margin-bottom: 0;
}

.gp-worker-close-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gp-worker-close-meta span {
  display: block;
  color: var(--gp-ink);
  font-size: 12px;
  margin-bottom: 4px;
}

.gp-worker-close-meta strong {
  color: var(--gp-gold);
  font-size: 15px;
}

.gp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-tab {
  border: 1px solid rgba(197, 160, 89, .35);
  background: rgba(0, 18, 38, .72);
  color: var(--gp-white);
  border-radius: 8px;
  padding: 10px 14px;
  font: 700 14px "DM Sans", sans-serif;
  cursor: pointer;
}

.gp-tab.is-active {
  background: var(--gp-gold);
  color: #000914;
}

.gp-m10-report-grid,
.gp-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gp-m10-report-grid article {
  border: 1px solid rgba(197, 160, 89, .22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 9, 20, .52);
}

.gp-m10-report-grid article span {
  color: var(--gp-gold);
  font-weight: 800;
  font-size: 12px;
}

.gp-m10-report-grid article strong {
  display: block;
  margin: 6px 0;
}

.gp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gp-table th,
.gp-table td {
  border-bottom: 1px solid rgba(241, 245, 249, .14);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.gp-table th {
  color: var(--gp-gold);
}

.gp-table td span,
.gp-table td em {
  display: block;
  margin-top: 4px;
  color: rgba(241, 245, 249, .74);
  font-style: normal;
}

.gp-chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gp-chart-grid canvas {
  min-height: 220px;
  max-height: 260px;
  border: 1px solid rgba(197, 160, 89, .22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 9, 20, .52);
}

.gp-worker-flow {
  display: grid;
  gap: 12px;
}

.gp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gp-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}

.gp-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gp-white);
}

.gp-check input {
  accent-color: var(--gp-gold);
}

.gp-pill {
  position: relative;
  display: inline-flex;
}

.gp-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gp-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gp-white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gp-pill input:checked + span {
  border-color: var(--gp-gold);
  background: rgba(197, 160, 89, 0.16);
  transform: translateY(-1px);
}

.gp-pill-tight span {
  min-width: 96px;
  padding: 9px 12px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .gp-title {
    font-size: 30px;
  }

  .gp-role-grid {
    grid-template-columns: 1fr;
  }

  .gp-m10-report-grid,
  .gp-chart-grid {
    grid-template-columns: 1fr;
  }

  .gp-grid {
    grid-template-columns: 1fr;
  }

  .gp-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  #gp-nom035 {
    padding: 20px 12px 48px;
  }

  .gp-panel {
    padding: 18px;
  }

  .gp-title {
    font-size: 26px;
  }

  .gp-section-title {
    font-size: 21px;
  }

  .gp-aviso-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gp-m8-header,
  .gp-m8-card-head,
  .gp-m8-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .gp-survey-head,
  .gp-question-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════
   @media print — GENEPRES NOM-035 · Design System V7.0
   Propósito: PDF imprimible limpio para Dictamen STPS (M5) y PAP (M6)
   Instrucción: pegar al final de gp-styles.css
   ══════════════════════════════════════════════════════════════ */

@media print {

  /* ── 1. Reset global de pantalla ─────────────────────────── */
  /* Eliminar todo lo que no funciona en papel */
  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* ── 2. Colores base para papel ──────────────────────────── */
  #gp-nom035 {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 0 !important;
    min-height: unset !important;
  }

  .gp-app-container {
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* ── 3. Tipografía para papel ────────────────────────────── */
  body,
  #gp-nom035,
  .gp-copy,
  .gp-aviso-texto,
  .gp-helper,
  .gp-question-text {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #111111 !important;
  }

  .gp-title,
  .gp-section-title,
  .gp-subtitle {
    font-size: 16px !important;
    color: #000000 !important;
    page-break-after: avoid;
  }

  .gp-aviso-titulo,
  .gp-question-section h3 {
    font-size: 13px !important;
    color: #000000 !important;
  }

  .gp-kicker,
  .gp-eyebrow,
  .gp-question-kicker {
    font-size: 9px !important;
    color: #444444 !important;
  }

  /* ── 4. Paneles y bordes para papel ─────────────────────── */
  .gp-panel {
    border: 1px solid #cccccc !important;
    border-radius: 0 !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid;
  }

  .gp-aviso {
    border: 1px solid #cccccc !important;
    border-radius: 0 !important;
  }

  .gp-aviso-head {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #cccccc !important;
    padding: 10px 12px !important;
  }

  .gp-aviso-body {
    max-height: unset !important;
    overflow: visible !important;
    padding: 12px !important;
  }

  /* ── 5. Layout: colapsar grids a una columna ─────────────── */
  .gp-grid,
  .gp-summary,
  .gp-check-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .gp-span-2,
  .gp-span-full {
    grid-column: span 1 !important;
  }

  /* ── 6. Ocultar elementos de navegación e interacción ────── */
  /* Todo lo que no pertenece al documento impreso */
  .gp-btn,
  .gp-actions,
  .gp-options,
  .gp-pill,
  .gp-toggle-row,
  .gp-meter,
  .gp-progress-chip,
  .gp-form input,
  .gp-token-box input,
  .gp-no-print {
    display: none !important;
  }

  /* ── 7. Módulos: solo imprimir M5 y M6 ───────────────────── */
  /* Ocultar todos los módulos por defecto */
  .gp-modulo {
    display: none !important;
  }

  /* Mostrar solo el módulo marcado como activo para impresión */
  /* gp-app.js debe agregar la clase .gp-print-target al módulo
     que se va a imprimir antes de llamar window.print() */
  .gp-print-target {
    display: block !important;
  }

  /* ── 8. Saltos de página controlados ─────────────────────── */
  .gp-page-break-before {
    page-break-before: always;
  }

  .gp-page-break-after {
    page-break-after: always;
  }

  .gp-no-break {
    page-break-inside: avoid;
  }

  /* ── 9. Colores de semáforo legibles en escala de grises ─── */
  .gp-status-ok,
  .gp-status-info,
  .gp-status-warn,
  .gp-status-bad,
  .gp-alert-bad {
    background: #f5f5f5 !important;
    border: 1px solid #888888 !important;
    color: #111111 !important;
  }

  /* ── 10. Summary cards en papel ─────────────────────────── */
  .gp-summary > div,
  .gp-check-row {
    border: 1px solid #cccccc !important;
    background: #fafafa !important;
    padding: 8px 10px !important;
  }

  .gp-summary strong,
  .gp-summary span {
    color: #111111 !important;
  }

  /* ── 11. Encabezado y pie de página en impresión ─────────── */
  /* Usar @page para márgenes de papel */
  .gp-m8-report,
  .gp-m8-card,
  .gp-m8-empty,
  .gp-m8-footer,
  .gp-m8-meta,
  .gp-m8-reference-chip {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .gp-m8-header {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .gp-m8-brand,
  .gp-m8-title,
  .gp-m8-pattern-title,
  .gp-m8-empty-title {
    color: #000000 !important;
  }

  .gp-m8-badge,
  .gp-m8-pattern-badge,
  .gp-m8-reference-chip,
  .gp-m8-chip {
    border: 1px solid #c5a059 !important;
    color: #111111 !important;
    background: #ffffff !important;
  }

  .gp-m8-card {
    border: 1px solid #cccccc !important;
    border-left: 4px solid #c5a059 !important;
    page-break-inside: avoid;
  }

  .gp-m8-divider,
  .gp-m8-footer-divider {
    background: #c5a059 !important;
  }

  .gp-m8-reference-note,
  .gp-m8-pattern-copy,
  .gp-m8-empty-copy,
  .gp-m8-disclaimer {
    color: #111111 !important;
  }

  .gp-m8-cta {
    display: none !important;
  }

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

  /* ── 12. Links: mostrar URL en papel ─────────────────────── */
  a[href]:after {
    content: none !important;
  }

  /* ── 13. printSection: rescatar sección dentro de módulo oculto ── */
  /* Solo aplica cuando el módulo tiene AMBAS clases: gp-modulo + gp-print-target
     Si el módulo ya era visible (ej. gp-m5 en pantalla), estas reglas NO activan */
  /* ── 13. printSection: solo cuando hay sección hija marcada ── */
  .gp-modulo.gp-print-target {
    display: block !important;
  }
  .gp-modulo:has(> .gp-print-target) > *:not(.gp-print-target) {
    display: none !important;
  }

  /* ── 15. Evitar cortes de página dentro de secciones ─────────── */
  .gp-doc .gp-panel,
  .gp-doc .gp-summary,
  .gp-doc section,
  #gp-acta-cierre .gp-panel,
  #gp-acta-cierre section,
  #gp-reporte-ejecutivo .gp-panel,
  .gp-m8-card,
  .gp-no-break {
    break-inside: avoid;
  }

  /* ── 16. Reporte ejecutivo: ocultar botones dentro del shell ─── */
  .gp-m8-shell.gp-print-target > *:not(.gp-print-target) {
    display: none !important;
  }

  /* ── 14. Suprimir URL y fecha del browser en impresión ───────── */
  @page {
    margin: 10mm 10mm 0 10mm;
  }

}
/* ── FIN @media print ────────────────────────────────────────── */
