/* =====================================================================
   Mateo Estudio — estilos
   Paleta original: violeta #7c3aed · magenta #c026d3 · rosa #e879f9 · fondo #040207
===================================================================== */
:root {
  --bg: #040207;
  --surface: #0b0710;
  --surface2: #120b1a;
  --violet: #7c3aed;
  --magenta: #c026d3;
  --pink: #e879f9;
  --lilac: #f0abfc;
  --white: #ece4f6;
  --muted: #8b7d9c;
  --stroke: rgba(196, 140, 255, .13);
  --stroke-hi: rgba(232, 121, 249, .35);

  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.modal-open { overflow: hidden; }
body {
  color: var(--white);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; text-wrap: balance; line-height: 1.05; }
.main { position: relative; z-index: 2; overflow-x: clip; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(980px, 100% - 2 * var(--gutter)); }
.muted { color: var(--muted); }
.sm { font-size: .85rem; }

/* ---------- tipografía de acento ---------- */
/* acento: misma tipografía, relleno de luz "lava" (gradientes radiales que se mezclan, sin cortes) */
.serif { font-family: inherit; font-style: normal; }
.grad {
  background-color: var(--magenta);
  background-image:
    radial-gradient(45% 90% at 20% 30%, #fbd5ff 0%, rgba(251, 213, 255, 0) 70%),
    radial-gradient(50% 110% at 80% 75%, #7c3aed 0%, rgba(124, 58, 237, 0) 72%),
    radial-gradient(40% 80% at 55% 20%, #e879f9 0%, rgba(232, 121, 249, 0) 70%),
    radial-gradient(60% 120% at 35% 90%, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  background-size: 240% 240%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: lavaText 11s ease-in-out infinite alternate;
}
@keyframes lavaText {
  0% { background-position: 0% 20%; }
  35% { background-position: 70% 90%; }
  70% { background-position: 100% 30%; }
  100% { background-position: 30% 60%; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink)); }
.eyebrow.center::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--pink), transparent); }

/* palabras con máscara */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .02em .14em; margin: -.04em .22em -.14em 0; }
.w:last-child, .w.tight { margin-right: 0; }
.w-e, .w-i { display: inline-block; will-change: transform; }
.lt { font-weight: 700; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; perspective: 600px; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 56ch; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- botones ---------- */
.mag { display: inline-block; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 14px;
  font-family: var(--body); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  color: var(--white); position: relative; isolation: isolate; white-space: nowrap;
  border: 1px solid transparent;
  background:
    linear-gradient(150deg, #150d1d, #0b0711) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, .8), rgba(232, 121, 249, .8)) border-box;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform 160ms var(--ease-out), box-shadow 300ms ease, color 200ms ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 13px; z-index: -1;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  opacity: 0; transition: opacity 300ms ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: rgba(124, 58, 237, .07); border-color: var(--stroke); color: var(--white); box-shadow: none; }
.btn.ghost::before { display: none; }
.btn.dim { color: var(--muted); }
.btn.sm { padding: 12px 22px; font-size: .86rem; border-radius: 12px; }
.btn.sm::before { border-radius: 11px; }
.btn.full { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { box-shadow: 0 14px 40px rgba(124, 58, 237, .38); }
  .btn:not(:disabled):hover::before { opacity: 1; }
  .btn.ghost:hover { border-color: var(--stroke-hi); background: rgba(124, 58, 237, .16); }
  .btn.dim:hover { color: var(--white); }
}

/* ---------- fondo ---------- */
.bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb.a { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(124, 58, 237, .2), transparent 62%); }
.orb.b { width: 60vmax; height: 60vmax; right: -25vmax; top: 10vh; background: radial-gradient(circle, rgba(192, 38, 211, .14), transparent 62%); }
.orb.c { width: 55vmax; height: 55vmax; left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgba(232, 121, 249, .08), transparent 62%); }
.hex {
  position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='24' viewBox='0 0 28 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1 26 7.5v9L14 23 2 16.5v-9z' fill='none' stroke='%233b2547' stroke-opacity='.3' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 28px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 65%);
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 65%);
}
.grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- intro: implosión de partículas ---------- */
.intro-ov {
  --sz: min(62vw, 36vh, 300px);
  --cy: calc(50% - min(6vh, 40px));
  position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow: hidden;
}
.intro-cv { position: absolute; inset: 0; display: block; }
.intro-center { position: absolute; inset: 0; pointer-events: none; }
/* mismo centro y tamaño que el logo que dibujan las partículas */
.intro-logo { position: absolute; left: 50%; top: var(--cy); width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); filter: drop-shadow(0 0 30px rgba(192, 38, 211, .6)); }
.intro-name {
  position: absolute; left: 0; right: 0; top: calc(var(--cy) + var(--sz) / 2 + clamp(14px, 3vh, 30px));
  text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4.6vw, 2.6rem); letter-spacing: .14em; line-height: 1.1;
}
.intro-name span { display: inline-block; }
.intro-name .b { color: var(--pink); text-shadow: 0 0 24px rgba(232, 121, 249, .55); }
.intro-tag {
  position: absolute; left: 0; right: 0; top: calc(var(--cy) + var(--sz) / 2 + clamp(14px, 3vh, 30px) + clamp(2.6rem, 6vw, 3.6rem));
  text-align: center; font-size: clamp(.62rem, 1.6vw, .78rem); text-transform: uppercase; color: var(--muted);
}

/* ---------- cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor iframe { cursor: auto !important; }
.cursor-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.c-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.c-ring {
  position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid rgba(240, 171, 252, .55); display: grid; place-items: center;
  transition: width 250ms var(--ease-out), height 250ms var(--ease-out), margin 250ms var(--ease-out), background-color 250ms ease, border-color 250ms ease;
}
.c-ring span { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 200ms ease; }
.c-ring.link { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(232, 121, 249, .1); border-color: rgba(240, 171, 252, .8); }
.c-ring.text { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background: var(--pink); border-color: transparent; }
.c-ring.flip, .c-ring.view { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: rgba(192, 38, 211, .88); border-color: transparent; }
.c-ring.flip span, .c-ring.view span { opacity: 1; }

/* ---------- navegación ---------- */
.navx {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 50%; transform: translateX(-50%); z-index: 120;
  border-radius: 999px; padding: 1.5px; isolation: isolate; overflow: hidden;
  transition: top 400ms var(--ease-out), box-shadow 400ms ease;
  width: max-content; max-width: calc(100% - 24px);
}
.navx::before {
  content: ""; position: absolute; inset: -150%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(124, 58, 237, .9) 76%, rgba(232, 121, 249, .95) 82%, transparent 92%);
  animation: orbit 4.5s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.navx.scrolled { top: calc(env(safe-area-inset-top, 0px) + 10px); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(124, 58, 237, .12); }
.nav-in { display: flex; align-items: center; gap: 4px; padding: 7px 8px; border-radius: 999px; background: rgba(8, 5, 12, .86); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.nav-logo { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; margin-right: 10px; font-family: var(--display); font-weight: 800; font-size: .92rem; letter-spacing: .05em; white-space: nowrap; }
.nav-logo img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(192, 38, 211, .5)); }
.nav-logo b { background: linear-gradient(90deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nl-wrap { display: flex; }
.nl { position: relative; height: 36px; padding: 0 14px; border-radius: 999px; font-size: .83rem; font-weight: 500; overflow: hidden; }
.nl-pill { position: absolute; inset: 0; border-radius: 999px; background: rgba(124, 58, 237, .2); box-shadow: inset 0 0 0 1px rgba(232, 121, 249, .25); z-index: -1; }
.nl .roll { display: flex; flex-direction: column; transition: transform 400ms var(--ease-out); }
.nl .roll span { display: flex; align-items: center; height: 36px; white-space: nowrap; }
.nl .roll span:first-child { color: var(--muted); }
.nl.on .roll span:first-child { color: var(--white); }
.nl .roll span:last-child { color: var(--pink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .nl:hover .roll { transform: translateY(-36px); } }
.nl-login { padding: 9px 16px; border-radius: 999px; font-size: .83rem; font-weight: 600; color: var(--pink); border: 1px solid var(--stroke-hi); background: rgba(232, 121, 249, .06); transition: background-color 200ms ease, color 200ms ease; white-space: nowrap; }
.nl-cta { margin-left: 4px; padding: 9px 20px; border-radius: 999px; font-size: .83rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--violet), var(--magenta)); transition: transform 160ms var(--ease-out), box-shadow 300ms ease; white-space: nowrap; }
.nl-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .nl-login:hover { background: rgba(232, 121, 249, .16); color: #fff; }
  .nl-cta:hover { box-shadow: 0 0 26px rgba(192, 38, 211, .5); }
}
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; position: relative; background: rgba(124, 58, 237, .14); margin-left: 4px; flex-shrink: 0; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--violet)); transition: transform 300ms var(--ease-out), opacity 200ms ease, top 300ms var(--ease-out); }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 18px; } .burger span:nth-child(3) { top: 23px; }
.burger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }
.mnav {
  position: fixed; inset: 0; z-index: 115; padding: calc(env(safe-area-inset-top, 0px) + 110px) 8vw calc(env(safe-area-inset-bottom, 0px) + 40px);
  background: rgba(6, 3, 10, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mnav { overflow-y: auto; overscroll-behavior: contain; }
.mnav-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px 30px; }
.mnav li .mnav-sub button { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-family: var(--body); font-weight: 500; font-size: .84rem; letter-spacing: 0; color: var(--white); background: rgba(124, 58, 237, .1); border: 1px solid var(--stroke); }

/* submenú de servicios (escritorio) */
.caret { font-style: normal; font-size: .7em; margin-left: 5px; display: inline-block; transition: transform 200ms var(--ease-out); }
.caret.up { transform: rotate(180deg); }
.nav-dd {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 74px); left: 0; right: 0; margin: 0 auto; z-index: 119;
  width: min(640px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px;
  border-radius: 22px; background: rgba(10, 6, 16, .94); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--stroke-hi); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 50px rgba(124, 58, 237, .15);
  transform-origin: 50% 0;
}
.nav-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* puente para no perder el hover */
.dd-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; text-align: left; transition: background-color 150ms ease; }
.dd-item:focus-visible { background: rgba(124, 58, 237, .18); outline: none; }
.dd-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 58, 237, .12); border: 1px solid var(--stroke); }
.dd-ico svg { width: 22px; height: 22px; }
.dd-item b { display: block; font-size: .9rem; font-weight: 600; }
.dd-item small { display: block; color: var(--muted); font-size: .76rem; }
@media (hover: hover) and (pointer: fine) { .dd-item:hover { background: rgba(124, 58, 237, .16); } }

.mnav ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mnav li button { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.03em; padding: 6px 0; }
.mnav li small { font-family: var(--body); font-size: .75rem; color: var(--pink); letter-spacing: .1em; }
.mnav-foot { display: flex; gap: 10px; }
.mnav-foot > * { flex: 1; }
@media (max-width: 960px) {
  .nl-wrap, .nl-login { display: none; }
  .burger { display: block; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: .82rem; letter-spacing: .03em; margin-right: 0; padding-right: 6px; gap: 7px; }
  .nav-logo img { width: 26px; height: 26px; }
  .nl-cta { display: none; }
}
@media (max-width: 360px) { .nav-logo span { display: none; } }

/* =====================================================================
   STAGE — MacBook → iPhone
===================================================================== */
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; z-index: 2; }
.stage-glow {
  position: absolute; left: 50%; top: 62%; width: 130vw; height: 70vh; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(192, 38, 211, .2), rgba(124, 58, 237, .08) 45%, transparent 70%);
  pointer-events: none;
}

/* hero texto */
.hero-copy { position: absolute; top: calc(env(safe-area-inset-top, 0px) + clamp(92px, 13vh, 130px)); left: 0; right: 0; padding: 0 var(--gutter); text-align: center; z-index: 3; pointer-events: none; }
.eb-wrap .eyebrow { margin-bottom: 14px; }
.hero-h1 { font-weight: 700; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.04em; max-width: 18ch; margin: 0 auto; }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 4.5vh); display: flex; justify-content: space-between; align-items: flex-end; z-index: 3; pointer-events: none; }
.hero-foot > * { pointer-events: auto; }
.hero-sub { max-width: 27ch; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.scroll-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 3; pointer-events: none; }
.scroll-hint span { display: inline-block; color: var(--muted); font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; }
.scroll-hint span::after { content: ""; display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(180deg, var(--magenta), transparent); animation: drip 1.9s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 1099px) {
  .hero-foot { flex-direction: column; align-items: center; text-align: center; gap: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 3.5vh); }
  .hero-sub { max-width: 40ch; font-size: .95rem; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-sub { font-size: .9rem; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 13px 16px; font-size: .84rem; }
  .eb-wrap .eyebrow { font-size: .62rem; letter-spacing: .2em; gap: 8px; }
  .eb-wrap .eyebrow::before, .eb-wrap .eyebrow::after { width: 16px; }
}

/* entrada inicial (después del loader) */
.w-e { transform: translateY(115%) rotate(6deg); }
.intro { opacity: 0; transform: translateY(22px); }
html.is-ready .w-e { animation: wordUp 1.1s var(--ease-out) forwards; animation-delay: calc(var(--d) * 70ms + 450ms); }
html.is-ready .intro { animation: introUp .9s var(--ease-out) forwards; animation-delay: var(--dl, 0s); }
@keyframes wordUp { to { transform: none; } }
@keyframes introUp { to { opacity: 1; transform: none; } }

/* ---------- escena 3D ---------- */
.fit { position: absolute; left: 50%; top: 0; width: 0; height: 0; perspective: 2600px; transform-origin: 0 0; z-index: 1; }
.tilt, .rise, .device, .flip, .lid-open { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.rise { transform: translateY(260px) scale(.82); }
.lid-open { transform: rotateX(-104deg); }
html.is-ready .rise { animation: riseUp 1.7s var(--ease-out) .05s forwards; }
html.is-ready .lid-open { animation: lidOpen 1.6s var(--ease-in-out) .45s forwards; }
@keyframes riseUp { to { transform: none; } }
@keyframes lidOpen { to { transform: rotateX(0deg); } }

/* base */
.base-leaf { position: absolute; }
.base-top {
  left: -380px; top: 1.5px; width: 760px; height: 520px;
  transform-origin: 50% 0; transform: rotateX(90deg);
  border-radius: 6px 6px 28px 28px;
  background:
    radial-gradient(120% 80% at 30% 90%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(180deg, #2d2a33 0%, #27242d 45%, #211e27 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -3px 0 rgba(255, 255, 255, .14), inset 0 10px 18px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.kb-glow { position: absolute; left: 0; right: 0; top: 0; height: 75%; background: radial-gradient(70% 90% at 50% 0%, rgba(192, 38, 211, .32), rgba(124, 58, 237, .12) 45%, transparent 75%); pointer-events: none; }
.spk { position: absolute; top: 26px; width: 44px; height: 276px; background-image: radial-gradient(circle, #09080b 1px, transparent 1.4px); background-size: 5px 5px; opacity: .9; }
.spk.l { left: 22px; } .spk.r { right: 22px; }
.kb { position: absolute; left: 80px; right: 80px; top: 22px; height: 282px; padding: 6px; display: flex; flex-direction: column; gap: 5px; border-radius: 9px; background: #121016; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06); }
.kb-row { flex: 1 1 0; display: flex; gap: 5px; min-height: 0; }
.kb-row.fn { flex: .62 1 0; }
.key {
  flex: 1 1 0; min-width: 0; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1c1a21, #0f0e12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 1.5px 2px rgba(0, 0, 0, .7);
  font: 600 10px/1 var(--body); color: #c9a6f7; text-shadow: 0 0 6px rgba(192, 38, 211, .9);
}
.key.mod { justify-content: flex-start; align-items: flex-end; padding: 0 0 5px 6px; font-size: 7.5px; font-weight: 500; }
.key.split { flex-direction: column; gap: 2px; background: none; box-shadow: none; }
.key.split i { flex: 1; width: 100%; border-radius: 4px; background: linear-gradient(180deg, #1c1a21, #0f0e12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .7); font-style: normal; font-size: 6px; display: grid; place-items: center; color: #c9a6f7; }
.pad { position: absolute; left: 50%; top: 320px; width: 310px; height: 182px; margin-left: -155px; border-radius: 12px; background: linear-gradient(180deg, #2a2730, #23202a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -8px 20px rgba(0, 0, 0, .25); }
.base-front {
  left: -380px; top: 1.5px; width: 760px; height: 20px; transform: translateZ(520px);
  border-radius: 0 0 26px 26px / 0 0 16px 16px;
  background: linear-gradient(180deg, #6a6472 0%, #3a3640 14%, #24212a 60%, #17151b 100%);
}
.base-front i { position: absolute; left: 50%; top: 0; width: 116px; height: 6px; margin-left: -58px; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #121015, #2a2730); }
.base-side { top: 1.5px; width: 520px; height: 20px; transform-origin: 0 50%; transform: rotateY(-90deg); background: linear-gradient(180deg, #4d4855, #26232b 40%, #17151b); border-radius: 0 0 10px 10px; }
.base-side.l { left: -380px; } .base-side.r { left: 380px; }
.floor {
  left: -500px; top: 26px; width: 1000px; height: 760px;
  transform-origin: 50% 0; transform: rotateX(90deg) translateY(-120px);
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45) 55%, transparent),
    radial-gradient(closest-side, rgba(124, 58, 237, .35), transparent 80%);
  filter: blur(18px);
}

/* tapa */
.lid { position: absolute; left: -380px; top: -490px; width: 760px; height: 490px; transform-origin: 50% 100%; transform-style: preserve-3d; }
.lid-edge { position: absolute; left: 4px; right: 4px; top: 0; height: 9px; transform-origin: 50% 0; transform: rotateX(-90deg); border-radius: 4px; background: linear-gradient(90deg, #35313b, #6b6575 50%, #35313b); }
.lid-front, .lid-back { position: absolute; left: 0; top: -190px; width: 760px; height: 680px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lid-back { transform: translateZ(-9px) rotateY(180deg); }
.m-shell, .m-glass, .m-display { position: absolute; inset: 0; }
.m-shell { clip-path: inset(190px 0px 0px 0px round 22px 22px 10px 10px); }
.m-shell .alu, .m-shell .ti { position: absolute; inset: 0; }
.m-shell .alu { background: linear-gradient(180deg, #5f5968, #2f2c35 30%, #26232b); }
.m-shell .ti { opacity: 0; background: linear-gradient(135deg, #7a5a9e 0%, #3b2754 30%, #9b7cc0 50%, #34234c 68%, #6a4c8c 100%); }
.m-shell .ti::after {
  content: ""; position: absolute; left: 225px; top: 10px; width: 310px; height: 660px; border-radius: 56px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35), inset 0 0 0 3px rgba(40, 24, 60, .5), inset 0 2px 6px rgba(255, 255, 255, .25);
}
.m-shell.back .alu { background: radial-gradient(120% 90% at 28% 18%, #4c4755 0%, #2e2b34 45%, #1f1c24 100%); }
.m-shell.back .ti { background: radial-gradient(120% 70% at 30% 15%, #6c4f8e 0%, #48316a 40%, #2e1f45 100%); }
.m-shell.back .ti::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.m-glass { clip-path: inset(192px 2px 2px 2px round 20px 20px 8px 8px); background: linear-gradient(180deg, #08070a, #050407); }
.hinge { position: absolute; left: 12%; right: 12%; bottom: 0; height: 12px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #121015, #2a2730 60%, #3a3640); }
.m-display { clip-path: inset(210px 18px 38px 18px round 10px 10px 3px 3px); background: #000; overflow: hidden; }
.notch { position: absolute; left: 50%; top: 210px; width: 160px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 0 0 12px 12px; display: grid; place-items: center; z-index: 2; }
.notch i { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a7a, #0b0d1a 60%); box-shadow: 0 0 0 1.5px #0d0c12; }
.glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .02) 34%, transparent 34.2%, transparent 100%); mix-blend-mode: screen; }
.morph-glow { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(30% 40% at 30% 35%, #e879f9, transparent 70%), radial-gradient(35% 45% at 70% 65%, #7c3aed, transparent 70%), radial-gradient(40% 40% at 50% 50%, #c026d3, transparent 75%), #12061f; }
.boot { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9), rgba(232, 121, 249, .5) 40%, rgba(124, 58, 237, .2)); }
.scr-dim { position: absolute; inset: 0; opacity: 0; background: #000; pointer-events: none; }
.pbtn { position: absolute; width: 4px; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, #3b2754, #9b7cc0, #4a3168); }
.pbtn.a { left: 222px; top: 128px; height: 34px; }
.pbtn.b { left: 222px; top: 186px; height: 58px; }
.pbtn.c { left: 222px; top: 256px; height: 58px; }
.pbtn.d { left: 534px; top: 210px; height: 92px; }

/* parte trasera */
.back-laptop { position: absolute; left: 0; top: 190px; width: 760px; height: 490px; display: grid; place-items: center; }
.back-laptop img { width: 118px; height: 118px; transform: rotate(180deg); filter: drop-shadow(0 0 18px rgba(232, 121, 249, .7)); position: relative; }
.back-logo-glow { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 121, 249, .55), rgba(124, 58, 237, .2) 40%, transparent 68%); opacity: .25; }
/* dorso del iPhone: vidrio mate titanio, módulo de cámaras y el logo en lugar de la manzana */
.back-phone { position: absolute; left: 225px; top: 10px; width: 310px; height: 660px; opacity: 0; border-radius: 56px; overflow: hidden; }
.back-phone::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 25% 10%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(200deg, transparent 40%, rgba(0, 0, 0, .25)); }
.back-phone .cam { position: absolute; top: 20px; right: 20px; width: 134px; height: 140px; border-radius: 40px; background: linear-gradient(145deg, rgba(140, 108, 180, .6), rgba(46, 30, 68, .85)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 -6px 12px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .45); }
.cam i { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #6a7fd0 0%, #182046 22%, #050508 46%, #121018 60%, #3a2e4e 74%, #6e5a8c 100%); box-shadow: 0 0 0 3px #2c2040, 0 0 0 4px rgba(255, 255, 255, .12), 0 3px 8px rgba(0, 0, 0, .65); }
.cam i:nth-child(1) { right: 12px; top: 12px; } .cam i:nth-child(2) { right: 12px; bottom: 12px; } .cam i:nth-child(3) { left: 12px; top: 44px; }
.cam b { position: absolute; left: 24px; top: 16px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, #fff8e7 30%, #c9b98f); box-shadow: 0 0 0 2px #2c2040; }
.cam em { position: absolute; left: 24px; bottom: 16px; width: 13px; height: 13px; border-radius: 50%; background: #0c0a10; box-shadow: 0 0 0 2px #2c2040; }
.back-mark { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)) drop-shadow(0 0 20px rgba(232, 121, 249, .35)); }
.engr { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-family: var(--display); font-weight: 600; letter-spacing: .32em; font-size: 11px; color: rgba(245, 234, 255, .45); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }

/* ---------- pantallas ---------- */
.scene { position: absolute; overflow: hidden; color: #f4ecff; font-family: var(--body); }
.s-hero, .s-dash { left: 18px; top: 210px; width: 724px; height: 432px; }
.s-dash { opacity: 0; }
.s-phone { left: 235px; top: 20px; width: 290px; height: 640px; opacity: 0; }
.boot-in { position: absolute; inset: 0; opacity: 0; }
html.is-ready .boot-in { animation: screenOn 1s ease-out 1.55s forwards; }
@keyframes screenOn { 0% { opacity: 0; filter: brightness(3) saturate(0); } 40% { opacity: 1; } 100% { opacity: 1; filter: none; } }
.wall { position: absolute; inset: 0; background: radial-gradient(60% 70% at 18% 20%, #6d28d9 0%, transparent 60%), radial-gradient(55% 65% at 88% 80%, #c026d3 0%, transparent 60%), radial-gradient(40% 40% at 60% 30%, rgba(240, 171, 252, .35), transparent 70%), linear-gradient(135deg, #160a28, #07030d); }
.wall.alt { background: radial-gradient(60% 70% at 85% 10%, #4c1d95 0%, transparent 60%), radial-gradient(50% 60% at 10% 90%, #86198f 0%, transparent 60%), linear-gradient(160deg, #0f0819, #050208); }
.mac-bar { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 10.5px; background: rgba(8, 4, 14, .55); color: rgba(255, 255, 255, .92); z-index: 2; }
.mac-bar img { width: 12px; height: 12px; }
.mac-bar b { font-weight: 700; }
.mac-bar em { flex: 1; }
.mac-bar .bat { width: 20px; height: 9px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .7); background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box; padding: 1px; }
.mac-win { position: absolute; left: 50%; top: 52px; width: 440px; height: 290px; margin-left: -220px; border-radius: 12px; background: rgba(14, 9, 22, .9); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(0, 0, 0, .8); overflow: hidden; }
.win-top { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win-top i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-top i:nth-child(2) { background: #febc2e; } .win-top i:nth-child(3) { background: #28c840; }
.win-top span { flex: 1; text-align: center; margin-right: 50px; font-size: 11px; color: rgba(255, 255, 255, .55); }
.win-body { height: calc(100% - 30px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.win-logo { width: 92px; height: 92px; filter: drop-shadow(0 0 22px rgba(192, 38, 211, .7)); animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-5px); } }
.win-name { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: .2em; margin-top: 6px; }
.win-name b { background: linear-gradient(90deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.win-tag { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(236, 228, 246, .6); }
.win-type { margin-top: 12px; font: 12px/1 ui-monospace, Menlo, monospace; color: #e9c9ff; }
.win-type span { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--pink); width: 0; animation: typing 2.4s steps(30) 2.6s forwards, caret .8s step-end infinite; }
@keyframes typing { to { width: 30ch; } }
@keyframes caret { 50% { border-color: transparent; } }
.dock { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; padding: 6px 8px; border-radius: 15px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.dock i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, #24143a, #0e0818); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15); }
.dock svg { width: 19px; height: 19px; }

/* dashboard */
.dash { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; display: grid; grid-template-columns: 50px 1fr 196px; gap: 12px; padding: 14px; font-size: 11px; }
.dash-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.dash-side img { width: 26px; height: 26px; margin-bottom: 6px; }
.dash-side i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; color: rgba(255, 255, 255, .5); font-size: 13px; }
.dash-side i.on { background: rgba(232, 121, 249, .2); color: #fff; }
.dash-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-head b { font-family: var(--display); font-size: 16px; }
.live { color: #4ade80; font-size: 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { padding: 10px; border-radius: 11px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.kpis small { display: block; color: rgba(236, 228, 246, .6); font-size: 9px; }
.kpis b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.2; background: linear-gradient(90deg, #fff, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis em { font-style: normal; font-size: 9px; color: #4ade80; }
.chart { position: relative; flex: 1; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); overflow: hidden; }
.chart svg { position: absolute; left: 0; right: 0; top: 10px; width: 100%; height: 62%; }
.bars { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 30%; display: flex; align-items: flex-end; gap: 6px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--pink), rgba(124, 58, 237, .4)); transform-origin: bottom; }
.dash-chat { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.chat-h b { display: block; font-size: 12px; } .chat-h small { color: rgba(236, 228, 246, .55); font-size: 9.5px; }
.msg { padding: 7px 10px; border-radius: 12px; max-width: 92%; line-height: 1.35; font-size: 10.5px; }
.msg.in { background: rgba(255, 255, 255, .1); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, var(--violet), var(--magenta)); border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; font-size: 9.5px; color: #4ade80; background: rgba(74, 222, 128, .1); }

/* iPhone */
.ph-wall { position: absolute; inset: 0; background: radial-gradient(80% 50% at 20% 10%, #7c3aed, transparent 60%), radial-gradient(80% 50% at 90% 85%, #c026d3, transparent 60%), linear-gradient(180deg, #1a0b2e, #07030d); }
.ph-status { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 30px; font-size: 13px; z-index: 2; }
.ph-status span { font-size: 9px; letter-spacing: 1px; }
.ph-body { position: absolute; inset: 0; padding: 86px 22px 44px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.ph-logo { width: 74px; height: 74px; filter: drop-shadow(0 0 18px rgba(232, 121, 249, .6)); }
.ph-body small { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--lilac); margin-top: 10px; }
.ph-body h3 { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.ph-body p { font-size: 13.5px; color: rgba(236, 228, 246, .75); line-height: 1.5; margin-bottom: auto; }
.ph-btn { width: 100%; padding: 14px; border-radius: 16px; font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--magenta)); box-shadow: 0 10px 24px rgba(124, 58, 237, .45); transition: transform 160ms var(--ease-out); }
.ph-btn:active { transform: scale(.97); }
.ph-btn.ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.back-phone .ph-btn { width: auto; padding: 12px 22px; }
.ph-home { position: absolute; bottom: 9px; left: 50%; width: 112px; height: 4px; margin-left: -56px; border-radius: 3px; background: rgba(255, 255, 255, .85); }

/* ---------- capítulos dentro del stage ---------- */
.chap { position: absolute; top: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.chap-a { left: var(--gutter); width: min(42vw, 600px); }
.chap-b { left: var(--gutter); width: min(42vw, 600px); }
.chap-c { right: calc(var(--gutter) + 36px); width: min(40vw, 520px); }
.ti-note { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--stroke-hi); background: rgba(18, 11, 26, .6); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.ti-note.on { opacity: 1; transform: none; pointer-events: auto; }
.ti-note b { font-family: var(--display); font-size: .95rem; }
.ti-note span { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.reveal { display: inline-block; }
.chap-h { font-weight: 700; font-size: clamp(2.1rem, 4vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em; }
.chap-h.sm { font-size: clamp(1.8rem, 3.1vw, 3rem); margin-bottom: 26px; }
.chap .eyebrow { margin-bottom: 18px; }
.chap p { color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin-top: 18px; }
.erase-wrap { overflow: visible; position: relative; }
.erase { display: inline-block; position: relative; }
.erase .ch { display: inline-block; white-space: pre; color: var(--lilac); text-shadow: 0 0 24px rgba(232, 121, 249, .45); }
.erase-line { position: absolute; left: -2%; right: -2%; top: 55%; height: .07em; background: linear-gradient(90deg, var(--pink), var(--magenta)); box-shadow: 0 0 18px var(--magenta); transform-origin: left; border-radius: 4px; }
.wd { display: inline-block; white-space: nowrap; margin-right: .27em; }
.wd:last-child { margin-right: 0; }
.ab-ch, .ch { display: inline-block; white-space: pre; }
.dimc { color: var(--muted); }
.litc .ch, .litc.ab-ch { background: linear-gradient(180deg, var(--lilac), var(--pink) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e-cards { display: flex; flex-direction: column; gap: 14px; perspective: 900px; }
.e-card { display: flex; gap: 16px; padding: 18px 20px; border-radius: 20px; background: rgba(18, 11, 26, .66); border: 1px solid var(--stroke); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.e-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(124, 58, 237, .16); border: 1px solid var(--stroke); }
.e-card b { display: block; font-family: var(--display); font-size: 1.15rem; }
.e-card small { display: block; color: var(--pink); font-size: .8rem; margin-bottom: 4px; }
.e-card p { margin: 0; font-size: .9rem; max-width: none; }
.flip-hint { pointer-events: auto; align-self: flex-start; margin-top: 24px; padding: 10px 18px; border-radius: 999px; font-size: .82rem; color: var(--pink); border: 1px solid var(--stroke-hi); background: rgba(232, 121, 249, .06); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.flip-hint.on { opacity: 1; transform: none; }
.flip-hint:not(.on) { pointer-events: none; }

.rail { position: absolute; right: 20px; top: 50%; width: 9px; height: 150px; margin-top: -75px; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; align-items: center; pointer-events: none; }
.rail-track { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: rgba(196, 140, 255, .18); }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(var(--violet), var(--pink)); transform: scaleY(0); transform-origin: top; }
.rail span { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(196, 140, 255, .4); transition: background-color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out); }
.stage[data-chap="0"] .rail span[data-i="0"], .stage[data-chap="1"] .rail span[data-i="1"],
.stage[data-chap="2"] .rail span[data-i="2"], .stage[data-chap="3"] .rail span[data-i="3"] { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 12px var(--pink); transform: scale(1.25); }

@media (max-width: 819px) {
  .rail { display: none; }
  .chap { top: calc(env(safe-area-inset-top, 0px) + 84px); bottom: auto; left: var(--gutter); right: var(--gutter); width: auto; text-align: center; align-items: center; justify-content: flex-start; }
  .chap-h { font-size: clamp(2rem, 9vw, 2.8rem); }
  .chap-h.sm { font-size: clamp(1.7rem, 7.4vw, 2.3rem); margin-bottom: 16px; }
  .chap p { font-size: .95rem; margin-top: 12px; }
  .e-cards { gap: 10px; }
  .e-card { padding: 12px 14px; gap: 12px; text-align: left; border-radius: 16px; }
  .e-ico { width: 38px; height: 38px; font-size: 1.05rem; }
  .e-card b { font-size: 1rem; }
  .flip-hint { align-self: center; margin-top: 14px; }
  .chap-c.flipped p { display: none; }
  .ti-note { flex-direction: row; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; padding: 0; border: 0; background: none; }
  .ti-note:not(.on) { display: none; }
  .ti-note b, .ti-note span { display: none; }
  .chap-c.flipped .flip-hint { margin-top: 12px; }
}
@media (max-width: 819px) and (max-height: 760px) { .e-card p { display: none; } }

/* =====================================================================
   SECCIONES
===================================================================== */
.sec { position: relative; padding-block: clamp(90px, 14vh, 170px); z-index: 2; }

/* ---------- frase ensamblada ---------- */
.phrase { position: relative; z-index: 2; padding: clamp(90px, 18vh, 200px) var(--gutter); text-align: center; overflow: hidden; }
.asm { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 6.4vw, 5.6rem); line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; margin: 0 auto; }
.asm-line { width: min(420px, 60%); height: 1px; margin: 44px auto 0; background: linear-gradient(90deg, transparent, var(--pink), transparent); transform-origin: center; }

/* ---------- servicios: una sección por servicio con su personaje ---------- */
.services { position: relative; z-index: 2; }
.svc-intro { padding-bottom: clamp(10px, 3vh, 30px); }
.svc-sec { position: relative; padding-block: clamp(80px, 13vh, 150px) clamp(30px, 6vh, 70px); }
.svc-panel { position: relative; min-height: clamp(540px, 76vh, 720px); padding: clamp(28px, 4.5vw, 64px); display: flex; align-items: center; }
.svc-sec.left .svc-panel { justify-content: flex-end; }
/* el fondo del panel es una capa propia: así el personaje puede sobresalir por arriba */
.svc-bg { position: absolute; inset: 0; border-radius: 32px;
  background: radial-gradient(60% 85% at var(--gx, 82%) 62%, rgba(124, 58, 237, .32), transparent 65%), linear-gradient(160deg, rgba(31, 21, 42, .82), rgba(10, 7, 14, .9));
  border: 1px solid rgba(216, 180, 254, .2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 80px rgba(124, 58, 237, .12); }
.svc-sec.left .svc-bg { --gx: 18%; }
.svc-num { position: absolute; top: clamp(10px, 3vw, 30px); font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 14vw, 12rem); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(232, 121, 249, .14); pointer-events: none; }
.svc-sec.right .svc-num { left: clamp(20px, 4vw, 50px); }
.svc-sec.left .svc-num { right: clamp(20px, 4vw, 50px); }
.svc-copy { position: relative; z-index: 2; width: 54%; }
.svc-title { font-weight: 800; font-size: clamp(1.9rem, 3.7vw, 3.7rem); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 14px; }
.svc-tag2 { color: var(--pink); font-weight: 600; font-size: clamp(.98rem, 1.3vw, 1.12rem); margin-bottom: 10px; }
.svc-desc { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.1rem); max-width: 46ch; margin-bottom: 26px; }
.btn-row.left { justify-content: flex-start; }
.feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.feat { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; font-size: .86rem; line-height: 1.4; background: rgba(255, 255, 255, .035); border: 1px solid var(--stroke); }
.feat i { font-style: normal; color: var(--pink); font-size: .75rem; margin-top: 2px; }

/* personaje */
.svc-char { position: absolute; bottom: 0; width: 46%; height: calc(100% + 80px); z-index: 1; }
.svc-char.right { right: 0; } .svc-char.left { left: 0; }
.char-par, .char-greet, .char-tilt, .char-idle { position: absolute; inset: 0; }
.char-greet { perspective: 1000px; }
.char-idle { animation: charIdle 6s ease-in-out infinite; }
@keyframes charIdle { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.012); } }
.char-img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 98%), linear-gradient(to right, transparent 0%, #000 22%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 98%), linear-gradient(to right, transparent 0%, #000 22%, #000 80%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 30px 50px rgba(124, 58, 237, .35));
}
.char-holo { position: absolute; left: 50%; top: 52%; width: min(82%, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.char-holo i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(232, 121, 249, .35); animation: holoSpin 14s linear infinite; }
.char-holo i:nth-child(1) { transform: rotateX(70deg); }
.char-holo i:nth-child(2) { inset: 10%; border-style: dashed; border-color: rgba(167, 139, 250, .4); animation-duration: 20s; animation-direction: reverse; }
.char-holo i:nth-child(3) { inset: 24%; border-color: rgba(240, 171, 252, .25); box-shadow: 0 0 60px rgba(192, 38, 211, .35), inset 0 0 40px rgba(124, 58, 237, .3); }
@keyframes holoSpin { to { rotate: 360deg; } }
.holo-core { position: absolute; inset: 30%; border-radius: 30%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(240, 171, 252, .35), rgba(76, 29, 149, .5) 60%, rgba(20, 10, 34, .8)); border: 1px solid rgba(240, 171, 252, .4); box-shadow: 0 0 80px rgba(192, 38, 211, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.holo-core svg { width: 56%; height: 56%; filter: drop-shadow(0 0 14px rgba(240, 171, 252, .8)); }

/* saludo */
.greet-bubble { position: absolute; top: 10%; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px; font-family: var(--display); font-weight: 700; font-size: 1rem; white-space: nowrap;
  background: rgba(255, 255, 255, .95); color: #1a0b2b; box-shadow: 0 14px 34px rgba(124, 58, 237, .45); }
.greet-bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.svc-char.right .greet-bubble { left: 10%; } .svc-char.right .greet-bubble::after { right: 22px; }
.svc-char.left .greet-bubble { right: 10%; } .svc-char.left .greet-bubble::after { left: 22px; }
.greet-bubble .hand { display: inline-block; font-size: 1.35rem; transform-origin: 70% 80%; }
.greet-bubble.waving .hand { animation: wave 1.2s ease-in-out 2; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(16deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(10deg); } }

/* elementos flotantes */
.char-float { position: absolute; z-index: 2; pointer-events: none; }
.char-float b { display: inline-block; padding: 8px 13px; border-radius: 14px; font-family: var(--display); font-size: .9rem; font-weight: 700; color: #f5eaff;
  background: rgba(30, 18, 48, .72); border: 1px solid rgba(232, 121, 249, .35); box-shadow: 0 10px 30px rgba(124, 58, 237, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: bob 5s ease-in-out infinite; }
.char-float.f0 { top: 18%; } .char-float.f1 { top: 46%; } .char-float.f2 { bottom: 16%; }
.svc-char.right .f0 { left: 0; } .svc-char.right .f1 { right: 2%; } .svc-char.right .f2 { left: 6%; }
.svc-char.left .f0 { right: 0; } .svc-char.left .f1 { left: 2%; } .svc-char.left .f2 { right: 6%; }
.char-float.f1 b { animation-delay: -1.6s; animation-duration: 6s; } .char-float.f2 b { animation-delay: -3s; animation-duration: 5.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.spark { position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 8px #e879f9); animation: twinkle 2.8s ease-in-out infinite; }
.spark.s1 { top: 16%; right: 12%; } .spark.s2 { bottom: 26%; left: 14%; animation-delay: -1.4s; width: 11px; height: 11px; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

@media (max-width: 899px) {
  .svc-panel { flex-direction: column; align-items: stretch; padding: 0 clamp(18px, 5vw, 32px) 30px; min-height: 0; }
  .svc-sec.left .svc-panel { justify-content: flex-start; }
  .svc-char { position: relative; order: -1; width: 100%; height: min(96vw, 470px); margin-top: -60px; inset: auto; }
  .svc-char.left, .svc-char.right { left: auto; right: auto; }
  .svc-copy { width: 100%; }
  .svc-num { top: auto; bottom: 30%; font-size: 7rem; }
  .feats { grid-template-columns: 1fr; }
  .greet-bubble { top: 14%; font-size: .9rem; }
  .char-float b { font-size: .78rem; padding: 6px 10px; }
}

/* ---------- manifiesto ---------- */
.mf-h { font-size: clamp(2.4rem, 6.4vw, 5.4rem); margin-bottom: 36px; }
.mf-h .rv { display: inline-block; }
.mf-year { --s: 0; position: relative; display: inline-block; color: rgba(236, 228, 246, calc(1 - var(--s) * .55)); }
.mf-year i { position: absolute; left: -4%; right: -4%; top: 52%; height: .08em; border-radius: 4px; background: linear-gradient(90deg, var(--pink), var(--magenta)); box-shadow: 0 0 20px var(--magenta); transform: scaleX(var(--s)) rotate(-4deg); transform-origin: left; }
.mf-p { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.38; letter-spacing: -.015em; }

/* ---------- tarjetas con foco ---------- */
.spot { position: relative; isolation: isolate; border-radius: 24px; padding: clamp(24px, 3vw, 36px); background: linear-gradient(160deg, rgba(22, 13, 31, .85), rgba(10, 6, 15, .85)); border: 1px solid var(--stroke); overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(192, 38, 211, .16), transparent 45%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 300ms ease; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 171, 252, .9), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) { .spot:hover::before, .spot:hover::after { opacity: 1; } }
.spot h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; margin-bottom: 8px; }
.spot > p { color: var(--muted); }
.row { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; border-radius: 16px; text-align: left; background: rgba(124, 58, 237, .07); border: 1px solid var(--stroke); transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
a.row:active, button.row:active { transform: scale(.98); }
.row + .row { margin-top: 10px; }
.row-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(232, 121, 249, .1); color: var(--pink); }
.row b { display: block; font-weight: 600; font-size: .95rem; }
.row small { display: block; color: var(--muted); font-size: .82rem; }
.row-go { margin-left: auto; color: var(--pink); font-size: .85rem; font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { a.row:hover, button.row:hover { background: rgba(124, 58, 237, .16); border-color: var(--stroke-hi); } }

/* ---------- por qué ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 1600px; }
.why-n { display: block; font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--pink); letter-spacing: .14em; margin-bottom: 26px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- dolores (apiladas) ---------- */
.pain-stack { position: relative; }
.pain { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 14vh + var(--i) * 24px); perspective: 1400px; margin-bottom: 14vh; }
.pain:last-child { margin-bottom: 0; }
.pain-in { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; min-height: clamp(220px, 34vh, 320px); padding: clamp(28px, 4.5vw, 60px); border-radius: 30px; transform-origin: 50% 0;
  background: radial-gradient(90% 120% at 100% 0%, rgba(192, 38, 211, .16), transparent 60%), linear-gradient(150deg, #1b1025, #0b0711);
  border: 1px solid rgba(216, 180, 254, .16); box-shadow: 0 -20px 60px rgba(0, 0, 0, .55); }
.pain-n { font-family: var(--display); font-weight: 900; font-size: clamp(3.6rem, 10vw, 8.5rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px rgba(232, 121, 249, .7); }
.pain h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.pain p { color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.1rem); max-width: 52ch; }
.pain-shade { position: absolute; inset: 0; border-radius: inherit; background: #040207; opacity: 0; pointer-events: none; }
@media (max-width: 620px) { .pain-in { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- proceso ---------- */
.proc { position: relative; }
.proc-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(196, 140, 255, .12); border-radius: 2px; }
.proc-fill { position: absolute; inset: 0; transform-origin: top; background: linear-gradient(var(--violet), var(--pink)); box-shadow: 0 0 16px var(--magenta); }
.proc-orb { position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(232, 121, 249, .25), 0 0 30px 8px rgba(192, 38, 211, .8); }
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4vh 0; perspective: 1200px; }
.step-dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(196, 140, 255, .3); transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease; z-index: 1; }
.step.on .step-dot { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 18px var(--pink); }
.step-card { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 34px); border-radius: 24px; background: linear-gradient(160deg, rgba(22, 13, 31, .9), rgba(10, 6, 15, .9)); border: 1px solid var(--stroke); transition: border-color 400ms ease, box-shadow 400ms ease; }
.step.on .step-card { border-color: var(--stroke-hi); box-shadow: 0 20px 60px rgba(124, 58, 237, .18); }
.step.l .step-card { grid-column: 1; margin-right: clamp(32px, 5vw, 64px); }
.step.r .step-card { grid-column: 2; margin-left: clamp(32px, 5vw, 64px); }
.step-card small { color: var(--pink); font-weight: 600; font-size: .74rem; letter-spacing: .24em; }
.step-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 8px 0; }
.step-card p { color: var(--muted); position: relative; z-index: 1; }
.step-big { position: absolute; right: -6px; bottom: -34px; font-family: var(--display); font-weight: 900; font-size: 9rem; line-height: 1; color: rgba(124, 58, 237, .09); pointer-events: none; }
@media (max-width: 760px) {
  .proc-track, .proc-orb, .step-dot { left: 14px; }
  .step { grid-template-columns: 1fr; padding: 2.5vh 0; }
  .step.l .step-card, .step.r .step-card { grid-column: 1; margin: 0 0 0 44px; }
}

/* ---------- resultados ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: left; }
.odo { display: flex; align-items: flex-start; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 14px; }
.odo-win { display: inline-block; height: 1em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; will-change: transform; }
.odo-col span { display: block; height: 1em; line-height: 1; background: linear-gradient(180deg, #fff, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.odo-suf { color: var(--pink); }
.stat > span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { gap: 10px; } .stat { padding: 20px; } }

/* ---------- insights ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.ins-card { display: flex; flex-direction: column; }
.ins-tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); background: rgba(232, 121, 249, .08); border: 1px solid var(--stroke); margin-bottom: 18px; }
.ins-card .row { margin-bottom: 14px; }
.ins-card .btn { margin-top: auto; }
@media (max-width: 900px) { .ins-grid { grid-template-columns: 1fr; } }

/* ---------- CTA líderes ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: clamp(60px, 9vw, 120px) clamp(22px, 5vw, 80px); text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(192, 38, 211, .32), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(124, 58, 237, .4), transparent 60%), #0b0610;
  border: 1px solid var(--stroke-hi); }
/* lámpara de lava: burbujas de luz que suben, se estiran y se funden */
.lava { position: absolute; inset: -12%; z-index: -1; filter: blur(46px) saturate(1.2); opacity: .85; pointer-events: none; }
.lava i { position: absolute; border-radius: 50%; will-change: transform; animation: lavaRise ease-in-out infinite alternate; }
.lava i:nth-child(1) { width: 42%; height: 52%; left: 4%; top: 52%; background: radial-gradient(circle at 40% 40%, #c026d3, rgba(192, 38, 211, 0) 70%); animation-duration: 17s; }
.lava i:nth-child(2) { width: 36%; height: 46%; left: 58%; top: 48%; background: radial-gradient(circle at 50% 50%, #7c3aed, rgba(124, 58, 237, 0) 70%); animation-duration: 21s; animation-delay: -6s; }
.lava i:nth-child(3) { width: 30%; height: 38%; left: 34%; top: 66%; background: radial-gradient(circle at 50% 50%, #e879f9, rgba(232, 121, 249, 0) 70%); animation-duration: 14s; animation-delay: -3s; }
.lava i:nth-child(4) { width: 26%; height: 34%; left: 70%; top: 8%; background: radial-gradient(circle, #a855f7, rgba(168, 85, 247, 0) 70%); animation-name: lavaSink; animation-duration: 19s; animation-delay: -9s; }
.lava i:nth-child(5) { width: 34%; height: 40%; left: 12%; top: 4%; background: radial-gradient(circle, #9333ea, rgba(147, 51, 234, 0) 70%); animation-name: lavaSink; animation-duration: 23s; animation-delay: -4s; }
.lava i:nth-child(6) { width: 22%; height: 30%; left: 46%; top: 30%; background: radial-gradient(circle, #f0abfc, rgba(240, 171, 252, 0) 70%); opacity: .7; animation-name: lavaDrift; animation-duration: 16s; animation-delay: -2s; }
@keyframes lavaRise {
  0% { transform: translate(0, 0) scale(1, 1); }
  30% { transform: translate(6%, -38%) scale(.86, 1.18); }
  60% { transform: translate(-4%, -70%) scale(1.12, .9); }
  100% { transform: translate(3%, -96%) scale(.94, 1.08); }
}
@keyframes lavaSink {
  0% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-8%, 50%) scale(1.15, .88); }
  100% { transform: translate(5%, 110%) scale(.9, 1.12); }
}
@keyframes lavaDrift {
  0% { transform: translate(-30%, 20%) scale(.9); }
  100% { transform: translate(40%, -30%) scale(1.25); }
}
.cta-in { position: relative; }
.cta-band .lt { max-width: 16ch; margin-inline: auto; }
.cta-band .lead { margin: 0 auto 34px; color: rgba(236, 228, 246, .82); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- contacto ---------- */
.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.wizard { position: relative; border-radius: 26px; padding: clamp(22px, 3vw, 32px); background: linear-gradient(160deg, rgba(26, 15, 37, .9), rgba(10, 6, 15, .9)); border: 1px solid rgba(216, 180, 254, .2); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.wizard-top { display: flex; align-items: center; gap: 16px; }
.wizard-headline { min-height: 58px; }
.wizard-headline b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.wizard-headline span { color: var(--muted); font-size: .9rem; }
.wizard-dots { display: flex; gap: 6px; margin: 22px 0 18px; }
.wizard-dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(196, 140, 255, .15); transition: background-color 300ms ease; }
.wizard-dots i.done { background: var(--pink); }
.wizard-dots i.current { background: linear-gradient(90deg, var(--pink), var(--violet)); }
.wizard-body { position: relative; min-height: 196px; perspective: 1000px; }
.field { width: 100%; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); color: var(--white); font: 16px var(--body); transition: border-color 200ms ease, box-shadow 200ms ease; }
.field::placeholder { color: rgba(139, 125, 156, .8); }
.field:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(232, 121, 249, .14); }
textarea.field { min-height: 120px; resize: vertical; }
.wiz-svcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wiz-svc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; text-align: left; font-size: .88rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke); transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.wiz-svc:active { transform: scale(.97); }
.wiz-svc.sel { background: rgba(232, 121, 249, .14); border-color: var(--pink); }
.wiz-svc .ic { font-size: 1.1rem; }
.wiz-sum { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.wiz-sum b { color: var(--white); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.wiz-back { color: var(--muted); font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.wiz-back.show { opacity: 1; pointer-events: auto; }
@media (max-width: 420px) { .wiz-svcs { grid-template-columns: 1fr; } }
.mascot { flex-shrink: 0; filter: drop-shadow(0 10px 24px rgba(192, 38, 211, .45)); }
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.mascot .blob { transform-origin: 50% 60%; animation: blobby 5s ease-in-out infinite; }
@keyframes blobby { 50% { transform: scale(1.03, .97); } }
.offices h3 { margin-bottom: 4px; }
.offices > p { margin-bottom: 18px; }

/* ---------- modales ---------- */
.mod-ov { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 7, .66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mod { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 40px); border-radius: 28px;
  background: radial-gradient(100% 60% at 50% 0%, rgba(192, 38, 211, .14), transparent 60%), linear-gradient(165deg, #1a1026, #0b0711);
  border: 1px solid rgba(216, 180, 254, .22); box-shadow: 0 40px 100px rgba(0, 0, 0, .65), 0 0 60px rgba(124, 58, 237, .14); }
.mod.center { text-align: center; }
.mod.sched { width: min(780px, 100%); }
.mod-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); transition: color 200ms ease, background-color 200ms ease; z-index: 2; }
@media (hover: hover) and (pointer: fine) { .mod-x:hover { color: #fff; background: rgba(255, 255, 255, .12); } }
.mod-ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(124, 58, 237, .14); border: 1px solid var(--stroke); margin-bottom: 18px; }
.mod.center .mod-ico { margin-inline: auto; }
.mod-ico svg { width: 32px; height: 32px; }
.mod h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 10px; }
.mod-desc { color: var(--muted); margin-bottom: 18px; }
.mod-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.mod-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.mod-list li::before { content: "✦"; color: var(--pink); font-size: .8rem; margin-top: 4px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mod-actions.center { justify-content: center; }
.sched-frame { border-radius: 16px; overflow: hidden; background: #fff; }
.sched-frame iframe { display: block; width: 100%; height: min(62vh, 600px); border: 0; }
.sched-fallback { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.sched-fallback a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.quiz-top { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.quiz-eyebrow { color: var(--pink); font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.quiz-q { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.3; margin-bottom: 18px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { padding: 15px 18px; border-radius: 14px; text-align: left; font-size: .93rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke); transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.quiz-opt:active { transform: scale(.98); }
.quiz-opt.sel { background: linear-gradient(135deg, rgba(124, 58, 237, .5), rgba(192, 38, 211, .5)); border-color: var(--pink); }
@media (hover: hover) and (pointer: fine) { .quiz-opt:hover { border-color: var(--stroke-hi); background: rgba(124, 58, 237, .1); } }
.quiz-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.quiz-result p { color: var(--muted); }
.quiz-score { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.quiz-score.good { color: var(--lilac); }
.quiz-score.bad { color: #f87171; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.confetti i { position: absolute; top: -16px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(620px) rotate(600deg); opacity: 0; } }
.grat-check { width: 70px; margin: 0 auto 6px; }
.grat-check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grat-mascot { display: flex; justify-content: center; margin-bottom: 10px; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; padding-top: clamp(80px, 12vh, 140px); border-top: 1px solid var(--stroke); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-kicker { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 18px; }
.foot-nav, .foot-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-nav button, .foot-nav a, .foot-contact a, .foot-contact span { color: var(--muted); font-size: .95rem; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-nav button:hover, .foot-nav a:hover, .foot-contact a:hover { color: var(--pink); } }
.mega { display: flex; justify-content: center; font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 12.5vw, 13rem); line-height: .9; letter-spacing: -.05em; margin-top: clamp(60px, 10vh, 120px); padding: 0 2vw; white-space: nowrap; }
.mk { display: inline-block; overflow: hidden; padding-bottom: .06em; }
.mk .ch { display: inline-block; }
.mk.dot .ch { color: var(--pink); }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 26px calc(env(safe-area-inset-bottom, 0px) + 26px); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--stroke); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- mascota: orbe de vidrio ---------- */
.orb { position: relative; flex-shrink: 0; animation: orbFloat 4.5s ease-in-out infinite; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.orb-body, .orb-squish { position: absolute; inset: 0; }
.orb svg { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(167, 139, 250, .55)) drop-shadow(0 0 26px rgba(232, 121, 249, .3)); }
.orb-halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .35), rgba(232, 121, 249, .12) 45%, transparent 68%); }
.orb-sp { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #c4b5fd; box-shadow: 0 0 6px #a78bfa; animation: orbSp 2.6s ease-in-out infinite; }
.orb-sp.a { top: 2%; left: 18%; } .orb-sp.b { top: 12%; right: 0; animation-delay: -.8s; } .orb-sp.c { bottom: 6%; left: 2%; animation-delay: -1.6s; } .orb-sp.d { bottom: 0; right: 16%; animation-delay: -2.1s; width: 3px; height: 3px; }
@keyframes orbSp { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.orb.happy svg { filter: drop-shadow(0 0 14px rgba(240, 171, 252, .8)) drop-shadow(0 0 34px rgba(232, 121, 249, .45)); }
.orb.sad .orb-halo { background: radial-gradient(circle, rgba(103, 232, 249, .22), rgba(139, 92, 246, .1) 45%, transparent 68%); }

/* ---------- contacto: tarjeta que se expande ---------- */
.wiz-holder { position: relative; }
.wizard.teaser { cursor: pointer; transition: border-color 200ms ease, box-shadow 300ms ease; }
@media (hover: hover) and (pointer: fine) { .wizard.teaser:hover { border-color: var(--stroke-hi); box-shadow: 0 30px 80px rgba(0, 0, 0, .4), 0 0 50px rgba(124, 58, 237, .25); } }
.field.fake { color: rgba(139, 125, 156, .8); margin-bottom: 70px; }
.wizard-nav .btn.soft { opacity: .5; }
.w-orb { z-index: 3; width: fit-content; height: fit-content; }
.w-orb.card { flex-shrink: 0; }
.wiz-ov { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 7, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wiz-modal {
  position: relative; width: min(680px, 100%); height: min(660px, calc(100svh - 32px)); overflow: hidden auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(216, 180, 254, .28);
  background: radial-gradient(90% 55% at 50% 0%, rgba(192, 38, 211, .2), transparent 65%), linear-gradient(165deg, #1b1027, #0a0710);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 80px rgba(124, 58, 237, .2);
}
.wiz-stage, .quiz-stage { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.w-orb.intro { position: absolute; inset: 0; margin: auto; transform-origin: center; }
.w-orb.form, .w-orb.q { position: relative; margin: 0 auto 6px; }
.w-orb.done, .w-orb.result { position: relative; margin: 20px auto 14px; }
.wiz-hi { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.wiz-form, .quiz-q-wrap { width: 100%; }
.wizard-headline.center { text-align: center; min-height: 64px; }
.wiz-done, .quiz-result { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wiz-done h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.quiz-head { text-align: center; }
.mod.quiz.big { width: min(680px, 100%); min-height: min(600px, calc(100svh - 32px)); }

/* resultados del test */
.orb-say { position: absolute; left: 76%; top: -6px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: .95rem; background: #fff; color: #1a0b2b; box-shadow: 0 14px 34px rgba(124, 58, 237, .4); }
@media (max-width: 600px) { .orb-say { left: 50%; top: -50px; translate: -50% 0; border-radius: 16px; } }
.sad-hearts { position: absolute; inset: 0; pointer-events: none; }
.sad-hearts i { position: absolute; bottom: 20%; font-style: normal; font-size: 14px; opacity: 0; animation: heartUp 3s ease-out infinite; }
.sad-hearts i:nth-child(1) { left: 10%; animation-delay: 1.2s; } .sad-hearts i:nth-child(2) { left: 50%; animation-delay: 2s; } .sad-hearts i:nth-child(3) { left: 82%; animation-delay: 2.7s; }
@keyframes heartUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }
.rays { position: absolute; left: 50%; top: 110px; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(240, 171, 252, .35) 0deg 6deg, transparent 6deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%); mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  animation: raysSpin 16s linear infinite; }
@keyframes raysSpin { to { rotate: 360deg; } }
.quiz-stage { isolation: isolate; min-height: min(520px, calc(100svh - 110px)); }
.rays { z-index: -1; }
.burst { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 500; pointer-events: none; }

/* ---------- detalle de servicio ---------- */
.sd-ov { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 7, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sd {
  position: relative; width: min(1060px, 100%); height: min(720px, calc(100svh - 32px));
  display: grid; grid-template-columns: 40% 60%; overflow: hidden; border-radius: 32px;
  border: 1px solid rgba(216, 180, 254, .28);
  background: radial-gradient(70% 60% at 0% 0%, rgba(124, 58, 237, .28), transparent 60%), linear-gradient(165deg, #1b1027, #0a0710);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 90px rgba(192, 38, 211, .22);
}
.sd-visual { position: relative; overflow: hidden; background: radial-gradient(80% 60% at 50% 70%, rgba(124, 58, 237, .45), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.sd-char { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 35%; animation: sdKen 14s ease-in-out 1.3s infinite alternate; }
@keyframes sdKen { to { transform: scale(1.2) translate(-2%, 1.5%); } }
.sd-visual-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10, 7, 16, .85), transparent 35%); }
.sd-badge { position: absolute; left: 22px; bottom: 22px; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center;
  background: rgba(20, 12, 32, .72); border: 1px solid rgba(232, 121, 249, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, .45), inset 0 1px 0 rgba(255, 255, 255, .15); }
.sd-num { position: absolute; right: 18px; top: 10px; font-family: var(--display); font-weight: 800; font-size: 5.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(240, 171, 252, .35); }
.sd-body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 48px) clamp(22px, 3.5vw, 44px) 32px; }
.sd-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 6px; padding-right: 40px; }
.sd-tag { color: var(--pink); font-weight: 600; margin-bottom: 12px; }
.sd-intro { color: rgba(236, 228, 246, .8); font-size: 1.02rem; max-width: 58ch; }
.sd-h { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.sd-incl { display: grid; gap: 8px; }
.sd-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--stroke); }
.sd-card b { display: block; font-size: .95rem; margin-bottom: 2px; }
.sd-card p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.sd-chk { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--magenta)); box-shadow: 0 0 14px rgba(192, 38, 211, .5); transform: scale(0); animation: chkPop .45s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.sd-chk svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; animation: chkDraw .4s ease-out forwards; animation-delay: inherit; }
@keyframes chkPop { to { transform: scale(1); } }
@keyframes chkDraw { to { stroke-dashoffset: 0; } }
.sd-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.sd-steps li { position: relative; padding: 14px 12px; border-radius: 16px; font-size: .86rem; line-height: 1.4; background: rgba(124, 58, 237, .08); border: 1px solid var(--stroke); }
.sd-steps li span { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 8px; font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--pink); border: 1px solid var(--stroke-hi); }
.sd-ideal { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-ideal span { padding: 8px 14px; border-radius: 999px; font-size: .86rem; background: rgba(232, 121, 249, .07); border: 1px solid var(--stroke); }
.sd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 860px) {
  .sd { grid-template-columns: 1fr; grid-template-rows: 250px 1fr; height: calc(100svh - 32px); }
  .sd-visual { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .sd-visual-fade { background: none; }
  .sd-char { object-position: 50% 25%; }
  .sd-badge { width: 76px; height: 76px; border-radius: 22px; left: 16px; bottom: auto; top: 168px; }
  .sd-badge svg { width: 50px; height: 50px; }
  .sd-num { font-size: 4rem; right: 60px; }
  .sd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-body { padding-top: 18px; }
}

/* íconos animados por servicio */
.anim-icon { overflow: visible; filter: drop-shadow(0 0 10px rgba(232, 121, 249, .45)); }
.anim-icon * { transform-box: fill-box; }
.ai-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: aiType 3.2s ease-in-out infinite; }
.ai-line.l2 { animation-delay: .35s; } .ai-line.l3 { animation-delay: .7s; }
@keyframes aiType { 0% { stroke-dashoffset: 1; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.ai-caret { animation: caret .8s step-end infinite; }
.ai-bar { transform-origin: 50% 100%; animation: aiGrow 2.6s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.ai-bar.b2 { animation-delay: .15s; } .ai-bar.b3 { animation-delay: .3s; }
@keyframes aiGrow { 0% { transform: scaleY(.25); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.25); } }
.ai-lens { animation: aiScan 2.6s ease-in-out infinite; }
@keyframes aiScan { 0%, 100% { transform: translate(-22px, 14px); } 50% { transform: translate(0, 0); } }
.ai-gem { transform-origin: 50% 50%; animation: aiGem 3.4s ease-in-out infinite; }
@keyframes aiGem { 0%, 100% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.06); } }
.ai-shine { animation: aiShine 1.7s ease-in-out infinite; }
@keyframes aiShine { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.ai-heart { transform-origin: 50% 100%; animation: aiHeart 2.4s ease-out infinite; }
.ai-heart.h2 { animation-delay: .8s; } .ai-heart.h3 { animation-delay: 1.6s; }
@keyframes aiHeart { 0% { transform: translateY(8px) scale(.4); opacity: 0; } 20% { opacity: 1; transform: translateY(0) scale(1); } 100% { transform: translateY(-22px) scale(.8); opacity: 0; } }
.ai-ring { transform-origin: 50% 50%; animation: aiRing 2s ease-in-out infinite; }
.ai-ring.r2 { animation-delay: .2s; }
@keyframes aiRing { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .6; } }
.ai-arrow { animation: aiArrow 2s cubic-bezier(.22, 1, .36, 1) infinite; }
@keyframes aiArrow { 0% { transform: translate(18px, -18px); opacity: 0; } 30% { transform: translate(0, 0); opacity: 1; } 38% { transform: translate(-2px, 2px); } 46%, 85% { transform: translate(0, 0); opacity: 1; } 100% { opacity: 0; } }
.ai-eye { transform-origin: 50% 50%; animation: aiBlink 3.5s ease-in-out infinite; }
@keyframes aiBlink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.ai-ant { animation: aiShine 1.2s ease-in-out infinite; }
.ai-wave { animation: aiShine 1.2s ease-in-out infinite; } .ai-wave.w2 { animation-delay: .3s; }

/* ---------- botón flotante de WhatsApp ---------- */
.wa-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 150;
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 17px; border-radius: 999px;
  color: #fff; background: linear-gradient(145deg, #2fe07a, #1fb457); box-shadow: 0 12px 30px rgba(31, 180, 87, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity 300ms ease, transform 400ms var(--ease-out), box-shadow 300ms ease;
}
.wa-fab.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 600px) { .wa-fab { height: 52px; padding: 0 13px; } .wa-fab svg { width: 25px; height: 25px; } }
.wa-fab svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-fab span { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem; transition: max-width 350ms var(--ease-out); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(47, 224, 122, .55); animation: waPulse 2.6s ease-out infinite; z-index: -1; }
@keyframes waPulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(47, 224, 122, 0); } }
.wa-fab.show:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover span { max-width: 190px; }
  .wa-fab:hover { box-shadow: 0 16px 40px rgba(31, 180, 87, .6); }
}

/* =====================================================================
   Movimiento reducido: sin entradas, sin loops; se conserva lo que explica
===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .w-e, .intro, .rise, .lid-open, .boot-in { animation: none !important; transform: none !important; opacity: 1 !important; }
  .navx::before, .lava i, .grad, .wa-fab::before, .win-logo, .orb, .orb-sp, .rays, .sad-hearts i, .sd-char, .anim-icon *, .scroll-hint span::after, .char-idle, .char-float b, .spark, .char-holo i { animation: none !important; }
  .win-type span { animation: none; width: auto; border-right: 0; }
}
