/* Páginas de soluciones (canal tradicional y trade internacional). Tokens de index.html. */

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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --surface3: #202020;
  --border: #222222;
  --border2: #2c2c2c;
  --text: #ededed;
  --muted: #8f8f8f;
  --dim: #6b6b6b;
  --accent: #ffffff;
  --brand: #4f46e5;
  --brand2: #818cf8;
  --brand-soft: rgba(79, 70, 229, 0.14);
  --ok: #22c55e;
  --warn: #f5a524;
  --bad: #f05252;
  --wa: #1f8f5f;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

html { scroll-behavior: smooth; scrollbar-color: #333 var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(129, 140, 248, 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand2); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.tnum { font-variant-numeric: tabular-nums; }

/* Etiquetas visibles siempre */
.tag-ilus {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #9a9a9a; border: 1px dashed #3a3a3a; padding: 3px 8px; border-radius: 6px;
}

/* ── NAV (igual al sitio + Soluciones) ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10,10,10,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 32px; }
.nav-logo { height: 32px; width: auto; aspect-ratio: 467/219; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; flex: 1; }
.nav-links a, .dd-toggle { color: var(--muted); font-size: 14px; transition: color .15s; }
.nav-links a:hover, .dd-toggle:hover, .nav-links a[aria-current] { color: var(--text); }
.dd { position: relative; }
.dd-toggle { background: none; border: 0; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 0; }
.dd-toggle svg { transition: transform .2s; }
.dd.open .dd-toggle svg { transform: rotate(180deg); }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; min-width: 250px; z-index: 200; box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 14px; border-radius: 7px; font-size: 14px; color: var(--muted); }
.dd-menu a:hover { background: var(--surface2); color: var(--text); }
.dd-menu a small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.dd-new { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand2); margin-left: 6px; }
.nav-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 7px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; line-height: 1; font-family: inherit;
  transition: opacity .15s, border-color .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-outline:hover { border-color: #555; }
.btn-large { padding: 13px 22px; font-size: 15px; border-radius: 8px; }
.btn svg { flex-shrink: 0; }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }
.mobile-menu { display: none; position: fixed; inset: 60px 0 0 0; background: var(--bg); z-index: 99; padding: 24px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu .mm-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 18px 0 4px; }
.mobile-menu a { display: block; padding: 13px 0; font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu .mobile-cta { margin-top: 24px; text-align: center; padding: 14px; background: var(--accent); color: #0a0a0a; border-radius: 8px; font-weight: 600; border: 0; }

@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: block; }
}

/* ── Estructura de página ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; border-top: 1px solid var(--border); }
.section.tight { padding: 88px 0; }
.h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--accent);
  text-wrap: balance;
}
.h2 .soft { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 600px; text-wrap: pretty; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head .lead { justify-self: end; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); gap: 20px; } .sec-head .lead { justify-self: start; } }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--brand2); }

/* ── HERO de landing ── */
.lp-hero { padding: 72px 0 96px; }
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr); gap: 56px; align-items: center; max-width: 1280px; }
.lp-hero h1 {
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--accent);
  margin-bottom: 24px;
  text-wrap: balance;
}
.lp-hero h1 .hl { color: var(--brand2); }
.lp-hero .lead { margin-bottom: 36px; font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-proof div { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--brand2); }
@media (max-width: 1100px) {
  .lp-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lp-hero h1 { max-width: 14ch; }
  .lp-hero .lead { max-width: 640px; }
  .lp-hero { padding: 48px 0 72px; }
}

/* ── Ventana de app (panel / hub) ── */
.app {
  background: #0f0f10;
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255,255,255,0.02) inset;
  font-size: 13px;
  position: relative;
}
.app-top {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: #141415;
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2e2e2e; display: block; }
.app-title { font-size: 12.5px; color: #bdbdbd; font-weight: 500; display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.app-title > * { flex-shrink: 0; }
.app-title b { color: #fff; font-weight: 600; }
.app-title .sep { color: #444; }
.app-top .tag-ilus { margin-left: auto; flex-shrink: 0; }

/* ── Panel canal tradicional ── */
.pnl-body { padding: 16px; }
.pnl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.pnl-kpi { background: #121213; padding: 12px 14px; }
.pnl-kpi .k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.pnl-kpi .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pnl-kpi .d { font-size: 11px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.up { color: var(--ok); } .down { color: var(--bad); } .warnc { color: var(--warn); }

.pnl-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pnl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 78px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--border);
  background: #101011;
  transition: background .3s;
}
.pnl-row:first-child { border-top: 0; }
.pnl-row.head { background: #141415; font-size: 11px; color: var(--dim); padding-top: 8px; padding-bottom: 8px; }
.pnl-row .nm { color: #f2f2f2; font-weight: 600; font-size: 13px; line-height: 1.25; }
.pnl-row .sub { font-size: 11px; color: var(--dim); }
.pnl-row .act { font-size: 12px; color: #cfcfcf; display: flex; gap: 8px; align-items: center; min-width: 0; }
.pnl-row .act span { line-height: 1.35; }
.pnl-row.hot { background: linear-gradient(90deg, rgba(79,70,229,.2), rgba(79,70,229,.06)); box-shadow: inset 2px 0 0 var(--brand2); }
.pnl-row.hot .act { color: #fff; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.spark i { display: block; width: 6px; border-radius: 2px 2px 0 0; background: #3a3a3a; }
.spark.fall i:nth-last-child(-n+3) { background: var(--bad); }
.spark.rise i:nth-last-child(-n+3) { background: var(--ok); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 5px; background: #1d1d1e; color: #bbb; border: 1px solid #2a2a2a; white-space: nowrap; }
.chip.bad { color: #ff9b9b; background: rgba(240,82,82,.1); border-color: rgba(240,82,82,.3); }
.chip.warn { color: #ffcf7a; background: rgba(245,165,36,.1); border-color: rgba(245,165,36,.3); }
.chip.ok { color: #86efac; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.28); }
.chip.brand { color: #c7cbff; background: var(--brand-soft); border-color: rgba(129,140,248,.35); }
.ico-act { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #1d1d1e; border: 1px solid #2a2a2a; color: #cfcfcf; flex-shrink: 0; }
.pnl-row.hot .ico-act { background: var(--brand); border-color: var(--brand); color: #fff; }
.pnl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 11.5px; color: var(--dim); gap: 12px; }
.pnl-foot .btn-mini { font-size: 12px; color: #fff; background: var(--brand); padding: 7px 11px; border-radius: 6px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 640px) {
  .pnl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnl-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .pnl-row > :nth-child(3), .pnl-row > :nth-child(4) { grid-column: 1 / -1; }
  .pnl-row.head { display: none; }
}

/* ── Dolores: lista tipográfica ── */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border2); }
.pain { padding: 28px 28px 0 0; }
.pain + .pain { padding-left: 28px; border-left: 1px solid var(--border); }
.pain .q { font-size: clamp(19px, 1.9vw, 23px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: #fff; margin-bottom: 12px; text-wrap: balance; }
.pain p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.pains-foot { margin-top: 44px; font-size: 14px; color: var(--muted); }
.pains-foot a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; }
.pains-foot a:hover { text-decoration-color: var(--brand2); }
@media (max-width: 860px) {
  .pains { grid-template-columns: minmax(0, 1fr); }
  .pain, .pain + .pain { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--border); }
}

/* ── Tres capas (tabla editorial) ── */
.layers { border-top: 1px solid var(--border2); }
.layer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.layer-name { display: flex; gap: 14px; align-items: center; }
.layer-name .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--border2); color: var(--brand2); flex-shrink: 0; }
.layer-name h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.layer-name h3 small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--dim); margin-top: 6px; }
.layer .col-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; font-weight: 600; }
.layer .col-v { color: #d6d6d6; font-size: 15px; line-height: 1.55; }
.layer .col-v.big { color: #fff; font-size: 17px; }
.layers-head { display: grid; grid-template-columns: 220px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 0 0 14px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 980px) {
  .layers-head { display: none; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (min-width: 981px) { .layer .col-k { display: none; } }

/* ── Historia guiada (stepper) ── */
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.step {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border);
  color: inherit; font: inherit; cursor: pointer;
  padding: 20px 0 20px 0; position: relative;
  display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 4px 12px;
}
.step .n { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 3px; grid-row: span 2; }
.step .t { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; color: var(--muted); transition: color .25s; }
.step .d { font-size: 14px; color: var(--dim); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease-out), opacity .4s; }
.step .bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--brand2); }
.step.on .t { color: #fff; }
.step.on .n { color: var(--brand2); }
.step.on .d { max-height: 120px; opacity: 1; color: var(--muted); }
.step:hover .t { color: #fff; }
.stage { display: grid; }
.pane {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s var(--ease-out), visibility 0s .55s;
}
.pane.on { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s var(--ease-out), visibility 0s 0s; }
.story-note { margin-top: 18px; font-size: 12.5px; color: var(--dim); }
@media (max-width: 980px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .pane { display: none; }
  .pane.on { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .pane, .pane.on { transition: none; filter: none; transform: none; }
}

/* Contenido de las etapas */
.card-in { background: #111112; border: 1px solid var(--border2); border-radius: 12px; padding: 18px; }
.store-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.store-head .nm { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.store-head .sub { font-size: 12px; color: var(--dim); }
.bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 250px; padding: 8px 0 0; border-bottom: 1px solid var(--border2); }
.bars div { background: #3b3b3d; border-radius: 4px 4px 0 0; position: relative; }
.bars div.low { background: var(--bad); }
.bars-x { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; font-size: 10.5px; color: var(--dim); text-align: center; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fact { background: #161617; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.fact .k { font-size: 11px; color: var(--dim); }
.fact .v { font-size: 15px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }

.rank { display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #121213; border: 1px solid var(--border); }
.rank-row .pos { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rank-row .nm { font-size: 13.5px; color: #eee; font-weight: 600; }
.rank-row .why { font-size: 11.5px; color: var(--dim); }
.meter { height: 6px; border-radius: 99px; background: #232325; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand2); border-radius: 99px; }
.rank-row .val { font-size: 12px; color: #cfcfcf; text-align: right; font-variant-numeric: tabular-nums; }
.rank-row.me { border-color: rgba(129,140,248,.5); background: rgba(79,70,229,.12); }
.rank-cap { font-size: 12px; color: var(--dim); margin-top: 10px; }

.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 640px) { .act-grid { grid-template-columns: minmax(0, 1fr); } .task-photo { aspect-ratio: 16/10; } }
.task-photo { aspect-ratio: 4/3; border-radius: 9px; overflow: hidden; background: #18181a; border: 1px solid var(--border2); margin: 12px 0; }
.task-photo svg { width: 100%; height: 100%; display: block; }
.check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #d9d9d9; padding: 5px 0; }
.check svg { color: var(--ok); flex-shrink: 0; }
.wa { background: #0b141a; border: 1px solid #1f2c33; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1f2c33; }
.wa-av { width: 30px; height: 30px; border-radius: 50%; background: #6d28d9; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.wa-top .nm { font-size: 13px; color: #e9edef; font-weight: 600; line-height: 1.1; }
.wa-top .sub { font-size: 11px; color: #8696a0; }
.wa-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; background: #0b141a; }
.wa-msg { background: #202c33; color: #e9edef; font-size: 12.5px; line-height: 1.45; padding: 8px 10px 16px; border-radius: 0 9px 9px 9px; max-width: 92%; position: relative; }
.wa-msg.me { background: #005c4b; align-self: flex-end; border-radius: 9px 0 9px 9px; }
.wa-msg time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #8696a0; }
.wa-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.wa-btn { font-size: 12px; color: #53bdeb; background: #202c33; border-radius: 8px; padding: 7px 10px; }

.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 3px; display: inline-block; }

/* ── Pasos de arranque ── */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: f; }
.flow::before { content: ''; position: absolute; top: 17px; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, var(--brand2), #333 70%); }
.fl { position: relative; padding-right: 28px; }
.fl .dot { width: 35px; height: 35px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border2); display: grid; place-items: center; font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 22px; position: relative; font-variant-numeric: tabular-nums; }
.fl:first-child .dot { border-color: var(--brand2); color: var(--brand2); }
.fl h3 { font-size: 18px; font-weight: 650; color: #fff; letter-spacing: -0.015em; margin-bottom: 8px; }
.fl p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.fl .need { margin-top: 12px; font-size: 12.5px; color: #bdbdbd; display: flex; gap: 7px; }
.fl .need svg { color: var(--brand2); flex-shrink: 0; margin-top: 2px; }
.flow.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .flow, .flow.three { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow::before { top: 18px; bottom: 18px; left: 17px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--brand2), #333 70%); }
  .fl { padding: 0 0 0 56px; }
  .fl .dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ── Caso ── */
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--border2); border-radius: 18px; overflow: hidden; background: var(--surface); }
.case-media { position: relative; min-height: 420px; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0) 55%, rgba(17,17,17,.9)); }
.case-brand { position: absolute; left: 20px; top: 20px; z-index: 2; font-size: 13px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: 7px; }
.case-body { padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.case-body .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.case-body h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; text-wrap: balance; }
.case-body p { color: var(--muted); font-size: 15.5px; }
.case-parts { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.case-parts div { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: #d6d6d6; }
.case-parts b { color: var(--brand2); font-weight: 600; font-size: 13px; }
@media (max-width: 900px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-media { min-height: 260px; }
  .case-media::after { background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(17,17,17,.95)); }
  .case-body { padding: 28px 24px 30px; }
}

/* ── FAQ (estilo del sitio) ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: #333; }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--muted); transition: transform .25s, color .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--brand2); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 72ch; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
@media (min-width: 901px) { .faq-grid .h2 { position: sticky; top: 100px; } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ── Cierre y formulario ── */
.close { padding: 120px 0; border-top: 1px solid var(--border); background: radial-gradient(ellipse 60% 70% at 15% 100%, rgba(79,70,229,.16), transparent 70%); }
.close .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.close h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; color: #fff; margin-bottom: 20px; text-wrap: balance; }
.close .lead { margin-bottom: 28px; }
.close-points { display: flex; flex-direction: column; gap: 10px; color: #cfcfcf; font-size: 14.5px; }
.close-points div { display: flex; gap: 10px; align-items: flex-start; }
.close-points svg { color: var(--brand2); margin-top: 3px; flex-shrink: 0; }
.form { background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: #0d0d0e; border: 1px solid var(--border2); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 14px; outline: none; transition: border-color .2s;
  resize: none; caret-color: var(--brand2);
}
.field input::placeholder, .field textarea::placeholder { color: #5c5c5c; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand2); }
.form .btn { width: 100%; padding: 14px; }
.form-note { font-size: 12px; color: var(--dim); text-align: center; }
.form-done { display: none; font-size: 13.5px; color: #c7cbff; background: var(--brand-soft); border: 1px solid rgba(129,140,248,.35); padding: 10px 12px; border-radius: 8px; }
.form.sent .form-done { display: block; }
@media (max-width: 900px) { .close .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .close { padding: 88px 0; } }
@media (max-width: 520px) { .form .row { grid-template-columns: minmax(0, 1fr); } }

/* ── Footer (del sitio) ── */
footer.site-foot { border-top: 1px solid var(--border); padding: 56px 24px 40px; }
.foot-inner { max-width: 1100px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 210px repeat(4, minmax(0, 1fr)); gap: 40px; margin-bottom: 56px; }
.foot-brand p { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.foot-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.foot-bottom div { display: flex; gap: 20px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── Hub (trade internacional) ── */
.hub-top-extra { display: flex; gap: 6px; margin-left: 6px; }
.mkt { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; color: #a8a8a8; background: #1a1a1b; border: 1px solid #2a2a2a; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; white-space: nowrap; }
.mkt:hover { color: #fff; }
.mkt.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.mkt .cc { font-size: 10px; font-weight: 700; letter-spacing: .05em; opacity: .8; }
.mkt.add { border-style: dashed; color: #777; cursor: default; }
.hub-markets { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #121213; align-items: center; }
.hub-markets .lbl { font-size: 11px; color: var(--dim); margin-right: 4px; }
.hub-search { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: #8a8a8a; background: #0e0e0f; border: 1px solid #2a2a2a; border-radius: 7px; padding: 5px 9px; }
.hub-search kbd { font-family: inherit; font-size: 10px; color: #aaa; border: 1px solid #333; border-radius: 4px; padding: 1px 4px; }
.hub-main { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 380px; }
.hub-side { border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; background: #0f0f10; }
.hub-side a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: #9a9a9a; font-size: 12.5px; }
.hub-side a.on { background: #1b1b1d; color: #fff; }
.hub-side a svg { flex-shrink: 0; opacity: .85; }
.hub-side .brandmark { padding: 4px 10px 12px; font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.hub-side .brandmark small { display: block; font-size: 10.5px; color: var(--dim); font-weight: 500; }
.hub-content { padding: 16px 18px 18px; position: relative; }
.hub-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.hub-h h4 { font-size: 16px; color: #fff; font-weight: 650; letter-spacing: -0.01em; }
.hub-h span { font-size: 11px; color: var(--dim); }
.hub-track { font-size: 12.5px; color: #c9c9c9; margin-bottom: 14px; min-height: 20px; }
.hub-track b { color: #fff; }
.skus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sku { background: #141415; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sku-art { height: 70px; position: relative; display: grid; place-items: center; }
.sku-art svg { width: 64px; height: 50px; }
.sku-info { padding: 8px 10px 10px; }
.sku-info .nm { font-size: 12px; color: #f0f0f0; font-weight: 600; line-height: 1.25; }
.sku-info .fmt { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.agent { background: #17171a; border: 1px solid rgba(129,140,248,.4); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.agent-input { margin: auto 11px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #6f6f6f; border: 1px solid #2c2c30; border-radius: 8px; padding: 7px 9px; }
.agent-input span:last-child { width: 20px; height: 20px; border-radius: 6px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.agent-top { display: flex; align-items: center; gap: 8px; padding: 8px 11px; font-size: 11.5px; color: #c7cbff; border-bottom: 1px solid #26263a; background: rgba(79,70,229,.12); }
.agent-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: block; }
.agent-body { padding: 10px 11px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; line-height: 1.45; }
.agent .q { align-self: flex-end; background: #26262b; color: #eee; padding: 6px 9px; border-radius: 9px 9px 2px 9px; max-width: 90%; }
.agent .a { color: #d9d9d9; }
.agent .a small { display: block; color: var(--dim); font-size: 10.5px; margin-top: 4px; }
.swap { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.swap.out { opacity: 0; transform: translateY(4px); }
@media (max-width: 640px) {
  .hub-main { grid-template-columns: minmax(0, 1fr); }
  .hub-side { display: none; }
  .skus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-search { display: none; }
}

/* Módulos con vista previa */
.mods { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.mod-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.mod {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); color: inherit; font: inherit;
  padding: 18px 4px; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 2px 12px; align-items: center;
}
.mod .ic { color: var(--dim); display: grid; place-items: center; grid-row: span 2; align-self: start; padding-top: 3px; }
.mod .t { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; transition: color .2s; }
.mod .d { grid-column: 2; font-size: 14px; color: var(--dim); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease-out), opacity .35s; }
.mod .arr { color: #444; transition: transform .25s var(--ease-out), color .2s; grid-row: 1; grid-column: 3; }
.mod.on .t, .mod:hover .t { color: #fff; }
.mod.on .ic { color: var(--brand2); }
.mod.on .d { max-height: 90px; opacity: 1; color: var(--muted); }
.mod.on .arr { color: var(--brand2); transform: translateX(3px); }
.preview { position: sticky; top: 92px; }
.pv { display: none; }
.pv.on { display: block; animation: pvIn .5s var(--ease-out); }
@keyframes pvIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .pv.on { animation: none; } }
.pv-body { padding: 20px; }
.planogram { display: grid; grid-template-rows: repeat(4, 38px); gap: 6px; padding: 10px; background: #151516; border: 1px solid var(--border); border-radius: 8px; }
.shelf { display: flex; gap: 4px; border-bottom: 3px solid #2d2d30; padding-bottom: 2px; }
.shelf i { flex: 1; border-radius: 3px 3px 0 0; display: block; }
.manual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.manual-rules { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: #cfcfcf; }
.manual-rules div { display: flex; gap: 8px; }
.manual-rules b { color: var(--brand2); font-weight: 600; min-width: 18px; font-variant-numeric: tabular-nums; }
.spec { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec td { padding: 9px 4px; border-bottom: 1px solid var(--border); color: #d4d4d4; font-variant-numeric: tabular-nums; }
.spec td:first-child { color: var(--dim); width: 44%; }
.objection { background: #151516; border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.objection .o { font-size: 13.5px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.objection .r { font-size: 12.5px; color: #c9c9c9; line-height: 1.5; }
.objection .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 4px; font-weight: 600; }
.slide { aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, #1b1a3a, #0e0e10 60%); border: 1px solid var(--border2); padding: 7% 8%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.slide .big { font-size: clamp(18px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.05; max-width: 70%; }
.slide .sm { font-size: 12px; color: #aab; margin-top: 8px; }
.slide .num { position: absolute; top: 14px; right: 16px; font-size: 11px; color: #777; font-variant-numeric: tabular-nums; }
.slide-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.slide-dots i { width: 22px; height: 3px; border-radius: 3px; background: #333; display: block; }
.slide-dots i.on { background: var(--brand2); }
.lock { display: grid; place-items: center; text-align: center; padding: 36px 20px; gap: 14px; }
.lock .pin { display: flex; gap: 8px; justify-content: center; }
.lock .pin i { width: 38px; height: 46px; border-radius: 8px; background: #151516; border: 1px solid var(--border2); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 20px; }
.lock .pin i.f::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.lock p { font-size: 13px; color: var(--muted); max-width: 36ch; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 980px) {
  .mods { grid-template-columns: minmax(0, 1fr); }
  .preview { position: relative; top: 0; }
  .manual-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Timeline del caso internacional */
.tl { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border2); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 22px 22px; }
.tl-item::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand2); }
.tl-item h4 { font-size: 15.5px; color: #fff; font-weight: 650; margin-bottom: 3px; }
.tl-item p { font-size: 14px; color: var(--muted); }
.tl-item.now::before { background: var(--brand2); }

/* Para quién */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border2); }
.who div { padding: 26px 24px 4px 0; }
.who div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.who h3 { font-size: 19px; font-weight: 650; color: #fff; letter-spacing: -0.015em; margin-bottom: 8px; }
.who p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) {
  .who { grid-template-columns: 1fr 1fr; }
  .who div, .who div + div { padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 520px) { .who { grid-template-columns: minmax(0, 1fr); } }


.case.no-media { grid-template-columns: minmax(0, 1fr); }
.case.no-media .case-body { padding: 44px; max-width: 860px; }
@media (max-width: 900px) { .case.no-media .case-body { padding: 28px 24px 30px; } }
