/* ============================================================
   Monica - Guia de captura para el comercial
   Misma paleta editorial que el visor.
   ============================================================ */

:root {
  --bg: #11100e;
  --bg-soft: #1a1814;
  --paper: #f3ede0;
  --paper-soft: #e9e2d3;
  --fg: #f3ede0;
  --fg-soft: #c9c1b0;
  --muted: #8e8676;
  --muted-2: #6a6358;

  --accent: #c7693f;
  --accent-hover: #d57a52;
  --accent-soft: rgba(199, 105, 63, 0.14);
  --olive: #4a5a3f;

  --ink: #2a261f;
  --ink-soft: #5b554a;
  --paper-line: #ddd4bf;

  --border: rgba(243, 237, 224, 0.10);
  --border-paper: #d8cfb9;

  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1080px;

  --t-fast: 180ms;
  --t-med: 280ms;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 16, 14, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.header-meta {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top right, rgba(199, 105, 63, 0.10), transparent 55%),
    var(--bg);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--fg-soft);
  line-height: 1.5;
  max-width: 58ch;
  margin-bottom: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   Secciones base
   ============================================================ */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section .lead {
  font-size: 1.05rem;
  color: var(--fg-soft);
  max-width: 56ch;
  margin-bottom: 44px;
}

/* ============================================================
   Antes de empezar — checklist
   ============================================================ */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.checklist strong {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--fg);
  margin-bottom: 3px;
}
.checklist p {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.45;
}

/* ============================================================
   Reglas grandes (1, 2, 3) — la sección estrella
   ============================================================ */
.rules {
  display: grid;
  gap: 28px;
}
.rule {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: center;
  padding: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rule-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 8rem;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  text-align: center;
}
.rule h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 12px;
}
.rule p {
  color: var(--fg-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.rule p:last-child { margin-bottom: 0; }
.rule .tip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Sub-pasos visuales (alturas) */
.heights {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.height-step {
  flex: 1 1 140px;
  padding: 14px 16px;
  background: rgba(243, 237, 224, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.height-step .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.height-step .desc {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.4;
}

/* ============================================================
   No hacer — errores
   ============================================================ */
.dont-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dont {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}
.dont-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(74, 32, 24, 0.5);
  color: #ff8a73;
  border-radius: 50%;
  margin-bottom: 14px;
}
.dont strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 4px;
}
.dont p {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.45;
}

/* ============================================================
   CTA final
   ============================================================ */
.cta-block {
  padding: 96px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(199, 105, 63, 0.12), transparent 60%);
}
.cta-block h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.cta-block p {
  font-size: 1.1rem;
  color: var(--fg-soft);
  margin-bottom: 36px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--fg-soft);
  background: rgba(243, 237, 224, 0.04);
}
.btn-big {
  padding: 20px 38px;
  font-size: 18px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 36px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.site-footer a {
  color: var(--fg-soft);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .hero { padding: 56px 0 44px; }
  .section { padding: 56px 0; }
  .cta-block { padding: 64px 0 72px; }

  .rule {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 22px;
  }
  .rule-num {
    font-size: 5rem;
    text-align: left;
    line-height: 1;
  }
  .header-meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   IMPRIMIR — pagina /capturar/imprimir.html
   Vista en pantalla: hoja A4 centrada sobre fondo oscuro.
   Vista al imprimir: solo la hoja, sin nada mas.
   ============================================================ */
.print-page {
  background: #2a2620;
  min-height: 100vh;
  padding: 32px 16px 64px;
  color: var(--ink);
}

.print-bar {
  max-width: 21cm;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-soft);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.print-bar kbd {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(243, 237, 224, 0.10);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  color: var(--fg);
}
.print-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.print-btn:hover { background: var(--accent-hover); }

/* La hoja A4 */
.sheet {
  width: 21cm;
  min-height: 29.7cm;
  margin: 0 auto;
  padding: 1.5cm;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.65cm;
  font-size: 11pt;
  line-height: 1.45;
}

/* Cabecera */
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1cm;
  padding-bottom: 0.45cm;
  border-bottom: 1px solid var(--paper-line);
}
.sheet-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sheet-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--paper);
  border-radius: 9px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.sheet-brand-name {
  font-family: var(--font-serif);
  font-size: 18pt;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sheet-brand-sub {
  font-size: 9pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}
.sheet-title {
  text-align: right;
  max-width: 11cm;
}
.sheet-title h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22pt;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.sheet-title p {
  font-size: 10pt;
  color: var(--ink-soft);
}

/* Las 3 reglas */
.sheet-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5cm;
}
.sheet-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 0.45cm 0.45cm;
  background: #ece4d2;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
}
.sheet-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36pt;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  align-self: start;
}
.sheet-rule h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 13pt;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.sheet-rule p {
  font-size: 9.5pt;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Dos columnas: antes / no hacer */
.sheet-cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.7cm;
}
.sheet-col h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14pt;
  color: var(--ink);
  margin-bottom: 0.35cm;
  letter-spacing: -0.01em;
}
.sheet-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet-check li {
  position: relative;
  padding: 6px 6px 6px 22px;
  font-size: 10pt;
  color: var(--ink);
  border-bottom: 1px dashed var(--paper-line);
}
.sheet-check li:last-child { border-bottom: 0; }
.sheet-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 3px;
  background: transparent;
}

.sheet-dont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sheet-dont {
  padding: 8px 10px;
  background: #ece4d2;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.sheet-dont strong {
  display: block;
  font-size: 10pt;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.sheet-dont p {
  font-size: 9pt;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* QR + footer */
.sheet-foot {
  margin-top: auto;
  padding-top: 0.45cm;
  border-top: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6cm;
}
.sheet-qr {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sheet-qr-svg {
  width: 2.3cm;
  height: 2.3cm;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.sheet-qr-svg svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.qr-fallback {
  font-size: 8pt;
  color: var(--ink-soft);
  text-align: center;
  padding: 4px;
  word-break: break-all;
}
.qr-fallback code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 7.5pt;
}
.sheet-qr-text strong {
  display: block;
  font-size: 10pt;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.sheet-qr-text span {
  font-size: 9pt;
  color: var(--ink-soft);
}
.sheet-foot-meta {
  font-size: 8.5pt;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-align: right;
  max-width: 8cm;
}

/* Vista en pantalla pequenya: la hoja se adapta */
@media (max-width: 800px) {
  .print-page { padding: 16px 8px 32px; }
  .sheet {
    width: 100%;
    min-height: 0;
    padding: 18px;
    font-size: 13px;
  }
  .sheet-head { flex-direction: column; gap: 12px; }
  .sheet-title { text-align: left; }
  .sheet-title h1 { font-size: 22px; }
  .sheet-rules { grid-template-columns: 1fr; gap: 10px; }
  .sheet-cols { grid-template-columns: 1fr; gap: 18px; }
  .sheet-dont-grid { grid-template-columns: 1fr 1fr; }
  .sheet-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sheet-foot-meta { text-align: left; }
  .sheet-num { font-size: 44px; }
  .sheet-rule h2 { font-size: 16px; }
  .sheet-col h3 { font-size: 17px; }
}

/* ============================================================
   IMPRESION REAL: una hoja A4, sin barras ni fondos
   ============================================================ */
@page {
  size: A4 portrait;
  margin: 1.5cm;
}

@media print {
  html, body {
    background: #fff !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
  }
  .print-page {
    background: #fff !important;
    padding: 0 !important;
  }
  .print-bar { display: none !important; }

  .sheet {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    background: #fff !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  .sheet-head,
  .sheet-rules,
  .sheet-cols,
  .sheet-foot { page-break-inside: avoid; }
  .sheet-rule,
  .sheet-dont { background: #f6f0e0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-mark,
  .sheet-num,
  .sheet-brand-sub { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
