/* =============================================================
   UpSell × Dr. Diego García Torres — sistema visual
   Base: brandbook UpSell (White, Silent Mint, Black Bean, Retro Green,
   French Lime, Metallic Yellow, Aqua · Red Hat Display + DM Sans)
   Acentos de cliente extraídos de drdiegogarciatorres.com.co
   (oro #c9a96e, tinta #080808, Cormorant Garamond para citas)
   ============================================================= */

:root {
  --white: #ffffff;
  --mint: #eefada;
  --bean: #021c0a;
  --bean-80: rgba(2, 28, 10, .8);
  --bean-70: rgba(2, 28, 10, .7);
  --bean-55: rgba(2, 28, 10, .55);
  --bean-38: rgba(2, 28, 10, .38);
  --bean-45: rgba(2, 28, 10, .45);
  --gold-text: #8a6f2f;
  --bean-18: rgba(2, 28, 10, .18);
  --bean-10: rgba(2, 28, 10, .1);
  --bean-06: rgba(2, 28, 10, .06);
  --green: #37a052;
  --green-dark: #2b7d40;
  --lime: #a5fa4d;
  --yellow: #f9d023;
  --aqua: #00ffff;
  --gold: #c9a96e;
  --gold-soft: #e8d5b0;
  --ink: #080808;

  --line: rgba(2, 28, 10, .14);
  --line-soft: rgba(2, 28, 10, .08);
  --shadow: 0 1px 2px rgba(2, 28, 10, .05), 0 12px 32px -18px rgba(2, 28, 10, .22);
  --shadow-lg: 0 2px 4px rgba(2, 28, 10, .05), 0 30px 70px -34px rgba(2, 28, 10, .3);

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  --f-display: 'Red Hat Display', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-quote: 'Cormorant Garamond', Georgia, serif;

  --gut: clamp(20px, 5vw, 76px);
  --maxw: 1360px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--bean);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.021em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- eyebrow / shead ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bean-55);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--green);
}

.shead { padding-block: clamp(48px, 6vw, 76px) clamp(20px, 2.6vw, 30px); max-width: 860px; }
.shead__kicker { margin: 0 0 16px; }
.shead__title { font-size: clamp(29px, 4.4vw, 54px); }
.shead__title em { font-style: normal; color: var(--green); }
.shead__lead { margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); color: var(--bean-70); max-width: 70ch; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 72px;
}

/* El brandbook pide 1,8 veces el alto del logo como aire libre. */
.brandlock { display: flex; align-items: center; gap: 30px; text-decoration: none; flex: none; }
.brandlock img { display: block; }
.brandlock__upsell { height: 26px; width: auto; }
.brandlock__divider { width: 1px; height: 26px; background: var(--line); }
.brandlock__client { height: 22px; width: auto; opacity: 1; }

.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--bean-55);
  padding: 8px 12px;
  border-radius: 99px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--bean); background: var(--mint); }
.nav a.is-active { color: var(--white); background: var(--bean); }

.btn {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s;
}
.btn { white-space: nowrap; }
.btn--cta { background: var(--green); color: var(--white); }
.btn--cta:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(55, 160, 82, .7); }
.btn--ghost { background: transparent; border-color: var(--bean-18); color: var(--bean); }
.btn--ghost:hover { border-color: var(--bean); }
.btn--sm { padding: 8px 14px; font-size: 12.5px; }

/* ---------- hero ---------- */
.hero { background: var(--white); padding-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(44px, 6vw, 84px); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.hero h1 { font-size: clamp(36px, 6.2vw, 82px); font-weight: 700; letter-spacing: -.035em; }
.hero h1 span { color: var(--green); }
.hero__sub { margin-top: 22px; font-size: clamp(16px, 1.35vw, 20px); color: var(--bean-70); max-width: 58ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.hero__meta div { font-size: 13px; color: var(--bean-55); }
.hero__meta b { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--bean); letter-spacing: -.01em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* tarjeta de cliente */
.clientcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.clientcard__top { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); background: var(--mint); }
.clientcard__ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.clientcard__id { min-width: 0; }
.clientcard__id b { display: block; font-family: var(--f-display); font-size: 15px; }
.clientcard__id span { font-size: 12.5px; color: var(--bean-55); }
.clientcard__ig { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--green); text-decoration: none; }
.clientcard__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  border-bottom: 1px solid var(--line-soft);
}
.clientcard__quote { padding: 18px; font-family: var(--f-quote); font-style: italic; font-size: 21px; line-height: 1.32; color: var(--bean); }
.clientcard__quote small { display: block; margin-top: 8px; font-family: var(--f-body); font-style: normal; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- secciones ---------- */
.sec { padding-block: clamp(20px, 3vw, 36px) clamp(56px, 7vw, 104px); }
.sec--mint { background: var(--mint); }
.sec--dark { background: var(--bean); color: var(--white); }
.sec--dark .shead__title, .sec--dark h3 { color: var(--white); }
.sec--dark .shead__lead, .sec--dark .shead__kicker { color: rgba(255, 255, 255, .62); }
.sec--dark .shead__title em { color: var(--lime); }
.sec--dark .eyebrow { color: rgba(255, 255, 255, .55); }
.sec--dark .eyebrow::before { background: var(--lime); }

/* separador de sección: línea de 1px en Silent Mint, según el brandbook */
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--white);
  padding: 18px 18px 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.kpi::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--tone, var(--green));
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi:hover::after { transform: scaleX(1); }
.kpi__v { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.kpi__l { font-size: 13px; font-weight: 500; margin-top: 4px; }
.kpi__n { font-size: 12px; color: var(--bean-55); margin-top: 8px; line-height: 1.45; }

[data-tone="green"] { --tone: var(--green); }
[data-tone="lime"] { --tone: #7ecb2f; }
[data-tone="aqua"] { --tone: #00c4c4; }
[data-tone="yellow"] { --tone: var(--yellow); }
[data-tone="mint"] { --tone: #86c98f; }
[data-tone="gold"] { --tone: var(--gold); }
[data-tone="dark"] { --tone: var(--bean); }

/* ---------- paneles de diagrama ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sec--dark .panel { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--mint);
}
.sec--dark .panel__head { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.panel__title { font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.panel__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font-size: 12px; color: var(--bean-55); }
.sec--dark .panel__legend { color: rgba(255, 255, 255, .6); }
.panel__legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.panel__body { padding: clamp(18px, 2.4vw, 28px); }

/* leyenda de tokens */
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--bean-55); }
.sec--dark .lg { color: rgba(255, 255, 255, .62); }
.lg i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- árbol de campaña ---------- */
.tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }

.lane { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); overflow: hidden; }
.lane.is-dim { opacity: .38; filter: saturate(.4); }
.lane { transition: opacity .3s ease, filter .3s ease, transform .3s ease; }

.lane__head { padding: 16px 16px 14px; background: var(--tone-soft, var(--mint)); border-bottom: 1px solid var(--line-soft); }
.lane__code { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--bean-55); }
.lane__obj { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.lane__opt { font-size: 12.5px; color: var(--bean-70); margin-top: 6px; }
.lane__buy { font-size: 11.5px; color: var(--bean-55); margin-top: 4px; }

.lane__nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); margin-top: 14px; border-radius: var(--r-s); overflow: hidden; }
.lane__nums div { background: var(--white); padding: 9px 10px; }
.lane__nums b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.lane__nums span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bean-55); }

.lane__role { font-size: 12.5px; color: var(--bean-70); padding: 12px 16px 0; }
.lane__cost { font-size: 11.5px; color: var(--bean-70); padding: 8px 16px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lane__cost span { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bean-55); border: 1px solid var(--line); border-radius: 50px; padding: 2px 8px; }
.lane__kpis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 16px 2px; }
.lane__kpis .kk { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bean-55); }
.lane__kpis .k { font-size: 11px; padding: 4px 10px; border-radius: 50px; background: var(--tone-soft, var(--mint)); color: var(--bean); border: 1px solid var(--line-soft); }
.lane__metric { font-size: 12px; padding: 11px 16px; background: var(--tone-band, var(--bean)); color: var(--white); display: flex; align-items: center; gap: 8px; }
.lane__metric i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }

.lane__body { padding: 14px 14px 16px; }

.camp {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone, var(--green));
  border-radius: var(--r-s);
  padding: 12px 13px;
  background: var(--white);
  transition: box-shadow .22s ease, transform .22s ease;
}
.camp:hover { box-shadow: var(--shadow); transform: translateX(2px); }
.camp + .camp { margin-top: 10px; }

.camp__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.camp__code { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--bean); background: var(--mint); padding: 2px 6px; border-radius: 4px; }
.camp__name { font-family: var(--f-display); font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; }
.camp__dup { font-size: 11px; color: var(--gold-text); font-weight: 500; margin-top: 3px; }
.camp__note { font-size: 11.5px; color: var(--bean-55); margin-top: 6px; line-height: 1.5; }

.camp__bar { display: flex; gap: 10px; margin-top: 9px; font-size: 11.5px; color: var(--bean-70); flex-wrap: wrap; }
.camp__bar b { font-family: var(--f-display); font-weight: 600; color: var(--bean); }

.sets { margin: 10px 0 0; padding: 0 0 0 12px; list-style: none; border-left: 1px dashed var(--bean-18); }
.sets li { position: relative; padding: 4px 0 4px 12px; font-size: 12px; color: var(--bean-70); }
.sets li::before { content: ""; position: absolute; left: -1px; top: 13px; width: 9px; height: 1px; background: var(--bean-18); }
.sets li b { font-family: var(--f-display); font-weight: 600; color: var(--bean); font-size: 12.5px; }
.sets li em { font-style: normal; color: var(--bean-55); }
.sets .n { font-family: var(--f-display); font-size: 11px; font-weight: 700; color: var(--bean); background: var(--mint); border: 1px solid var(--line-soft); border-radius: 99px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }

/* filtros de estructura */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter {
  font-family: var(--f-display);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 99px;
  padding: 7px 14px;
  transition: all .2s ease;
}
.filter:hover { border-color: var(--bean-55); }
.filter.is-on { background: var(--bean); color: var(--white); border-color: var(--bean); }
.filter .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

/* ---------- contadores resumen ---------- */
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.counts div { background: var(--white); padding: 18px 16px; }
.counts b { display: block; font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.counts span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bean-55); }
.counts small { display: block; margin-top: 6px; font-size: 12px; color: var(--bean-70); line-height: 1.45; }

/* ---------- diagrama SVG ---------- */
.svgfig { width: 100%; height: auto; display: block; }
.svgfig text { font-family: var(--f-body); }
.svgfig .d { font-family: var(--f-display); }
.svgfig .node { transition: opacity .3s ease, transform .3s ease; transform-box: fill-box; transform-origin: center; }
.svgfig .hit:hover { cursor: pointer; }

/* ---------- barras de presupuesto ---------- */
.stackbar { display: flex; height: 44px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }
.stackbar div { position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 11.5px; font-weight: 700; color: var(--bean); transition: flex-basis .7s cubic-bezier(.2, .8, .2, 1); overflow: hidden; white-space: nowrap; }

.tablewrap { overflow-x: auto; }

/* modo ?only=seccion: una sola sección visible, para imprimir un movimiento */
body.is-only main > section:not(.is-theone) { display: none; }
body.is-only .hero { padding-block: clamp(30px, 5vh, 60px); }
body.is-only .sec { padding-block: clamp(30px, 5vh, 60px); }
body.is-only .foot { display: none; }
body.is-only [data-enter] { opacity: 1; transform: none; }
[id^="fig-"] { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
[id^="fig-"]::-webkit-scrollbar { height: 6px; }
[id^="fig-"]::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.fighint { display: none; font-size: 11.5px; color: var(--bean-55); letter-spacing: .02em; margin-top: 10px; text-align: right; }
/* Ancho mínimo real: si el panel no alcanza, se desplaza en horizontal. */
[id^="fig-"] .svgfig { min-width: 560px; }
#fig-channels .svgfig, #fig-budget .svgfig, #fig-angles .svgfig, #fig-freq .svgfig,
#fig-leads .svgfig, #fig-funnel .svgfig, #fig-geo .svgfig { min-width: 860px; }
table.bt { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.bt th, table.bt td { text-align: right; padding: 12px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.bt th:first-child, table.bt td:first-child { text-align: left; }
table.bt thead th { font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bean-55); border-bottom: 1px solid var(--line); }
table.bt tbody tr:hover td { background: var(--mint); }
table.bt td b { font-family: var(--f-display); font-weight: 600; }
table.bt tfoot td { font-family: var(--f-display); font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
table.bt .code { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .04em; background: var(--mint); border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 6px; margin-right: 8px; }

/* ---------- simulador ---------- */
.sim { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(18px, 2.4vw, 34px); }
.sim__ctrl { display: grid; gap: 18px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 500; color: var(--bean-70); margin-bottom: 8px; }
.field label b { font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--bean); letter-spacing: -.02em; }
.field input[type="range"] { width: 100%; accent-color: var(--green); height: 22px; }
.field__hint { font-size: 11.5px; color: var(--bean-55); margin-top: 6px; }
.sim__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.out {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 14px 15px;
  background: var(--white);
}
.out--hi { background: var(--bean); color: var(--white); border-color: var(--bean); }
.out--hi .out__l { color: rgba(255, 255, 255, .6); }
.out__l { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bean-55); }
.out__v { font-family: var(--f-display); font-size: clamp(21px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.035em; margin-top: 6px; }
.out__n { font-size: 11.5px; color: var(--bean-55); margin-top: 4px; line-height: 1.4; }
.out--hi .out__n { color: rgba(255, 255, 255, .55); }

/* ---------- mapa ---------- */
.geo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.mkts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mkt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; background: var(--white); transition: all .2s ease; cursor: pointer; }
.mkt.is-on { border-color: var(--bean); box-shadow: var(--shadow); }
.mkt:hover { border-color: var(--bean-55); }
.mkt__f { font-size: 22px; line-height: 1; }
.mkt__t b { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.mkt__t span { font-size: 11.5px; color: var(--bean-55); line-height: 1.45; }
.mkt__v { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.mkt__v b { font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.mkt__v span { font-size: 11px; color: var(--bean-55); white-space: nowrap; }

/* ---------- ángeles ---------- */
.angles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.angle { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.angle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.angle__media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line-soft); }
.angle__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; background: var(--mint); }
.angle__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.angle__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bean-55); }
.angle__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--green)); }
.angle__h { font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.angle__hook { font-family: var(--f-quote); font-style: italic; font-size: 19px; line-height: 1.34; color: var(--bean); border-left: 2px solid var(--gold); padding-left: 12px; }
.angle__job { font-size: 13.5px; color: var(--bean-70); }
.angle__f { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--bean-70); background: var(--white); }

/* ---------- matrices ---------- */

/* ---------- pasos / flujo ---------- */
.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.step__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 14px; background: var(--mint); border: 1px solid var(--line); color: var(--bean); }
.sec--dark .step__n { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: var(--white); }
.step__t b { font-family: var(--f-display); font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; display: block; }
.step__t p { font-size: 13.5px; color: var(--bean-70); margin-top: 4px; }
.sec--dark .step__t p { color: rgba(255, 255, 255, .66); }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rcard { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 15px; background: var(--white); display: flex; flex-direction: column; gap: 10px; position: relative; }
.rcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tone, var(--green)); border-radius: var(--r-m) var(--r-m) 0 0; }
.rcard__w { font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bean-55); }
.rcard__t { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rcard ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 7px; }
.rcard li { font-size: 12.5px; color: var(--bean-70); line-height: 1.5; }
.rcard__o { margin-top: auto; font-size: 11.5px; font-weight: 500; color: var(--bean); background: var(--mint); border: 1px solid var(--line-soft); border-radius: var(--r-s); padding: 7px 9px; }

/* ---------- reglas ---------- */
.rules { display: grid; gap: 8px; }
.rule-row { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; background: var(--white); transition: all .2s ease; }
.rule-row:hover { border-color: var(--bean-38); }
.rule-row__if { font-size: 13.5px; }
.rule-row__if b { font-family: var(--f-display); font-weight: 600; color: var(--bean); }
.rule-row__arrow { display: grid; place-items: center; color: var(--green); font-weight: 700; }
.rule-row__then { font-size: 13.5px; color: var(--bean-70); }

/* ---------- fase 2 ---------- */
.chan2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ch { border: 1px dashed var(--bean-38); border-radius: var(--r-l); padding: clamp(18px, 2.2vw, 26px); background: rgba(255, 255, 255, .04); position: relative; overflow: hidden; }
.sec--light .ch { background: var(--white); }
.ch__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bean); background: var(--tone, var(--aqua)); padding: 5px 10px; border-radius: 99px; }
.ch__h { font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 14px; }
.sec--dark .ch__h { color: var(--white); }
.ch__role { font-size: 14px; margin-top: 8px; color: var(--bean-70); }
.sec--dark .ch__role { color: rgba(255, 255, 255, .7); }
.ch__kv { margin-top: 16px; display: grid; gap: 10px; }
.ch__kv div { font-size: 13px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.sec--light .ch__kv div { border-color: var(--line-soft); }
.ch__kv span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.sec--light .ch__kv span { color: var(--bean-55); }
.ch__slots { margin-top: 16px; display: grid; gap: 8px; }
.slot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--bean-70); border: 1px dashed var(--bean-18); border-radius: var(--r-s); padding: 9px 11px; }
.sec--dark .slot { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .2); }
.slot i { width: 18px; height: 18px; border-radius: 4px; border: 1px dashed var(--tone, var(--aqua)); flex: none; }

/* ---------- notas ---------- */
.note { font-size: 12.5px; color: var(--bean-55); line-height: 1.6; }
.sec--dark .note { color: rgba(255, 255, 255, .55); }
.note b { color: var(--bean); font-weight: 600; }
.sec--dark .note b { color: var(--lime); }
.callout { border-left: 3px solid var(--gold); padding: 12px 16px; background: var(--mint); border-radius: 0 var(--r-m) var(--r-m) 0; font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }

/* ---------- footer ---------- */
.foot { background: var(--bean); color: var(--white); padding-block: clamp(40px, 5vw, 68px) clamp(28px, 3vw, 40px); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.foot img { height: 30px; width: auto; display: block; }
.foot__h { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.foot p, .foot li { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: rgba(255, 255, 255, .72); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.foot a:hover { color: var(--lime); border-color: var(--lime); }
.foot__bottom { margin-top: clamp(28px, 4vw, 46px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ---------- glass + gradient accents ---------- */
.glass { position: relative; }
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(55, 160, 82, .05) 0 1px, transparent 1px 9px);
  opacity: .5;
}
.blurline { height: 2px; background: linear-gradient(90deg, transparent, var(--green), var(--lime), var(--aqua), var(--yellow), transparent); filter: blur(.4px); opacity: .8; }

/* ---------- animaciones ---------- */
[data-enter] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
[data-enter].is-in { opacity: 1; transform: none; }
[data-enter][style*="--d"] { transition-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-enter] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { font-size: 12.5px; }
}

/* En portátiles la navegación entra completa: se aprieta antes de ocultar algo. */
@media (max-width: 1440px) {
  .brandlock { gap: 16px; }
  .brandlock__divider { display: none; }
  #nav { gap: 2px; }
  #nav a { padding: 7px 9px; font-size: 12.5px; }
  .topbar__actions { padding-right: 4px; }
}

@media (max-width: 1279px) {
  .brandlock__client { display: none; }
  #nav { gap: 1px; overflow-x: auto; scrollbar-width: none; }
  #nav a { padding: 6px 8px; font-size: 12px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 136px; }
  .mkts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .fighint { display: block; }
  .hero__grid, .sim, .geo, .grid2, .grid3, .chan2, .tree, .angles, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding-block: 10px; }
  .topbar__in { flex-wrap: wrap; gap: 10px 14px; }
  .nav {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 7px 12px; font-size: 12.5px; }
  .btn--cta.btn--sm { margin-left: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { gap: 26px; }
  .lane__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [id^="fig-"] .svgfig { min-width: 660px; }
  #fig-channels .svgfig { min-width: 780px; }
  .stackbar { height: 54px; }
  .stackbar div { font-size: 10px; padding-inline: 6px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .kpis, .sim__out, .counts { grid-template-columns: minmax(0, 1fr); }
  .rule-row { grid-template-columns: 1fr; }
  .rule-row__arrow { transform: rotate(90deg); justify-self: start; }
  .brandlock__divider, .brandlock__client { display: none; }
  .hero__meta { gap: 14px 20px; }
}

/* ---------- impresión ---------- */
@media print {
  [data-enter] { opacity: 1 !important; transform: none !important; }
  .topbar, .hero__actions, .filters, .foot__bottom { display: none !important; }
  .sec--dark { background: var(--white) !important; color: var(--bean) !important; }
  .panel, .kpi, .angle, .rcard { box-shadow: none !important; break-inside: avoid; }
  body { font-size: 11px; }
  .tree, .road, .angles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
