/* ═══ Portada y CRM con narrativa animada (nov. 2026) ═══
   Reglas sacadas de los videos de Oco Labs: gancho en el primer segundo, nada
   quieto, la acción amarrada a la frase y una historia encadenada.
   Todo vive bajo .oco2 para no tocar el resto del sitio (styles.css). */
.oco2 {
  --dim: var(--text-dim);
  --teal: #22C3D6;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  position: relative; z-index: 2;
}
.oco2 h1, .oco2 h2, .oco2 h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; }
.oco2 h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; }
.oco2 em { font-style: normal; color: var(--accent); }
.oco2 .btn .arr { transition: transform .3s var(--pop); }
.oco2 .btn:hover .arr { transform: translateX(4px); }
.oco2 .btn--primary { animation: o2-breathe 3.2s ease-in-out infinite; }
.oco2 .btn--lg { padding: 18px 34px; font-size: 1.1rem; }
@keyframes o2-breathe { 50% { box-shadow: 0 0 0 9px rgba(45,202,140,0), 0 10px 34px rgba(45,202,140,.42); } }
.o2-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.o2-ctas--center { justify-content: center; }
.o2-eyebrow { font: 600 .78rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.o2-rec { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--warm); animation: o2-rec 1.4s infinite; }
@keyframes o2-rec { 0% { box-shadow: 0 0 0 0 rgba(255,138,91,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,138,91,0); } }

/* Titular que golpea palabra por palabra */
.o2-title { font-size: clamp(2.3rem, 4.7vw, 4.4rem); font-weight: 800; margin-bottom: 22px; }
.o2-title .ln { display: block; }
.o2-title .ln--key em { color: var(--warm); text-shadow: 0 0 40px rgba(255,138,91,.25); }
.o2-w { display: inline-block; opacity: 0; transform: translateY(.5em) scale(1.25); filter: blur(10px); animation: o2-hit .5s var(--pop) forwards; }
@keyframes o2-hit { to { opacity: 1; transform: none; filter: none; } }
.o2-num { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.o2-num.o2-bump { animation: o2-hit .5s var(--pop) forwards, o2-numpunch .35s var(--pop); }
@keyframes o2-numpunch { 40% { transform: scale(1.18); color: #fff; } }
@keyframes o2-kpunch { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes o2-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes o2-orbit { to { transform: rotate(360deg); } }
.o2-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--dim); max-width: 36ch; margin-bottom: 26px; opacity: 0; animation: o2-up .7s var(--ease) 1s forwards; }
.o2-sub strong { color: var(--text); font-weight: 600; }
.o2-note { margin-top: 16px; font-size: .88rem; color: var(--dim); }

/* ══ PORTADA · el mapa de tu negocio (escena fijada) ══ */
.map { height: 520vh; position: relative; overflow-x: clip; }
.map__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 90px clamp(16px, 5vw, 72px) 40px; max-width: 1360px; margin: 0 auto; }
.map__texts { position: relative; min-height: 460px; }
.mbeat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; pointer-events: none; }
.mbeat.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.mbeat.past { transform: translateY(-40px); }
.mbeat .o2-title { margin-bottom: 6px; }
.mbeat .o2-sub { margin-bottom: 8px; }
.mbeat__tag { font: 600 .8rem var(--display); color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.mbeat h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; }
.mbeat__p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--dim); max-width: 34ch; }
.mbeat h2 em { display: inline-block; }
.mbeat.on h2 em { animation: o2-kpunch .5s var(--pop) .15s both; }
.map__rail { position: absolute; left: clamp(16px, 5vw, 72px); bottom: 34px; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.map__rail li { width: 34px; height: 4px; border-radius: 4px; background: rgba(45,202,140,.18); transition: background .4s, width .4s var(--ease); }
.map__rail li.on { background: var(--accent); width: 56px; }
.map__rail li.done { background: var(--accent-2); }

/* La escena: diez avisos sueltos alrededor de ti que vuelan a ordenarse dentro de tres paneles.
   Todo se mide en cqw (ancho del tablero): la escena es la misma en escritorio y en celular.
   Solo se animan transform y opacity; las posiciones las pone js/portada.js. */
.board { position: relative; width: min(600px, 44vw); aspect-ratio: 1; justify-self: center; container-type: inline-size; --nar: 251 146 60; }
.board__halo { position: absolute; inset: -14%; pointer-events: none; }
.board__halo::before, .board__halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; filter: blur(40px); transition: opacity 1.2s ease; }
.board__halo::before { background: radial-gradient(circle at 50% 50%, rgb(var(--nar) / .20), transparent 58%); }
.board__halo::after { background: radial-gradient(circle at 30% 28%, rgb(var(--esm) / .22), transparent 52%), radial-gradient(circle at 74% 78%, rgb(231 179 90 / .13), transparent 50%); opacity: 0; }
.board.calma .board__halo::before { opacity: 0; }
.board.calma .board__halo::after { opacity: 1; }
.board__grid { position: absolute; inset: -4%; background-image: radial-gradient(rgb(var(--hueso) / .16) 1px, transparent 1.2px); background-size: 3.4cqw 3.4cqw; -webkit-mask: radial-gradient(circle, #000 24%, transparent 68%); mask: radial-gradient(circle, #000 24%, transparent 68%); opacity: .55; }

/* ── Paneles ── */
.board .pan { position: absolute; display: flex; flex-direction: column; gap: 1.5cqw; padding: 2.3cqw 2.6cqw 2cqw; border-radius: 3.2cqw; border: 1px solid rgb(var(--hueso) / .10); background: linear-gradient(180deg, rgb(26 28 28 / .94), rgb(17 18 18 / .94)); box-shadow: 0 26px 60px rgb(0 0 0 / .5), inset 0 1px 0 rgb(var(--hueso) / .08); opacity: 0; transform: translateY(3.4cqw) scale(.95); transition: opacity .5s ease, transform .8s cubic-bezier(.16, 1, .3, 1); z-index: 2; }
.board .pan.on { opacity: 1; transform: none; }
.pan--auto { left: 0; top: 0; width: 48.6%; height: 38%; }
.pan--agente { right: 0; top: 0; width: 48.6%; height: 38%; }
.pan--sis { left: 0; top: 62%; width: 100%; height: 38%; }
.pan__cab { display: flex; align-items: center; gap: 1.5cqw; font: 700 clamp(9.5px, 2.3cqw, 13.5px)/1 var(--display); color: var(--text); letter-spacing: -.01em; }
.pan__cab b { font-weight: 700; }
.pan__ico { display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: 1.3cqw; background: rgb(var(--esm) / .14); box-shadow: inset 0 0 0 1px rgb(var(--esm) / .28); flex: none; }
.pan__ico svg { width: 58%; height: 58%; fill: none; stroke: #34D399; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pan__vivo { margin-left: auto; display: inline-flex; align-items: center; gap: .9cqw; font: 500 clamp(7.5px, 1.7cqw, 10.5px)/1 var(--body); color: rgb(var(--hueso) / .6); white-space: nowrap; }
.pan__vivo::before { content: ""; width: 1.1cqw; height: 1.1cqw; min-width: 4px; min-height: 4px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px rgb(var(--esm) / .9); animation: pan-late 1.8s ease-in-out infinite; }
@keyframes pan-late { 50% { opacity: .35; } }
.pan__filas { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-auto-rows: 1fr; }
.pan__filas li { display: flex; align-items: center; gap: 1cqw; min-width: 0; border-top: 1px solid rgb(var(--hueso) / .07); }
.pan .hueco { flex: 1; align-self: stretch; min-width: 0; }
.pan .meta { display: inline-flex; align-items: center; gap: .9cqw; font: 500 clamp(7px, 1.6cqw, 10.5px)/1 var(--body); color: rgb(var(--hueso) / .55); white-space: nowrap; opacity: 0; transform: translateX(-1.2cqw); transition: opacity .4s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.pan .meta::after { content: ""; width: 2.5cqw; height: 2.5cqw; min-width: 10px; min-height: 10px; border-radius: 50%; background: rgb(var(--esm) / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2334D399' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.4 8.4l2.3 2.3 4.9-5.2'/%3E%3C/svg%3E") center / 72% no-repeat; transform: scale(.4); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .1s; }
.pan li.lista .meta { opacity: 1; transform: none; }
.pan li.lista .meta::after { transform: none; }
.pan__filas li.pan__escribe { gap: 1.4cqw; padding-left: 1.4cqw; font: 500 clamp(7px, 1.6cqw, 10.5px)/1 var(--body); color: rgb(var(--hueso) / .5); }
.puntos { display: inline-flex; gap: .6cqw; padding: 1cqw 1.3cqw; border-radius: 99px; background: rgb(var(--hueso) / .07); }
.puntos i { width: .9cqw; height: .9cqw; min-width: 3px; min-height: 3px; border-radius: 50%; background: rgb(var(--hueso) / .7); animation: pan-escribe 1.2s ease-in-out infinite; }
.puntos i:nth-child(2) { animation-delay: .15s; }
.puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes pan-escribe { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-.7cqw); opacity: 1; } }
/* El sistema: tres mosaicos, cada tarea con su gráfico que crece al llegar */
.pan__filas--tiles { grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.pan__filas--tiles li { flex-direction: column; align-items: stretch; gap: 0; border: 1px solid rgb(var(--hueso) / .07); border-radius: 2.2cqw; background: rgb(var(--hueso) / .028); overflow: hidden; }
.pan__filas--tiles .hueco { flex: none; height: 7.4cqw; margin: 0 .5cqw; }
.barras { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 1cqw; padding: 0 2cqw 2cqw; }
.barras i { flex: 1; height: calc(var(--h) * 1%); border-radius: .8cqw .8cqw .3cqw .3cqw; background: linear-gradient(180deg, #34D399, rgb(var(--esm) / .25)); transform: scaleY(.1); transform-origin: bottom; opacity: .35; transition: transform .9s cubic-bezier(.16, 1, .3, 1) var(--d), opacity .5s ease var(--d); }
.miel .barras i { background: linear-gradient(180deg, #E7B35A, rgb(231 179 90 / .22)); }
li.lista .barras i { transform: none; opacity: 1; }

/* ── Tú: la tarjeta del centro. Naranja mientras todo pasa por ti; esmeralda cuando ya no ── */
.board .yo { position: absolute; left: 27%; top: 41.5%; width: 46%; height: 17%; display: flex; align-items: center; gap: 2.8cqw; padding: 0 3.4cqw; border-radius: 3.6cqw; border: 1px solid rgb(var(--nar) / .5); background: linear-gradient(180deg, rgb(44 29 19), rgb(24 18 14)); box-shadow: 0 22px 60px rgb(0 0 0 / .6), 0 0 70px rgb(var(--nar) / .24), inset 0 1px 0 rgb(255 255 255 / .08); transition: border-color .8s ease, box-shadow .8s ease; z-index: 5; }
.yo::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: linear-gradient(180deg, rgb(16 44 35), rgb(13 22 19)); opacity: 0; transition: opacity .8s ease; }
.yo::after { content: ""; position: absolute; inset: -1px; z-index: -3; border-radius: inherit; border: 1.5px solid rgb(var(--nar) / .8); opacity: 0; pointer-events: none; }
.yo.hot::after { animation: yo-pulso 1.7s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes yo-pulso { from { transform: none; opacity: .7; } to { transform: scale(1.14, 1.42); opacity: 0; } }
.yo b { font: 800 clamp(26px, 9.6cqw, 58px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.045em; color: #FFE7D4; min-width: 1.15em; text-align: center; transition: color .6s ease; }
.yo b.o2-bump { animation: o2-numpunch .35s var(--pop); }
.yo__lado { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.5cqw; }
.yo__label { font: 600 clamp(8.6px, 2.1cqw, 12.5px)/1.2 var(--display); color: rgb(var(--hueso) / .85); white-space: nowrap; }
.yo__carga { display: grid; grid-template-columns: repeat(10, 1fr); gap: .6cqw; }
.yo__carga i { height: 1.2cqw; min-height: 3px; border-radius: 99px; background: rgb(var(--hueso) / .12); transition: background-color .5s ease, box-shadow .5s ease; }
.yo__carga i.on { background: rgb(var(--nar)); box-shadow: 0 0 8px rgb(var(--nar) / .7); }
.yo__ok { display: none; font: 500 clamp(7.5px, 1.75cqw, 10.5px)/1.2 var(--body); color: #34D399; white-space: nowrap; }
.yo.calm { border-color: rgb(var(--esm) / .5); box-shadow: 0 22px 60px rgb(0 0 0 / .6), 0 0 80px rgb(var(--esm) / .26), inset 0 1px 0 rgb(255 255 255 / .1); }
.yo.calm::before { opacity: 1; }
.yo.calm b { color: var(--text); }
.yo.fin .yo__carga { display: none; }
.yo.fin .yo__ok { display: block; }

/* ── Las tareas: aviso suelto (naranja) → fila ordenada dentro de su panel (esmeralda) ── */
.task { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .6em; padding: .58em 1em .58em .8em; border-radius: 99px; white-space: nowrap; font: 600 clamp(8.6px, 2.1cqw, 12.5px)/1.2 var(--display); letter-spacing: -.005em; color: rgb(var(--hueso) / .96); background: rgb(36 31 27 / .96); border: 1px solid rgb(var(--nar) / .4); box-shadow: 0 12px 28px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .06); opacity: 0; z-index: 4; will-change: transform; transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease; }
.task::before { content: ""; flex: none; width: .56em; height: .56em; border-radius: 50%; background: rgb(var(--nar)); box-shadow: 0 0 8px rgb(var(--nar)); transition: background-color .45s ease, box-shadow .45s ease; }
.task.verde { border-color: rgb(var(--esm) / .45); background: rgb(24 34 30 / .96); }
.task.verde::before { background: #34D399; box-shadow: 0 0 8px rgb(var(--esm) / .9); }
.task.vuela { z-index: 8; }
.task.free { background: transparent; border-color: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .pan__vivo::before, .puntos i, .yo.hot::after { animation: none; }
}

@media (max-width: 900px) {
  .map { height: 560vh; }
  .map__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 78px 16px 18px; align-items: start; }
  .map__texts { min-height: 318px; }
  .mbeat { justify-content: flex-start; gap: 10px; padding-top: 8px; }
  .mbeat .o2-title { font-size: 2.15rem; }
  .mbeat .o2-sub, .mbeat[data-i="0"] .btn--secondary { display: none; }
  .mbeat .o2-eyebrow { margin-bottom: 4px; }
  .mbeat h2 { font-size: 1.7rem; }
  .mbeat__p { font-size: 1rem; }
  .mbeat .btn { padding: 12px 18px; font-size: .9rem; }
  .board { width: min(88vw, calc(100svh - 420px)); align-self: center; }
  .map__rail { bottom: 12px; left: 50%; transform: translateX(-50%); }
}

/* ══ PORTADA · soluciones por rubro ══ */
.sols, .psteps { padding: clamp(90px, 11vw, 140px) clamp(16px, 5vw, 72px); max-width: 1360px; margin: 0 auto; }
.sols__head { margin-bottom: 44px; }
.sols__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; perspective: 1400px; }
.sol { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); position: relative; color: var(--text); text-decoration: none; opacity: 0; transform: translateY(70px) rotateX(18deg) rotateZ(-3deg); transform-origin: bottom center; transition: opacity .6s, transform .9s var(--pop), border-color .3s, box-shadow .3s; }
.sols.in .sol { opacity: 1; transform: none; }
.sols.in .sol:nth-child(2) { transition-delay: .1s; } .sols.in .sol:nth-child(3) { transition-delay: .2s; } .sols.in .sol:nth-child(4) { transition-delay: .3s; } .sols.in .sol:nth-child(n+5) { transition-delay: .4s; }
.sols.in .sol:hover { transform: translateY(-8px); border-color: var(--line-hi); box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 0 40px rgba(45,202,140,.12); transition-delay: 0s; }
.sol__tag { align-self: flex-start; font: 600 .68rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-hi); }
.sol__media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: #0b1512; }
.sol__media img, .sol__media video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); display: block; }
.sol:hover .sol__media img, .sol:hover .sol__media video { transform: scale(1.07); }
.sol h3 { font-size: 1.25rem; margin-top: 6px; }
.sol p { color: var(--dim); font-size: .95rem; flex: 1; margin: 0; }
.sol__go { color: var(--accent-2); font-weight: 600; font-size: .93rem; }
.sol:hover .sol__go { text-decoration: underline; text-underline-offset: 4px; }
.sol--open { border-style: dashed; border-color: var(--line-hi); background: rgba(45,202,140,.04); }
.sol__plus { aspect-ratio: 16 / 10; border-radius: 14px; display: grid; place-items: center; position: relative; background: radial-gradient(circle, rgba(45,202,140,.18), transparent 65%); }
.sol__plus i { position: absolute; width: 44px; height: 4px; border-radius: 4px; background: var(--accent); transition: transform .6s var(--pop); }
.sol__plus i + i { transform: rotate(90deg); }
.sol--open:hover .sol__plus i { transform: rotate(90deg); }
.sol--open:hover .sol__plus i + i { transform: rotate(180deg); }

/* ══ PORTADA · tres pasos con el camino que se dibuja ══ */
.psteps__wrap { position: relative; margin-top: 50px; }
.psteps__path { position: absolute; top: 0; left: 0; width: 100%; height: 120px; overflow: visible; }
.psteps__path path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(45,202,140,.6)); }
.psteps__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; padding: 34px 0 0; margin: 0; }
.psteps__list li { opacity: .25; transform: translateY(20px); transition: opacity .5s, transform .6s var(--pop); }
.psteps__list li.on { opacity: 1; transform: none; }
.psteps__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-hi); font: 800 1.2rem var(--display); margin-bottom: 20px; transition: all .4s var(--pop); }
.psteps__list li.on .psteps__dot { background: var(--accent); color: #04140E; border-color: var(--accent); box-shadow: 0 0 0 8px rgba(45,202,140,.15); transform: scale(1.08); }
.psteps__list h3 { font-size: 1.35rem; margin-bottom: 8px; }
.psteps__list p { color: var(--dim); margin: 0; }
@media (max-width: 820px) { .psteps__path { display: none; } .psteps__list { grid-template-columns: 1fr; padding-top: 0; } }

/* ══ Cierre (portada y CRM) ══ */
.pclose { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 16px; gap: 22px; position: relative; }
.pclose__omega { width: 74px; opacity: .9; filter: drop-shadow(0 0 24px rgba(45,202,140,.6)); animation: o2-glow 3s ease-in-out infinite alternate; }
@keyframes o2-glow { to { transform: scale(1.1); opacity: .7; } }
.pclose__title { font-size: clamp(2.2rem, 5.6vw, 4.8rem) !important; font-weight: 800; margin: 0; }
.pclose__title .ln { display: block; opacity: 0; transform: translateY(30px); filter: blur(8px); transition: all .7s var(--ease); }
.pclose__title .ln--key { transition-delay: .35s; }
.pclose__title .ln--key em { text-shadow: 0 0 40px rgba(45,202,140,.4); }
.pclose.in .ln { opacity: 1; transform: none; filter: none; }
.pclose > p { color: var(--dim); font-size: 1.15rem; max-width: 40ch; margin: 0; }

/* ══ CRM · gancho de los 38 chats ══ */
.chero { overflow-x: clip; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; padding: 110px clamp(16px, 5vw, 72px) 80px; position: relative; max-width: 1360px; margin: 0 auto; }
.chero .o2-ctas { opacity: 0; animation: o2-up .7s var(--ease) 1.15s forwards; }
.chero .o2-note { opacity: 0; animation: o2-up .7s var(--ease) 1.35s forwards; }
.chero__stage { position: relative; display: grid; place-items: center; perspective: 1200px; opacity: 0; animation: o2-camin 1.1s var(--ease) .1s forwards; }
@keyframes o2-camin { from { opacity: 0; transform: scale(1.35) rotate(-4deg); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
.chero__glow { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(45,202,140,.28), transparent 60%); z-index: -1; animation: o2-glow 4s ease-in-out infinite alternate; }
.chero__cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); font-size: .85rem; text-decoration: none; opacity: 0; animation: o2-up .7s var(--ease) 2.2s forwards; }
.chero__cue span { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: o2-cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes o2-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .chero { grid-template-columns: 1fr; padding-top: 96px; gap: 18px; }
  .chero .phone--hero { width: min(260px, 68vw); }
  .chero__cue { display: none; }
}

/* Teléfono: el WhatsApp de tu negocio */
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #1d2b27, #0b1310 40%, #18241f); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.09), 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(45,202,140,.12); will-change: transform; }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 5; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0b1512; }
.phone--hero { animation: o2-push 9s ease-in-out infinite alternate; }
@keyframes o2-push { from { transform: rotateY(-14deg) rotateX(6deg) scale(.97); } to { transform: rotateY(-6deg) rotateX(2deg) scale(1.04); } }
.phone--hero.buzz { animation: o2-push 9s ease-in-out infinite alternate, o2-buzz .32s linear; }
@keyframes o2-buzz { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.lock { background: radial-gradient(120% 70% at 50% 0%, #17463a, #071310 70%); display: flex; flex-direction: column; align-items: center; padding: 64px 14px 14px; }
.lock__time { font: 600 4.2rem/1 var(--display); letter-spacing: -.04em; }
.lock__date { color: rgba(234,246,240,.7); font-size: .85rem; margin-top: 6px; }
.lock__badge { margin: 16px 0 14px; padding: 6px 14px; border-radius: 99px; background: rgba(255,138,91,.15); color: #FFC2A6; font-size: .8rem; border: 1px solid rgba(255,138,91,.35); }
.lock__badge b { font-variant-numeric: tabular-nums; }
.lock--day { background: radial-gradient(120% 70% at 50% 0%, #2a7a5e, #0a2a20 60%, #071310); }
.notifs { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 18px; background: rgba(234,246,240,.11); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); font-size: .78rem; line-height: 1.35; text-align: left; }
.notif b { display: block; font-size: .8rem; }
.notif small { color: rgba(234,246,240,.75); font-size: .76rem; }
.notif .ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #25D366; color: #04140E; font-weight: 800; }
.ico--wa::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #04140E; }
.notif--sum .ico { background: var(--accent); font-family: var(--display); }
.notifs .notif.drop { animation: o2-drop .55s var(--pop); }
@keyframes o2-drop { from { opacity: 0; transform: translateY(-40px) scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.notifs--static .notif { opacity: 0; transform: translateY(-30px) scale(.92); transition: opacity .35s, transform .55s var(--pop); }
.notifs--static .notif.on { opacity: 1; transform: none; }

/* ══ CRM · historia fijada ══ */
.story { height: 440vh; position: relative; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 80px clamp(16px, 5vw, 72px) 40px; max-width: 1360px; margin: 0 auto; }
.story__rail { position: absolute; top: 88px; left: clamp(16px, 5vw, 72px); display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font: 600 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.story__rail li { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); transition: all .4s var(--ease); }
.story__rail li.on { color: #04140E; background: var(--accent); border-color: var(--accent); }
.story__rail li.done { color: var(--accent-2); border-color: var(--line-hi); }
.story__texts { position: relative; min-height: 420px; }
.beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; pointer-events: none; }
.beat.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.beat.past { transform: translateY(-40px); }
.beat p { margin: 0; }
.beat__tag { font: 600 .8rem var(--display); color: var(--warm); letter-spacing: .14em; text-transform: uppercase; }
.beat[data-i="2"] .beat__tag, .beat[data-i="3"] .beat__tag { color: var(--accent); }
.beat h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; }
.beat .k { font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--dim); opacity: .18; transform: translateX(-10px); transition: opacity .45s, transform .45s var(--pop), color .45s; }
.beat .k.on { opacity: 1; transform: none; color: var(--text); }
.beat .k em { font-weight: 700; }
.beat .k--hit.on em { color: var(--warm); display: inline-block; animation: o2-kpunch .45s var(--pop); }
.beat[data-i="2"] .k--hit.on em { color: var(--accent-2); }
.story__phone { display: grid; place-items: center; perspective: 1300px; position: relative; }
.story__shadow { position: absolute; bottom: -26px; width: 60%; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(18px); z-index: -1; }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); filter: blur(10px); transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s; }
.scr.on { opacity: 1; transform: none; filter: none; }
.chat { background: #0b1714 linear-gradient(rgba(45,202,140,.03) 1px, transparent 1px) 0 0 / 100% 22px; display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 52px 14px 12px; background: #10231d; border-bottom: 1px solid var(--line); font-size: .85rem; text-align: left; }
.chat__head small { display: block; color: var(--dim); font-size: .7rem; }
.chat__head .auto { margin-left: auto; font-size: .64rem; padding: 4px 8px; border-radius: 99px; background: rgba(45,202,140,.18); color: var(--accent-2); border: 1px solid var(--line-hi); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1d3a31; font: 700 .7rem var(--display); color: var(--accent-2); flex: none; }
.chat__body { flex: 1; min-height: 0; overflow: hidden; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.chat__body > * { flex: none; }
.chat__body > :not(.on) { display: none; }
.chat__body > .on { animation: o2-bub .45s var(--pop); }
@keyframes o2-bub { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.bub { max-width: 84%; padding: 8px 11px 16px; border-radius: 14px; font-size: .8rem; line-height: 1.38; position: relative; text-align: left; }
.bub time { position: absolute; right: 9px; bottom: 3px; font-size: .58rem; color: rgba(234,246,240,.5); }
.bub.in { background: #1a2b26; align-self: flex-start; border-bottom-left-radius: 4px; }
.bub.out { background: #0f5a42; align-self: flex-end; border-bottom-right-radius: 4px; }
.bub.bot { background: linear-gradient(135deg, #12795a, #0f5a42); box-shadow: 0 0 24px rgba(45,202,140,.25); }
.bub .who { display: block; font-size: .62rem; color: var(--accent-2); font-weight: 700; margin-bottom: 2px; }
.hchip { align-self: center; display: flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: rgba(255,138,91,.14); color: #FFC2A6; font-size: .7rem; border: 1px solid rgba(255,138,91,.3); }
.clock { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.clock::after { content: ""; position: absolute; left: 50%; top: 1.5px; width: 1.5px; height: 4.5px; background: currentColor; transform-origin: bottom; animation: o2-orbit .6s linear infinite; }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 10px 13px; border-radius: 14px; background: #0f5a42; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: o2-dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.typing.gone { display: none; }
@keyframes o2-dots { 50% { transform: translateY(-4px); opacity: .4; } }
.paid { display: flex; gap: 10px; align-items: center; align-self: center; padding: 11px 14px; border-radius: 16px; background: rgba(45,202,140,.14); border: 1px solid var(--accent); font-size: .78rem; box-shadow: 0 0 40px rgba(45,202,140,.3); text-align: left; }
.paid small { display: block; color: var(--dim); font-size: .68rem; }
.paid__tick { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #04140E; display: grid; place-items: center; font-weight: 800; flex: none; }
.list { background: #0b1714; }
.list__head { display: flex; align-items: center; justify-content: space-between; padding: 54px 14px 12px; border-bottom: 1px solid var(--line); }
.list__head b { font: 700 1.2rem var(--display); }
.cnt { font-size: .72rem; color: #FFC2A6; padding: 4px 10px; border-radius: 99px; background: rgba(255,138,91,.14); }
.cnt b { font: 700 .78rem var(--body); font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(45,202,140,.07); font-size: .78rem; text-align: left; opacity: 0; transform: translateX(30px); transition: opacity .3s, transform .45s var(--pop); }
.row.on { opacity: 1; transform: none; }
.row div { flex: 1; min-width: 0; }
.row small { display: block; color: var(--dim); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row i { font-style: normal; min-width: 20px; height: 20px; border-radius: 99px; background: var(--warm); color: #1a0a03; font: 700 .65rem/20px var(--body); text-align: center; }
@media (max-width: 900px) {
  .story { height: 480vh; }
  .story__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 6px; padding: 76px 16px 16px; align-items: start; }
  .story__rail { position: static; gap: 6px; }
  .story__rail li { flex: 1; height: 4px; padding: 0; font-size: 0; border: 0; background: rgba(45,202,140,.18); }
  .story__rail li.done { background: var(--accent-2); }
  .story__texts { min-height: 190px; }
  .beat { gap: 8px; justify-content: flex-start; padding-top: 10px; }
  .beat h2 { font-size: 1.5rem; }
  .beat .k { font-size: 1rem; }
  .beat .btn { padding: 12px 20px; font-size: .92rem; }
  .story__phone .phone { width: min(58vw, calc((100svh - 330px) * 9 / 19.2)); border-radius: 34px; padding: 8px; }
  .story__phone .phone__screen { border-radius: 27px; }
  .story__phone .phone__notch { top: 14px; width: 70px; height: 20px; margin-left: -35px; }
  .scr .bub, .scr .row, .scr .notif { font-size: .7rem; }
  .chat__head, .list__head { padding-top: 40px; }
  .lock__time { font-size: 3.2rem; }
}

/* El teléfono se encoge entero hasta caber en el alto de la pantalla (--fono lo pone js/historia.js). */
@media (min-width: 901px) {
  .story__phone .phone, .chero .phone--hero { zoom: var(--fono, 1); }
}

/* ══ CRM · golpe de color pleno ══ */
.punch { min-height: 90vh; overflow-x: clip; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 22px; padding: 100px clamp(16px, 6vw, 80px); background: linear-gradient(135deg, #0f8f63 0%, #2DCA8C 45%, #22C3D6 100%); color: #03130D; position: relative; overflow: hidden; }
.punch::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 40%); animation: o2-drift 12s ease-in-out infinite alternate; }
@keyframes o2-drift { to { transform: translate3d(6vw, 8vh, 0) scale(1.15); } }
.punch > * { position: relative; margin: 0; }
.punch__line { font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.15 var(--display); letter-spacing: -.02em; opacity: .75; }
.punch__line--big { font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 800; opacity: 1; letter-spacing: -.04em; max-width: 14ch; }
.oco2 .punch__line em { color: #fff; }
.punch__sub { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 48ch; color: rgba(3,19,13,.8); font-weight: 500; }
.pw { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); transition: opacity .4s, transform .6s var(--pop); }
.punch.in .pw { opacity: 1; transform: none; }

/* ══ CRM · por dentro: paneo horizontal fijado ══ */
.behind { height: 340vh; position: relative; }
.behind__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 96px 0 30px; }
.behind__head { padding: 0 clamp(16px, 5vw, 72px); margin-bottom: 40px; max-width: 1360px; }
.behind__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.behind__track { display: flex; gap: 28px; padding: 0 clamp(16px, 5vw, 72px); will-change: transform; }
.piece { flex: none; width: min(560px, 82vw); padding: 26px 28px 28px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: border-color .4s, transform .5s var(--ease), box-shadow .5s, opacity .5s; opacity: .55; }
.piece.focus { opacity: 1; border-color: var(--line-hi); transform: translateY(-8px); box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 50px rgba(45,202,140,.12); }
.piece__n { font: 800 .8rem var(--display); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.piece h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.piece > p:not(.piece__n) { color: var(--dim); font-size: .98rem; margin: 0; min-height: 3em; }
.piece__shot { margin: 18px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-height: 34vh; width: 100%; }
.piece__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.12); transition: transform 1.4s var(--ease); display: block; }
.piece.focus .piece__shot img { transform: scale(1); }
.behind__note { padding: 18px clamp(16px, 5vw, 72px) 0; color: var(--dim); font-size: .8rem; margin: 0; }
@media (max-width: 900px) {
  .behind { height: auto; }
  .behind__stage { position: static; height: auto; padding: 90px 0 30px; }
  .behind__track { flex-direction: column; gap: 22px; transform: none !important; }
  .piece { width: 100%; padding: 20px; opacity: 1; }
  .piece.focus { transform: none; }
  .piece__shot { max-height: none; }
}

/* ══ CRM · el equipo: tres agentes que se pasan la posta ══ */
.crew { padding: clamp(90px, 11vw, 140px) clamp(16px, 5vw, 72px); max-width: 1360px; margin: 0 auto; }
.crew h2 { max-width: 18ch; }
.crew__line { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.crew__line::before { content: ""; position: absolute; top: 74px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); box-shadow: 0 0 12px rgba(45,202,140,.6); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.crew.in .crew__line::before { transform: scaleX(1); }
.crew__m { text-align: center; position: relative; opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .8s var(--pop); }
.crew.in .crew__m { opacity: 1; transform: none; }
.crew.in .crew__m:nth-child(2) { transition-delay: .55s; }
.crew.in .crew__m:nth-child(3) { transition-delay: 1.1s; }
.crew__m img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 14px; display: block; position: relative; z-index: 1; filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)); }
.crew.in .crew__m img { animation: o2-bob 3s ease-in-out infinite; }
.crew.in .crew__m:nth-child(2) img { animation-delay: .5s; }
.crew.in .crew__m:nth-child(3) img { animation-delay: 1s; }
@keyframes o2-bob { 50% { transform: translateY(-8px); } }
.crew__step { font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.crew__m h3 { font-size: 1.3rem; margin: 0 0 8px; }
.crew__m > p:last-child { color: var(--dim); margin: 0 auto; max-width: 28ch; }
@media (max-width: 820px) {
  .crew__line { grid-template-columns: 1fr; gap: 34px; }
  .crew__line::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(var(--accent), var(--teal)); }
  .crew.in .crew__line::before { transform: scaleY(1); }
  .crew__m { background: var(--bg); padding: 6px 0; }
  .crew__m img { width: 120px; height: 120px; }
}

/* ══ CRM · es tuyo: la conexión oficial con partículas ══ */
.own { padding: clamp(90px, 11vw, 140px) clamp(16px, 5vw, 72px); max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.own__sub { color: var(--dim); font-size: 1.05rem; margin: 20px 0 0; max-width: 52ch; }
.own__sub strong { color: var(--text); }
.own__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.own__list li { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(45,202,140,.05); color: var(--dim); }
.own__list b { color: var(--text); }
.own__flow { margin: 0; display: flex; flex-direction: column; align-items: center; padding: 28px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.own__chans { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.own__chans span { padding: 7px 14px; border-radius: 99px; font: 600 .8rem var(--display); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); }
.own__wire { position: relative; width: 2px; height: 64px; background: rgba(127,231,190,.25); }
.own__wire i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #A8F5D4; box-shadow: 0 0 10px var(--accent); opacity: 0; animation: o2-fall 1.8s linear infinite; }
.own__wire i:nth-child(2) { animation-delay: .6s; } .own__wire i:nth-child(3) { animation-delay: 1.2s; }
@keyframes o2-fall { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.own__node { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line-hi); background: rgba(6,30,23,.8); width: min(100%, 340px); }
.own__node b { display: block; font-family: var(--display); }
.own__node small { color: var(--dim); }
.own__node--crm { border-color: var(--accent); box-shadow: 0 0 40px rgba(45,202,140,.25); animation: o2-pulse 2.4s ease-in-out infinite; }
@keyframes o2-pulse { 50% { box-shadow: 0 0 60px rgba(45,202,140,.45); } }
.own__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(45,202,140,.15); }
.own__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.own__icon img { width: 22px; }
@media (max-width: 900px) { .own { grid-template-columns: 1fr; gap: 36px; } }

.psteps__docs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; font-size: .88rem; }
.psteps__docs a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.psteps__docs a:hover { color: var(--accent-2); }

/* Movimiento reducido: todo visible y quieto */
@media (prefers-reduced-motion: reduce) {
  .oco2 *, .oco2 *::before, .oco2 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
