/* ─────────────────────────────────────────
   INVTY · v5
   Product-led + interactive storytelling,
   estética soft minimalism / playful professional.
───────────────────────────────────────── */

:root {
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --card: #ffffff;
  --ink: #1b1f2e;
  --ink-2: #4a4f63;
  --ink-3: #8a8ea0;
  --line: #e4e0d6;
  --blue: #3b7cf0;
  --blue-deep: #2a5fc4;
  --blue-soft: #e3edff;
  --pink: #e8799b;
  --pink-soft: #fde6ee;
  --mint: #3fb487;
  --mint-soft: #ddf4ea;
  --butter: #f6cf5f;
  --butter-soft: #fff4cf;
  --night: #161a2b;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(27, 31, 46, .04), 0 8px 24px rgba(27, 31, 46, .06);
  --sh-2: 0 2px 4px rgba(27, 31, 46, .04), 0 24px 60px rgba(27, 31, 46, .12);
  --f-display: "Lexend", system-ui, "Segoe UI", sans-serif;
  --f-body: "Lexend", system-ui, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }

.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head h2 { margin-bottom: .9rem; }
.sec-head > p:last-child, .sec-head div > p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sec-head-row > div { max-width: 640px; }

section { padding-block: clamp(4.5rem, 10vw, 8rem); }

/* ── botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--bounce), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(59, 124, 240, .32); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 14px 30px rgba(59, 124, 240, .4); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.play { width: 0; height: 0; border-left: 9px solid var(--pink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.pill { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill-live { background: var(--mint-soft); color: #1f7a57; }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: .35rem; animation: blink 1.6s infinite; }
.pill-ok { background: var(--mint-soft); color: #1f7a57; }
.pill-go { background: var(--blue-soft); color: var(--blue-deep); }
@keyframes blink { 50% { opacity: .25; } }

.av {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: .68rem; font-weight: 800; font-style: normal;
}
.av-lg { width: 52px; height: 52px; font-size: 1.2rem; background: var(--pink-soft); color: #b44a6d; }

/* ── topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 245, 240, .92); }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand img { width: 68px; height: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.menu-btn { display: none; }

/* ── hero ── */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 3rem; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(59, 124, 240, .12), transparent 62%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.hl { position: relative; color: var(--blue); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .28em; z-index: -1;
  background: var(--butter); border-radius: 6px; opacity: .55;
  transform: scaleX(0); transform-origin: left; animation: underline 1s .5s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-note { font-size: .88rem; color: var(--ink-3); font-weight: 600; }

/* before / after */
.ba {
  position: relative; margin: 0; aspect-ratio: 5 / 4.3; border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--sh-2); overflow: hidden; --pos: 50%;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba-layer { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgba(27, 31, 46, .08); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh-2);
  display: grid; place-items: center; font-weight: 800; color: var(--blue); letter-spacing: -.1em;
  transition: transform .25s var(--bounce);
}
.ba:hover .ba-handle span, .ba-range:focus-visible ~ .ba-handle span { transform: translate(-50%, -50%) scale(1.1); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba-tag {
  position: absolute; top: 14px; z-index: 2; pointer-events: none;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1);
}
.ba-tag-l { left: 14px; color: #b44a6d; }
.ba-tag-r { right: 14px; color: var(--blue-deep); }
.ba-cap {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none;
  font-size: .76rem; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .92);
  padding: .3rem .8rem; border-radius: 999px; box-shadow: var(--sh-1); white-space: nowrap;
}

/* antes: libreta */
.paper {
  position: absolute; inset: 0; padding: 3.4rem 1.6rem 1.5rem 3.2rem;
  background:
    linear-gradient(90deg, transparent 2.2rem, rgba(232, 121, 155, .45) 2.2rem, rgba(232, 121, 155, .45) calc(2.2rem + 2px), transparent calc(2.2rem + 2px)),
    repeating-linear-gradient(180deg, #fffdf6 0 31px, #d9e4f5 31px 32px);
  font-family: var(--f-hand); color: #2c3a66;
}
.hand { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 32px; transform: rotate(-1.2deg); }
.hand.sm { font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-weight: 500; transform: rotate(-.6deg); }
.hand s { color: #c0392b; }
.cell {
  display: inline-flex; margin-top: .7rem; font-family: var(--f-body); font-size: .72rem;
  border: 1px solid #b9c4b0; background: #f3f8ef; transform: rotate(1.5deg);
}
.cell span { padding: .25rem .5rem; border-right: 1px solid #b9c4b0; }
.cell span:last-child { border-right: 0; color: #5d6b55; }
.cell .err { color: #c0392b; font-weight: 700; }
.bubble {
  position: absolute; right: 7%; top: 44%; max-width: 52%;
  font-family: var(--f-body); font-size: .8rem; line-height: 1.35;
  background: #dcf8c6; padding: .5rem .75rem; border-radius: 12px 12px 2px 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.bubble-2 { top: 60%; right: 18%; background: #fff; border-radius: 12px 12px 12px 2px; }
.sticky {
  position: absolute; left: 12%; bottom: 13%; width: 44%;
  background: var(--butter); padding: .8rem .9rem; font-size: 1.25rem; line-height: 1.1; font-weight: 700;
  transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

/* después: app */
.app { position: absolute; inset: 0; padding: 3.4rem 1.3rem 2.8rem; background: linear-gradient(180deg, #fbfcff, #f2f5fb); display: flex; flex-direction: column; gap: .9rem; }
.app-top { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.app-top strong { font-family: var(--f-display); }
.app-top .pill { margin-left: auto; }
.app-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), #7aa7ff); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpi { background: #fff; border-radius: var(--r-sm); padding: .7rem .75rem; box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0; }
.kpi small { font-size: .68rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font-family: var(--f-display); font-size: clamp(1.1rem, 2.2vw, 1.55rem); line-height: 1.2; }
.kpi em { font-style: normal; font-size: .68rem; color: var(--mint); font-weight: 700; }
.chart { flex: 1; min-height: 60px; display: flex; align-items: flex-end; gap: 7px; background: #fff; border-radius: var(--r-sm); padding: .8rem; box-shadow: var(--sh-1); }
.chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #7aa7ff, var(--blue)); transform-origin: bottom; animation: grow 1s var(--ease) both; }
.chart span:nth-child(2n) { animation-delay: .08s; }
.chart span:nth-child(3n) { animation-delay: .16s; }
.chart span:last-child { background: linear-gradient(180deg, #7fdcb6, var(--mint)); }
@keyframes grow { from { transform: scaleY(.1); } }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.rows li { display: flex; align-items: center; gap: .55rem; background: #fff; border-radius: 10px; padding: .45rem .6rem; font-size: .76rem; font-weight: 600; box-shadow: var(--sh-1); min-width: 0; }
.rows li .pill { margin-left: auto; }

/* franja de confianza */
.trust {
  margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
}
.trust div { background: var(--bg); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.trust b { font-family: var(--f-display); font-size: 1.1rem; }
.trust span { font-size: .86rem; color: var(--ink-3); }

/* ── historia (scrollytelling) ── */
.story { background: var(--card); border-radius: 48px 48px 0 0; }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.stage-col { position: relative; }
.stage {
  position: sticky; top: 110px; aspect-ratio: 1 / .86; border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(27, 31, 46, .09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--bg);
  overflow: hidden;
}
.stage-line {
  position: absolute; left: 8%; right: 8%; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .9s var(--ease), opacity .4s;
}
.stage-line i {
  position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 5px rgba(63, 180, 135, .2); opacity: 0;
}
.stage[data-step="1"] .stage-line, .stage[data-step="2"] .stage-line,
.stage[data-step="3"] .stage-line, .stage[data-step="4"] .stage-line { transform: scaleX(1); opacity: 1; }
.stage[data-step="3"] .stage-line i, .stage[data-step="4"] .stage-line i { animation: flow 2.4s linear infinite; }
.stage-line i:nth-child(2) { animation-delay: .8s !important; }
.stage-line i:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes flow { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.node {
  position: absolute; left: var(--x); top: var(--y); width: var(--w, 34%);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--s, 1));
  transition: left .9s var(--ease), top .9s var(--ease), transform .9s var(--bounce), width .9s var(--ease), opacity .5s;
  z-index: 1;
}
.n-note, .n-screen { display: block; transition: opacity .4s, transform .5s var(--bounce); }
.node { aspect-ratio: 1.55; }
.n-note {
  position: absolute; inset: 0; display: flex !important; align-items: center; overflow: hidden;
  background: var(--butter); padding: .8rem .9rem; font-family: var(--f-hand); font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.35rem); line-height: 1.1; box-shadow: 0 10px 20px rgba(0, 0, 0, .1); color: #3b3320;
}
.node[data-i="1"] .n-note { background: #ffd9e4; }
.node[data-i="2"] .n-note { background: #d8ecff; }
.node[data-i="3"] .n-note { background: #d9f3e6; }
.n-screen {
  position: absolute; inset: 0; opacity: 0; transform: scale(.8);
  background: #fff; border-radius: 16px; box-shadow: var(--sh-2); padding: .7rem .5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .1rem;
}
.n-ico { font-style: normal; font-size: 1.3rem; line-height: 1; }
.n-screen strong { font-family: var(--f-display); font-size: clamp(.72rem, 1.3vw, .95rem); line-height: 1.15; }
.n-val { font-size: .66rem; font-weight: 700; color: var(--mint); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s; }
.stage:not([data-step="0"]) .n-note { opacity: 0; transform: scale(.85); }
.stage:not([data-step="0"]) .n-screen { opacity: 1; transform: none; }
.stage:not([data-step="0"]) .node { aspect-ratio: 1; }
.stage[data-step="1"] .n-screen { box-shadow: inset 0 0 0 2px var(--blue), var(--sh-1); }
.stage[data-step="1"] .n-ico { filter: grayscale(1); opacity: .5; }
.stage[data-step="3"] .n-val, .stage[data-step="4"] .n-val { max-height: 2em; opacity: 1; }
.stage[data-step="2"] .node[data-i="0"] .n-screen { border-radius: 20px; box-shadow: 0 0 0 5px var(--ink), var(--sh-2); }
.node-new { opacity: 0; }
.node-new .n-screen { opacity: 1; transform: none; background: var(--blue); color: #fff; }
.node-new .n-val { color: #d4e4ff; }
.stage[data-step="4"] .node-new { opacity: 1; aspect-ratio: 1; }
.stage-caption {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: .8rem; font-weight: 700; padding: .35rem .85rem; border-radius: 999px;
  background: #fff; box-shadow: var(--sh-1); white-space: nowrap; transition: opacity .3s;
}

.steps { list-style: none; margin: 0; padding: 0 0 20vh; }
.step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .28; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateX(10px);
}
.step.is-active { opacity: 1; transform: none; }
.step-n {
  font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--blue);
  background: var(--blue-soft); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
}
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; }
.step p { color: var(--ink-2); font-size: 1.06rem; max-width: 460px; }

/* ── arma tu proceso ── */
.builder { background: var(--card); }
.builder-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
fieldset { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
legend { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
legend small { font-family: var(--f-body); font-weight: 500; font-size: .85rem; color: var(--ink-3); }
.q-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  border: 0; cursor: pointer; padding: .65rem 1rem; border-radius: 999px;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600; font-size: .94rem; display: inline-flex; align-items: center; gap: .45rem;
  transition: background .2s, box-shadow .2s, transform .25s var(--bounce), color .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); transform: translateY(-2px); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"]::after { content: "✓"; font-size: .8rem; color: var(--mint); font-weight: 800; }

.blueprint {
  position: sticky; top: 100px; border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem);
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--night);
  color: #fff; box-shadow: var(--sh-2); min-height: 460px; display: flex; flex-direction: column;
}
.bp-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--butter); }
.bp-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: .3rem 0 1.4rem; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; }
.lane { position: relative; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.lane + .lane::before {
  content: "→"; position: absolute; left: -1.05rem; top: .1rem; transform: translateX(-50%);
  color: var(--butter); font-weight: 800;
}
.lane h4 { margin: 0 0 .2rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9aa6c9; font-weight: 800; }
.mod {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  padding: .6rem .7rem; font-size: .84rem; font-weight: 600; line-height: 1.3;
  animation: pop .45s var(--bounce) both;
}
.mod small { display: block; font-weight: 500; color: #aab3cf; font-size: .72rem; margin-top: .15rem; }
.lane:nth-child(1) .mod { border-left: 3px solid var(--pink); }
.lane:nth-child(2) .mod { border-left: 3px solid var(--butter); }
.lane:nth-child(3) .mod { border-left: 3px solid var(--mint); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.bp-empty { color: #aab3cf; margin: auto 0; text-align: center; padding: 2rem 0; }
.bp-foot { margin-top: auto; padding-top: 1.5rem; border-top: 1px dashed rgba(255, 255, 255, .18); }
.bp-foot p { color: #cdd4ea; font-size: .95rem; margin-bottom: 1rem; }
.bp-foot p:empty { display: none; }
.bp-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.blueprint .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.blueprint.is-empty .lanes, .blueprint.is-empty .bp-foot { display: none; }
.blueprint:not(.is-empty) .bp-empty { display: none; }

/* ── videos ── */
.videos { background: var(--night); color: #fff; }
.sec-head-light .eyebrow { color: var(--butter); }
.sec-head-light > p:last-child { color: #aab3cf; }
.vid-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.vid-list { display: flex; flex-direction: column; gap: .4rem; }
.vid-tab {
  text-align: left; border: 0; cursor: pointer; background: transparent; color: #fff;
  padding: .85rem 1rem; border-radius: 14px; display: flex; flex-direction: column; gap: .1rem;
  transition: background .2s; position: relative;
}
.vid-tab b { font-family: var(--f-display); font-size: 1.02rem; }
.vid-tab span { font-size: .84rem; color: #aab3cf; }
.vid-tab:hover { background: rgba(255, 255, 255, .06); }
.vid-tab.is-active { background: rgba(255, 255, 255, .1); }
.vid-tab.is-active::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--butter); }
.vid-player { border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); aspect-ratio: 16 / 9; }
.vid-player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* ── resultados ── */
.flip-all { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; }
.seg { border: 0; background: transparent; cursor: pointer; padding: .55rem 1.2rem; border-radius: 999px; font-weight: 700; color: var(--ink-2); transition: background .25s, color .25s; }
.seg.is-on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.cards { columns: 3 300px; column-gap: 1.2rem; }
.card {
  break-inside: avoid; margin-bottom: 1.2rem; background: var(--card); border-radius: var(--r-md);
  padding: 1.4rem; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: .9rem;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stars { color: var(--butter); letter-spacing: .1em; font-size: .9rem; }
.card-toggle { display: inline-flex; align-self: flex-start; background: var(--bg); border-radius: 999px; padding: 3px; font-size: .78rem; }
.card-toggle button { border: 0; background: transparent; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-3); }
.card[data-mode="antes"] .card-toggle [data-m="antes"] { background: var(--pink-soft); color: #b44a6d; }
.card[data-mode="despues"] .card-toggle [data-m="despues"] { background: var(--mint-soft); color: #1f7a57; }
.card-body { display: grid; }
.card-body > p { grid-area: 1 / 1; transition: opacity .35s, transform .45s var(--ease); }
.card-body .antes { color: var(--ink-2); }
.card-body .despues { font-family: var(--f-display); font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.card[data-mode="antes"] .despues, .card[data-mode="despues"] .antes { opacity: 0; transform: translateY(8px); pointer-events: none; }
.card-who { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.card-who b { display: block; font-size: .92rem; }
.card-who small { color: var(--ink-3); font-size: .8rem; }
.card-cta { background: var(--blue); color: #fff; }
.card-cta h3 { font-size: 1.5rem; }
.card-cta p { color: #dbe7ff; }
.card-cta .btn { background: #fff; color: var(--blue-deep); align-self: flex-start; }

/* ── capacidades ── */
.caps { padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.caps .sec-head { margin-bottom: 2rem; }
.marquee { display: grid; gap: .8rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-row { display: flex; gap: .8rem; width: max-content; animation: mq 48s linear infinite; }
.mq-rev { animation-direction: reverse; animation-duration: 56s; }
.mq-row span {
  padding: .8rem 1.3rem; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1);
  font-weight: 700; white-space: nowrap; font-size: 1rem;
}
.mq-row span:nth-child(3n+1)::before { content: "●"; color: var(--pink); margin-right: .5rem; font-size: .7em; }
.mq-row span:nth-child(3n+2)::before { content: "●"; color: var(--blue); margin-right: .5rem; font-size: .7em; }
.mq-row span:nth-child(3n)::before { content: "●"; color: var(--mint); margin-right: .5rem; font-size: .7em; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - .4rem)); } }

/* ── nosotros ── */
.about { background: var(--card); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about h2 { margin-bottom: 1rem; }
.about-grid > div > p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 1.5rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.values li { padding-left: 1.8rem; position: relative; color: var(--ink-2); }
.values li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--mint); transform: rotate(45deg); }
.values b { color: var(--ink); }
.quote { margin: 0; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r-lg); background: var(--pink-soft); position: relative; }
.quote::before { content: "“"; position: absolute; top: -.3em; left: .3em; font-family: var(--f-display); font-size: 7rem; color: var(--pink); line-height: 1; }
.quote p { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; position: relative; }
.quote footer { display: flex; align-items: center; gap: .8rem; }
.quote footer b { display: block; }
.quote footer small { color: var(--ink-2); }

/* ── contacto ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { margin-bottom: 1rem; }
.contact-copy > p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 2rem; }
.channels { display: grid; gap: .8rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: var(--card); box-shadow: var(--sh-1); text-decoration: none; transition: transform .25s var(--bounce); min-width: 0;
}
.channel:hover { transform: translateY(-2px); }
.channel > span:last-child { min-width: 0; }
.channel b { display: block; overflow-wrap: anywhere; }
.channel small { color: var(--ink-3); }
.ch-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); flex: none; font-size: 1.2rem; }
.ch-wa { background: #dcf8e6; color: #128c4e; }
.form { background: var(--card); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sh-2); display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; }
.opt { color: var(--ink-3); font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; border: 0; border-radius: var(--r-sm); background: var(--bg); padding: .85rem 1rem;
  box-shadow: inset 0 0 0 1.5px transparent; font-weight: 500; font-size: 1rem; transition: box-shadow .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.form textarea { resize: vertical; min-height: 120px; }
.form textarea.is-filled { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: inset 0 0 0 2px var(--mint); background: var(--mint-soft); } }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem !important; font-weight: 500 !important; font-size: .84rem !important; color: var(--ink-2); }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1f7a57; }
.form-status.is-error { color: #b44a6d; }
.form-status a { margin-left: .3rem; text-decoration: underline; }

/* ── footer ── */
.footer { padding: 3rem 0 6rem; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; color: var(--ink-2); }
.footer .small { font-size: .84rem; color: var(--ink-3); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #25d366, #128c4e);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .25s var(--bounce);
}
.wa-float:hover { transform: scale(1.08); }

/* ── aparición ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 980px) {
  .hero-grid, .builder-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .blueprint { position: relative; top: 0; }
  .vid-grid { grid-template-columns: 1fr; }
  .vid-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: none; }
  .vid-list::-webkit-scrollbar { display: none; }
  .vid-tab { flex: none; scroll-snap-align: start; max-width: 230px; }
  .vid-tab.is-active::before { left: 18%; right: 18%; top: auto; bottom: 0; width: auto; height: 3px; }

  /* historia: escenario arriba, pasos pasan por debajo */
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .stage-col { position: sticky; top: 72px; z-index: 2; background: var(--card); padding: .6rem 0 .8rem; }
  .stage { position: relative; top: 0; aspect-ratio: auto; height: min(42vh, 360px); }
  .steps { padding-bottom: 10vh; }
  .step { min-height: 52vh; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .topbar-in > .btn { margin-left: auto; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  }
  .menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-in { gap: .7rem; }
  .brand img { width: 56px; }
  .ba { aspect-ratio: 4 / 4.6; }
  .paper { padding: 3rem 1rem 1rem 2.6rem; background-position: -.5rem 0, 0 0; }
  .bubble { max-width: 64%; right: 4%; }
  .bubble-2 { right: 10%; top: 62%; }
  .sticky { width: 58%; left: 8%; font-size: 1.1rem; }
  .app { padding: 3rem .8rem 2.6rem; gap: .6rem; }
  .kpi { padding: .55rem .5rem; }
  .rows li { font-size: .7rem; }
  .rows li:nth-child(3) { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div { padding: .9rem; }
  .trust b { font-size: .98rem; }
  .lanes { grid-template-columns: 1fr; gap: 1.4rem; }
  .lane + .lane::before { content: "↓"; left: 50%; top: -1.25rem; }
  .row2 { grid-template-columns: 1fr; }
  .stage { height: 38vh; }
  .n-note { padding: .5rem .55rem; font-size: 1rem; }
  .n-ico { font-size: 1.05rem; }
  .n-val { font-size: .6rem; }
  .n-screen { padding: .4rem .2rem; border-radius: 12px; }
  .n-screen strong { font-size: .62rem; letter-spacing: -.01em; }
  .stage:not([data-step="0"]) .node { aspect-ratio: .82; }
  .stage[data-step="4"] .n-screen strong { font-size: .56rem; }
  .stage[data-step="4"] .n-val { font-size: .5rem; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mq-row { animation: none !important; flex-wrap: wrap; width: auto; padding-inline: 16px; }
  .mq-row span[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── soluciones ── */
[hidden] { display: none !important; }
.solutions { background: var(--bg); }
.sol-filter { margin-bottom: 1.8rem; }
.sol-filter .chip { background: var(--card); }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.sol {
  --c: var(--blue-soft); --i: var(--blue-deep);
  background: var(--card); border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .3s var(--bounce), box-shadow .3s;
  animation: pop .45s var(--bounce) both;
}
.sol:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--sh-2); }
.sol-blue { --c: var(--blue-soft); --i: var(--blue-deep); }
.sol-pink { --c: var(--pink-soft); --i: #b44a6d; }
.sol-mint { --c: var(--mint-soft); --i: #1f7a57; }
.sol-butter { --c: var(--butter-soft); --i: #8a6a00; }
.sol-wa { --c: #dcf8e6; --i: #128c4e; }
.sol-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; background: var(--c); transition: transform .35s var(--bounce); }
.sol:hover .sol-ico { transform: scale(1.12) rotate(-6deg); }
.sol h3 { font-size: 1.15rem; }
.sol p { color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.sol ul { list-style: none; margin: auto 0 0; padding: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.sol li { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--c); color: var(--i); }
.sol-new { background: var(--ink); color: #fff; }
.sol-new .sol-ico { background: rgba(255, 255, 255, .12); color: var(--butter); font-weight: 800; }
.sol-new p { color: #c5cbe0; }
.sol-new .btn { margin-top: auto; align-self: flex-start; background: var(--butter); color: var(--ink); }

/* ── armador: texto libre ── */
.otro {
  width: 100%; border: 0; border-radius: var(--r-sm); background: var(--bg); padding: .85rem 1rem;
  font-size: .98rem; resize: vertical; min-height: 92px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s;
}
.otro:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.otro-note { margin-top: .5rem; font-size: .88rem; font-weight: 600; color: var(--mint); }
.bp-custom {
  margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 14px;
  background: rgba(246, 207, 95, .1); border: 1px dashed rgba(246, 207, 95, .55); animation: pop .45s var(--bounce) both;
}
.bp-custom span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--butter); }
.bp-custom p { margin-top: .3rem; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.lanes[hidden] + .bp-custom { margin-top: 0; }
.sol-filter .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sol-filter .chip::after { content: none !important; }

/* ── soluciones: clip en la tarjeta ── */
.sol.has-media { padding-top: 0; overflow: hidden; }
.sol-media {
  margin: 0 -1.4rem .2rem; aspect-ratio: 16 / 9; background: var(--c); position: relative; overflow: hidden;
}
.sol-media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .6s var(--ease); }
.sol.has-media:hover .sol-media video { transform: scale(1.08); }
.sol-media::after {
  content: "▶ en movimiento"; position: absolute; right: 8px; bottom: 8px; font-size: .66rem; font-weight: 800;
  padding: .2rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink-2);
  opacity: 1; transition: opacity .3s;
}
.sol.has-media:hover .sol-media::after { opacity: 0; }
.sol.has-media .sol-ico { margin-top: -34px; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--card); }
.sol-link { margin-top: .4rem; font-weight: 700; font-size: .9rem; color: var(--blue-deep); text-decoration: none; }
.sol-link:hover { text-decoration: underline; }

/* ── pruébalo: chat ── */
.try {
  display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--card); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--sh-1);
  margin-bottom: 2rem;
}
.try-copy h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .8rem; }
.try-copy > p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 1.5rem; max-width: 480px; }
.live { background: var(--bg); border-radius: var(--r-md); padding: 1rem; max-width: 420px; }
.live-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.live-head strong { margin-left: auto; font-family: var(--f-display); font-size: 1.8rem; line-height: 1; color: var(--blue); }
.live-head strong.bump { animation: bump .6s var(--bounce); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--mint); } }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.live-list li { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 10px; padding: .45rem .6rem; font-size: .84rem; font-weight: 600; box-shadow: var(--sh-1); }
.live-list li .pill { margin-left: auto; }
.live-list li.is-new { animation: pop .5s var(--bounce) both; box-shadow: 0 0 0 2px var(--mint), var(--sh-1); }

.phone {
  border-radius: 34px; background: var(--ink); padding: 10px; box-shadow: var(--sh-2);
  display: flex; flex-direction: column; height: 520px;
}
.phone-top { display: flex; align-items: center; gap: .6rem; background: #075e54; color: #fff; padding: .7rem .9rem; border-radius: 24px 24px 0 0; }
.phone-top b { display: block; font-size: .9rem; }
.phone-top small { font-size: .72rem; opacity: .85; }
.ph-av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.chat {
  flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .35rem;
  background: #efe7dd radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .05) 1px, transparent 1.5px) 0 0 / 16px 16px;
  scroll-behavior: smooth;
}
.msg { max-width: 84%; padding: .45rem .7rem; border-radius: 12px; font-size: .86rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: pop .3s var(--ease) both; }
.msg-bot { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.msg-me { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 3px; }
.typing { display: inline-flex; gap: 4px; padding: .6rem .8rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-4px); opacity: .5; } }
.replies { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; padding: .6rem; background: #f0f2f5; border-radius: 0 0 24px 24px; min-height: 58px; }
.reply {
  border: 0; cursor: pointer; background: #fff; color: #128c4e; font-weight: 700; font-size: .84rem;
  padding: .5rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #25d366; transition: transform .2s var(--bounce), background .2s;
}
.reply:hover { background: #dcf8e6; transform: translateY(-2px); }

/* ── nosotros: spot ── */
.about-side { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: center; }
.spot { margin: 0; position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 9 / 16; background: #12274a; box-shadow: var(--sh-2); }
.spot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: grid; place-items: center;
  transition: transform .25s var(--bounce);
}
.spot-play:hover { transform: scale(1.1); }
.spot-play span { width: 0; height: 0; border-left: 18px solid var(--blue); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.spot figcaption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .35); padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.spot video[controls] ~ figcaption { display: none; }
.about-side .quote p { font-size: clamp(1.2rem, 2vw, 1.5rem); }

@media (max-width: 980px) {
  .try { grid-template-columns: 1fr; }
  .phone { max-width: 360px; width: 100%; margin-inline: auto; height: 480px; }
  .live { max-width: none; }
}
@media (max-width: 600px) {
  .about-side { grid-template-columns: 1fr; }
  .spot { max-width: 260px; margin-inline: auto; width: 100%; }
  .try { padding: 1.1rem; }
}

/* ── pruébalo: pestañas ── */
.try-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.try-tab {
  border: 0; cursor: pointer; padding: .7rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s, transform .25s var(--bounce);
}
.try-tab:hover { transform: translateY(-2px); }
.try-tab.is-on { background: var(--ink); color: #fff; box-shadow: none; }

/* ── demo de canchas ── */
.club-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.club-kpis div { background: #fff; border-radius: 12px; padding: .7rem .8rem; box-shadow: var(--sh-1); }
.club-kpis small { display: block; font-size: .7rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.club-kpis strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--blue); display: inline-block; }
.club-kpis strong.bump { animation: bump .6s var(--bounce); }
.club .live-head .pill { margin-left: auto; }
.stock li { justify-content: space-between; }
.pill-warn { background: var(--butter-soft); color: #8a6a00; }
.court-top { background: var(--blue-deep); }
.court-app { flex: 1; overflow-y: auto; padding: .9rem; background: #f4f6fb; display: flex; flex-direction: column; gap: .7rem; }
.court-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: #e6eaf3; padding: 4px; border-radius: 12px; }
.ct-opt { border: 0; cursor: pointer; padding: .5rem; border-radius: 9px; background: transparent; font-weight: 700; font-size: .84rem; color: var(--ink-2); }
.ct-opt.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.court-day { font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.slot {
  border: 0; cursor: pointer; padding: .7rem .5rem; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 800; font-family: var(--f-display); font-size: 1rem; display: flex; flex-direction: column; align-items: center;
  transition: transform .2s var(--bounce), background .2s;
}
.slot:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--blue); }
.slot.is-on { background: var(--blue); color: #fff; box-shadow: none; }
.slot.is-taken { cursor: not-allowed; background: #eceef3; color: var(--ink-3); box-shadow: none; text-decoration: line-through; }
.slot small { font-family: var(--f-body); font-size: .62rem; font-weight: 700; text-decoration: none; }
.menu { display: grid; gap: .4rem; }
.menu-row { display: grid; grid-template-columns: 1fr auto 30px 22px 30px; align-items: center; gap: .35rem; background: #fff; border-radius: 10px; padding: .45rem .55rem; font-size: .84rem; font-weight: 600; box-shadow: var(--sh-1); }
.menu-row small { color: var(--ink-3); font-weight: 700; }
.qty { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue-soft); color: var(--blue-deep); font-weight: 800; font-size: 1rem; }
.qty:disabled { opacity: .35; cursor: default; }
.qty-n { text-align: center; }
.reply-main { background: #25d366; color: #fff; box-shadow: none; }
.court-bar .reply-main { background: var(--blue); }
.court-bar .reply-main:hover { background: var(--blue-deep); }
.reply:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ticket { background: #fff; border-radius: 16px; padding: 1rem; text-align: center; box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; gap: .3rem; animation: pop .45s var(--bounce) both; }
.tk-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.ticket p { font-size: .86rem; color: var(--ink-2); }
.tk-lines { list-style: none; margin: .2rem 0; padding: .4rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); width: 100%; font-size: .8rem; color: var(--ink-2); }
.tk-total { font-family: var(--f-display); font-size: 1.2rem; }
.qr { display: grid; grid-template-columns: repeat(5, 10px); gap: 2px; margin: .4rem 0; }
.qr i { width: 10px; height: 10px; background: #e6e8ee; border-radius: 2px; }
.qr i.on { background: var(--ink); }
.ticket small { font-size: .72rem; color: var(--ink-3); }

/* ── avisos por WhatsApp ── */
.wa-head { margin-top: 1rem; }
.mini-btn { margin-left: auto; border: 0; cursor: pointer; font-size: .74rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: #dcf8e6; color: #128c4e; }
.mini-btn:hover { background: #c4f1d5; }
.wa-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.wa-feed li { display: flex; gap: .5rem; align-items: flex-start; background: #e9fbe9; border-radius: 10px 10px 10px 3px; padding: .45rem .6rem; font-size: .8rem; line-height: 1.35; color: #1d3b2a; }
.wa-feed li.is-new { animation: pop .45s var(--bounce) both; }
.wa-feed li span { flex: none; }

/* ── torneo ── */
.tour-top { background: #2c2a6b; }
.standings { width: 100%; border-collapse: collapse; font-size: .84rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--sh-1); }
.standings th, .standings td { padding: .45rem .5rem; text-align: center; }
.standings thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: #f6f7fb; }
.standings td:nth-child(2) { text-align: left; font-weight: 700; }
.standings tbody th { font-family: var(--f-display); color: var(--blue); }
.standings tbody tr + tr td, .standings tbody tr + tr th { border-top: 1px solid var(--line); }
.standings tr.is-new td, .standings tr.is-new th { animation: rowflash 1.4s var(--ease); }
@keyframes rowflash { 0%, 40% { background: var(--mint-soft); } }
.match { background: #fff; border-radius: 16px; padding: .6rem; box-shadow: var(--sh-1); display: grid; gap: .4rem; }
.match-row { display: grid; grid-template-columns: 1fr 30px 34px auto; align-items: center; gap: .4rem; padding: .35rem .3rem; }
.match-row + .match-row { border-top: 1px dashed var(--line); }
.match-row b { font-size: .92rem; }
.goals { font-family: var(--f-display); font-size: 1.6rem; text-align: center; }
.goal-btn { border: 0; cursor: pointer; padding: .45rem .7rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .78rem; transition: transform .2s var(--bounce); }
.goal-btn:hover { transform: scale(1.06); }
.goal-btn:active { transform: scale(.94); }
.played { font-size: .8rem; font-weight: 700; color: #1f7a57; }
.poster { background: linear-gradient(160deg, #2c2a6b, var(--blue-deep)); color: #fff; border-radius: 16px; padding: 1rem; display: grid; gap: .5rem; animation: pop .45s var(--bounce) both; }
.poster > small { font-size: .66rem; letter-spacing: .12em; font-weight: 800; color: var(--butter); }
.poster > b { font-family: var(--f-display); font-size: 1.2rem; }
.poster-row { display: flex; flex-direction: column; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: .5rem .6rem; }
.poster-row span { font-weight: 700; }
.poster-row small { color: #cdd8f7; font-size: .74rem; }

/* galería con 10 videos: lista compacta y reproductor fijo al bajar */
@media (min-width: 981px) {
  .vid-list { gap: .15rem; }
  .vid-tab { padding: .55rem .9rem; }
  .vid-tab b { font-size: .96rem; }
  .vid-tab span { font-size: .8rem; }
  .vid-player { position: sticky; top: 96px; }
}

/* ── reacomodo: soluciones primero, ejemplos aparte ── */
.solutions { background: var(--card); }
.solutions .sol { background: var(--bg); box-shadow: none; }
.solutions .sol:hover { box-shadow: var(--sh-2); background: #fff; }
.solutions .sol-new { background: var(--ink); }
.solutions .sol-new:hover { background: var(--ink); }
.sol-filter .chip { background: var(--bg); }
.sol.has-media .sol-ico { box-shadow: 0 0 0 4px var(--bg); }
.sol.has-media:hover .sol-ico { box-shadow: 0 0 0 4px #fff; }
.sol-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.sol-act {
  font-size: .8rem; font-weight: 700; text-decoration: none; padding: .4rem .75rem; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s, transform .2s var(--bounce);
}
.sol-act:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sol-act-video { background: var(--ink); color: #fff; box-shadow: none; }
.sol-act-video:hover { background: var(--blue); box-shadow: none; }
.tryit { background: var(--bg); }
.tryit .sec-head { margin-bottom: 1.6rem; }
.builder { background: var(--bg); }
.results { background: var(--card); }
.results .card { background: var(--bg); box-shadow: none; }
.results .card:hover { background: #fff; box-shadow: var(--sh-2); }
.results .card-cta, .results .card-cta:hover { background: var(--blue); }
.results .card-toggle { background: #fff; }
.about { background: var(--bg); }
.contact { background: var(--card); }
.contact .channel { background: var(--bg); box-shadow: none; }
.contact .form { background: var(--bg); box-shadow: none; }
.contact .form input[type="text"], .contact .form input[type="email"], .contact .form input[type="tel"], .contact .form textarea { background: #fff; }

/* ── Cómo trabajamos en 2.5D + IVI ──
   La plataforma (board) se inclina con perspectiva; desde el paso 3 los
   módulos se levantan como pantallas. IVI guía cada paso. Sin librerías. */
.stage {
  perspective: 1000px; perspective-origin: 50% 15%;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, var(--bg) 72%);
}
.board {
  position: absolute; left: 7%; right: 7%; top: 3%; bottom: 27%;
  border-radius: 22px; transform-style: preserve-3d;
  background:
    radial-gradient(circle at 1px 1px, rgba(27, 31, 46, .12) 1px, transparent 1.5px) 0 0 / 20px 20px,
    linear-gradient(160deg, #fffdf8, #f1ede4);
  box-shadow: 0 14px 0 #ddd7c8, 0 34px 50px rgba(27, 31, 46, .16);
  transform: rotateX(var(--rx, 30deg)) rotateZ(var(--rz, -5deg));
  transition: transform 1s var(--ease);
}
.board .node {
  transform-origin: 50% 100%;
  transform: translate(-50%, -50%) rotateX(var(--stand, 0deg)) rotate(var(--rot, 0deg)) scale(var(--s, 1));
}
.stage:not([data-step="0"]):not([data-step="1"]) .board .n-screen { box-shadow: 0 2px 0 #c9d6ef, 0 16px 30px rgba(27, 31, 46, .22); }
.ivi {
  position: absolute; left: 3%; right: 3%; bottom: 2%; z-index: 3; pointer-events: none;
  display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; gap: .2rem;
}
.ivi img { width: 25%; max-width: 132px; height: auto; flex: none; filter: drop-shadow(0 10px 12px rgba(14, 31, 69, .22)); animation: iviFloat 4s ease-in-out infinite; }
.ivi-say {
  position: relative; margin: 0 0 9% .3rem; max-width: 66%;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.35;
  padding: .65rem .85rem; border-radius: 16px 16px 16px 4px; box-shadow: var(--sh-2);
}
.ivi-say::before { content: "IVI"; display: block; font-size: .62rem; letter-spacing: .12em; color: #1e88ff; font-weight: 800; margin-bottom: .1rem; }
.ivi.is-pop .ivi-say { animation: pop .45s var(--bounce) both; }
.ivi.is-pop img { animation: iviPop .5s var(--bounce) both, iviFloat 4s ease-in-out .5s infinite; }
@keyframes iviFloat { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes iviPop { from { transform: scale(.88) translateY(6px); opacity: .4; } }

@media (max-width: 980px) {
  .board { top: 3%; bottom: 31%; }
  .ivi img { width: 21%; }
  .ivi-say { font-size: .8rem; max-width: 74%; padding: .5rem .7rem; }
}
@media (max-width: 600px) {
  .stage { height: 44vh; }
  .board { left: 5%; right: 5%; }
}

/* ── IVI en otras secciones ── */
.ivi-mini { width: 120px; height: auto; flex: none; filter: drop-shadow(0 10px 12px rgba(14, 31, 69, .2)); animation: iviFloat 4s ease-in-out infinite; }
.tryit .sec-head-row > .ivi-mini { width: 150px; margin-right: 4%; }
.head-side { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.head-side .ivi-mini { width: 108px; }
.sol-new { position: relative; padding-right: 8.5rem; overflow: hidden; }
.ivi-card { position: absolute; right: .4rem; bottom: .2rem; width: 118px; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); transition: transform .35s var(--bounce); }
.sol-new:hover .ivi-card { transform: rotate(-6deg) translateY(-4px); }
.bp-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.bp-empty .ivi-mini { width: 130px; }
.bp-empty p { max-width: 280px; }
.ivi-chat { display: flex; align-items: flex-end; gap: .4rem; margin: -0.6rem 0 1.4rem; }
.ivi-chat .ivi-mini { width: 96px; }
.ivi-chat .ivi-say { margin: 0 0 1.4rem; max-width: 300px; font-size: .92rem; }
.ivi-chat .ivi-say::before { content: none; }
.ivi-chat .ivi-say span { display: block; color: #128c4e; font-weight: 800; }
@media (max-width: 600px) {
  .tryit .sec-head-row > .ivi-mini { width: 110px; margin: 0 auto; }
  .head-side { flex-direction: row; align-items: flex-end; }
  .head-side .ivi-mini { width: 84px; }
  .sol-new { padding-right: 1.4rem; padding-bottom: 7.5rem; }
  .ivi-card { width: 100px; }
}
@media (prefers-reduced-motion: reduce) { .ivi-mini, .ivi img { animation: none !important; } }
/* tarjeta "lo creamos": IVI abajo, el texto con todo el ancho */
.sol-new { padding-right: 1.4rem; padding-bottom: 8.6rem; }
.ivi-card { width: 112px; right: .8rem; bottom: .4rem; }
.sol-new .btn { white-space: nowrap; }

/* ── armador: IVI lee el texto libre ── */
.otro-hints:empty { display: none; }
.otro-hints { margin-top: .7rem; padding: .8rem; border-radius: var(--r-sm); background: var(--butter-soft); animation: pop .35s var(--bounce) both; }
.hint-title { font-size: .86rem; font-weight: 700; margin-bottom: .5rem; }
.otro-hints p.hint-title:only-child { margin: 0; }
.hint-chips { gap: .4rem; }
.hint-chip { background: #fff; box-shadow: inset 0 0 0 1.5px #e9c95a; font-size: .86rem; padding: .5rem .85rem; }
.hint-chip.is-added { background: var(--mint-soft); box-shadow: none; color: #1f7a57; }
.hint-all { background: var(--ink); color: #fff; box-shadow: none; font-size: .86rem; padding: .5rem .85rem; }
.bp-custom { display: flex; gap: .7rem; align-items: center; }
.bp-custom[hidden] { display: none !important; }
.bp-custom img { width: 64px; height: auto; flex: none; animation: iviFloat 4s ease-in-out infinite; }

/* ── armador: enviar ahí mismo ── */
.bp-form { margin-top: 1rem; display: grid; gap: .7rem; animation: pop .4s var(--bounce) both; }
.bp-form-title { color: #fff !important; font-weight: 700; margin: 0 !important; }
.bp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bp-fields input:last-child { grid-column: 1 / -1; }
.bp-fields input {
  width: 100%; border: 0; border-radius: 10px; padding: .75rem .9rem; font-size: .95rem; font-weight: 500;
  background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18);
}
.bp-fields input::placeholder { color: #9aa6c9; }
.bp-fields input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--butter); }
.bp-consent { color: #cdd4ea !important; }
.bp-consent a { color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.bp-status { font-size: .88rem; font-weight: 600; margin: 0 !important; }
.bp-status:empty { display: none; }
.bp-status.is-error { color: #ffb4c8 !important; }
.bp-done { display: flex; align-items: center; gap: .8rem; background: rgba(63, 180, 135, .15); border: 1px solid rgba(63, 180, 135, .4); border-radius: 14px; padding: .8rem; }
.bp-done img { width: 72px; height: auto; flex: none; }
.bp-done b { display: block; color: #fff; font-family: var(--f-display); font-size: 1.1rem; }
.bp-done p { color: #cdd4ea !important; margin: .2rem 0 0 !important; }
@media (max-width: 600px) { .bp-fields { grid-template-columns: 1fr; } }

/* ═════════ CELULAR (2026-10-26): menos scroll, más deslizar ═════════
   Solo afecta pantallas de 600 px o menos; en compu todo queda igual. */
.swipe-hint, .m-bar { display: none; }
@media (max-width: 600px) {
  /* si algo se sale unos pixeles, el celular agranda toda la página y la barra fija se corre */
  html { overflow-x: clip; }

  /* textos de apoyo que en celular sobran */
  .sec-head { margin-bottom: 1.3rem; }
  .sec-head > p:not(.eyebrow), .sec-head-row > div > p:not(.eyebrow) { display: none; }
  .hero-note { display: none; }
  .trust span { display: none; }
  .try-copy > .eyebrow, .try-copy > p:not(.eyebrow) { display: none; }
  .try > .phone { order: -1; height: 440px; }
  .try-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .try-tabs::-webkit-scrollbar { display: none; }
  .try-tab { flex: none; white-space: nowrap; }
  .tryit .sec-head-row > .ivi-mini, .results .head-side .ivi-mini { display: none; }
  .values li { font-size: 0; }
  .values li b { font-size: 1rem; }

  /* carruseles: se desliza de lado en lugar de bajar */
  [data-carousel] {
    display: flex !important; flex-wrap: nowrap; gap: .8rem; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding: .3rem 16px 1rem; scroll-padding-inline: 16px;
    columns: auto;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 84%; scroll-snap-align: start; margin: 0; }
  .swipe-hint {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    font-size: .8rem; font-weight: 700; color: var(--ink-3); margin: .1rem 0 0;
  }
  .swipe-dots { display: flex; gap: 5px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
  .swipe-dots i.on { background: var(--blue); width: 16px; border-radius: 3px; }

  /* soluciones: tarjeta corta (clip, título, una idea y el botón) */
  .sol-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 1rem; padding: 0 16px; }
  .sol-filter::-webkit-scrollbar { display: none; }
  .sol-filter .chip { flex: none; }
  .sol { animation: none; }
  .sol ul { display: none; }
  .sol p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sol-new .ivi-card { display: none; }
  #solGrid { align-items: flex-start; }
  .sol-acts .sol-act:nth-child(n+3) { display: none; }

  /* arma tu proceso: opciones en dos filas que se deslizan */
  #indChips, #painChips {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start;
    overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: .2rem 16px .5rem;
  }
  #indChips::-webkit-scrollbar, #painChips::-webkit-scrollbar { display: none; }
  #indChips .chip, #painChips .chip { white-space: nowrap; }
  .builder-grid > *, .builder-form, .builder-form fieldset { min-width: 0; }

  /* resultados: una tarjeta a la vez */
  .card { gap: .7rem; }

  /* cómo trabajamos: escenario fijo arriba y pasos de lado */
  .stage-col { position: relative; top: 0; }
  .steps { padding-bottom: 0; }
  .steps > .step { min-height: 0; justify-content: flex-start; opacity: .45; transform: none;
    background: var(--bg); border-radius: var(--r-md); padding: 1rem 1.1rem; }
  .steps > .step.is-active { opacity: 1; }
  .step-n { width: 36px; height: 36px; margin-bottom: .6rem; }
  .step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
  .step p { font-size: .95rem; }

  /* barra fija: WhatsApp y Arma tu proceso siempre a la mano */
  .wa-float { display: none; }
  .m-bar {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; box-sizing: border-box;
    padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgba(20, 30, 60, .08);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .m-bar.is-on { transform: none; }
  .m-bar .btn { flex: 1 1 0; min-width: 0; min-height: 48px; justify-content: center; padding: .6rem .5rem; font-size: .95rem; white-space: nowrap; }
  .m-bar .btn:hover { transform: none; }
  .footer { padding-bottom: 7rem; }
}
