/* ==========================================================================
   JACK DIGITAL — Inicio (home)
   Noche tecnológica: azul profundo, lila, verde WhatsApp. Poppins.
   Las demás páginas siguen usando css/styles.css.
   ========================================================================== */

:root {
  --night: #050720;
  --night-2: #0a0d33;
  --navy: #0a146d;
  --navy-2: #1b2bb0;
  --lila: #b9a8f0;
  --violet: #7c5cff;
  --blue: #4f8bff;
  --green: #25d366;
  --ink: #0f1430;
  --muted: #5b6080;
  --paper: #f6f5fc;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.06);
  --soft: rgba(233, 229, 255, 0.72);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --m: clamp(18px, 4vw, 40px);
  --r: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: #fff; background: var(--night);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--lila); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--m) * 2); margin: 0 auto; padding: 0 var(--m); }
.center { text-align: center; margin-top: 48px; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 300; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.grad { color: var(--lila); }
.grad--dark { color: #5a3df0; }
.sun { color: #ffd166; }
.hero h1 .sun,
.hero h1 .grad { color: #fff; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lila); margin-bottom: 16px; }
.eyebrow--dark { color: var(--violet); }

/* Botones ------------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background-color 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--green { background: var(--green); color: #05230f; box-shadow: 0 10px 34px rgba(37, 211, 102, 0.38); }
.btn--green:hover { box-shadow: 0 16px 46px rgba(37, 211, 102, 0.55); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn--navy { background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(15, 20, 48, 0.25); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 62px; padding: 0 36px; font-size: 17px; }

/* Barra de progreso y cabecera ------------------------------------------------ */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 210; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--blue), var(--green)); }

.nav {
  position: fixed; top: 14px; left: 50%; z-index: 200;
  width: min(calc(100% - 24px), 1180px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 10px 8px 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease, transform 500ms var(--ease), backdrop-filter 300ms ease;
}
.nav.is-solid { background: rgba(8, 10, 40, 0.72); border-color: var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav.is-away { transform: translate(-50%, -140%); }
.logo { position: relative; display: block; width: 112px; height: 46px; overflow: hidden; }
.logo img { position: absolute; width: 124px; height: 124px; max-width: none; top: -39px; left: -6px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 15px; font-weight: 500; color: var(--soft); }
.nav__links a { padding: 8px 0; transition: color 200ms ease; }
.nav__links a:hover { color: #fff; }

/* Primera pantalla ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(92px, 15vh, 128px) 0 0;
  background: radial-gradient(120% 90% at 80% 0%, #16209a 0%, var(--navy) 28%, var(--night-2) 62%, var(--night) 100%);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.hero__glow--a { width: 520px; height: 520px; right: -120px; top: 8%; background: #6b4fff; animation: breathe 9s ease-in-out infinite; }
.hero__glow--b { width: 420px; height: 420px; left: -160px; bottom: 6%; background: #1a6bff; opacity: 0.35; animation: breathe 11s ease-in-out -4s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) translate3d(0, 0, 0); } 50% { transform: scale(1.18) translate3d(-24px, 18px, 0); } }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 64px); align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--soft); margin-bottom: clamp(12px, 2.6vh, 24px); }
.chip b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } }

.hero h1 { font-size: clamp(34px, min(4.5vw, 9.4vh), 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero__lead { margin-top: clamp(14px, 2.6vh, 24px); max-width: 54ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(18px, 3.6vh, 34px); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: clamp(16px, 3.4vh, 34px); font-size: 14px; color: var(--soft); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.300 8.300l2.400 2.400 5-5.200' fill='none' stroke='%2305230f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.hero__copy > * { animation: up 900ms var(--ease-expo) both; }
.hero__copy > :nth-child(2) { animation-delay: 80ms; }
.hero__copy > :nth-child(3) { animation-delay: 160ms; }
.hero__copy > :nth-child(4) { animation-delay: 240ms; }
.hero__copy > :nth-child(5) { animation-delay: 320ms; }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 640px; padding-bottom: 36px; animation: up 1100ms var(--ease-expo) 200ms both; }

.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(185, 168, 240, 0.28); animation: spin 26s linear infinite; pointer-events: none; }
.orbit i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--lila); box-shadow: 0 0 18px 4px rgba(185, 168, 240, 0.8); }
.orbit--1 { width: 520px; height: 520px; }
.orbit--2 { width: 680px; height: 680px; animation-duration: 44s; animation-direction: reverse; border-style: dashed; opacity: 0.6; }
.orbit--2 i { background: var(--green); box-shadow: 0 0 18px 4px rgba(37, 211, 102, 0.7); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Teléfono */
.phone {
  position: relative; width: min(330px, 100%);
  background: #0b0d18; padding: 9px; border-radius: 40px;
  display: flex; flex-direction: column;
  color: #1c1b22; font-size: 14.5px; line-height: 1.35;
  box-shadow: 0 40px 90px rgba(3, 4, 30, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 80px rgba(124, 92, 255, 0.35);
}
.phone--hero { will-change: transform; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; background: #1f2c34; color: #fff; border-radius: 31px 31px 0 0; }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--blue)); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.phone__who { display: grid; }
.phone__who b { font-weight: 600; font-size: 15px; }
.phone__who span { font-size: 12px; color: #8fe3b4; }
.phone__chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px 18px; background: #ece5dd; border-radius: 0 0 31px 31px; overflow: hidden; }
.msg { max-width: 86%; padding: 8px 11px 7px; border-radius: 4px 14px 14px 14px; background: #fff; align-self: flex-start; flex-shrink: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.msg--out { background: #d9fdd3; align-self: flex-end; border-radius: 14px 4px 14px 14px; }
.msg time { display: block; text-align: right; font-size: 11.5px; color: #54656f; margin-top: 2px; }
.msg--typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg--typing i, .bub--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ab; animation: blink 1s ease-in-out infinite; }
.msg--typing i:nth-child(2), .bub--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3), .bub--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
/* Pantallas que rotan dentro del teléfono de portada */
.phone--hero { height: 580px; width: 316px; }
.screen { position: absolute; inset: 9px; border-radius: 31px; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: var(--ink); opacity: 0; visibility: hidden; transform: scale(1.05); transition: opacity 500ms ease, transform 900ms var(--ease-expo), visibility 0s linear 500ms; }
.screen.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.screen small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.screen .msg, .crmx__col p { opacity: 0; }
.screen.is-on .msg, .screen.is-on .crmx__col p { animation: pop 460ms var(--ease) both; animation-delay: calc(var(--i) * 520ms + 350ms); }
.screen .phone__bar { border-radius: 0; }
.screen .phone__chat { border-radius: 0; }

.ig__top, .ads__top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; font-size: 13.5px; line-height: 1.25; }
img.ig__av { background: #fff; }
.ig__av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff7eb6, #ffb86c 60%, var(--violet)); color: #fff; font-size: 11.5px; font-weight: 700; }
.screen--social > img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.ig__row { display: flex; align-items: center; gap: 6px; padding: 12px 14px 4px; }
.ig__like { color: #ff3b6b; display: grid; margin-right: 4px; }
.screen.is-on .ig__like { animation: beat 900ms var(--ease) 700ms both; }
@keyframes beat { 0% { transform: scale(0.2); opacity: 0; } 55% { transform: scale(1.35); opacity: 1; } 100% { transform: none; opacity: 1; } }
.ig__pill { padding: 4px 10px; border-radius: 999px; background: #f0eefa; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ig__cap { padding: 6px 14px 0; font-size: 12.5px; line-height: 1.4; color: #3a3f5c; }
.ig__cap b { color: var(--ink); }
.ig__plan { display: flex; gap: 5px; margin-top: auto; padding: 12px 14px 16px; }
.ig__plan span { flex: 1; padding: 6px 0; border-radius: 8px; background: #f0eefa; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ig__plan .is-done { background: var(--violet); color: #fff; }

.screen--reel { background: #000; color: #fff; }
.screen--reel > img { width: 100%; height: 100%; object-fit: cover; }
.screen--reel.is-on > img { animation: kenburns 6s var(--ease) both; }
.reel__top { position: absolute; left: 16px; top: 16px; font-size: 17px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.reel__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(8, 10, 40, 0.6); border: 1px solid rgba(255, 255, 255, 0.6); }
.reel__play::after { content: ''; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.screen--reel.is-on .reel__play { animation: fadeout 700ms ease 900ms both; }
@keyframes fadeout { to { opacity: 0; transform: scale(1.5); } }
.reel__who { position: absolute; left: 12px; right: 12px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(8, 10, 40, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13.5px; line-height: 1.3; }
.reel__who img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.reel__who small { color: var(--soft); }
.reel__bar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.reel__bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.screen--reel.is-on .reel__bar i { animation: fill 4200ms linear both; }
@keyframes fill { to { transform: scaleX(1); } }

.screen--photo { background: #000; }
.screen--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.screen--photo.is-on img { animation: kenburns 6s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.vf { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.9); }
.vf--a { left: 18px; top: 18px; border-right: 0; border-bottom: 0; } .vf--b { right: 18px; top: 18px; border-left: 0; border-bottom: 0; }
.vf--c { left: 18px; bottom: 86px; border-right: 0; border-top: 0; } .vf--d { right: 18px; bottom: 86px; border-left: 0; border-top: 0; }
.photo__tag { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 11px 14px; border-radius: 16px; background: rgba(8, 10, 40, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13.5px; line-height: 1.3; }
.photo__tag small { color: var(--soft); }

.screen--ads img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ads__cta { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: #eef7f1; font-size: 12.5px; font-weight: 600; color: #0b6b31; }
.ads__bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: auto; padding: 0 14px; }
.ads__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--violet), #c9bdff); transform-origin: 50% 100%; transform: scaleY(0.1); transition: transform 900ms var(--ease-expo); }
.ads__bars i:last-child { background: linear-gradient(180deg, #17b856, #9af0bd); }
.screen.is-on .ads__bars i { transform: none; }
.ads__bars i:nth-child(2) { transition-delay: 90ms; } .ads__bars i:nth-child(3) { transition-delay: 180ms; } .ads__bars i:nth-child(4) { transition-delay: 270ms; } .ads__bars i:nth-child(5) { transition-delay: 360ms; } .ads__bars i:nth-child(6) { transition-delay: 450ms; }
.ads__note { padding: 8px 14px 14px; font-size: 11.5px; color: var(--muted); }

.screen--chat { background: #ece5dd; }
.screen--chat .phone__bar { padding-top: 18px; }

.screen--crm { background: var(--paper); padding: 0 12px 14px; gap: 10px; }
.crmx__top { margin: 0 -12px; padding: 18px 16px 14px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.25; }
.crmx__top small { color: var(--soft); }
.crmx__col { padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #e6e3f5; display: grid; gap: 7px; }
.crmx__col h4 { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.crmx__col h4 i { font-style: normal; min-width: 20px; text-align: center; border-radius: 999px; background: #ece7ff; color: #4a2fd0; }
.crmx__col p { padding: 8px 10px; border-radius: 10px; background: #f6f5fc; font-size: 12.5px; line-height: 1.3; }
.crmx__col--win { border-color: #a7e9c2; }
.crmx__col--win p { background: #e4fbee; }
.crmx__col--win h4 i { background: var(--green); color: #05230f; }

.badge { position: absolute; right: 2%; top: 12%; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #0d1030; color: #fff; font-size: 13.5px; box-shadow: 0 14px 34px rgba(3, 4, 30, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14); will-change: transform; }
.badge b { font-weight: 600; }
.badge.is-swap { animation: pop 420ms var(--ease) both; }

.showbar { position: absolute; left: 50%; bottom: -8px; z-index: 2; width: min(430px, 100%); margin-left: max(-215px, -50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.97); color: var(--ink); box-shadow: 0 22px 56px rgba(3, 4, 30, 0.5); font-size: 14px; font-weight: 600; line-height: 1.25; will-change: transform; }
.showbar__ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.showbar__ico img { width: 30px; height: 30px; filter: invert(1); }
.showbar__label { flex: 1; min-width: 0; }
.showbar__label.is-swap { animation: up 500ms var(--ease-expo) both; }
.showbar__dots { display: flex; gap: 5px; }
.showbar__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cfc9e6; cursor: pointer; transition: width 400ms var(--ease), background-color 300ms ease; }
.showbar__dots button.is-on { width: 24px; background: var(--violet); }
.showbar__dots button::after { content: ''; position: absolute; }

/* Cinta */
.marquee { position: relative; margin-top: clamp(20px, 4vh, 64px); padding: 20px 0; border-top: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee__track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(233, 229, 255, 0.6); white-space: nowrap; }
.marquee__track span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lila); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cifras ------------------------------------------------------------------------ */
.stats { background: var(--night); padding: clamp(56px, 7vw, 96px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 24px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff; }
.stat > span { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--soft); }

/* La historia ---------------------------------------------------------------------- */
.story { position: relative; background: var(--night); }
.story__stage { position: relative; padding: clamp(80px, 9vw, 130px) 0; overflow: hidden; }
.story__sky { position: absolute; inset: 0; background: radial-gradient(90% 70% at 20% 10%, #1a1f8a 0%, #0a0d3a 45%, var(--night) 100%); }
.story__sun { position: absolute; left: 50%; bottom: -55vh; width: 150vw; height: 110vh; margin-left: -75vw; border-radius: 50%; background: radial-gradient(closest-side, #ffd9a0 0%, #ff9d6c 28%, rgba(214, 92, 190, 0.55) 55%, rgba(124, 92, 255, 0) 75%); opacity: var(--dawn, 0); transform: translateY(calc((1 - var(--dawn, 0)) * 30vh)); pointer-events: none; }
.story__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }

.story__text h2 { max-width: 16ch; }
.story__clock { margin: 22px 0 14px; font-size: clamp(56px, 8.4vw, 124px); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; white-space: nowrap; font-variant-numeric: tabular-nums; text-shadow: 0 0 60px rgba(124, 92, 255, 0.55); }
.story__caps { display: grid; gap: 12px; max-width: 36ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--soft); }
.story__caps b { color: #fff; font-weight: 600; }
.story__rail { display: none; }
.story__foot { margin-top: 24px; font-size: 13.5px; color: rgba(233, 229, 255, 0.6); max-width: 46ch; }
.story__foot a { color: var(--lila); font-weight: 600; white-space: nowrap; }
.story__foot a:hover { color: #fff; }

.story__device { display: grid; gap: 20px; justify-items: center; }

.crm { width: min(310px, 100%); background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 20px; font-size: 14px; line-height: 1.35; box-shadow: 0 30px 70px rgba(3, 4, 30, 0.55), 0 0 0 1px rgba(124, 92, 255, 0.25); }
.crm__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.crm__head b { font-weight: 700; font-size: 16px; }
.crm__head span { color: var(--muted); font-size: 12.5px; }
.crm dl { display: grid; gap: 7px; }
.crm dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.crm dt { color: var(--muted); }
.crm dd { font-weight: 600; }
.crm__state { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: #d9fbe6; color: #0b6b31; font-weight: 700; font-size: 12.5px; }
.crm__note { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: linear-gradient(100deg, var(--navy-2), var(--violet)); color: #fff; font-weight: 600; }

/* Con script y sin "reducir movimiento": la historia se fija y avanza con el scroll */
.js-story .story { height: 440vh; }
.js-story .story__stage { position: sticky; top: 0; height: 100svh; padding: clamp(28px, 6vh, 72px) 0 clamp(20px, 4vh, 40px); display: flex; align-items: center; }
.js-story .story__grid { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.js-story .story__text { min-height: 0; }
.js-story .story__text h2 { font-size: clamp(22px, min(4.2vw, 5.4vh), 54px); }
.js-story .story__clock { font-size: clamp(44px, min(8.4vw, 15vh), 124px); margin: clamp(8px, 2.4vh, 22px) 0 clamp(6px, 1.6vh, 14px); }
.js-story .story__caps { font-size: clamp(15px, min(1.5vw, 2.7vh), 22px); }
.js-story .story__text .eyebrow { margin-bottom: clamp(6px, 1.6vh, 16px); }
.js-story .story__caps { position: relative; display: block; min-height: 4.4em; }
.js-story .story__caps li { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 260ms ease, transform 520ms var(--ease), visibility 0s linear 260ms; }
.js-story .story__caps li.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js-story .story__rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.story__rail li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: rgba(233, 229, 255, 0.55); transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
.story__rail li.is-done { color: #fff; border-color: rgba(185, 168, 240, 0.5); }
.story__rail li.is-now { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
.js-story .story__device { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; min-height: 0; }
.js-story .story .phone { height: min(620px, 100%); width: min(330px, 100%); }
.js-story .story .msg { display: none; }
.js-story .story .msg.is-on { display: block; animation: pop 420ms var(--ease) both; transform-origin: 0 100%; }
.js-story .story .msg--out.is-on { transform-origin: 100% 100%; }
.js-story .crm { position: absolute; left: -6%; bottom: 8%; opacity: 0; transform: translateY(46px) rotate(-4deg) scale(0.94); pointer-events: none; transition: opacity 300ms ease, transform 800ms var(--ease-expo); }
.js-story .crm.is-on { opacity: 1; transform: rotate(-4deg); }
.js-story .crm__note { display: none; }
.js-story .crm__note.is-on { display: block; animation: pop 420ms var(--ease) both; }

.story__play { display: inline-flex; align-items: center; margin-top: 16px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 10, 40, 0.6); color: #fff; font: 600 13px var(--font); cursor: pointer; transition: background-color 200ms ease, transform 200ms var(--ease); }
.story__play:hover { background: rgba(255, 255, 255, 0.16); }
.story__play:active { transform: scale(0.96); }
.story__play[hidden] { display: none; }

/* Servicios (sección clara) ----------------------------------------------------------- */
.services, .versus { background: var(--paper); color: var(--ink); }
.services, .versus { padding: clamp(88px, 10vw, 140px) 0 clamp(110px, 12vw, 170px); border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 1; }
.head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head > p:last-child { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento > .card { grid-column: span 3; }
.bento > .card--feature { grid-column: span 6; }
.card--feature h3 { font-size: clamp(24px, 2.4vw, 32px); }
.card__shot { margin: -30px -30px 26px; aspect-ratio: 16 / 9; overflow: hidden; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transition: transform 900ms var(--ease); }
.card:hover .card__shot img { transform: scale(1.06); }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--r); background: #fff; border: 1px solid #e6e3f5;
  box-shadow: 0 2px 10px rgba(15, 20, 48, 0.04);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 300ms ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(40, 30, 120, 0.16); border-color: #cfc6f5; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.14), transparent 60%); opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.tag { align-self: flex-start; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; background: #ece7ff; color: #4a2fd0 !important; font-size: 12px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ticks { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 14.5px; font-weight: 500; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #d9fbe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.300l2.600 2.600L13 6.400' fill='none' stroke='%230b6b31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.more { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--lila); transition: color 200ms ease, transform 300ms var(--ease); }
.more:hover { color: #fff; transform: translateX(6px); }

.card--dark { background: radial-gradient(120% 140% at 90% 0%, #2a2fc0 0%, var(--navy) 40%, var(--night-2) 100%); color: #fff; border-color: transparent; }
.card--dark p { color: var(--soft); }
.card--dark .tag { background: rgba(255, 255, 255, 0.12); color: #fff !important; }
.card--dark .ticks li::before { background-color: var(--green); }
.card--dark::before { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 168, 240, 0.25), transparent 60%); }
.card__art { margin-top: 22px; }
.card__art--chat { margin: -30px -30px 26px; aspect-ratio: 16 / 9; justify-content: center; display: flex; flex-direction: column; gap: 12px; padding: 26px 34px; background: rgba(255, 255, 255, 0.07); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.bub { max-width: 82%; padding: 11px 15px; border-radius: 4px 16px 16px 16px; background: #fff; align-self: flex-start; }
.bub--out { background: #d9fdd3; align-self: flex-end; border-radius: 16px 4px 16px 16px; }
.bub--typing { display: flex; gap: 5px; padding: 15px 16px; }
.card__art--bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.card__art--bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--violet), #c9bdff); transform-origin: 50% 100%; transform: scaleY(0.15); transition: transform 900ms var(--ease-expo); }
.card__art--bars i:nth-child(2) { transition-delay: 60ms; } .card__art--bars i:nth-child(3) { transition-delay: 120ms; } .card__art--bars i:nth-child(4) { transition-delay: 180ms; } .card__art--bars i:nth-child(5) { transition-delay: 240ms; } .card__art--bars i:nth-child(6) { transition-delay: 300ms; background: linear-gradient(180deg, #17b856, #9af0bd); }
.card.is-in .card__art--bars i, html:not(.js) .card__art--bars i { transform: none; }
.card__art--pipe { display: flex; flex-wrap: wrap; gap: 6px; }
.card__art--pipe span { padding: 6px 12px; border-radius: 999px; background: #f0eefa; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card__art--pipe .is-win { background: var(--green); color: #05230f; }

/* Fotografía y eventos */
.work { position: relative; z-index: 1; margin-top: -40px; padding: clamp(88px, 10vw, 140px) 0 clamp(72px, 8vw, 110px); border-radius: 40px 40px 0 0; background: radial-gradient(70% 60% at 100% 0%, #1a1f8a 0%, var(--night-2) 50%, var(--night) 100%); overflow: hidden; }
.work__head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.work__head > p { color: var(--soft); }
.work__head a { display: inline-block; margin-top: 8px; color: var(--lila); font-weight: 600; transition: color 200ms ease; }
.work__head a:hover { color: #fff; }
.reel { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }
.reel__track { display: flex; gap: 18px; width: max-content; padding: 0 var(--m); will-change: transform; }
.reel figure { position: relative; width: clamp(260px, 30vw, 440px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; flex-shrink: 0; background: var(--night-2); }
.reel figure:nth-child(even) { margin-top: 44px; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease); }
.reel figure:hover img { transform: scale(1.07); }
.reel figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(8, 10, 40, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.js-reel .reel { overflow: hidden; }

/* Antes y ahora */
.versus__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: stretch; }
.vs { position: relative; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r); }
.vs h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 22px; }
.vs ul { display: grid; gap: 16px; }
.vs li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.45; }
.vs li::before { content: '✕'; position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.vs--old { background: #ebe9f5; color: var(--muted); }
.vs--old h3 { color: var(--ink); }
.vs--old li::before { background: #fbdcdc; color: #c0392b; }
.vs--new { background: radial-gradient(120% 130% at 100% 0%, #2a2fc0 0%, var(--navy) 45%, var(--night-2) 100%); color: var(--soft); box-shadow: 0 30px 70px rgba(20, 24, 120, 0.35); }
.vs--new h3, .vs--new b { color: #fff; }
.vs--new li::before { content: '✓'; background: var(--green); color: #05230f; }
.vs__badge { position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px; background: var(--green); color: #05230f; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* Nosotros ------------------------------------------------------------------------------- */
.about { position: relative; z-index: 1; margin-top: -40px; padding: clamp(96px, 11vw, 150px) 0 clamp(56px, 6vw, 80px); border-radius: 40px 40px 0 0; background: radial-gradient(80% 50% at 0% 0%, #131a7c 0%, var(--night-2) 50%, var(--night) 100%); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__photo { position: relative; border-radius: 32px; background: linear-gradient(160deg, var(--violet) 0%, var(--navy-2) 60%, var(--navy) 100%); overflow: hidden; box-shadow: 0 40px 90px rgba(3, 4, 30, 0.6); transform-style: preserve-3d; will-change: transform; }
.about__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.about__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; padding: 14px 18px; border-radius: 18px; background: rgba(8, 10, 40, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.about__photo figcaption span { font-size: 13.5px; color: var(--soft); }
.orbit--3 { width: 130%; aspect-ratio: 1; left: -15%; top: -8%; animation-duration: 34s; }
.about__copy p { color: var(--soft); margin-top: 18px; max-width: 60ch; }
.about__copy .eyebrow { margin-top: 0; color: var(--lila); }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 10px; }
.about__values div { padding: 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.about__values b { display: block; margin-bottom: 4px; }
.about__values span { font-size: 14.5px; line-height: 1.45; color: var(--soft); }

/* Caso ------------------------------------------------------------------------------------ */
.case { background: var(--night); padding: clamp(40px, 5vw, 64px) 0; }
.case__card { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px); border-radius: 36px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.case__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 80%) var(--my, 0%), rgba(124, 92, 255, 0.28), transparent 60%); pointer-events: none; }
.case__card > * { position: relative; }
.case blockquote { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; max-width: 22ch; }
.case__more { margin-top: 26px; max-width: 62ch; color: var(--soft); }
.case__who { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.case__who > span:nth-child(2) { display: grid; flex: 1; min-width: 220px; }
.case__who small { font-size: 13.5px; color: var(--soft); }
.case__logo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff7eb6, #ffb86c); color: #4a1030; font-weight: 800; font-size: 22px; }

/* Clientes */
.clients { background: var(--night); padding: clamp(72px, 8vw, 120px) 0 clamp(40px, 5vw, 64px); }
.head--left { margin-left: 0; text-align: left; }
.clients .head > p:last-child { color: var(--soft); }
.clients__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.client { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.client::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 80%) var(--my, 0%), rgba(124, 92, 255, 0.26), transparent 60%); pointer-events: none; }
.client > * { position: relative; }
.client__top { display: flex; align-items: center; gap: 16px; }
.client__top img { width: 64px; height: 64px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.client__top h3 { font-size: clamp(20px, 2vw, 26px); }
.client__top p { margin-top: 4px; font-size: 14px; color: var(--soft); }
.client__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.client__tags li { padding: 6px 14px; border-radius: 999px; background: rgba(185, 168, 240, 0.16); border: 1px solid rgba(185, 168, 240, 0.3); font-size: 13px; font-weight: 600; color: #fff; }
.client__posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.client__posts img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; transition: transform 600ms var(--ease), box-shadow 600ms var(--ease); }
.client__posts img:nth-child(1) { transform: rotate(-2.5deg); }
.client__posts img:nth-child(3) { transform: rotate(2.5deg); }
.client:hover .client__posts img { transform: none; }
.client__posts img:hover { transform: translateY(-8px) scale(1.04) !important; box-shadow: 0 24px 50px rgba(3, 4, 30, 0.6); }
.client__posts--reels a { position: relative; display: block; border-radius: 16px; overflow: hidden; transition: transform 600ms var(--ease), box-shadow 600ms var(--ease); }
.client__posts--reels a:nth-child(1) { transform: rotate(-2.5deg); }
.client__posts--reels a:nth-child(3) { transform: rotate(2.5deg); }
.client:hover .client__posts--reels a { transform: none; }
.client__posts--reels a:hover { transform: translateY(-8px) scale(1.04) !important; box-shadow: 0 24px 50px rgba(3, 4, 30, 0.6); }
.client__posts--reels img, .client__posts--reels img:hover { aspect-ratio: 9 / 16; border-radius: 0; transform: none !important; box-shadow: none; }
.client__posts--reels i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(8, 10, 40, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.5); transition: transform 300ms var(--ease), background-color 200ms ease; }
.client__posts--reels i::after { content: ''; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.client__posts--reels a:hover i { transform: scale(1.15); background: var(--violet); }
.client blockquote { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; line-height: 1.45; color: #fff; }
.client cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; font-weight: 400; color: var(--soft); }
.client__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.client__foot p { display: grid; }
.client__foot b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.client__foot span { font-size: 13px; color: var(--soft); }
.client__foot .btn { margin-left: auto; }

/* Llamado final ----------------------------------------------------------------------------- */
.cta { background: var(--night); padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 8vw, 110px); }
.cta__box { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 110px) clamp(22px, 5vw, 64px); border-radius: 40px; background: radial-gradient(90% 120% at 50% 110%, #5b3df0 0%, #2a2fc0 34%, var(--navy) 62%, var(--night-2) 100%); box-shadow: 0 40px 110px rgba(60, 50, 220, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.cta__box > *:not(.orbit) { position: relative; }
.cta__box h2 { font-size: clamp(34px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; margin: 0 auto; }
.cta__box > p:not(.eyebrow) { margin: 22px auto 0; max-width: 56ch; color: var(--soft); font-size: clamp(17px, 1.3vw, 19px); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.orbit--4 { width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; }
.orbit--5 { width: 1300px; height: 1300px; left: 50%; top: 50%; margin: -650px 0 0 -650px; animation-duration: 60s; animation-direction: reverse; border-style: dashed; opacity: 0.5; }
.orbit--5 i { background: var(--green); box-shadow: 0 0 18px 4px rgba(37, 211, 102, 0.7); }

/* Pie ------------------------------------------------------------------------------------------ */
.foot { background: #03041a; padding: 72px 0 110px; font-size: 15px; color: var(--soft); border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot__brand p { margin-top: 16px; max-width: 34ch; }
.foot h4 { font-size: 15px; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.foot ul { display: grid; gap: 10px; }
.foot a { transition: color 200ms ease; }
.foot a:hover { color: #fff; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: rgba(233, 229, 255, 0.55); }
.foot__legal { max-width: 720px; display: grid; gap: 6px; }
.foot__legal a { text-decoration: underline; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }

/* WhatsApp fijo ---------------------------------------------------------------------------------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 190; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #05230f; box-shadow: 0 12px 34px rgba(37, 211, 102, 0.5); transition: transform 400ms var(--ease), opacity 300ms ease; }
.wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.55); opacity: 0; } }
.wa:hover { transform: scale(1.1) rotate(8deg); }
.wa.is-away { transform: translateY(140%); opacity: 0; }

/* Entradas con el scroll ---------------------------------------------------------------------------- */
.js [data-rise] { opacity: 0; transform: translateY(34px); transition: opacity 700ms ease, transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .card[data-rise].is-in { transition: opacity 700ms ease var(--d, 0ms), transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 300ms ease; }

/* Tableta y teléfono ----------------------------------------------------------------------------------- */
@media (max-height: 760px) {
  .js-story .story__rail, .js-story .story__foot { display: none; }
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; padding: 24px 0 8px; }
  .phone--hero { height: 540px; width: 300px; }
  .hero__visual { padding-bottom: 44px; }
  .badge { right: 0; top: 9%; }
  .orbit--1 { width: 420px; height: 420px; }
  .orbit--2 { width: 560px; height: 560px; }

  .stats__grid { grid-template-columns: 1fr 1fr; }

  .story__grid { grid-template-columns: 1fr; }
  .js-story .story { height: 420vh; }
  .js-story .story__stage { padding: 76px 0 14px; align-items: stretch; }
  .js-story .story__grid { display: flex; flex-direction: column; gap: 12px; }
  .js-story .story__text .eyebrow, .js-story .story__foot, .js-story .story__rail { display: none; }
  .js-story .story__text h2 { font-size: 22px; max-width: none; }
  .js-story .story__clock { font-size: 15vw; margin: 6px 0 6px; }
  .js-story .story__caps { font-size: 16.5px; min-height: 4.3em; max-width: none; }
  .js-story .story__device { flex: 1; min-height: 0; align-items: stretch; }
  .js-story .story .phone { height: 100%; width: min(330px, 100%); border-radius: 32px; padding: 7px; }
  .js-story .story .phone__bar { border-radius: 25px 25px 0 0; padding: 10px 12px 8px; }
  .js-story .story .phone__chat { border-radius: 0 0 25px 25px; }
  .js-story .crm { left: 50%; bottom: 10px; width: min(310px, 94%); margin-left: max(-155px, -47%); padding: 14px 16px; }
  .story__play { display: none; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .card { grid-column: auto; }
  .bento > .card--feature { grid-column: span 2; }
  .work__head { grid-template-columns: 1fr; }
  .versus__grid, .about__grid, .clients__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { padding-left: 12px; }
  .btn { min-height: 52px; padding: 0 22px; }
  .btn--sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
  .hero__actions .btn { width: 100%; }
  .chip { font-size: 13px; align-items: flex-start; border-radius: 18px; }
  .chip .dot { margin-top: 6px; }
  .showbar { font-size: 13px; }
  .stats__grid { gap: 10px; }
  .stat { padding: 20px 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .card, .bento > .card--feature { grid-column: auto; }
  .card__shot, .card__art--chat { margin: -24px -24px 22px; }
  .reel figure:nth-child(even) { margin-top: 28px; }
  .card { padding: 24px; }
  .about__values { grid-template-columns: 1fr; }
  .vs__badge { position: static; display: inline-block; margin-bottom: 14px; }
  .cta__actions .btn { width: 100%; }
  .foot__top { grid-template-columns: 1fr; gap: 32px; }
  .client__foot .btn { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .card__art--bars i { transform: none; }
}

/* Menú del teléfono ------------------------------------------------------------------------------------- */
.nav__toggle { display: none; }
@media (max-width: 980px) {
  .nav { gap: 8px; }
  .nav__brand { margin-right: auto; }
  .js .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; flex: none; border-radius: 999px; cursor: pointer;
    background: var(--glass); border: 1px solid var(--line); color: #fff;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease), opacity 200ms ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-open { background: rgba(8, 10, 40, 0.92); border-color: var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    padding: 10px; border-radius: var(--r);
    background: var(--night-2); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    font-size: 17px; color: #fff;
  }
  .nav.is-open .nav__links a { padding: 14px 16px; border-radius: 14px; }
  .nav.is-open .nav__links a:hover, .nav.is-open .nav__links a:focus-visible { background: var(--glass); }
}
@media (max-width: 360px) {
  .nav .btn--sm { padding: 0 12px; font-size: 12.5px; }
}
