:root {
  --fondo: #E9EDF4;
  --tinta: #0F172A;
  --azul: #1565C0;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: 'DM Sans', Helvetica, Arial, sans-serif; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding-left: 1.1em; }
aside { display: none; }
.kit-oculto { display: none !important; }

.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: #0B1020; color: #F4F6FB;
  padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
}
.toolbar .marca { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.toolbar .marca img { height: 28px; }
.toolbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar nav a { color: #B8C4DA; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.toolbar nav a[aria-current="page"] { background: #1A2340; color: #fff; }
.toolbar .campos { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #B8C4DA; }
.toolbar input { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 8px; border: 1px solid #2A3A5C; background: #141B2E; color: #fff; width: 210px; }
.toolbar button {
  font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border: 0; border-radius: 10px;
  background: #4CAF50; color: #0B1020; cursor: pointer; min-height: 44px;
}
.ayuda { max-width: 900px; margin: 16px auto 0; padding: 0 16px; font-size: 14px; color: #475569; text-align: center; }

.hojas { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 16px 48px; }
.marco { position: relative; overflow: hidden; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18); }
.hoja { position: absolute; left: 0; top: 0; transform-origin: top left; transform: scale(var(--s, 1)); overflow: hidden; }

@media print {
  html, body { background: #fff; }
  .toolbar, .ayuda { display: none !important; }
  .hojas { display: block; padding: 0; }
  .marco { width: auto !important; height: auto !important; box-shadow: none; overflow: visible; break-after: page; page-break-after: always; }
  .marco:last-child { break-after: auto; page-break-after: auto; }
  .hoja { position: relative; transform: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
