/* ============================================================
   KIVOL · v7.css
   Sistema visual de la portada y las páginas de producto.
   Todo vive bajo body.v7 y usa el prefijo v- para no chocar
   con styles.css (navegación, pie y formulario se heredan).
   ============================================================ */

body.v7 {
  --ink: #212121;
  --paper: #ffffff;
  --purple: #7c00ff;
  --deep: #2a00dd;
  --deeper: #001fba;
  --lav: #b98dff;
  --wash: #f6f1ff;
  --line: rgba(33, 33, 33, 0.12);
  --mute: rgba(33, 33, 33, 0.64);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 40px);
  background: var(--paper);
  background-image: none;
  color: var(--ink);
}

/* ---------- Base ---------- */
.v-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.v-sec { position: relative; padding: clamp(84px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.v-sec--flush { border-top: 0; }
.v-sec--ink { background: var(--ink); color: #fff; border-top: 0; --line: rgba(255, 255, 255, 0.16); --mute: rgba(255, 255, 255, 0.66); }
.v-sec--wash { background: var(--wash); border-top: 0; }

.v-eye { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 2.4vw, 32px); font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); }
.v-eye b { font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; }
.v-sec--ink .v-eye b { color: var(--lav); }
.v-eye::after { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; opacity: 0.5; }

.v-h1, .v-h2, .v-h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: inherit; text-wrap: balance; }
.v-h1 { font-size: clamp(42px, 6.4vw, 100px); line-height: 0.97; letter-spacing: -0.042em; }
.v-h2 { font-size: clamp(34px, 4.5vw, 68px); line-height: 1; letter-spacing: -0.036em; }
.v-h3 { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -0.025em; }
.v-h1 em, .v-h2 em { font-style: normal; color: var(--purple); }
.v-sec--ink .v-h1 em, .v-sec--ink .v-h2 em { color: var(--lav); }
.v-lede { max-width: 32em; margin-top: clamp(18px, 2vw, 28px); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; color: var(--mute); text-wrap: pretty; }
.v-p { max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--mute); text-wrap: pretty; }
.v-note { margin-top: 18px; font-size: 13px; color: var(--mute); }
.v-head { display: grid; gap: 0; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) {
  .v-head--split { grid-template-columns: 7fr 5fr; column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .v-head--split .v-eye { grid-column: 1 / -1; }
  .v-head--split .v-lede { margin-top: 0; }
}

.v-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
body.v7 .btn { border-radius: 999px; }
body.v7 .btn--primary { background: var(--purple); color: #fff; box-shadow: none; }
body.v7 .btn--primary:hover { background: var(--deep); transform: none; box-shadow: none; }
.v-btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); font-size: 16px; font-weight: 600; color: var(--ink); background: transparent; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.v-btn-line:hover { background: var(--ink); color: #fff; }
.v-sec--ink .v-btn-line { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.v-sec--ink .v-btn-line:hover { background: #fff; color: var(--ink); }
.v-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple); }
.v-link::after { content: "→"; transition: transform 0.3s var(--ease); }
.v-link:hover::after { transform: translateX(5px); }
.v-sec--ink .v-link { color: var(--lav); }

/* ---------- Entradas ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
.v-ln { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.v-ln > span { display: block; }
html.js [data-reveal="lines"] { opacity: 1; transform: none; }
html.js [data-reveal="lines"] .v-ln > span { transform: translateY(105%); transition: transform 1s var(--ease); }
html.js [data-reveal="lines"] .v-ln:nth-child(2) > span { transition-delay: 0.08s; }
html.js [data-reveal="lines"] .v-ln:nth-child(3) > span { transition-delay: 0.16s; }
html.js [data-reveal="lines"] .v-ln:nth-child(4) > span { transition-delay: 0.24s; }
html.js [data-reveal="lines"].in .v-ln > span { transform: none; }

/* ---------- Capturas del producto ---------- */
.v-shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 36px 70px -42px rgba(33, 33, 33, 0.5); transform-style: preserve-3d; }
.v-shot > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: left top; }
.v-sec--ink .v-shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.v-shot__hole, .v-shot__lift { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: 5px; }
.v-shot__hole { background: var(--wash); box-shadow: inset 0 0 0 1px rgba(124, 0, 255, 0.28); opacity: var(--lift, 0); }
.v-shot__lift { background-size: 100% 100%; transform: translateZ(calc(var(--lift, 0) * var(--z, 70px))); box-shadow: 0 calc(var(--lift, 0) * 26px) calc(var(--lift, 0) * 44px) -14px rgba(33, 33, 33, 0.55); will-change: transform; }
.v-cap { margin-top: 14px; font-size: 13px; color: var(--mute); }

.v-phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844; padding: 9px; border-radius: 44px; background: var(--ink); box-shadow: 0 50px 80px -50px rgba(33, 33, 33, 0.7); }
.v-phone > img, .v-phone__screen { display: block; width: 100%; height: 100%; border-radius: 35px; background: #fff; object-fit: cover; }
.v-phone__screen { position: relative; overflow: hidden; }
.v-phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.v-phone__screen img.is-active, html:not(.js) .v-phone__screen img:first-child { opacity: 1; }
.v-sec--ink .v-phone { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 50px 90px -40px #000; }

/* ---------- Portada: pila en perspectiva ---------- */
.v-hero { padding: calc(var(--nav-h, 68px) + clamp(24px, 4vw, 56px)) 0 0; overflow: clip; }
.v-hero__grid { display: grid; gap: 40px; align-items: center; }
.v-hero .v-lede { max-width: 28em; }
.v-hero .v-h1 { font-size: clamp(42px, 5.5vw, 86px); }
.v-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 28px; font-size: 14px; color: var(--mute); }
.v-hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.v-hero__facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.v-stack { --p: 1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px; padding: 8px 0 56px; }
.v-stack__tilt { display: contents; }
.v-stack__plane:first-child { grid-column: 1 / -1; }
.v-stack__plane:not(:first-child) .v-stack__tag { font-size: 12px; gap: 6px; margin: 0; }
.v-stack__plane:not(:first-child) .v-shot { display: none; }
.v-stack__plane { position: relative; }
.v-stack__tag { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.v-stack__tag b { color: var(--purple); font-variant-numeric: tabular-nums; }

@media (min-width: 1000px) {
  .v-hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; min-height: min(820px, calc(100vh - 68px)); }
  html.js:not(.flat) .v-stack { --p: 0; display: block; height: 640px; padding: 0; perspective: 2600px; perspective-origin: 50% 40%; }
  html.js:not(.flat) .v-stack__tilt { display: block; position: absolute; left: 20%; top: 170px; width: 660px; transform-style: preserve-3d; transform: rotateX(calc(57deg - var(--p) * 5deg + var(--ry, 0deg))) rotateZ(calc(-34deg + var(--p) * 4deg + var(--rx, 0deg))); transition: transform 0.5s var(--ease); }
  html.js:not(.flat) .v-stack__plane:first-child, html.js:not(.flat) .v-stack__plane { grid-column: auto; }
  html.js:not(.flat) .v-stack__plane { position: absolute; inset: 0 auto auto 0; width: 100%; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * (62px + var(--p) * 120px))); animation: v-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }
  html.js:not(.flat) .v-stack__plane .v-shot { display: block; box-shadow: 0 0 0 1px rgba(33, 33, 33, 0.14), -30px 40px 60px -36px rgba(33, 33, 33, 0.42); }
  html.js:not(.flat) .v-stack__tag { position: absolute; right: calc(100% + 18px); top: 8px; margin: 0; padding: 7px 12px; white-space: nowrap; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); transform: rotateZ(34deg) rotateX(-57deg); transform-origin: right center; }
}
@keyframes v-float { 0%, 100% { translate: 0 0 0; } 50% { translate: 0 0 10px; } }

/* ---------- El problema: tres pedazos que se vuelven uno ---------- */
.v-frag { --p: 1; }
.v-frag__stick { display: flex; flex-direction: column; gap: 22px; }
.v-frag__copy, .v-frag__stage { display: contents; }
.v-frag__a { order: 1; }
.v-frag__item { order: 2; max-width: 440px; }
.v-frag__b { order: 3; margin-top: 44px; }
.v-frag__one { order: 4; }
.v-frag__item { position: relative; }
.v-frag__label { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--mute); }
.v-frag__one { margin-top: 0; }
.v-obj { border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(33, 33, 33, 0.5); overflow: hidden; font-size: 14px; }
.v-obj--chat { padding: 14px; background: #efeae2; }
.v-obj--chat .hd { display: flex; align-items: center; gap: 8px; margin: -14px -14px 12px; padding: 10px 14px; background: #fff; font-weight: 600; font-size: 13.5px; }
.v-obj--chat .hd i { width: 9px; height: 9px; border-radius: 50%; background: #25d366; }
.v-obj--chat .b { max-width: 82%; margin-top: 7px; padding: 8px 11px; border-radius: 10px; background: #fff; line-height: 1.35; }
.v-obj--chat .b.me { margin-left: auto; background: #d9fdd3; }
.v-obj--chat .b small { display: block; margin-top: 2px; font-size: 11px; color: rgba(33, 33, 33, 0.5); text-align: right; }
.v-obj--nota { padding: 18px 20px; background: #fffdf5; font-family: Georgia, 'Times New Roman', serif; font-style: italic; line-height: 2; background-image: repeating-linear-gradient(transparent 0 27px, rgba(0, 31, 186, 0.16) 27px 28px); }
.v-obj--nota b { font-style: normal; font-family: 'Instrument Sans', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #b3261e; }
.v-obj--nota u { text-decoration-color: #b3261e; text-decoration-thickness: 2px; }
.v-obj--hoja { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.v-obj--hoja table { width: 100%; border-collapse: collapse; }
.v-obj--hoja th, .v-obj--hoja td { padding: 7px 10px; border: 1px solid #e1e1e1; text-align: left; white-space: nowrap; }
.v-obj--hoja th { background: #f3f3f3; font-weight: 600; color: rgba(33, 33, 33, 0.6); }
.v-obj--hoja td.err { color: #b3261e; font-weight: 600; }

@media (min-width: 1000px) {
  html.js:not(.flat) .v-frag { --p: 0; height: 250vh; padding: 0; }
  html.js:not(.flat) .v-frag__stick { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
  html.js:not(.flat) .v-frag__stage { position: relative; height: min(560px, 70vh); margin: 0; display: block; }
  html.js:not(.flat) .v-frag__copy { display: block; }
  html.js:not(.flat) .v-frag__item { max-width: none; }
  html.js:not(.flat) .v-frag__b { margin-top: 0; }
  html.js:not(.flat) .v-frag__item { position: absolute; width: 46%; --k: clamp(0, calc(1.25 - var(--p) * 2.2), 1); left: var(--l); top: var(--t); transform: translate(calc((1 - var(--k)) * var(--dx)), calc((1 - var(--k)) * var(--dy))) rotate(calc(var(--k) * var(--r))) scale(calc(0.72 + var(--k) * 0.28)); opacity: clamp(0, calc(2.6 - var(--p) * 4.6), 1); }
  html.js:not(.flat) .v-frag__one { position: absolute; inset: 50% 0 auto 0; margin: 0; transform: translateY(-50%) scale(calc(0.86 + clamp(0, calc(var(--p) * 4 - 1.9), 1) * 0.14)); opacity: clamp(0, calc(var(--p) * 4 - 1.9), 1); }
  html.js:not(.flat) .v-frag__a { opacity: clamp(0, calc(2.3 - var(--p) * 4.6), 1); }
  html.js:not(.flat) .v-frag__b { position: absolute; inset: 0 auto auto 0; opacity: clamp(0, calc(var(--p) * 4.6 - 2.3), 1); }
  html.js:not(.flat) .v-frag__copy { position: relative; }
}

/* ---------- Cómo lo resolvemos ---------- */
.v-steps { --p: 1; position: relative; display: grid; gap: 40px; counter-reset: paso; }
.v-step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.v-step__n { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(64px, 8vw, 120px); line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.v-step .v-h3 { margin-top: 22px; }
.v-step .v-p { margin-top: 10px; }
@media (min-width: 900px) {
  .v-steps { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
  html.js:not(.flat) .v-steps { --p: 0; }
  html.js:not(.flat) .v-steps::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--purple); transform-origin: left; transform: scaleX(clamp(0, calc(var(--p) * 2.4 - 0.5), 1)); z-index: 1; }
  html.js:not(.flat) .v-step:nth-child(1) .v-step__n { -webkit-text-stroke-color: color-mix(in srgb, var(--purple) calc(clamp(0, calc(var(--p) * 7 - 1.4), 1) * 100%), var(--ink)); }
  html.js:not(.flat) .v-step:nth-child(2) .v-step__n { -webkit-text-stroke-color: color-mix(in srgb, var(--purple) calc(clamp(0, calc(var(--p) * 7 - 2.4), 1) * 100%), var(--ink)); }
  html.js:not(.flat) .v-step:nth-child(3) .v-step__n { -webkit-text-stroke-color: color-mix(in srgb, var(--purple) calc(clamp(0, calc(var(--p) * 7 - 3.4), 1) * 100%), var(--ink)); }
}

/* ---------- Antes y después ---------- */
.v-ledger { border-top: 1px solid var(--line); }
.v-ledger__row { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.v-ledger__hd { display: none; }
.v-ledger__a { font-size: 16px; color: var(--mute); }
.v-ledger__a s { text-decoration-color: rgba(33, 33, 33, 0.5); }
.v-ledger__b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 900px) {
  .v-ledger__row { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 5vw, 80px); align-items: baseline; padding: 30px 0; }
  .v-ledger__hd { display: grid; padding: 0 0 14px; border-bottom: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); }
  html.js .v-ledger__row[data-reveal] .v-ledger__a s { text-decoration-color: transparent; transition: text-decoration-color 0.6s 0.25s; }
  html.js .v-ledger__row[data-reveal].in .v-ledger__a s { text-decoration-color: rgba(33, 33, 33, 0.5); }
  html.js .v-ledger__row[data-reveal] .v-ledger__b { opacity: 0; transform: translateX(-14px); transition: opacity 0.8s 0.45s var(--ease), transform 0.8s 0.45s var(--ease); }
  html.js .v-ledger__row[data-reveal].in .v-ledger__b { opacity: 1; transform: none; }
}

/* ---------- Productos ---------- */
.v-prod { display: grid; gap: 28px; padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--line); align-items: center; }
.v-prod:first-of-type { border-top: 0; padding-top: 0; }
.v-prod__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--purple); }
.v-sec--ink .v-prod__kicker { color: var(--lav); }
.v-prod .v-h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 44px); }
.v-prod .v-p { margin: 16px 0 22px; }
.v-prod__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.v-prod__list li { padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.v-prod__media { position: relative; perspective: 1800px; }
.v-prod__media .v-phone { position: absolute; right: 4%; bottom: -8%; width: 24%; max-width: 190px; padding: 5px; border-radius: 26px; transform: translateZ(60px); }
.v-prod__media .v-phone > img { border-radius: 21px; }
[data-tilt] { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
@media (min-width: 900px) {
  .v-prod { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 5vw, 80px); }
  .v-prod--rev .v-prod__media { order: -1; }
}
.v-other { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(36px, 5vw, 72px); padding: 26px 0 0; border-top: 1px solid var(--line); }
.v-other p { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }

/* ---------- Confianza ---------- */
.v-facts { display: grid; border-top: 1px solid var(--line); }
.v-fact { padding: 28px 0; border-bottom: 1px solid var(--line); }
.v-fact .v-h3 { margin-bottom: 10px; }
@media (min-width: 900px) {
  .v-facts { grid-template-columns: 1fr 1fr; }
  .v-fact { padding: 36px clamp(24px, 3vw, 48px) 40px 0; }
  .v-fact:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); padding-right: 0; border-left: 1px solid var(--line); }
}

/* ---------- Cierre ---------- */
.v-end { text-align: left; }
.v-end .v-h1 { max-width: 12em; }
.v-end__small { margin-top: 22px; font-size: 14px; color: var(--mute); }

/* ---------- Encabezado de páginas de producto ---------- */
.v-phead { padding: calc(var(--nav-h, 68px) + clamp(24px, 4vw, 56px)) 0 clamp(40px, 5vw, 72px); }
.v-phead__crumb { display: block; margin-bottom: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--purple); }
.v-phead__crumb a { color: var(--mute); }
.v-phead__media { margin-top: clamp(40px, 6vw, 80px); perspective: 2000px; }

/* ---------- Recorrido con vista fija ---------- */
.v-tour { display: grid; gap: 56px; }
.v-tour__steps { display: grid; gap: 72px; }
.v-tour__view .v-shot { width: 100%; }
.v-tour__step { display: grid; gap: 22px; }
.v-tour__time { display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-tour__step .v-h3 { font-size: clamp(26px, 2.8vw, 42px); }
.v-tour__step .v-p { margin-top: 12px; }
.v-tour__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v-tour__meta span { padding: 6px 12px; border-radius: 999px; background: rgba(124, 0, 255, 0.1); font-size: 13.5px; font-weight: 600; color: var(--purple); }
.v-sec--ink .v-tour__meta span { background: rgba(185, 141, 255, 0.16); color: var(--lav); }
.v-tour__view { display: grid; justify-items: center; }
@media (min-width: 900px) {
  html.js:not(.flat) .v-tour { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 5vw, 80px); row-gap: 0; }
  html.js:not(.flat) .v-tour__steps { grid-column: 1; padding-bottom: 18vh; display: block; }
  html.js:not(.flat) .v-tour__step { min-height: 78vh; align-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease); }
  html.js:not(.flat) .v-tour__step.is-active { opacity: 1; }
  html.js:not(.flat) .v-tour__stick { grid-column: 2; grid-row: 1; position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; place-items: center; perspective: 1800px; }
  html.js:not(.flat) .v-tour__stick .v-tour__view { position: absolute; inset: 0; align-items: center; opacity: 0; transform: translateY(24px) rotateY(-10deg) scale(0.96); transition: opacity 0.55s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
  html.js:not(.flat) .v-tour__stick .v-tour__view.is-active { opacity: 1; transform: none; pointer-events: auto; }
  html.js:not(.flat) .v-tour__stick .v-tour__view.is-active .v-shot { --lift: 1; }
  html.js:not(.flat) .v-tour__stick .v-shot { width: 100%; transform: rotateX(8deg) rotateY(-9deg); }
  html.js:not(.flat) .v-tour__stick .v-shot__lift { transition: transform 0.9s 0.25s var(--ease), box-shadow 0.9s 0.25s var(--ease); }
  html.js:not(.flat) .v-tour__stick .v-shot__hole { transition: opacity 0.6s 0.25s; }
  .v-tour__count { position: absolute; left: 0; bottom: 28px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mute); }
}

/* ---------- Flujo de conversación ---------- */
.v-flow { display: grid; gap: 28px; }
.v-flow__tabs { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.v-flow__tabs button { padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--mute); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.v-flow__tabs button.is-on { background: var(--ink); color: #fff; }
.v-sec--ink .v-flow__tabs button.is-on { background: #fff; color: var(--ink); }
.v-flow__stage { display: grid; }
.v-flow__panel { grid-area: 1 / 1; display: grid; gap: 24px; align-items: start; visibility: hidden; }
.v-flow__panel.is-on { visibility: visible; }
.v-chat { display: flex; flex-direction: column; gap: 10px; min-height: 420px; padding: 18px; border-radius: 18px; background: #f4f1ec; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.v-chat__hd { display: flex; align-items: center; gap: 10px; margin: -18px -18px 6px; padding: 14px 18px; border-radius: 18px 18px 0 0; background: #fff; font-weight: 600; font-size: 15px; }
.v-chat__hd i { width: 10px; height: 10px; border-radius: 50%; background: #25d366; }
.v-chat__hd small { margin-left: auto; font-weight: 500; font-size: 12.5px; color: rgba(33, 33, 33, 0.64); }
.v-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 15px; line-height: 1.4; }
.v-msg--ai { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; }
.v-msg--ai b { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav); }
.v-evt { align-self: center; padding: 6px 12px; border-radius: 999px; background: rgba(124, 0, 255, 0.1); font-size: 12.5px; font-weight: 600; color: var(--purple); }
.v-out { padding: 20px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(33, 33, 33, 0.6); }
.v-out__k { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--purple); }
.v-out__t { margin: 8px 0 14px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.v-out__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(33, 33, 33, 0.1); font-size: 14.5px; }
.v-out__row b { font-weight: 600; }
.v-out__state { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: #e9f8ee; font-size: 13px; font-weight: 600; color: #17703a; }
.v-out__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
html.js .v-flow [data-t] { opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
html.js .v-flow [data-t].on { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .v-flow__panel { grid-template-columns: 7fr 5fr; column-gap: clamp(24px, 3vw, 48px); }
  .v-out { margin-top: 64px; }
}

/* ---------- Límites: lo que no hace ---------- */
.v-limits { display: grid; gap: 0; border-top: 1px solid var(--line); }
.v-limits li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.v-limits li::before { content: "—"; color: var(--mute); }
@media (min-width: 900px) { .v-limits { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); } }

/* ---------- Tira de datos y trazabilidad ---------- */
.v-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-num { padding: 26px 20px 26px 0; }
.v-num + .v-num { padding-left: 20px; border-left: 1px solid var(--line); }
.v-num b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.v-num span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.35; color: var(--mute); }
.v-trace { --p: 1; display: grid; gap: 14px; }
.v-trace__node { position: relative; padding: 18px 20px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.v-trace__node small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--purple); }
.v-trace__node b { display: block; margin-top: 6px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; letter-spacing: -0.02em; }
.v-trace__node span { display: block; margin-top: 2px; font-size: 13.5px; color: rgba(33, 33, 33, 0.62); }
@media (min-width: 900px) {
  .v-trace { grid-template-columns: repeat(6, 1fr); gap: 0; align-items: stretch; }
  .v-trace__node { margin-right: 18px; padding: 16px 14px; }
  .v-trace__node b { font-size: 17px; }
  .v-trace__node { margin-right: 22px; }
  .v-trace__node:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; height: 2px; background: var(--lav); transform-origin: left; }
  html.js:not(.flat) .v-trace { --p: 0; }
  html.js:not(.flat) .v-trace__node { opacity: clamp(0.18, calc(var(--p) * 18 - var(--i) * 0.8 - 1.8), 1); transform: translateY(calc((1 - clamp(0, calc(var(--p) * 18 - var(--i) * 0.8 - 1.8), 1)) * 18px)); }
}

/* ---------- Sin movimiento / pantallas chicas ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-reveal="lines"] .v-ln > span, html.js .v-flow [data-t] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .v-stack__plane { animation: none !important; }
}
@media (max-width: 899px) {
  .v-tour__stick { display: none; }
}

html:not(.js) .v-flow__panel { grid-area: auto; visibility: visible; margin-bottom: 32px; }

/* ---------- Capturas con otra proporción ---------- */
.v-shot--auto { aspect-ratio: var(--ar, 16 / 9); }

/* ---------- CRM + ERP: dos mitades ---------- */
.v-duo { display: grid; gap: 40px; }
.v-duo__half { display: grid; gap: 18px; align-content: start; }
.v-duo__word { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(64px, 9vw, 132px); line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.v-duo__half:last-of-type .v-duo__word { -webkit-text-stroke-color: var(--purple); }
.v-duo__sum { padding-top: 26px; border-top: 1px solid var(--line); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.025em; }
.v-duo__sum em { font-style: normal; color: var(--purple); }
@media (min-width: 900px) {
  .v-duo { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(40px, 5vw, 72px); }
  .v-duo__sum { grid-column: 1 / -1; }
}

/* ---------- Mosaico de pantallas ---------- */
.v-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.v-mosaic figure { margin: 0; }
.v-mosaic .v-shot { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.v-mosaic a:hover .v-shot { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(124, 0, 255, 0.5), 0 40px 70px -40px rgba(33, 33, 33, 0.6); }
.v-mosaic figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; }
.v-mosaic figcaption span { display: block; font-weight: 400; font-size: 14px; color: var(--mute); }
@media (min-width: 900px) { .v-mosaic { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; } }

/* ---------- Lista de avisos ---------- */
.v-rules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.v-rules li { padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.v-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .v-split { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 5vw, 80px); } }

/* ---------- Bodegas: tres teléfonos ---------- */
.v-phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: clamp(40px, 6vw, 72px); perspective: 1800px; }
.v-phones .v-phone { flex: 0 1 220px; padding: 6px; border-radius: 32px; }
.v-phones .v-phone > img { border-radius: 26px; }
.v-phones .v-phone:nth-child(2) { flex-basis: 260px; z-index: 1; }
@media (max-width: 599px) { .v-phones .v-phone:nth-child(3) { display: none; } }
@media (min-width: 900px) {
  .v-phead--side .v-wrap { display: grid; grid-template-columns: 6fr 6fr; column-gap: clamp(24px, 4vw, 64px); align-items: center; }
  .v-phead--side .v-phead__crumb { grid-column: 1 / -1; }
  .v-phead--side .v-phones { margin-top: 0; grid-row: 2 / span 4; grid-column: 2; }
  .v-phead--side .v-h1 { font-size: clamp(42px, 5.2vw, 80px); }
  html.js:not(.flat) .v-phones .v-phone:nth-child(1) { transform: rotateY(24deg) translateX(34px) translateZ(-90px); }
  html.js:not(.flat) .v-phones .v-phone:nth-child(3) { transform: rotateY(-24deg) translateX(-34px) translateZ(-90px); }
  html.js:not(.flat) .v-phones { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
}
.v-tour__view .v-phone { max-width: 286px; }
html.js:not(.flat) .v-tour__stick .v-phone { width: auto; height: min(619px, calc(100vh - 68px - 48px)); }
.v-big { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(30px, 3.8vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.v-bigs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.v-bigs li { display: grid; gap: 8px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .v-bigs li { grid-template-columns: 7fr 5fr; column-gap: clamp(32px, 5vw, 80px); align-items: baseline; } }

/* Las piezas se levantan cuando su tarjeta entra en vista */
.v-shot__lift { transition: transform 1s 0.2s var(--ease), box-shadow 1s 0.2s var(--ease); }
.v-shot__hole { transition: opacity 0.7s 0.2s; }
html.js:not(.flat) .v-prod[data-reveal].in .v-shot { --lift: 1; }

/* ---------- Revisión final ---------- */
/* Detalle legible de una pieza real, cuando la captura completa queda chica */
.v-shot__detail { display: block; width: auto; max-width: 100%; height: auto; margin: 14px auto 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 22px 40px -30px rgba(33, 33, 33, 0.6); }
@media (max-width: 599px) {
  .v-nums { grid-template-columns: 1fr; }
  .v-num { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; }
  .v-num + .v-num { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .v-num b { white-space: nowrap; font-size: 40px; }
  .v-num span { margin-top: 0; }
  .v-prod__media .v-phone { display: none; }
}

/* ---------- Sin cápsulas: etiquetas como texto limpio ---------- */
.v-stack__tag { font-weight: 600; }
@media (min-width: 1000px) {
  html.js:not(.flat) .v-stack__tag { padding: 0; background: none; border-radius: 0; box-shadow: none; right: calc(100% + 12px); top: 14px; font-size: 13.5px; }
  html.js:not(.flat) .v-stack__tag::after { content: ""; display: inline-block; width: 44px; height: 1px; margin-left: 14px; vertical-align: middle; background: rgba(33, 33, 33, 0.38); }
}
.v-prod__list { display: grid; gap: 0; margin: 0 0 26px; border-top: 1px solid var(--line); }
.v-prod__list li { padding: 11px 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.v-tour__time { padding: 0; border-radius: 0; box-shadow: none; font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); }
.v-tour__meta { display: grid; gap: 4px; }
.v-tour__meta span, .v-sec--ink .v-tour__meta span { padding: 0; border-radius: 0; background: none; font-size: 15px; }
.v-rules { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.v-rules li { padding: 14px 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); font-size: 17px; }

/* ---------- Palabra clave dentro del titular de las páginas de producto ---------- */
.v-h1 .v-phead__crumb { margin-bottom: 26px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: 0.09em; text-wrap: initial; }
@media (min-width: 900px) { .v-phead--side .v-phones { grid-row: 1 / span 3; } }
.v-end__more a { font-weight: 600; color: var(--lav); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Un dato, con su fuente ---------- */
.v-proof { display: grid; gap: 14px; margin: clamp(48px, 6vw, 88px) 0 0; padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.v-proof__n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(64px, 10vw, 148px); line-height: 0.9; letter-spacing: -0.05em; color: var(--lav); white-space: nowrap; }
.v-proof__t { max-width: 26em; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.35; }
.v-proof__s { margin-top: 14px; font-size: 13px; color: var(--mute); }
@media (min-width: 900px) { .v-proof { grid-template-columns: auto 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: end; } }
