/* ============================================================================
   X-Mind — Propuesta comercial (one-pager)
   Optimizado para impresión A4 → PDF.
   ============================================================================ */

:root {
  --bg: #faf9f6;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --ink-muted: #7d7a72;
  --line: #d8d5cc;
  --line-strong: #a8a49a;
  --accent: #d54a26;
  --accent-soft: #fbe4d8;
  --font-display: "Inter Tight", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #e6e4dd;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

/* ── Screen-only toolbar ─────────────────────────────────────────────────── */
.screen-toolbar {
  width: 210mm;
  max-width: 100%;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.screen-back {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--font-body);
}
.screen-back:hover { border-color: var(--ink); }
.screen-print {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.screen-print:hover { background: var(--accent); }

/* ── Page (A4) ───────────────────────────────────────────────────────────── */
.page {
  width: 210mm;
  min-height: 297mm;
  background: var(--bg);
  padding: 18mm 16mm 14mm;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.15);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 9mm;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 8mm;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-by {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}
.meta { text-align: right; }
.meta-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.meta-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  font-family: var(--font-display);
  font-size: 30pt;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: -2mm;
}

/* ── Blocks ──────────────────────────────────────────────────────────────── */
.block { }

.block-title {
  font-family: var(--font-body);
  font-size: 9pt;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4mm;
  display: flex;
  align-items: center;
  gap: 6px;
}
.block-title::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.block p {
  font-size: 9.8pt;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2mm;
}
.block p strong { color: var(--ink); font-weight: 600; }

.solution-intro { margin-bottom: 4mm; }

/* ── Cascade mini ────────────────────────────────────────────────────────── */
.cascade-mini {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cascade-mini .row {
  display: grid;
  grid-template-columns: 12mm 1fr auto;
  align-items: center;
  padding: 3.5mm 5mm;
  gap: 4mm;
  border-bottom: 1px solid var(--line);
  background: #fffefb;
}
.cascade-mini .row:last-child { border-bottom: none; }
.cascade-mini .n {
  font-family: var(--font-display);
  font-size: 22pt;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.cascade-mini .t {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}
.cascade-mini .t strong {
  font-size: 10pt;
  font-weight: 500;
  color: var(--ink);
}
.cascade-mini .t .d {
  font-size: 9pt;
  color: var(--ink-soft);
  line-height: 1.4;
}
.cascade-mini .r {
  font-family: var(--font-mono);
  font-size: 11pt;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

/* ── Two-column section ──────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10mm;
}

/* ── Includes list ───────────────────────────────────────────────────────── */
.includes {
  list-style: none;
  padding: 0;
}
.includes li {
  font-size: 9.5pt;
  line-height: 1.45;
  padding: 1.5mm 0 1.5mm 6mm;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4mm;
  height: 1px;
  background: var(--accent);
}
.includes li:last-child { border-bottom: none; }

/* ── Timeline mini ───────────────────────────────────────────────────────── */
.timeline-mini {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2mm;
}
.timeline-mini li {
  display: grid;
  grid-template-columns: 9mm 1fr;
  align-items: start;
  gap: 3mm;
}
.timeline-mini .step {
  font-family: var(--font-mono);
  font-size: 11pt;
  font-weight: 500;
  color: var(--accent);
}
.timeline-mini .tx {
  font-size: 9.5pt;
  line-height: 1.4;
}
.timeline-mini .tx strong {
  font-size: 10pt;
  color: var(--ink);
}
.timeline-mini .tx .d {
  font-size: 8.5pt;
  color: var(--ink-muted);
}

/* ── Highlight block (lo que necesitamos) ────────────────────────────────── */
.block.highlight {
  background: #fff3ec;
  border: 1px solid #f5d3c0;
  border-radius: 8px;
  padding: 5mm 6mm 6mm;
}
.need-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm 8mm;
}
.need-grid > div {
  font-size: 9pt;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 8mm;
  position: relative;
}
.need-grid > div strong { color: var(--ink); font-weight: 600; font-size: 9.5pt; }
.need-n {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 14pt;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--line);
  padding-top: 5mm;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 9pt;
  line-height: 1.5;
  color: var(--ink-soft);
}
.page-footer strong { color: var(--ink); font-weight: 600; }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 8pt;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.5;
}

/* ── Print rules ─────────────────────────────────────────────────────────── */
@page {
  size: A4;
  margin: 0;
}

@media print {
  body { padding: 0; background: var(--bg); }
  .no-print { display: none !important; }
  .page {
    box-shadow: none;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .screen-toolbar { width: 100%; }
  .page {
    width: 100%;
    min-height: auto;
    padding: 24px 18px;
  }
  .two-col, .need-grid { grid-template-columns: 1fr; gap: 8mm 0; }
}
