/* PAUTADS · página principal
   Estructura de plataforma (portada con producto, pasos, canales, sectores, preguntas)
   con la identidad de PAUTADS: azul tinta, naranja señal y la barra del logo en los botones. */

:root {
  --ink: #0F1B3D;
  --ink-2: #17244C;
  --ink-3: #26345F;
  --signal: #F2541B;
  --signal-deep: #B43C0F;
  --signal-soft: #FFE9DF;
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --slate: #586074;
  --mist: #B9C0D2;
  --line: #E1E4EB;
  --good: #1F8A5B;
  --font: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sec: clamp(72px, 9vw, 120px);
  --shadow: 0 1px 2px rgba(15, 27, 61, .06), 0 24px 48px -20px rgba(15, 27, 61, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--signal); color: var(--ink); font-weight: 600; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
section { padding-block: var(--sec); }
section[id] { scroll-margin-top: 72px; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--signal-deep); margin-bottom: 14px; }
.eyebrow-light { color: var(--signal); }
.sec-head { max-width: 720px; }
.sec-head p:not(.eyebrow) { color: var(--slate); font-size: 1.1rem; margin-top: 16px; }
.sec-lead { color: var(--slate); margin-top: 18px; max-width: 48ch; }

/* ---------- Botones: se llenan como la barra del logo ---------- */
.btn {
  --bg: var(--signal); --fg: var(--ink); --fill: var(--ink); --fg-on: var(--white); --tick: var(--signal);
  --lip: var(--signal-deep); --lift: 4px; --h: 56px; --r: 14px; --end: 20px;
  --sh: 0 var(--lift) 0 var(--lip);
  --sh-up: 0 calc(var(--lift) + 2px) 0 var(--lip);
  --sh-down: 0 0 0 var(--lip);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 0 30px 0 26px; border: 0; border-radius: var(--r);
  font: 600 1rem/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; text-align: center; white-space: nowrap;
  color: var(--fg); background: var(--bg); box-shadow: var(--sh);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
/* La capa de relleno lleva su propia copia del texto: el color cambia justo donde pasa la barra */
.btn::before {
  content: attr(data-t); content: attr(data-t) / "";
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; padding: inherit;
  border-radius: inherit; color: var(--fg-on); background: var(--fill);
  clip-path: inset(0 100% 0 0 round var(--r)); transition: clip-path .55s var(--ease);
}
.btn::after {
  content: ""; position: absolute; z-index: 1; top: -6px; bottom: -6px; left: 6px; width: 3px; border-radius: 2px;
  background: var(--tick); opacity: 0; transition: left .55s var(--ease), opacity .18s;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--sh-up); }
  .btn:hover::before { clip-path: inset(0 var(--end) 0 0 round var(--r)); }
  .btn:hover::after { left: calc(100% - var(--end) + 2px); opacity: 1; }
}
.btn:focus-visible::before, .btn.is-done::before { clip-path: inset(0 var(--end) 0 0 round var(--r)); }
.btn:focus-visible::after, .btn.is-done::after { left: calc(100% - var(--end) + 2px); opacity: 1; }
.btn:active { transform: translateY(var(--lift)); box-shadow: var(--sh-down); transition-duration: .06s; }

.btn-sm { --h: 44px; --r: 12px; --lift: 3px; --end: 16px; padding: 0 24px 0 18px; font-size: .92rem; }
.btn-ink { --bg: var(--ink); --fg: var(--white); --fill: var(--signal); --fg-on: var(--ink); --tick: var(--ink); --lip: #050B20; }
.btn-ghost {
  --bg: transparent; --fg: var(--white); --fill: var(--white); --fg-on: var(--ink); --tick: var(--signal); --lift: 2px;
  --sh: inset 0 0 0 1.5px rgba(255, 255, 255, .4); --sh-up: inset 0 0 0 1.5px var(--white); --sh-down: inset 0 0 0 1.5px var(--white);
}
.btn-line {
  --bg: var(--white); --fg: var(--ink); --fill: var(--ink); --fg-on: var(--white); --tick: var(--signal); --lift: 2px;
  --sh: inset 0 0 0 1.5px var(--ink); --sh-up: inset 0 0 0 1.5px var(--ink); --sh-down: inset 0 0 0 1.5px var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Barra superior ---------- */
.ribbon { background: var(--ink); color: var(--mist); font-size: .82rem; }
.ribbon-in { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 38px; flex-wrap: wrap; text-align: center; }
.ribbon i { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(15, 27, 61, .35); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; transition: height .3s var(--ease); }
.top.scrolled .bar { height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav a:not(.btn) { position: relative; padding-block: 8px; text-decoration: none; color: var(--slate); transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover, .nav a.on { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.on::after { transform: scaleX(1); }
.nav .nav-login { font-weight: 600; color: var(--ink); }
.menu-btn { display: none; }
.pace { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.pace i { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--s, 0)); }

/* ---------- Portada ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-3); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; }
.hero-kicker::before { content: ""; width: 18px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--signal) 0 60%, var(--line) 60%); }
.hero h1 { margin-top: 22px; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; }
.lead { margin: 22px 0 32px; color: var(--slate); font-size: clamp(1.05rem, 1.35vw, 1.18rem); max-width: 52ch; }

/* Escena del producto: anuncio → chat → reporte */
.stage { position: relative; min-height: 470px; }
.st-photo, .st-chat, .st-report { position: absolute; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.st-photo { left: 0; top: 0; bottom: 40px; width: 58%; margin: 0; overflow: hidden; border-radius: 24px; background: var(--ink-3); }
.st-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 27, 61, .35)); }
.st-chat { right: 0; top: 36px; width: 56%; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: #F7F8FB; z-index: 2; }
.st-chat-h { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.st-chat-h i { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--white); font-style: normal; font-size: .75rem; font-weight: 600; }
.st-chat-h b { font-size: .9rem; line-height: 1.2; }
.st-chat-h em { font-style: normal; font-size: .72rem; font-weight: 600; color: #A2330A; }
.b { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.45; }
.b.in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.b.ai { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.b.sale { align-self: center; max-width: none; font-size: .78rem; font-weight: 600; color: #116239; background: #E3F3EA; border-radius: 10px; }
.js .stage .b { opacity: 0; transform: translateY(8px) scale(.98); }
.js .stage.in .b { animation: rise .5s var(--ease) var(--d) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.st-report { left: 22%; bottom: 0; width: 52%; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; z-index: 3; border: 1px solid var(--line); }
.st-report > span:first-child { font-size: .78rem; color: var(--slate); }
.st-report b { grid-column: 1; font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.st-report small { grid-column: 1; font-size: .76rem; color: var(--good); font-weight: 600; }
.st-bars { grid-column: 2; grid-row: 1 / 4; display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.st-bars i { width: 9px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--ink-3); }
.st-bars i:last-child { background: var(--signal); }

.facts { list-style: none; padding: 0; margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.facts li { background: var(--white); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.facts li:first-child b { color: var(--signal); }
.facts span { font-size: .92rem; color: var(--slate); line-height: 1.45; }

/* Marcas con las que trabajamos */
.clients { padding-block: clamp(36px, 5vw, 56px); background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-t { margin-bottom: 22px; text-align: center; font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--slate); }
/* Cinta de logos: dos copias iguales que se desplazan; al llegar a la mitad vuelve al inicio sin salto */
.cinta { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.cinta-track { display: flex; width: max-content; animation: cinta 55s linear infinite; }
.cinta:hover .cinta-track { animation-play-state: paused; }
.logos { list-style: none; margin: 0; padding: 0 76px 0 0; display: flex; align-items: center; gap: 76px; }
.logos li { flex: none; display: flex; align-items: center; height: 84px; }
.logos img { display: block; height: var(--h); width: auto; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Plataforma: pasos con panel ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; margin-top: 48px; align-items: start; }
.flow-tabs { display: flex; flex-direction: column; gap: 10px; }
.flow-tab {
  appearance: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 20px 22px; border-radius: 18px;
  background: var(--paper); transition: background .3s, box-shadow .3s, transform .2s var(--ease);
}
.flow-tab:hover { background: #ECEEF3; }
.flow-tab:active { transform: scale(.99); }
.flow-tab[aria-selected="true"] { background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.ft-n { font-size: 1.05rem; font-weight: 700; color: var(--mist); line-height: 1.7; transition: color .3s; }
.flow-tab[aria-selected="true"] .ft-n { color: var(--signal); }
.ft-t b { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.ft-t span { display: block; color: var(--slate); font-size: .95rem; line-height: 1.5; margin-top: 2px; }
.ft-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.flow-tab[aria-selected="true"] .ft-bar { background: var(--line); }
.flow-tab[aria-selected="true"] .ft-bar::before { content: ""; position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 1)); }
.flow-panels { position: sticky; top: 96px; }
.flow-panel { background: var(--ink); color: var(--white); border-radius: 24px; padding: clamp(20px, 3vw, 32px); min-height: 360px; box-shadow: 0 40px 70px -36px rgba(15, 27, 61, .7); }
.flow-panel[hidden] { display: none; }
.flow-panel.show > * { animation: pop .45s var(--ease) both; }
.flow-panel.show > :nth-child(2) { animation-delay: .08s; }
.flow-panel.show > :nth-child(3) { animation-delay: .16s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.fp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fp-head b { font-size: 1.15rem; font-weight: 600; }
.fp-head span { font-size: .82rem; color: var(--mist); }
.fp-camps, .fp-inbox, .fp-attr { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.fp-camps li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 110px auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--ink-2); font-size: .9rem; }
.pl { font-size: .74rem; font-weight: 600; text-align: center; padding: 3px 0; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.pl-meta { color: #9EC1FF; } .pl-google { color: #9BE3B7; } .pl-tiktok { color: #FFB1C8; }
.fp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.fp-meter i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--signal); }
.fp-v { font-size: .82rem; color: var(--mist); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-inbox li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ink-2); }
.fp-inbox i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font-style: normal; font-size: .75rem; font-weight: 600; }
.fp-inbox b { display: block; font-size: .9rem; font-weight: 600; }
.fp-inbox small { display: block; font-size: .8rem; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.tag-ad { background: #FFE9DF; color: #A2330A; } .tag-sale { background: #E3F3EA; color: #116239; } .tag-ai { background: #E9EDF7; color: var(--ink-3); }
.who { font-size: .78rem; color: var(--mist); min-width: 46px; text-align: right; }
.fp-attr li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 60px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ink-2); font-size: .9rem; }
.fp-attr b { text-align: right; font-variant-numeric: tabular-nums; }
.fp-alert { font-size: .88rem; color: var(--mist); background: rgba(242, 84, 27, .12); border-left: 3px solid var(--signal); padding: 12px 14px; border-radius: 0 12px 12px 0; }
.fp-alert b { color: var(--white); font-weight: 600; }
.flow-note { margin-top: 14px; font-size: .82rem; color: var(--slate); text-align: right; }

/* ---------- Canales ---------- */
.channels { background: var(--ink); color: var(--white); }
.channels .sec-lead { color: var(--mist); }
.channels-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.chan { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chan li { padding: 20px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .3s, transform .3s var(--ease), box-shadow .3s; }
.chan li:hover { background: var(--ink-3); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(242, 84, 27, .6); }
.chan b { display: block; font-size: 1.08rem; font-weight: 600; }
.chan b::before { content: ""; display: inline-block; width: 16px; height: 5px; margin-right: 10px; vertical-align: 4px; border-radius: 3px; background: var(--signal); }
.chan span { display: block; margin-top: 4px; color: var(--mist); font-size: .92rem; line-height: 1.5; }

/* ---------- Historial ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.journey .sec-lead { margin-bottom: 30px; }
.trail { list-style: none; padding: 28px; border-radius: 24px; background: var(--paper); position: relative; }
.trail li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; padding: 12px 0; position: relative; }
.trail li::before { content: ""; position: absolute; left: 106px; top: 22px; bottom: -14px; width: 2px; background: var(--line); }
.trail li:last-child::before { display: none; }
.trail li::after { content: ""; position: absolute; left: 100px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--mist); transition: box-shadow .4s var(--ease); }
.trail li.lit::after { box-shadow: inset 0 0 0 4px var(--signal); }
.trail li.lit::before { background: linear-gradient(var(--signal), var(--line)); }
.trail time { font-weight: 700; font-size: .95rem; text-align: right; padding-top: 8px; font-variant-numeric: tabular-nums; }
.trail div { padding-left: 16px; }
.trail b { display: block; font-weight: 600; }
.trail span { color: var(--slate); font-size: .94rem; }
.js .trail li { opacity: .45; transition: opacity .5s; }
.js .trail li.lit { opacity: 1; }

/* ---------- WhatsApp ---------- */
.inbox { background: var(--ink); color: var(--white); }
.inbox-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.inbox-copy p:not(.eyebrow) { color: var(--mist); margin-top: 20px; max-width: 44ch; }
.inbox-mock { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--white); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 36px 80px -20px rgba(3, 8, 25, .7); }
.im-list { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.im-row {
  appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 10px; border-radius: 12px; align-items: start;
  transition: background .2s, box-shadow .3s var(--ease);
}
.im-row:hover { background: #F1F3F9; }
.im-row:active { background: #E4E8F3; }
.im-row[aria-pressed="true"] { background: #E9EDF7; box-shadow: inset 3px 0 0 var(--signal); }
.im-row:focus-visible { outline-offset: -3px; }
.im-av { width: 38px; height: 38px; border-radius: 50%; background: var(--ink-3); color: var(--white); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: .78rem; }
.im-row:nth-child(2) .im-av { background: #2F7D6B; }
.im-row:nth-child(3) .im-av { background: #6B4E9B; }
.im-who { min-width: 0; display: block; }
.im-who b { display: block; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.im-who > span { display: block; font-size: .8rem; color: var(--slate); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-row time { font-size: .72rem; color: var(--slate); padding-top: 2px; }
.im-tag { display: inline-block; margin-top: 5px; font-style: normal; font-size: .7rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #E3F3EA; color: #116239; }
.im-tag.im-ad { background: #FFE9DF; color: #A2330A; }
.im-threads { background: #FAFBFC; display: grid; }
.im-thread { padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 268px; }
.im-thread[hidden] { display: none; }
.im-b { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.im-in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.im-out { align-self: flex-end; background: var(--ink-3); color: var(--white); border-bottom-right-radius: 4px; }
.im-sale { align-self: center; text-align: center; font-size: .78rem; font-weight: 500; color: #116239; background: #E3F3EA; border-radius: 10px; padding: 6px 12px; margin-top: 4px; }
.im-sale.im-info { color: var(--ink-3); background: #E9EDF7; }
.im-thread.play > * { animation: pop .4s var(--ease) both; }
.im-thread.play > :nth-child(2) { animation-delay: .12s; }
.im-thread.play > :nth-child(3) { animation-delay: .24s; }
.im-thread.play > :nth-child(4) { animation-delay: .38s; }
.inbox-video { margin: 72px auto 0; max-width: 960px; }
.inbox-video figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.inbox-video figcaption strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.inbox-video figcaption span { color: var(--mist); }
.inbox-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; background: #0a1330; box-shadow: 0 36px 80px -20px rgba(3, 8, 25, .7); }
.inbox-feats { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.inbox-feats li { border-top: 2px solid var(--signal); padding-top: 16px; }
.inbox-feats strong { display: block; font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.inbox-feats span { color: var(--mist); }
.inbox-note { margin-top: 40px; font-size: .9rem; color: var(--mist); max-width: 78ch; }
.inbox-note a { color: var(--white); }

/* ---------- Fotos ---------- */
.team-photo { position: relative; margin: 32px 0 0; border-radius: 20px; overflow: hidden; max-width: 460px; background: var(--ink-3); }
.team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.team-photo figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .84rem; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.team-photo figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31, 138, 91, .18); }
.start-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; }
.start-photo { margin: 0; border-radius: 24px; overflow: hidden; background: var(--line); }
.start-photo img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5.2; object-fit: cover; }

/* ---------- Sectores ---------- */
.sec-cards { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sec-cards li { position: relative; padding: 0 0 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); overflow: hidden; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.sec-cards li::before { content: ""; position: absolute; z-index: 1; left: 24px; top: 0; height: 4px; width: 32px; border-radius: 0 0 3px 3px; background: var(--signal); transition: width .5s var(--ease); }
.sec-cards li:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow); }
.sec-cards li:hover::before { width: calc(100% - 48px); }
.sc-img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; margin-bottom: 20px; background: var(--paper); transition: transform .6s var(--ease); }
.sec-cards li:hover .sc-img { transform: scale(1.04); }
.sec-cards b, .sec-cards span { padding-inline: 24px; }
.sec-cards b { display: block; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.sec-cards span { display: block; margin-top: 8px; color: var(--slate); font-size: .95rem; line-height: 1.55; }

/* ---------- Cómo empezamos ---------- */
.start { background: var(--paper); }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: 20px; padding: 26px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; font-weight: 700; font-size: 1.2rem; color: var(--white); background: var(--ink); box-shadow: 0 4px 0 var(--signal); }
.steps strong { display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.steps span { color: var(--slate); }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { border-radius: 16px; background: var(--paper); transition: background .3s, box-shadow .3s; }
.faq-list details[open] { background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1.02rem; border-radius: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--white) linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.faq-list details:not([open]) summary::after { background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; }
.faq-list details[open] summary::after { background-color: var(--signal); box-shadow: none; }
.faq-list summary:hover { color: var(--ink-3); }
.faq-list details p { padding: 0 22px 20px; color: var(--slate); max-width: 64ch; }
.faq-list details[open] p { animation: pop .35s var(--ease); }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(60% 80% at 100% 50%, rgba(242, 84, 27, .14), transparent 70%), var(--paper); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.contact h2 .hl { color: var(--signal); }
.contact-copy p { margin-top: 24px; font-size: 1.15rem; max-width: 42ch; color: var(--slate); }
.mail {
  display: inline-block; margin-top: 28px; padding: 2px 6px 6px; margin-left: -6px; border-radius: 8px;
  font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2.4rem); letter-spacing: -.035em; line-height: 1.2; text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) left bottom / 100% 3px no-repeat;
  transition: background-size .35s var(--ease), color .25s;
}
.mail:hover, .mail:focus-visible { background-size: 100% 100%; color: var(--white); }
.brief { background: var(--ink); color: var(--white); border-radius: 26px; padding: clamp(22px, 3vw, 38px); box-shadow: 0 40px 70px -30px rgba(15, 27, 61, .55); }
.brief :focus-visible { outline-color: var(--signal); }
.brief .btn { --fill: var(--white); --fg-on: var(--ink); --tick: var(--ink); }
.brief-q { font-size: 1.4rem; font-weight: 600; letter-spacing: -.025em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  appearance: none; border: 0; display: inline-flex; align-items: center; height: 46px; padding: 0 17px; border-radius: 999px;
  font: 500 .95rem/1 var(--font); color: var(--white); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .25s, color .25s, box-shadow .25s, transform .18s var(--ease);
}
.chip::before { content: ""; width: 0; height: 16px; margin-right: 0; border-radius: 2px; background: var(--ink); transition: width .25s var(--ease), margin .25s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--signal); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--signal); }
.chip[aria-pressed="true"]::before { width: 3px; margin-right: 10px; }
.chip.nudge { animation: nudge .5s var(--ease); }
@keyframes nudge { 40% { transform: scale(1.08); } }
.brief-hint { margin-top: 16px; font-size: .9rem; color: var(--mist); min-height: 3em; }
.brief .actions { margin-top: 10px; flex-direction: column; align-items: stretch; gap: 18px; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--mist); font-size: .92rem; }
.foot .wordmark { color: var(--white); }
.foot-in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px 32px; padding-block: 44px 52px; }
.foot nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot nav a { text-decoration: none; color: var(--white); background: linear-gradient(var(--signal), var(--signal)) left bottom / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease); }
.foot nav a:hover { background-size: 100% 2px; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .13); padding-top: 22px; }
.foot-legal a { color: var(--white); }

/* ---------- Adaptación ---------- */
@media (max-width: 1060px) {
  .hero-grid, .flow, .channels-grid, .journey-grid, .inbox-grid, .faq-grid, .contact-grid, .start-head { grid-template-columns: 1fr; gap: 44px; }
  .stage { max-width: 620px; width: 100%; margin-inline: auto; }
  .flow-panels { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .js .menu-btn { display: grid; place-items: center; align-content: center; gap: 6px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; padding: 4px 20px 28px; background: var(--white);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
  }
  .js .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .js .nav a:not(.btn) { padding: 17px 2px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .js .nav a:not(.btn)::after { display: none; }
  .js .nav .btn { margin-top: 26px; --h: 56px; font-size: 1rem; }
  html.menu-open { overflow: hidden; }
  html:not(.js) .nav a:not(.btn):not(.nav-login) { display: none; }
}
@media (max-width: 720px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .ribbon-in { font-size: .76rem; gap: 8px; }
  .ribbon-in span:not(:first-child), .ribbon-in i { display: none; }
  .bar { height: 64px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .stage { min-height: 0; display: flex; flex-direction: column; }
  .st-photo { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; margin-bottom: -64px; }
  .st-chat, .st-report { position: relative; inset: auto; }
  .st-chat { margin-left: 3%; }
  .st-chat { width: 94%; padding-bottom: 28px; }
  .st-report { width: 78%; align-self: flex-end; margin-top: -28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .logos { gap: 48px; padding-right: 48px; }
  .logos li { height: 72px; }
  .logos img { height: calc(var(--h) * .82); }
  .cinta-track { animation-duration: 40s; }
  .facts li { padding: 18px; }
  .facts b { font-size: 1.2rem; }
  .flow-tab { grid-template-columns: 36px 1fr; padding: 16px; }
  .fp-camps li { grid-template-columns: 64px minmax(0, 1fr); }
  .fp-camps .fp-meter { grid-column: 1 / -1; }
  .fp-camps .fp-v { grid-column: 1 / -1; }
  .fp-inbox li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .fp-inbox .who { display: none; }
  .fp-attr li { grid-template-columns: minmax(0, 1fr) 54px; }
  .fp-attr .fp-meter { grid-column: 1 / -1; grid-row: 2; }
  .chan { grid-template-columns: 1fr; }
  .trail { padding: 20px; }
  .trail li { grid-template-columns: 1fr; gap: 0; padding: 10px 0 10px 30px; }
  .trail li::before { left: 6px; top: 26px; }
  .trail li::after { left: 0; top: 14px; }
  .trail time { text-align: left; padding-top: 0; color: var(--signal-deep); }
  .trail div { padding-left: 0; }
  .inbox-feats { grid-template-columns: 1fr; gap: 22px; }
  .inbox-mock { grid-template-columns: 1fr; }
  .im-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .im-thread { min-height: 250px; }
  .sec-cards, .steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-self: start; }
}
@media (max-width: 380px) {
  .btn { white-space: normal; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinta-track { animation: none !important; width: auto; justify-content: center; }
  .cinta { -webkit-mask-image: none; mask-image: none; }
  .cinta [aria-hidden="true"] { display: none; }
  .logos { flex-wrap: wrap; justify-content: center; padding: 0 20px; gap: 16px 48px; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
