/* ===========================================================================
   NICO · Marketing landing (v2) — premium scroll storytelling
   Apple Intelligence × Linear × Arc. 95% luz, 5% gradiente.
   Layout + reveal system lives here so the JSX stays lean.
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-strong);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
::selection { background: var(--nico-violet-tint); color: var(--nico-ink); }
a { color: inherit; text-decoration: none; }

/* ---- layout ---- */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
section { position: relative; }

/* ---- ambient gradient field (the luminous wash behind everything) ---- */
.field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.field b {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  will-change: transform;
}
.field .b1 { width: 52vw; height: 52vw; top: -18vw; right: -12vw;
  background: radial-gradient(circle, rgba(123,92,255,0.42), transparent 68%); }
.field .b2 { width: 44vw; height: 44vw; top: 38vh; left: -16vw;
  background: radial-gradient(circle, rgba(255,94,203,0.30), transparent 68%); }
.field .b3 { width: 40vw; height: 40vw; bottom: -14vw; right: 4vw;
  background: radial-gradient(circle, rgba(255,138,122,0.28), transparent 68%); }
.page { position: relative; z-index: 1; }

/* ---- type helpers ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline); text-transform: uppercase;
  color: var(--nico-violet);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--nico-gradient-135); box-shadow: 0 0 10px rgba(123,92,255,0.6);
}
.kicker {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-muted);
}
h1, h2, h3, p { margin: 0; }
.display {
  font-weight: var(--fw-bold); letter-spacing: var(--ls-tight);
  line-height: 0.98; color: var(--text-strong);
  font-size: clamp(44px, 8vw, 104px); text-wrap: balance;
}
.h-xl {
  font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.02;
  font-size: clamp(36px, 5.4vw, 76px); text-wrap: balance;
}
.h-lg {
  font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); line-height: 1.08;
  font-size: clamp(28px, 3.6vw, 46px); text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.5vw, 21px); line-height: var(--lh-relaxed);
  color: var(--text-body); font-weight: var(--fw-regular);
}
.muted { color: var(--text-muted); }
.grad {
  background: var(--nico-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---- scroll reveal (base-visible; only hides when JS + motion allowed) ---- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal[data-shown] {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal-clip { clip-path: inset(0 0 100% 0); }
.js .reveal-clip[data-shown] {
  clip-path: inset(0 0 -10% 0);
  transition: clip-path 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 44px);
  transition: background var(--dur) var(--ease-out), backdrop-filter var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.nav[data-stuck] {
  background: var(--glass-bg); backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass)); border-bottom-color: var(--border-hairline);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); transition: color var(--dur); }
.nav-links a:hover { color: var(--nico-violet); }

/* ---- buttons (landing-local, larger & more confident than the kit default) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); white-space: nowrap;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background var(--dur);
  font-size: var(--fs-sm); padding: 11px 20px;
}
.btn-lg { font-size: var(--fs-body); padding: 15px 28px; }
.btn-grad { background: var(--nico-gradient-135); color: #fff; box-shadow: var(--glow-violet); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(123,92,255,0.4); }
.btn-ghost { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-soft); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-quiet { background: transparent; color: var(--text-body); }
.btn-quiet:hover { color: var(--nico-violet); }

.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chip-ch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--text-muted);
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 24px;
}
.hero-orbit-cell { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px;
  border-radius: var(--radius-pill); background: var(--surface-card);
  border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm); color: var(--text-body); font-weight: var(--fw-medium);
}
.scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: var(--fs-micro); letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.scrollcue i { width: 22px; height: 36px; border: 1.5px solid var(--border-strong); border-radius: 12px; position: relative; }
.scrollcue i::after {
  content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; border-radius: 2px;
  background: var(--nico-violet); transform: translateX(-50%); animation: cueScroll 1.8s var(--ease-in-out) infinite;
}
@keyframes cueScroll { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }
@media (prefers-reduced-motion: reduce){ .scrollcue i::after{ animation:none } }

/* ===========================================================================
   THE BIG ORBIT (protagonist) — layered rings + iridescent core
   =========================================================================== */
.orbit { position: relative; display: inline-grid; place-items: center; will-change: transform; }
.orbit .core {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #E7DCFF 22%, #9C7BFF 50%, #7B5CFF 68%, #FF5ECB 100%);
  box-shadow: 0 0 60px rgba(123,92,255,0.55), 0 0 120px rgba(255,94,203,0.3);
  animation: corePulse 5s var(--ease-in-out) infinite;
}
.orbit .halo {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,255,0.34), rgba(255,94,203,0.14) 45%, transparent 70%);
  filter: blur(4px);
}
.orbit .ring { position: absolute; border-radius: 50%; border: 1.5px solid; transform-style: preserve-3d; }
.orbit .ring .dot {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%);
}
.orbit .spin-a { animation: spin 18s linear infinite; }
.orbit .spin-b { animation: spinR 26s linear infinite; }
.orbit .spin-c { animation: spin 34s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinR { to { transform: rotate(-360deg); } }
@keyframes corePulse { 0%,100%{ transform: scale(1); opacity: .92 } 50%{ transform: scale(1.06); opacity: 1 } }
@media (prefers-reduced-motion: reduce){
  .orbit .spin-a,.orbit .spin-b,.orbit .spin-c,.orbit .core{ animation: none !important; }
}

/* ===========================================================================
   GENERIC SECTION RHYTHM
   =========================================================================== */
.sec { padding: clamp(96px, 14vh, 180px) 0; }
.sec-tight { padding: clamp(72px, 9vh, 120px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-wide { grid-template-columns: 1.15fr 0.85fr; }
.stack-lg > * + * { margin-top: 28px; }
.stack-md > * + * { margin-top: 18px; }

/* ---- problem: huge editorial statement w/ struck numbers ---- */
.problem { text-align: left; }
.bleak { display: flex; flex-direction: column; gap: 18px; margin-top: 44px; }
.bleak-row {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--border-hairline);
}
.bleak-num {
  font-size: clamp(34px, 5vw, 60px); font-weight: var(--fw-bold); line-height: 1;
  letter-spacing: var(--ls-tight); color: var(--nico-ink-4); font-variant-numeric: tabular-nums;
}
.bleak-row b { font-weight: var(--fw-semibold); color: var(--text-strong); }

/* ---- how it works: sticky orbit + stepping pipeline ---- */
.how { position: relative; }
.how-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.how-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.how-stage { position: relative; display: grid; place-items: center; width: 100%; }
.how-label {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  text-align: center; width: 80%;
}
.how-label .lk { font-size: var(--fs-micro); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--nico-violet); font-weight: var(--fw-semibold); }
.how-label .lt { font-size: clamp(22px, 3vw, 34px); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); margin-top: 6px; transition: opacity .4s var(--ease-out); }
.steps { display: flex; flex-direction: column; gap: 0; padding: 18vh 0; }
.step {
  padding: clamp(28px, 5vh, 56px) 0; border-top: 1px solid var(--border-hairline);
  opacity: 0.42; transition: opacity .5s var(--ease-out);
}
.step:last-child { border-bottom: 1px solid var(--border-hairline); }
.step[data-active] { opacity: 1; }
.step-n {
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--nico-violet);
  font-variant-numeric: tabular-nums; letter-spacing: var(--ls-wide);
}
.step h3 { font-size: clamp(24px, 3vw, 38px); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); line-height: 1.1; margin: 10px 0 12px; }
.step p { font-size: var(--fs-lead); line-height: var(--lh-normal); color: var(--text-muted); max-width: 44ch; }
.step[data-active] h3 .grad-on { background: var(--nico-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---- messages: dolor → promesa, alternating editorial pairs ---- */
.msg-list { display: flex; flex-direction: column; gap: clamp(40px, 7vh, 96px); margin-top: 64px; }
.msg {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
}
.msg .tag { font-size: var(--fs-micro); letter-spacing: var(--ls-overline); text-transform: uppercase; font-weight: var(--fw-semibold); color: var(--nico-magenta); margin-bottom: 12px; display: block; }
.msg .dolor { font-size: clamp(22px, 2.8vw, 38px); font-weight: var(--fw-semibold); line-height: 1.12; color: var(--text-strong); letter-spacing: var(--ls-snug); }
.msg .promesa { font-size: clamp(22px, 2.8vw, 38px); font-weight: var(--fw-bold); line-height: 1.12; letter-spacing: var(--ls-snug); }
.msg .arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm);
  color: var(--nico-violet); flex-shrink: 0;
}
.msg .promesa-side { text-align: left; }
.msg-r { grid-template-columns: 1fr auto 1fr; }

/* ---- loop: feedback ---- */
.loop-card {
  position: relative; overflow: hidden; border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, #fff, #FBFAFF);
  border: 1px solid var(--border-hairline); box-shadow: var(--shadow-lg);
  padding: clamp(40px, 6vw, 80px);
}

/* ---- impact: big typographic numbers ---- */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 60px; }
.impact .big {
  font-size: clamp(56px, 8vw, 116px); font-weight: var(--fw-bold); line-height: 0.92;
  letter-spacing: var(--ls-tight); background: var(--nico-gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.impact .cap { margin-top: 14px; font-size: var(--fs-body); color: var(--text-muted); line-height: var(--lh-normal); max-width: 26ch; }

/* ---- CTA ---- */
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-2xl);
  background: var(--nico-gradient-soft); border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-xl); padding: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center;
}

/* ---- footer ---- */
.foot { padding: 80px 0 48px; border-top: 1px solid var(--border-hairline); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-col h4 { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-strong); margin-bottom: 14px; }
.foot-col a { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 10px; transition: color var(--dur); }
.foot-col a:hover { color: var(--nico-violet); }
.foot-base { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-hairline); color: var(--text-disabled); font-size: var(--fs-xs); }

/* ---- people / portraits (neutral placeholders, swap for real photos) ---- */
.portrait {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
  background: radial-gradient(circle at 50% 32%, #ECE4FF, #F4EEFF 58%, #FCEDF6);
  border-radius: 50%; border: 1px solid var(--border-hairline); box-shadow: var(--shadow-xs);
  color: var(--nico-violet);
}
.portrait[data-shape="pill"] { border-radius: var(--radius-pill); }
.portrait svg { opacity: 0.5; }
.avatars-row { display: flex; }
.avatars-row .portrait { margin-left: -18px; border: 3px solid var(--surface-canvas); box-shadow: var(--shadow-sm); }
.avatars-row .portrait:first-child { margin-left: 0; }
.hero-portrait-chip {
  position: absolute; left: 2%; bottom: 10%; z-index: 3;
  display: flex; align-items: center; gap: 11px; padding: 8px 16px 8px 8px;
  background: var(--glass-bg); backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-hairline); border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 900px) {
  .hero-grid, .split, .split-wide, .how-grid { grid-template-columns: 1fr; }
  .hero-grid .stack-lg { order: 0; }
  .hero-orbit-cell { min-height: 340px; order: 1; }
  .how-sticky { position: relative; height: auto; padding: 20px 0 0; }
  .steps { padding: 24px 0; }
  .nav-links a:not(.btn) { display: none; }
  .msg, .msg-r { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .msg .arrow { transform: rotate(90deg); }
  .impact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-orbit { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-portrait-chip { left: auto; right: 6%; bottom: 6%; }
  .avatars-row { justify-content: flex-start; }
}


/* ===========================================================================
   ADDED SECTIONS — cred row, CRM flow, Voz, Diferenciadores, Para quién
   =========================================================================== */
.cred-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.cred-row span { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); }
.chan-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chan-row span { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); padding: 8px 13px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-xs); }
.chan-row + p { display: inline-flex; align-items: center; gap: 7px; }
.meta-badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); padding: 9px 15px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-xs); }
.meta-logo { height: 16px; width: auto; display: block; }
.meta-sep { width: 1px; height: 15px; background: var(--border-strong); display: inline-block; }
.foot-meta { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--text-muted); }
.foot-meta img { height: 15px; width: auto; }
/* ---- photos ---- */
.portrait-img { object-fit: cover; border-radius: 50%; display: block; }
.portrait-img[data-shape="rect"] { border-radius: var(--radius-md); }
.duo { position: relative; isolation: isolate; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: #140c28; }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #7B5CFF, #FF5ECB 62%, #FF8A7A); mix-blend-mode: color; }
.hero-photo { position: absolute; left: -4px; bottom: 5%; width: clamp(132px, 15vw, 188px); aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-xl); z-index: 2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.problem-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 30px; }
.problem-photo { aspect-ratio: 4/5; max-height: 460px; }
.msg-photo { aspect-ratio: 16/6; margin: 26px 0 8px; }
.dash-photo { margin-top: 8px; max-width: 320px; aspect-ratio: 16/10; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } .hero-photo { left: auto; right: 6%; width: 132px; } }

/* ---- Video film ---- */
.film-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: clamp(32px, 5vh, 56px); }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-xl, 0 50px 120px rgba(26,21,48,0.22));
  background: #FBFAFF;
}
.film-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.film-frame iframe,
.film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background:#000; }

/* ---- Dashboard (visibilidad + intervención humana) ---- */
.dash-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dash-points li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); color: var(--text-body); font-weight: var(--fw-medium); }
.dash-app { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 210px 1fr; min-height: 372px; }
.dash-side { border-right: 1px solid var(--border-hairline); background: var(--surface-canvas); padding: 14px; }
.dash-side-h { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: var(--fw-semibold); margin-bottom: 12px; }
.dash-convo { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; padding: 9px; border-radius: var(--radius-md); transition: background .2s; }
.dash-convo + .dash-convo { margin-top: 4px; }
.dash-convo[data-active] { background: #fff; box-shadow: var(--shadow-xs); }
.dash-convo .nm { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.dash-convo .ls { font-size: var(--fs-micro); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-convo .stat { font-size: 10px; font-weight: var(--fw-semibold); margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; }
.dash-sdot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.dash-main { display: flex; flex-direction: column; padding: 16px 18px; }
.dash-main-h { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border-hairline); }
.dash-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--nico-violet-tint); color: var(--nico-violet); }
.dash-thread { display: flex; flex-direction: column; gap: 9px; padding: 16px 0; flex: 1; }
.dash-thread .crm-bub { max-width: 76%; }
.dash-takeover { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--nico-violet-tint); border: 1px solid rgba(123,92,255,0.2); }
.dash-takeover .tk-t { font-size: var(--fs-sm); color: var(--nico-ink); font-weight: var(--fw-medium); }
.dash-take-btn { margin-left: auto; padding: 9px 16px; font-size: var(--fs-sm); white-space: nowrap; }
@media (max-width: 900px) { .dash-app { grid-template-columns: 1fr; } .dash-side { border-right: none; border-bottom: 1px solid var(--border-hairline); } .dash-takeover { flex-wrap: wrap; } .dash-take-btn { margin-left: 0; } }
.h-md { font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); line-height: 1.12; font-size: clamp(24px, 2.8vw, 36px); text-wrap: balance; }

/* ---- CRM flow (wow) ---- */
.crmflow .crm-split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 26px; align-items: stretch; }
.crm-chat { background: linear-gradient(180deg,#fff,#FBFAFF); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 18px; display: flex; flex-direction: column; }
.crm-chat-h { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border-hairline); }
.crm-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--nico-violet); }
.crm-chat-body { display: flex; flex-direction: column; gap: 9px; }
.crm-bub { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.45; animation: bubIn .42s cubic-bezier(.22,1,.36,1) both; }
.crm-bub.lead { align-self: flex-start; background: var(--surface-card); border: 1px solid var(--border-hairline); color: var(--text-strong); border-bottom-left-radius: 5px; }
.crm-bub.nico { align-self: flex-end; background: var(--nico-gradient-135); color: #fff; border-bottom-right-radius: 5px; box-shadow: var(--glow-soft); }
@keyframes bubIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.crm-board { position: relative; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 18px; }
.crm-board-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); margin-bottom: 16px; }
.crm-auto { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-micro); font-weight: var(--fw-medium); color: var(--nico-violet); }
.crm-cols { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.crm-col { background: var(--surface-canvas); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 12px 10px; min-height: 172px; transition: border-color .45s, box-shadow .45s, background .45s; }
.crm-col[data-active] { border-color: rgba(123,92,255,0.5); box-shadow: var(--glow-soft); background: #fff; }
.crm-col-h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.crm-col-h .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background .4s; }
.crm-col[data-active] .crm-col-h { color: var(--nico-violet); }
.crm-col[data-active] .crm-col-h .dot { background: var(--nico-violet); }
.crm-card { position: absolute; top: 38px; left: 0; box-sizing: border-box; background: #fff; border: 1px solid rgba(123,92,255,0.32); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 11px; transition: transform .8s cubic-bezier(.65,0,.35,1), opacity .3s; z-index: 4; }
.crm-card-top { display: flex; align-items: center; gap: 8px; }
.crm-card-line { font-size: var(--fs-micro); color: var(--text-body); margin: 9px 0; line-height: 1.35; min-height: 30px; }
.crm-card-foot { display: flex; }
.crm-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: var(--fw-semibold); padding: 4px 9px; border-radius: var(--radius-pill); background: var(--nico-violet-tint); color: var(--nico-violet); }
.crm-pill[data-done] { background: rgba(31,138,91,0.12); color: var(--nico-success); }

/* ---- Voz ---- */
.voz-rows { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 84px); margin-top: 48px; }
.voz-row { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.voz-row:nth-child(even) { grid-template-columns: 0.9fr 1fr; }
.voz-row:nth-child(even) .voz-text { order: 2; }
.voz-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--nico-violet); margin-bottom: 14px; }
.voz-row h3 { margin-bottom: 14px; }
.voz-visual { position: relative; display: grid; place-items: center; min-height: 240px; }
.voz-orb { opacity: .92; }
.soundwave { position: absolute; bottom: 16%; display: flex; align-items: center; gap: 4px; height: 58px; }
.soundwave i { width: 5px; height: 30%; border-radius: 3px; background: var(--nico-gradient-135); opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .soundwave i { animation: sw 1.1s ease-in-out infinite; } }
@keyframes sw { 0%,100% { height: 16%; } 50% { height: 100%; } }

/* ---- Diferenciadores (alternating blocks) ---- */
.dif-rows { display: flex; flex-direction: column; gap: 22px; margin-top: 44px; }
.dif-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 34px); align-items: center; padding: clamp(22px, 3vw, 34px); background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.dif-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dif-medal { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--nico-violet-tint); border: 1px solid rgba(123,92,255,0.2); }
.dif-row:nth-child(even) { grid-template-columns: 1fr auto; }
.dif-row:nth-child(even) .dif-medal { order: 2; }
.dif-text h3 { margin-bottom: 8px; }

/* ---- Para quién (editorial list) ---- */
.pq-list { margin-top: 44px; border-top: 1px solid var(--border-hairline); }
.pq-row { display: grid; grid-template-columns: 56px minmax(150px, 220px) 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(20px, 2.6vw, 30px) 8px; border-bottom: 1px solid var(--border-hairline); transition: padding-left .3s, background .3s; }
.pq-row:hover { background: var(--nico-violet-tint); padding-left: 18px; }
.pq-num { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pq-k { font-size: clamp(22px, 2.6vw, 34px); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); color: var(--text-strong); }
.pq-row:hover .pq-k { background: var(--nico-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pq-d { font-size: var(--fs-body); color: var(--text-muted); line-height: var(--lh-normal); max-width: 46ch; }
.pq-arrow { color: var(--nico-violet); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.pq-row:hover .pq-arrow { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .crmflow .crm-split { grid-template-columns: 1fr; }
  .voz-row, .voz-row:nth-child(even) { grid-template-columns: 1fr; }
  .voz-row:nth-child(even) .voz-text { order: 0; }
  .pq-row { grid-template-columns: 44px 1fr; row-gap: 4px; }
  .pq-row .pq-d { grid-column: 1 / -1; }
  .pq-arrow { display: none; }
}
@media (max-width: 560px) {
  .crm-cols { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .crm-card { position: static; width: 100%; transform: none; margin-top: 12px; }
}

/* ===========================================================================
   MÓVIL — optimización fina (≤640px y ≤400px)
   =========================================================================== */
@media (max-width: 640px) {
  /* El .wrap ya maneja el margen vía width:min(). En móvil lo reducimos a 36px (18px/lado). NO agregar padding extra (causaba que los botones se cortaran). */
  .wrap, .wrap-narrow { width: min(100%, 100% - 36px); padding-left: 0; padding-right: 0; }

  /* Hero: texto PRIMERO, orbital después y contenido. Más aire arriba por el nav. */
  .hero { min-height: auto; padding: 92px 0 44px; }
  .hero-grid { gap: 6px; }
  .hero-grid .stack-lg { max-width: 100%; min-width: 0; }
  .hero-grid .stack-lg > * { max-width: 100%; }
  /* CLAVE: el orbital se renderiza a 520px fijo → desborda y empuja el ancho. Lo contenemos. */
  .hero-orbit-cell { overflow: hidden; width: 100%; max-width: 100%; min-height: 300px; }
  .hero-orbit-cell .orbit { transform: scale(0.66); transform-origin: center; }
  /* La foto/chip de María dentro del orbital, contenida */
  .hero-portrait-chip { right: 4%; bottom: 4%; max-width: 56%; }
  .hero-orbit-cell { min-height: 260px; order: 1; margin-top: 8px; transform: scale(0.92); }
  .h-xl, .hero .display { font-size: clamp(38px, 11vw, 52px); line-height: 1.03; }
  .hero p, .hero .lead { font-size: 16.5px; line-height: 1.5; }
  /* Tarjeta de María y foto: que NO se salgan por la derecha */
  .hero-portrait-chip { right: 2%; bottom: 2%; max-width: 62%; }
  .hero-photo { right: 2%; width: 116px; }

  /* Botones del hero: ancho completo, más compactos (sin desbordar) */
  .hero .row { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 100%; }
  .hero .row .btn {
    width: 100%; max-width: 100%; box-sizing: border-box;
    justify-content: center; padding: 12px 16px; font-size: 15px; white-space: nowrap;
  }

  /* Secciones: menos espacio vertical para no scrollear de más */
  .sec, .sec-tight { padding-top: 56px; padding-bottom: 56px; }

  /* Títulos de sección más contenidos */
  .h-lg { font-size: clamp(28px, 7.5vw, 38px); }
  .h-md { font-size: clamp(24px, 6.5vw, 32px); }

  /* Kanban del CRM: 1 sola columna apilada, sin scroll horizontal raro */
  .crm-cols { grid-template-columns: 1fr; row-gap: 14px; }
  .crm-col { min-height: auto; }

  /* Video: ocupa todo el ancho, esquinas suaves */
  .film-frame { border-radius: var(--radius-lg); }

  /* Pasos del "cómo funciona" más compactos */
  .step h3 { font-size: clamp(22px, 6vw, 28px); }
  .msg .dolor, .msg .promesa { font-size: clamp(22px, 6vw, 30px); }

  /* Footer en una columna */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Cifras de impacto que no se desborden */
  .impact .big { font-size: clamp(48px, 15vw, 80px); }
  .impact-grid { grid-template-columns: 1fr; gap: 36px; }

  /* CTA final cómodo */
  .cta-card { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .wrap, .wrap-narrow { width: min(100%, 100% - 28px); }
  .h-xl, .hero .display { font-size: clamp(32px, 10vw, 42px); }
  .hero { padding-top: 86px; }
  /* Nav: logo no tan grande */
  .nav .logo img, .nav-logo img { max-height: 26px; }
}

/* Blindaje anti-desbordamiento horizontal en móvil: nada se sale del ancho */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .page, section, .wrap { max-width: 100%; }
  /* Botones siempre dentro del ancho */
  .hero .row .btn, .btn-lg { max-width: 100%; box-sizing: border-box; }
  /* Decoraciones de fondo no agrandan el viewport */
  .field, .field b { max-width: 100vw; }

  /* "Para quién": de 4 columnas rígidas a 2 (ícono + texto), sin minmax que desborde */
  .pq-row { grid-template-columns: 44px 1fr !important; gap: 14px !important; row-gap: 4px; padding: 18px 4px; }
  .pq-row .pq-d, .pq-row > *:nth-child(n+3) { grid-column: 1 / -1; }
  .pq-arrow { display: none; }

  /* CRM split: una columna, el chat debajo del kanban */
  .crmflow .crm-split { grid-template-columns: 1fr !important; gap: 18px; }

  /* Diferenciadores / split: una columna */
  .split, .split-wide { grid-template-columns: 1fr !important; }

  /* Footer: 1 columna en móvil chico */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 440px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- HERO ECO */
.hero-eco {
  margin-top: 6px; font-size: var(--fs-micro); line-height: var(--lh-normal);
  color: var(--text-muted); max-width: 46ch;
}

/* ----------------------------------------------------------- STACK FLOW */
.stack-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 28px;
}
.stack-node {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-body);
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-xs); white-space: nowrap;
}
.stack-node[data-hl] {
  background: var(--nico-gradient-135); color: #fff; border: none; box-shadow: var(--glow-violet);
}
.stack-arrow { color: var(--nico-violet); opacity: .5; display: inline-flex; }

/* ---------------------------------------------------------------- JUNTA */
.junta-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-xl);
  background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm);
}
.junta-item {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); line-height: var(--lh-normal);
}
.junta-ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--nico-violet-tint); border: 1px solid rgba(123,92,255,0.2);
}

/* ---------------------------------------------------------------- SLACK */
.slack-qs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.slack-q {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body);
  padding: 10px 15px; border-radius: var(--radius-pill);
  background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-xs);
}

/* ------------------------------------------------------------- ECOSISTEMA */
.eco-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px;
}
.eco-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 2.4vw, 26px); border-radius: var(--radius-xl);
  background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.eco-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.eco-card[data-self] { background: linear-gradient(180deg, var(--nico-violet-tint), var(--surface-card)); border-color: rgba(123,92,255,0.28); }
.eco-step { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--nico-violet); font-variant-numeric: tabular-nums; }
.eco-k { font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--text-strong); letter-spacing: var(--ls-snug); }
.eco-d { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); flex: 1; }
.eco-link { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--nico-violet); margin-top: 2px; }
.eco-link.eco-here { color: var(--text-muted); }

/* ---------------------------------------------------------------- TRUST */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.trust-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius-xl);
  background: var(--surface-card); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.trust-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.trust-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--nico-violet-tint); border: 1px solid rgba(123,92,255,0.2); }
.trust-h { font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--text-strong); letter-spacing: var(--ls-snug); }
.trust-p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); }

@media (max-width: 900px) {
  .junta-card { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .eco-grid { grid-template-columns: 1fr; }
  .stack-arrow { transform: rotate(90deg); }
  .stack-flow { flex-direction: column; align-items: stretch; }
  .stack-node { justify-content: center; }
}
