/* Manual print-style stylesheet — used by ui_kits/manual/index.html */
@import url("./colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #E8E4DA;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(0,156,223,0.10), transparent 35%),
    radial-gradient(circle at 88% 78%, rgba(231,22,128,0.10), transparent 38%),
    radial-gradient(circle at 70% 18%, rgba(254,209,62,0.12), transparent 30%);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--ink-1);
  padding: 56px 24px 96px;
}

/* ======= Page chrome (a single A4-ish printable page) ======= */
.page {
  width: 794px;             /* A4 @ 96dpi */
  min-height: 1123px;       /* A4 height */
  margin: 0 auto 48px;
  background: var(--paper-1);
  border-radius: 14px;
  box-shadow:
    0 32px 60px rgba(14,14,16,.18),
    0 12px 24px rgba(14,14,16,.10);
  position: relative;
  overflow: hidden;
  padding: 56px 64px 72px;
  display: flex;
  flex-direction: column;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-head img { height: 26px; width: auto; }
.page-head .pn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.rainbow-rule {
  height: 4px;
  border-radius: 4px;
  background: var(--caico-rainbow);
  margin-bottom: 36px;
}
.page-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Eyebrow */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* Headings inside a manual page */
.page h1.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  margin: 32px 0 14px;
}
.page h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink-2);
  margin: 24px 0 8px;
}
.page p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
  text-wrap: pretty;
  max-width: 60ch;
}
.lead { font-size: 17px !important; line-height: 1.6 !important; color: var(--ink-2) !important; }

/* ======= Cover ======= */
.cover {
  background: var(--ink-1);
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cover .top {
  padding: 56px 64px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cover .top img { height: 36px; }
.cover .top .ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.08em;
}
.cover .center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 64px;
  position: relative;
}
.cover .bot {
  padding: 24px 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cover .eyebrow { color: rgba(255,255,255,.55); margin: 0; }
.cover .product {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 132px;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.cover .product .accent { background: var(--caico-rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover .sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  max-width: 60ch;
}
.cover .url {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--caico-yellow);
}

/* ======= Marker pill ======= */
.marker {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85em;
  background: var(--caico-black);
  color: var(--caico-yellow);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: 2%;
}
.marker.cyan { color: #00D8FF; }
.marker.pink { color: #EC5C85; }

/* ======= Steps ======= */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 8px;
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: start;
}
.step .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  width: 32px;
  height: 32px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 1;
  padding-top: 3px;
  letter-spacing: 0;
}
.step .n::after {
  content: "·";
  margin-left: 6px;
  color: var(--ink-4);
}
.step .body { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.step .body b { color: var(--ink-1); font-weight: 600; }

/* ======= Callouts ======= */
.callout {
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
}
.callout .tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  align-self: start;
  white-space: nowrap;
}
.callout.nota { background: #DCF1FB; color: #054B68; }
.callout.nota .tag { background: var(--caico-cyan); color: #fff; }
.callout.atencion { background: #FBE7D6; color: #5b2a14; }
.callout.atencion .tag { background: var(--caico-orange); color: #3a1a07; }
.callout.consejo { background: #FFF6CF; color: #4d3d00; }
.callout.consejo .tag { background: var(--caico-yellow); color: var(--caico-black); }
.callout.important { background: #FBE3EE; color: #660A3D; }
.callout.important .tag { background: var(--caico-magenta); color: #fff; }

/* ======= Reference table ======= */
table.ref {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: var(--font-body);
}
table.ref th, table.ref td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
table.ref th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

/* ======= Mini calendar ======= */
.minical {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}
.minical .mc-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--caico-magenta);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.minical table { border-collapse: collapse; }
.minical th, .minical td {
  width: 26px;
  height: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-2);
}
.minical th { color: var(--ink-3); font-weight: 600; font-size: 10px; }
.minical td.sun { color: var(--caico-magenta); }
.minical td.today {
  background: var(--caico-black);
  color: var(--caico-yellow);
  border-radius: 5px;
  font-weight: 700;
}

/* ======= Tabs preview (as in InDesign dialog) ======= */
.tabs {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.tabs .row {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.tabs .tab {
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tabs .tab.active {
  background: #fff;
  color: var(--ink-1);
  border-bottom-color: var(--caico-magenta);
}
.tabs .body {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px 18px;
  font-size: 13px;
}
.tabs .body label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.tabs .body .field {
  background: var(--paper-1);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-1);
}
.tabs .body .seg {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-1);
}
.tabs .body .seg span {
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink-2);
}
.tabs .body .seg span.on { background: var(--caico-black); color: var(--caico-yellow); }

/* ======= Toggle "tipo de planificador" ======= */
.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.types .t {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.types .t.active { border-color: var(--caico-magenta); box-shadow: 0 0 0 3px rgba(231,22,128,.10), var(--shadow-sm); }
.types .t .vis {
  height: 88px;
  background: var(--paper-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}
.types .t .vis .pg { background: #fff; border: 1px solid var(--rule); flex: 1; height: 100%; border-radius: 4px; position:relative; }
.types .t .vis .pg::after{content:"";position:absolute;inset:6px;background:repeating-linear-gradient(180deg,#cdc8bd 0 1px,transparent 1px 6px);border-radius:2px;opacity:.7;}
.types .t .nm { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-1); }
.types .t .ds { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }

/* ======= TOC ======= */
.toc { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.toc a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
}
.toc a .num { font-family: var(--font-mono); color: var(--caico-magenta); font-weight: 600; }
.toc a .pg { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; }

/* ======= Dialog screenshot (real InDesign dialog) ======= */
.dialog-shot {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 14px auto 8px;
  border-radius: 10px;
  box-shadow:
    0 30px 50px -10px rgba(14,14,16,.40),
    0 14px 22px -6px rgba(14,14,16,.28),
    0 4px 8px rgba(14,14,16,.14);
  background: #2A2A2D;
}
.dialog-cap {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin: 4px 0 18px;
}

/* Print */
@media print {
  @page {
    size: 210mm 297mm;
    margin: 0;
  }
  html, body {
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    background-image: none !important;
  }
  .page {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    break-after: page !important;
    break-inside: avoid !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .page:last-of-type {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .cover { padding: 0 !important; }
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
*, *::before, *::after {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
