/* ==========================================================================
   TCL × iAgency — Motor de Contenido TikTok Colombia
   Ficha técnica premium — direction contract: .impeccable/surfaces/index-html.md
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root{
  --red: #E64C3D;
  --red-dim: #C23E31;
  --red-deep: #8f2c22;
  --ink: #15130f;
  --ink-soft: #4a4640;
  --paper: #fbfaf7;
  --paper-dim: #f1efe9;
  --panel: #edeae2;
  --line: #ddd8cc;
  --near-black: #121110;
  --near-black-2: #1c1a17;
  --on-dark: #f3f1ea;
  --on-dark-dim: #b8b3a6;
  --on-dark-line: #39352e;

  --font-display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --measure: 68ch;
  --radius-sm: 2px;
  --radius: 4px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection{ background: var(--red); color: #fff; }

::-webkit-scrollbar{ width: 12px; height: 12px; }
::-webkit-scrollbar-track{ background: var(--paper-dim); }
::-webkit-scrollbar-thumb{ background: var(--ink); border: 3px solid var(--paper-dim); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover{ background: var(--red); }
html{ scrollbar-color: var(--ink) var(--paper-dim); scrollbar-width: thin; }

:focus-visible{ outline: 3px solid var(--red); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible{ outline-color: var(--red); }

.skip-link{
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--red-dim);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75em 1.25em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus{ top: 1rem; }

a{ color: inherit; }
img, svg{ display: block; max-width: 100%; }
button{ font: inherit; }

.num{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.mt-block{ margin-top: var(--space-4); }

p{ margin: 0; }

.shell{
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

.field{
  padding-top: var(--space-6);
  padding-bottom: calc(var(--space-6) + 1rem);
  position: relative;
}
.field.on-dark{ background: var(--near-black); color: var(--on-dark); }
.field.on-tint{ background: var(--panel); }

.field-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.on-dark .field-head{ border-color: var(--on-dark-line); }

.field-label{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.on-dark .field-label{ color: var(--red); }

.field-code{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.on-dark .field-code{ color: var(--on-dark-dim); }

.field-title{
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 22ch;
  margin-bottom: var(--space-1);
}

.field-sub{
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.on-dark .field-sub{ color: var(--on-dark-dim); }

.spec-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------- nav rail */
.rail{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.65rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(18, 17, 16, 0.97);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-line);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-out);
  font-family: var(--font-mono);
}
.rail.is-visible{ transform: translateY(0); }

.rail-mark{
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.rail-mark b{ color: var(--red); }

.rail-readout{
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  color: var(--on-dark-dim);
  flex-shrink: 0;
  padding-right: var(--space-2);
  border-right: 1px solid var(--on-dark-line);
  margin-right: var(--space-1);
}
.rail-readout .num{ color: var(--red); font-weight: 600; }

.rail-nav{
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.rail-nav::-webkit-scrollbar{ display: none; }
.rail-nav a{
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.rail-nav a:hover{ color: var(--on-dark); }
.rail-nav a.is-active{ color: var(--on-dark); border-color: var(--red); }

@media (max-width: 720px){
  .rail-nav{ display: none; }
  .rail-readout{ flex: 1; justify-content: flex-end; border: none; }
}

/* --------------------------------------------------------------------- hero */
.hero{
  background: var(--near-black);
  color: var(--on-dark);
  padding-top: clamp(3.5rem, 10vw, 6rem);
  padding-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--on-dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-dark-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

.hero-inner{ position: relative; z-index: 1; }

.hero-plate{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--on-dark-line);
}

.hero-lockup{
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.hero-lockup .x{ color: var(--red); font-weight: 400; }

.hero-modelno{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-dim);
  letter-spacing: 0.02em;
  text-align: right;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: end;
}
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; gap: var(--space-4); }
}

.hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.hero-title{
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.04;
  max-width: 19ch;
  margin-bottom: var(--space-3);
}

.hero-desc{
  font-size: 1.15rem;
  color: var(--on-dark-dim);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}

.hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--red-dim);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9em 1.5em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--red-dim);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.hero-cta:hover{
  background: var(--near-black);
  color: var(--on-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(230, 76, 61, 0.55);
}
.hero-cta:active{
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px -4px rgba(230, 76, 61, 0.5);
}
.hero-cta svg{ width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.hero-cta:hover svg{ transform: translateY(3px); }

.specsheet{
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  overflow: hidden;
}
.specsheet-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1.1em;
  border-bottom: 1px dashed var(--on-dark-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.specsheet-head .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(230,76,61,0.22);
  flex-shrink: 0;
}
.specsheet-head span{ display: flex; align-items: center; gap: 0.5em; }

.specsheet-rows{ display: flex; flex-direction: column; }
.specrow{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 1.1em 1.1em;
  border-bottom: 1px solid var(--on-dark-line);
}
.specrow:last-child{ border-bottom: none; }
.specrow-label{
  font-size: 0.82rem;
  color: var(--on-dark-dim);
  max-width: 18ch;
}
.specrow-value{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--on-dark);
  text-align: right;
  white-space: nowrap;
}
.specrow-value .unit{ font-size: 0.5em; color: var(--red); margin-left: 0.15em; font-weight: 600; }
.specrow-note{
  font-size: 0.8rem;
  color: var(--on-dark-dim);
}

.hero-source{
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: var(--on-dark-dim);
}

/* -------------------------------------------------------------- reveal fx */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in{ opacity: 1; transform: none; }
.reveal-stagger > *{ opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.is-in > *{ opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1){ transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2){ transition-delay: 70ms; }
.reveal-stagger.is-in > *:nth-child(3){ transition-delay: 140ms; }
.reveal-stagger.is-in > *:nth-child(4){ transition-delay: 210ms; }
.reveal-stagger.is-in > *:nth-child(5){ transition-delay: 280ms; }
.reveal-stagger.is-in > *:nth-child(6){ transition-delay: 350ms; }

/* ------------------------------------------------------------------ mercado */
.compare{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 880px){ .compare{ grid-template-columns: 1fr; gap: var(--space-4); } }

.barlist{ display: flex; flex-direction: column; gap: var(--space-2); }
.bar-row{ display: grid; grid-template-columns: 7ch 1fr auto; align-items: center; gap: var(--space-2); }
.bar-net{ font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.bar-track{ height: 22px; background: var(--paper-dim); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.bar-fill{ height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.bar-row.is-lead .bar-fill{ background: var(--red); }
.bar-row.is-lead .bar-net{ color: var(--red); }
.bar-val{ font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; min-width: 6ch; text-align: right; }

.statpair{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.statcard{ background: var(--near-black); color: var(--on-dark); padding: var(--space-3); border-radius: var(--radius); }
.statcard .num{ font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--red); display: block; line-height: 1; margin-bottom: 0.4em; }
.statcard p{ font-size: 0.8rem; color: var(--on-dark-dim); line-height: 1.35; }

.source-note{
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.on-dark .source-note{ color: var(--on-dark-dim); }

/* -------------------------------------------------------------- tendencias */
.trend-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-3);
}
@media (max-width: 880px){ .trend-grid{ grid-template-columns: 1fr; } }
.trend-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.trend-card.is-featured{
  grid-row: span 2;
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
  padding: var(--space-4);
  justify-content: space-between;
}
.trend-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.trend-card.is-featured .trend-name{ font-size: 1.9rem; }
.trend-desc{ font-size: 0.92rem; color: var(--ink-soft); }
.trend-card.is-featured .trend-desc{ color: var(--on-dark-dim); font-size: 1rem; }
.trend-app{ font-size: 0.86rem; padding-top: 0.6em; border-top: 1px dashed var(--line); }
.trend-card.is-featured .trend-app{ border-color: var(--on-dark-line); }
.trend-source{
  display: block;
  margin-top: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.trend-card.is-featured .trend-source{ color: var(--on-dark-dim); }

.closer-stat{
  margin-top: var(--space-4);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}
.closer-stat .num{ font-size: 2.2rem; font-weight: 700; color: var(--red); }
.closer-stat p{ font-size: 0.92rem; color: var(--ink-soft); max-width: 42ch; }

/* ---------------------------------------------------------------- referentes table */
.reftable{ width: 100%; border-collapse: collapse; }
.reftable th{
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--on-dark-line);
}
.reftable td{
  padding: 1.1em 1em;
  border-bottom: 1px solid var(--on-dark-line);
  vertical-align: top;
  font-size: 0.92rem;
}
.reftable tr:last-child td{ border-bottom: none; }
.reftable .brand{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.reftable .market{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--red); letter-spacing: 0.04em; }
.reftable .metric{ font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; white-space: nowrap; color: var(--on-dark); }
.reftable .desc{ color: var(--on-dark-dim); }
.reftable-wrap{ overflow-x: auto; }

/* ------------------------------------------------------------ linea blanca */
.case-list{ display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.case-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.case-row.is-lead{ padding: var(--space-4) 0; }
.case-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.25em; }
.case-row.is-lead .case-name{ font-size: 1.6rem; }
.case-desc{ color: var(--ink-soft); font-size: 0.92rem; max-width: 52ch; }
.case-metric{ text-align: right; flex-shrink: 0; }
.case-metric .num{ font-weight: 700; color: var(--red); display: block; line-height: 1; }
.case-row.is-lead .case-metric .num{ font-size: 2.6rem; }
.case-row:not(.is-lead) .case-metric .num{ font-size: 1.6rem; }
.case-metric span{ font-size: 0.75rem; color: var(--ink-soft); display: block; margin-top: 0.3em; max-width: 16ch; }

/* ------------------------------------------------------------ editorial refs */
.ed-list{ display: flex; flex-direction: column; gap: var(--space-5); }
.ed-row{ display: grid; grid-template-columns: 0.9fr 1.6fr; gap: var(--space-4); }
@media (max-width: 780px){ .ed-row{ grid-template-columns: 1fr; gap: var(--space-2); } }
.ed-row:nth-child(even){ direction: rtl; }
.ed-row:nth-child(even) > *{ direction: ltr; }
.ed-brand{ display: flex; flex-direction: column; gap: 0.5em; }
.ed-brand h3{ font-size: 1.7rem; display: flex; flex-direction: column; gap: 0.35em; }
.ed-brand .ed-sub{ font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; color: var(--red-deep); letter-spacing: 0; text-transform: none; }
.ed-text{ font-size: 1.02rem; color: var(--ink-soft); max-width: var(--measure); }
.ed-examples{ display: flex; gap: 0.7em; margin-top: 1em; flex-wrap: nowrap; }
.ed-clip{
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 280px;
}
.ed-clip video{
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--near-black);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ed-clip figcaption{
  margin-top: 0.5em;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- aprendizajes */
.learn-table{ width: 100%; border-collapse: collapse; }
.learn-table th{
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 0.8em;
  border-bottom: 2px solid var(--ink);
}
.learn-table td{
  padding: 1.1em 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}
.learn-table td:first-child{ padding-right: var(--space-3); color: var(--ink-soft); width: 45%; }
.learn-table td:last-child{ font-weight: 500; }
.learn-table .idx{ font-family: var(--font-mono); color: var(--red); font-weight: 700; margin-right: 0.6em; }

/* ------------------------------------------------------------------- enfoque */
.pillars{ display: flex; flex-direction: column; border-top: 1px solid var(--on-dark-line); }
.pillar{
  display: grid;
  grid-template-columns: 3.5rem 1fr 1.3fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--on-dark-line);
}
@media (max-width: 780px){ .pillar{ grid-template-columns: 3rem 1fr; } .pillar-detail{ grid-column: 1 / -1; padding-left: calc(3rem + var(--space-3)); } }
.pillar-icon{ width: 2.6rem; height: 2.6rem; color: var(--red); flex-shrink: 0; }
.pillar-icon svg{ width: 100%; height: 100%; }
.pillar-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.pillar-detail{ color: var(--on-dark-dim); font-size: 0.92rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.005em; }

/* -------------------------------------------------------------------- modelo */
.pipeline{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
@media (max-width: 880px){ .pipeline{ grid-template-columns: 1fr; } }
.pipe-step{ border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); position: relative; background: var(--paper); }
.pipe-num{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--red-deep); letter-spacing: 0.1em; margin-bottom: 0.6em; display: block; }
.pipe-step h3{ font-size: 1.1rem; margin-bottom: 0.6em; }
.pipe-step dl{ margin: 0; display: flex; flex-direction: column; gap: 0.6em; }
.pipe-step dt{ font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); }
.pipe-step dd{ margin: 0.1em 0 0; font-size: 0.88rem; }
.pipe-arrow{ display: none; }
@media (min-width: 881px){
  .pipe-step:not(:last-child)::after{
    content: "";
    position: absolute;
    right: calc(var(--space-3) * -1 - 1px);
    top: 50%;
    width: calc(var(--space-3) * 2);
    height: 1px;
    background: var(--line);
    z-index: 1;
  }
}
.budget-line{
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  font-size: 0.9rem;
}
.budget-line .num{ font-weight: 700; color: var(--red-deep); font-size: 1.1rem; }

/* -------------------------------------------------------------- categorias */
.cat-list{ display: flex; flex-direction: column; }
.cat-row{ display: grid; grid-template-columns: 2.6rem 10ch 1fr; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (max-width: 700px){ .cat-row{ grid-template-columns: 2.2rem 1fr; } .cat-ideas{ grid-column: 1 / -1; padding-left: calc(2.2rem + var(--space-2)); margin-top: 0.4em; } }
.cat-icon{ width: 2.2rem; height: 2.2rem; color: var(--red); }
.cat-icon svg{ width: 100%; height: 100%; }
.cat-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; align-self: center; }
.cat-ideas{ display: flex; flex-direction: column; gap: 0.35em; }
.cat-ideas li{ list-style: none; font-size: 0.92rem; color: var(--ink-soft); padding-left: 1.1em; position: relative; }
.cat-ideas li::before{ content: "—"; position: absolute; left: 0; color: var(--red-deep); }
.cat-format-note{ margin-top: var(--space-3); font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* ------------------------------------------------------------------- locations */
.loc-table{ width: 100%; border-collapse: collapse; }
.loc-table td{ padding: 1em 0.6em; border-bottom: 1px solid var(--on-dark-line); vertical-align: top; }
.loc-table tr:last-child td{ border-bottom: none; }
.loc-city{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; width: 1%; padding-right: var(--space-3) !important; }
.loc-city .tag{ display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--red); margin-top: 0.3em; letter-spacing: 0.02em; }
.loc-desc{ color: var(--on-dark-dim); font-size: 0.92rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.005em; }

.loc-spots{
  margin: var(--space-4) 0 0;
  max-width: 560px;
}
.loc-spots img{
  width: 100%;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
}
.loc-spots figcaption{
  margin-top: 0.7em;
  font-size: 0.85rem;
  color: var(--on-dark-dim);
}

/* --------------------------------------------------------------------- claves */
.manual{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 880px){ .manual{ grid-template-columns: 1fr; gap: var(--space-4); } }
.manual-col h3{ font-size: 1.05rem; margin-bottom: var(--space-2); padding-bottom: 0.5em; border-bottom: 1px solid var(--on-dark-line); }
.manual-item{ display: flex; gap: 0.8em; padding: 0.85em 0; border-bottom: 1px dashed var(--on-dark-line); }
.manual-item:last-child{ border-bottom: none; }
.manual-icon{ width: 1.3rem; height: 1.3rem; color: var(--red); flex-shrink: 0; margin-top: 0.15em; }
.manual-icon svg{ width: 100%; height: 100%; }
.manual-item p{ font-size: 0.9rem; color: var(--on-dark-dim); font-weight: 500; line-height: 1.6; letter-spacing: 0.005em; }
.manual-item strong{ color: var(--on-dark); font-weight: 600; }

/* ---------------------------------------------------------------------- SKU */
.comp-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.model-table{ width: 100%; border-collapse: collapse; min-width: 620px; }
.model-table thead th{
  text-align: left;
  padding: 0.8em 1.1em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.model-table thead th:not(:first-child){ text-align: right; }
.model-table td{ padding: 0.85em 1.1em; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); vertical-align: top; }
.model-table tbody:first-child .model-head th{ border-top: none; }
.model-head th{
  text-align: left;
  padding: 1em 1.1em;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.model-table .qty{ color: var(--ink-soft); font-size: 0.86rem; text-align: right; }
.model-table .pct{ font-family: var(--font-mono); font-weight: 600; text-align: right; white-space: nowrap; }
.model-table .val{ text-align: right; font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.model-table .val.lead{ color: var(--red-deep); font-size: 1.05rem; }
.model-table tbody:last-child tr:last-child td{ border-bottom: none; }
.model-total td{ background: var(--panel); font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.model-total .val{ font-size: 1.1rem; }

.pipe-step > p{ font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.workshop-intro{ margin-top: var(--space-5); margin-bottom: var(--space-3); max-width: var(--measure); }
.workshop-intro h3{ font-size: 1.3rem; margin-bottom: 0.5em; }
.workshop-intro p{ font-size: 0.98rem; color: var(--ink-soft); }

.review-note{
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}
.review-note h3{ font-size: 1.05rem; margin-bottom: 0.5em; }
.review-note p{ font-size: 0.92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- distribucion */
.week{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 780px){ .week{ grid-template-columns: 1fr; } }
.day{ padding-top: var(--space-2); }
.day-name{ display: flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--red-deep); margin-bottom: 0.5em; }
.day-name::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.day h3{ font-size: 1.15rem; margin-bottom: 0.4em; }
.day p{ font-size: 0.88rem; color: var(--ink-soft); }
.week-note{ margin-top: var(--space-4); font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: var(--space-2); }

/* -------------------------------------------------------------------- pauta */
.pauta-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 880px){ .pauta-grid{ grid-template-columns: 1fr; } }
.pauta-col h3{ font-size: 1.05rem; margin-bottom: 0.6em; }
.pauta-col ul{ margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55em; }
.pauta-col li{ font-size: 0.88rem; color: var(--ink-soft); padding-left: 1.1em; position: relative; }
.pauta-col li::before{ content: "—"; position: absolute; left: 0; color: var(--red-deep); }

/* --------------------------------------------------------------- inversion pauta */
.scen-table{ width: 100%; border-collapse: collapse; }
.scen-table th{ text-align: left; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-dim); padding-bottom: 0.7em; border-bottom: 1px solid var(--on-dark-line); }
.scen-table td{ padding: 1.1em 0.8em 1.1em 0; border-bottom: 1px solid var(--on-dark-line); font-size: 0.9rem; vertical-align: top; }
.scen-table tr:last-child td{ border-bottom: none; }
.scen-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.scen-name .dot{ display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 0.6em; }
.scen-amt{ font-family: var(--font-mono); font-weight: 700; color: var(--red); white-space: nowrap; }
.scen-table .muted{ color: var(--on-dark-dim); }

.legal{ margin-top: var(--space-4); font-size: 0.8rem; color: var(--on-dark-dim); font-weight: 500; max-width: 80ch; line-height: 1.6; letter-spacing: 0.005em; }

.next-step{
  margin-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: rgba(230,76,61,0.08);
}
.next-step p{ font-size: 1.02rem; max-width: 52ch; color: var(--on-dark); }
.next-step strong{ color: var(--on-dark); }

/* ----------------------------------------------------------------------- footer */
.foot{ background: var(--near-black-2); color: var(--on-dark-dim); }
.foot-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; padding-bottom: var(--space-4); margin-bottom: var(--space-3); border-bottom: 1px solid var(--on-dark-line); }
.foot-lockup{ font-family: var(--font-display); font-weight: 700; color: var(--on-dark); font-size: 1.1rem; }
.foot-lockup .x{ color: var(--red); font-weight: 400; }
.foot-sources{ columns: 2; column-gap: var(--space-4); max-width: 640px; font-size: 0.78rem; line-height: 1.9; }
@media (max-width: 600px){ .foot-sources{ columns: 1; } }
.foot-sources li{ list-style: none; }
.foot-meta{ display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: 0.75rem; padding: var(--space-3) 0; }
.foot-disclaimer{ font-size: 0.75rem; max-width: 60ch; margin-top: var(--space-2); }

/* --------------------------------------------------------------------- misc */
.hide-mobile{ display: initial; }
@media (max-width: 700px){ .hide-mobile{ display: none; } }
