/* ==========================================================================
   Mi Solución Digital · Capa de animación (prototipo /motion-lab/)
   Solo aplica con html.m (JS activo y sin "reducir movimiento").
   Sin html.m la página se ve exactamente igual que hoy.
   Principios: solo transform / opacity / clip-path, curvas ease-out,
   hover solo en dispositivos con puntero fino.
   ========================================================================== */

:root {
  --m-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --m-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --m-io: cubic-bezier(0.77, 0, 0.175, 1);
  --m-r: clamp(22px, 3.2vw, 44px);
}

/* ---------- Texto dividido en líneas (máscara para el revelado) ---------- */
.m .m-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.m .h-kicker::before { transform: scaleX(var(--k, 1)); transform-origin: left; }

/* ------------------------------- Hero ---------------------------------- */
.m .h-hero { padding-bottom: var(--m-r); }
.m .h-hero__photo img { animation: none; }
.m .h-hero__photo, .m .h-hero__inner { will-change: transform; }
.m .h-funnel__rows i::after { transform: scaleX(var(--fill, 0)) !important; transition: none !important; }
.m .h-funnel__events span svg { transition: transform 0.4s var(--m-expo); }

/* Transición entre secciones: cada una sube como una hoja sobre la anterior */
.m main > .h-sec { margin-top: calc(var(--m-r) * -1); border-radius: var(--m-r) var(--m-r) 0 0; z-index: 1; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.55); }
.m .h-hero { z-index: 0; }

/* Embudo: constelación de prospectos en el fondo */
.m-cosmos { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; border-radius: inherit; }
.m #embudo > .h-wrap { position: relative; z-index: 1; }

/* Embudo: prospectos que fluyen por las líneas cuando el embudo está armado */
.m .m-lead { fill: var(--sky); opacity: 0; transition: opacity 0.6s ease; }
.m .h-flow.is-live .m-lead { opacity: 1; }
/* Experiencia: punto que viaja de CDMX a Bogotá */
.m .m-plane { fill: var(--ink); stroke: var(--sky); stroke-width: 2; }
/* Contacto: el formulario se enciende cuando el hilo llega */
.m .h-form { transition: box-shadow 0.8s var(--m-expo); }
.m .h-form.m-arrived { box-shadow: 0 0 0 2px var(--sky), 0 30px 80px -30px rgba(56, 182, 255, 0.55); }
.m .h-sec--ink .m-thread__track { background-image: linear-gradient(180deg, var(--line-ink) 55%, transparent 0); }
.m .h-sec--ink .m-node { background: var(--ink); border-color: rgba(255, 255, 255, 0.28); }

/* ------------------------------ El hilo -------------------------------- */
.m-thread { position: absolute; top: 0; left: 0; width: 2px; height: var(--th, 0px); pointer-events: none; z-index: 1; }
.m-thread__track { position: absolute; inset: 0; background-image: linear-gradient(180deg, var(--line-paper) 55%, transparent 0); background-size: 2px 9px; }
.m-thread__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky), var(--blue-deep) 70%); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }
.m-thread__tip { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 5px rgba(56, 182, 255, 0.18), 0 0 26px 6px rgba(56, 182, 255, 0.5); transform: translateY(calc(var(--p, 0) * var(--th, 0px))); }
.m-node { position: absolute; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--paper); border: 2px solid rgba(10, 13, 18, 0.22); transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.5s var(--m-expo); }
.m-node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sky); opacity: 0; }
.m-node.is-lit { border-color: var(--blue-deep); background: var(--sky); transform: scale(1.2); }
.m-node.is-lit::after { animation: m-ping 0.9s var(--m-quart); }
@keyframes m-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }

/* ----------------------- Metodología · escritorio ----------------------- */
@media (min-width: 901px) {
  /* Cambio de imagen con cortinilla en lugar de fundido */
  .m .h-shot { opacity: 1; transform: scale(1.04); clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--m-io), transform 1.4s var(--m-expo); z-index: 1; }
  .m .h-shot.is-on { clip-path: inset(0 0 0 0); transform: none; z-index: 2; }
  .m .h-shot.is-out { clip-path: inset(0 0 100% 0); transform: scale(0.98); }
  .m [data-dir="up"] .h-shot:not(.is-on):not(.is-out) { clip-path: inset(0 0 100% 0); }
  .m [data-dir="up"] .h-shot.is-out { clip-path: inset(100% 0 0 0); }

  /* Barra de avance continua (sigue el scroll, no salta) */
  .m .h-stage__meter i { width: 100% !important; transform: scaleX(var(--mp, 0.2)); transform-origin: left; transition: none; }
  .m [data-step-now] { display: inline-block; min-width: 2ch; }

  /* El número del paso se llena de color de izquierda a derecha */
  .m .h-step__num { color: transparent !important; background: linear-gradient(90deg, var(--blue-deep) 50%, transparent 50%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; transition: background-position 1s var(--m-expo), -webkit-text-stroke-color 0.6s ease; }
  .m .h-step.is-on .h-step__num { background-position: 0 0; }
  .m .h-step__title, .m .h-step > p { transition: transform 0.9s var(--m-expo); }
  .m .h-step:not(.is-on) .h-step__title { transform: translateY(10px); }
  .m .h-step:not(.is-on) > p { transform: translateY(16px); }
}

/* ------------- Metodología · móvil: tarjetas que se apilan -------------- */
@media (max-width: 900px) {
  .m-thread { display: none; }
  .m-stack .h-steps { display: block; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
  .m-stack .h-step, .m-stack .h-step:first-child, .m-stack .h-step:last-child { position: sticky; top: var(--top, calc(var(--nav-h) + 12px + var(--i, 0) * 9px)); max-width: none; margin-bottom: 16px; transform-origin: 50% 0; box-shadow: 0 -16px 40px -24px rgba(10, 13, 18, 0.4); }
  .m-stack .h-step:last-child { margin-bottom: 0; }
  .m-stack .h-step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: calc(var(--dim, 0) * 0.4); pointer-events: none; }
  .m-stack .h-step__img { aspect-ratio: 2 / 1; }
  .m-stack ~ .h-method__dots, .m-stack .h-method__dots { display: none; }
}

/* ----------------------------- Experiencia ------------------------------ */
/* Mapa de puntos en la tarjeta de presencia */
.m .h-tile--sky.has-map .h-route { display: none; }
.m-map { position: absolute; right: -4%; top: clamp(30px, 3vw, 46px); width: 92%; height: auto; overflow: visible; pointer-events: none; }
.m-map__land circle { fill: var(--ink); opacity: 0.22; }
.m-map__arc { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.m-map__plane { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.m-city__dot { fill: var(--ink); }
.m-city__ring { fill: none; stroke: var(--ink); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: m-city 2.2s var(--m-quart) infinite; }
.m-city:nth-of-type(2) .m-city__ring { animation-delay: 1.1s; }
.m-city text { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: 0.04em; fill: var(--ink); }
@keyframes m-city { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }
@media (max-width: 900px) {
  .m-map { width: 112%; right: -14%; top: 44px; }
  .m-city text { font-size: 34px; }
  /* La fila activa ocupa todo el ancho de la pantalla */
  .m .h-index li::before { left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); }
}

/* Reflejo que sigue al cursor en las tarjetas */
.m-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.16), transparent 60%); opacity: 0; transition: opacity 0.4s ease; }
.h-tile:hover .m-glare { opacity: 1; }
.m .h-tile { will-change: transform; }

/* Fortalezas: la fila activa por scroll toma el estilo del hover */
.m .h-index li.is-active { color: var(--on-ink); }
.m .h-index li.is-active::before { transform: none; }
.m .h-index li.is-active .h-index__n { color: var(--sky); -webkit-text-stroke-color: var(--sky); }
.m .h-index li.is-active p { color: #c4ccd6; }
.m .h-index li.is-active .h-index__ic { background: var(--sky); border-color: var(--sky); color: var(--ink); transform: rotate(-8deg) scale(1.06); }
@media (hover: hover) {
  /* El hover ya no compite con la fila activa ni mueve el layout */
  .m .h-index li:hover:not(.is-active) { color: inherit; padding-inline: clamp(0px, 1.6vw, 24px); }
  .m .h-index li:hover:not(.is-active)::before { transform: scaleY(0); }
  .m .h-index li:hover:not(.is-active) .h-index__n { color: transparent; -webkit-text-stroke-color: var(--on-paper); }
  .m .h-index li:hover:not(.is-active) p { color: var(--on-paper-2); }
  .m .h-index li:hover:not(.is-active) .h-index__ic { background: transparent; border-color: var(--line-paper); color: var(--blue-deep); transform: none; }
  .m .h-index li.is-active { padding-inline: clamp(0px, 1.6vw, 24px); }
}

/* ------------------- Tecnología: el stack en vista explotada ------------------- */
.m .h-tech { overflow: clip; }
.m .h-tech.has-s3 { padding-bottom: 0; }
.m .h-tech.has-s3 .h-caps { display: none; }
.m-s3 { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(48px, 6vw, 96px); height: 420vh; }
.m-s3__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.m-s3__view { position: absolute; top: 0; bottom: 0; left: 44%; right: 0; display: grid; place-items: center; perspective: 1800px; }
.m-s3__scene { --pw: min(30vw, 440px); position: relative; width: var(--pw); height: calc(var(--pw) * 0.625); transform-style: preserve-3d; }
.m-s3__layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.m-s3__panel { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(56, 182, 255, 0.22); opacity: 0.38;
  background: radial-gradient(90% 90% at 50% 0%, rgba(56, 182, 255, 0.16), transparent 70%), linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 100%, rgba(13, 18, 25, 0.94);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85); transition: transform 0.7s var(--m-expo), opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.5s ease; }
.m-s3__layer.is-on .m-s3__panel { opacity: 1; transform: translateZ(44px); border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky), 0 0 70px -6px rgba(56, 182, 255, 0.55), 0 40px 70px -30px rgba(0, 0, 0, 0.85); }
.m-s3__tag { position: absolute; left: 14px; top: 12px; font-family: var(--f-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-2); }
.m-s3__layer.is-on .m-s3__tag { color: var(--sky); }
.m-s3__art { width: 72%; display: grid; place-items: center; }
.m-s3__art svg { width: 100%; height: auto; overflow: visible; fill: none; stroke: #9fb0c2; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.m-s3__art .f { fill: var(--sky); stroke: var(--sky); }
.m-s3__art .k { stroke: var(--ink); stroke-width: 2; }
.m-s3__beam { position: absolute; width: 2px; height: calc(var(--gap, 70px) * 3); margin-left: -1px; transform-origin: 50% 0; transform: translateZ(calc(var(--gap, 70px) * -1.5)) rotateX(90deg); background: linear-gradient(180deg, rgba(56, 182, 255, 0), rgba(56, 182, 255, 0.55) 20%, rgba(56, 182, 255, 0.55) 80%, rgba(56, 182, 255, 0)); opacity: 0; }
.m-s3__beam i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #bfe6ff; box-shadow: 0 0 12px 3px rgba(56, 182, 255, 0.8); animation: m-beam 1.8s linear infinite; }
@keyframes m-beam { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(calc(var(--gap, 70px) * 3)); opacity: 0; } }

.m-s3__copy { position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); width: min(36vw, 470px); display: flex; align-items: center; }
.m-s3__copyin { width: 100%; }
.m-s3__kicker { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--on-ink-2); margin-bottom: 26px; }
.m-s3__kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.m-s3__items { position: relative; min-height: 15rem; }
.m-s3__item { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.7s var(--m-expo); }
.m-s3__item.is-on { opacity: 1; transform: none; }
.m-s3__n { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.05em; color: var(--sky); margin-bottom: 14px; }
.m-s3__item h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 14px; color: var(--on-ink); }
.m-s3__item p { font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; color: var(--on-ink-2); max-width: 34ch; }
.m-s3__meter { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--on-ink-2); }
.m-s3__meter b:first-child { color: var(--on-ink); }
.m-s3__meter span { flex: 1; height: 1px; background: var(--line-ink); position: relative; }
.m-s3__meter i { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--sky); transform-origin: left; transform: scaleX(0.25); }

/* El video vive dentro del escenario y se descubre desde la pantalla */
.m-s3__stage .h-cine { position: absolute; inset: 0; z-index: 5; margin: 0; width: auto; aspect-ratio: auto; min-height: 0; border-radius: 0; }
.m-s3__stage .h-cine p { padding-bottom: clamp(48px, 8vh, 96px); padding-left: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); max-width: 30ch; box-sizing: content-box; }

@media (max-width: 900px) {
  .m-s3 { height: 360vh; }
  .m-s3__view { left: 0; right: 0; top: calc(var(--nav-h) + 36px); bottom: auto; height: 44%; }
  .m-s3__scene { --pw: min(60vw, 300px); }
  .m-s3__copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); align-items: flex-end; }
  .m-s3__kicker { margin-bottom: 14px; }
  .m-s3__items { min-height: 11.5rem; }
  .m-s3__n { font-size: 2.2rem; margin-bottom: 6px; }
  .m-s3__item h3 { font-size: 1.6rem; margin-bottom: 8px; }
  .m-s3__item p { font-size: 0.98rem; }
  .m-s3__meter { margin-top: 16px; }
  .m-s3__stage .h-cine p { padding-bottom: calc(110px + env(safe-area-inset-bottom)); max-width: 22ch; }
}

/* --------------------- Proyectos: galería horizontal fija --------------------- */
.m .h-sec.has-pg { overflow: clip; }
.m-pg { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.m-pg__stage { --side: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); --ch: min(60vh, 600px);
  position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  padding: calc(var(--nav-h) + 22px) 0 clamp(20px, 3vh, 36px); }
.m-pg__top { padding-inline: var(--side); }
.m-pg__top .h-filters { margin-bottom: 0; }
.m-pg__view { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; }
.m-pg__bg { position: absolute; left: 0; right: 0; top: 50%; z-index: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(5rem, 17vw, 16rem); line-height: 1; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(10, 13, 18, 0.13); transform: translateY(-50%); }
.m-pg .h-cases { position: relative; z-index: 1; display: flex !important; gap: clamp(14px, 1.6vw, 24px); width: max-content; margin: 0 !important;
  padding: 0 var(--side) !important; overflow: visible !important; scroll-snap-type: none !important; grid-template-columns: none; will-change: transform; }
.m-pg .h-case { flex: 0 0 auto !important; width: calc(var(--ch) * 1.15); height: var(--ch); max-width: none !important; scroll-snap-align: none !important;
  opacity: 1 !important; transform: none !important; transition: none !important; }
.m-pg .h-case--wide { width: calc(var(--ch) * 1.8); }
.m-pg .h-case__img, .m-pg .h-case--wide .h-case__img { height: 100%; aspect-ratio: auto !important; overflow: hidden; }
.m-pg .h-case__img img { transition: none !important; will-change: transform; }
.m-pg .h-case::after { opacity: 1; transform: none; }
.m-pg .h-case.is-act { box-shadow: 0 40px 80px -40px rgba(10, 13, 18, 0.6); }
.m-pg__meter { display: flex; align-items: center; gap: 14px; padding-inline: var(--side); margin-top: clamp(14px, 2.4vh, 28px);
  font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; color: var(--on-paper-2); }
.m-pg__meter b:first-child { color: var(--on-paper); }
.m-pg__meter span { flex: 1; height: 1px; background: var(--line-paper); position: relative; }
.m-pg__meter i { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--blue-deep); transform-origin: left; transform: scaleX(0.04); }
@media (max-width: 900px) {
  .m-pg__stage { --ch: min(50svh, 440px); padding: calc(var(--nav-h) + 14px) 0 calc(92px + env(safe-area-inset-bottom)); }
  .m-pg .h-case, .m-pg .h-case--wide { width: min(82vw, calc(var(--ch) * 0.9)); }
  .m-pg__bg { font-size: 26vw; }
}

/* ------------------------ Testimonios: carrete fijo ------------------------ */
.m-tr { position: relative; }
.m-tr__stage { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.m-tr__stage > .h-testi { width: 100%; }
.h-testi.is-reel .h-testi__video { min-height: min(62vh, 560px); will-change: clip-path; }
.h-testi.is-reel .h-testi__body { position: relative; justify-content: center; gap: clamp(20px, 3vh, 36px); }
.h-testi.is-reel .h-quotes { display: grid; overflow: visible; }
.h-testi.is-reel .h-quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.7s var(--m-expo), visibility 0s 0.5s; }
.h-testi.is-reel .h-quote.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.h-testi.is-reel .h-quote blockquote::before { display: none; }
.h-testi.is-reel .h-dots { display: none; }
.m-tr__mark { display: none; }
.h-testi.is-reel .m-tr__mark { display: block; font-family: var(--f-display); font-size: clamp(5rem, 9vw, 8.5rem); line-height: 0.6; height: 0.5em; color: var(--sky); transform-origin: 30% 60%; }
.m-tr__meter { display: none; }
.h-testi.is-reel .m-tr__meter { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--on-ink-2); }
.m-tr__meter b:first-child { color: var(--on-ink); }
.m-tr__meter span { flex: 1; height: 1px; background: var(--line-ink); position: relative; }
.m-tr__meter i { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--sky); transform-origin: left; transform: scaleX(0.12); }
@media (max-width: 900px) {
  .m-tr__stage { padding-top: calc(var(--nav-h) + 8px); padding-bottom: calc(88px + env(safe-area-inset-bottom)); align-items: flex-start; }
  .h-testi.is-reel { gap: 16px; }
  /* En móvil el video es el fondo de la cita */
  .h-testi.is-reel { position: relative; display: block; }
  .h-testi.is-reel .h-testi__video { position: absolute; z-index: 0; top: -14px; bottom: -14px; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); min-height: 0; aspect-ratio: auto; height: auto; opacity: 0.42; }
  .h-testi.is-reel .h-testi__body { position: relative; z-index: 1; }
  .h-testi.is-reel .h-quote { gap: 18px; padding-top: 14px; }
  .h-testi.is-reel .h-quote blockquote { font-size: 1.1rem; line-height: 1.34; }
  .h-testi.is-reel .m-tr__mark { font-size: 4rem; }
}

/* ------------------------- WhatsApp flotante vivo ------------------------- */
.m .h-wa { transition: box-shadow 0.4s ease; isolation: isolate; }
.m .h-wa:hover { transform: none; box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.6); }
.m .h-wa img { position: relative; z-index: 1; }
.m-wa__pill { position: absolute; right: 0; top: 0; z-index: -1; width: 196px; height: 100%; border-radius: 999px; background: #25d366;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45); transform-origin: right center; transform: scaleX(0.3); opacity: 0;
  transition: transform 0.55s var(--m-expo), opacity 0.3s ease; }
.m-wa__label { position: absolute; right: 70px; top: 50%; z-index: 0; white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: #fff;
  transform: translate(12px, -50%); opacity: 0; transition: transform 0.5s var(--m-expo), opacity 0.3s ease; pointer-events: none; }
.h-wa.is-open .m-wa__pill { transform: scaleX(1); opacity: 1; }
.h-wa.is-open .m-wa__label { transform: translate(0, -50%); opacity: 1; transition-delay: 0.08s; }

.m-wa__bubble { position: fixed; right: 22px; bottom: 94px; z-index: 91; max-width: min(300px, calc(100vw - 32px)); padding: 13px 16px; border-radius: 18px 18px 4px 18px;
  background: #fff; color: var(--ink); font-family: var(--f-body); font-size: 0.94rem; font-weight: 500; line-height: 1.35; text-decoration: none;
  box-shadow: 0 20px 50px -18px rgba(10, 13, 18, 0.45), 0 0 0 1px rgba(10, 13, 18, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.92); transform-origin: right bottom;
  transition: opacity 0.35s ease, transform 0.5s var(--m-expo), visibility 0s 0.35s; }
.m-wa__bubble.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.m-wa__typing { display: none; gap: 4px; padding: 4px 2px; }
.m-wa__bubble.is-typing .m-wa__typing { display: inline-flex; }
.m-wa__bubble.is-typing .m-wa__msg { display: none; }
.m-wa__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b3; animation: m-typing 1s ease-in-out infinite; }
.m-wa__typing i:nth-child(2) { animation-delay: 0.15s; } .m-wa__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes m-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .m-wa__bubble:hover { box-shadow: 0 20px 50px -18px rgba(10, 13, 18, 0.5), 0 0 0 2px #25d366; } }
@media (max-width: 900px) { .m-wa__bubble { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* --------------------------- Hover responsables ------------------------- */
/* En pantallas táctiles el hover se queda "pegado" al tocar: se neutraliza */
@media (hover: none) {
  .m .h-case:hover .h-case__img img, .m .h-post:hover .h-post__img img { transform: none; }
  .m .h-btn:hover svg, .m .h-sect__item:hover svg { transform: none; }
  .m .h-sect__item:hover { background: transparent; color: inherit; }
  .m .h-sect__item:hover svg { color: var(--blue-deep); }
}
@media (hover: hover) and (pointer: fine) {
  .m .h-funnel:hover .h-funnel__events span svg { transform: scale(1.15); }
}
