/* =========================================================
   ArceWeb — estilos
   Mobile-first · modo oscuro · negro/grafito + blanco + azul eléctrico
   ========================================================= */

:root {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --surface: #121215;
  --surface-2: #19191d;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f5f5f7;
  --muted: #a1a1a8;
  --faint: #6e6e76;
  --blue: #2b7fff;
  --blue-2: #5eb0ff;
  --blue-deep: #0b3fd1;
  --glow: rgba(43, 127, 255, .45);

  --font: "SF Pro Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 64px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { position: relative; padding-block: clamp(80px, 11vw, 136px); }
.section--dark { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }

.section__head { max-width: 760px; margin-bottom: clamp(48px, 8vw, 88px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-2);
}
.title {
  font-size: clamp(2.35rem, 6.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 620px; font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.lead b { color: var(--text); font-weight: 600; }
.muted { color: var(--faint); }
.grad {
  font-style: normal;
  background: linear-gradient(100deg, #fff 0%, var(--blue-2) 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.note { margin-top: 40px; max-width: 680px; color: var(--faint); font-size: .95rem; }
.note--center { margin-inline: auto; text-align: center; }
.disclaimer {
  margin: 28px auto 0; width: fit-content; max-width: 100%;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--muted); text-align: center;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, box-shadow .35s var(--ease), color .25s;
}
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px var(--glow); }
.btn--primary:hover { background: #3f8cff; transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--glow); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; color: var(--blue-2); font-weight: 600; transition: gap .3s var(--ease), color .2s; }
.link-arrow:hover { gap: .7em; color: #fff; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(8, 8, 10, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.brand { position: relative; font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.brand span { color: var(--blue-2); }
.brand i { position: absolute; right: -9px; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }

.nav__toggle {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 20px; height: 1.6px; background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto;
  height: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px));
  padding: 24px var(--gutter) 40px;
  background: rgba(8, 8, 10, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em;
}
.nav__menu a.is-active { color: var(--blue-2); }
.nav__cta { align-self: flex-start; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; height: auto; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    flex-direction: row; align-items: center; gap: 28px;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__menu ul { display: flex; gap: 4px; }
  .nav__menu li a {
    padding: 8px 12px; border: 0; font-size: .9rem; font-weight: 500; color: var(--muted);
    transition: color .2s;
  }
  .nav__menu li a:hover, .nav__menu li a.is-active { color: var(--text); }
}

/* ---------- 1. Hero ---------- */
.hero {
  --p: 0;
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding-block: calc(var(--nav-h) + 40px) 96px;
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; left: 50%; top: 58%;
  width: min(1100px, 140vw); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(1 + var(--p) * .5));
  background:
    radial-gradient(closest-side, rgba(43, 127, 255, .38), rgba(43, 127, 255, .12) 45%, transparent 72%),
    radial-gradient(closest-side at 60% 40%, rgba(94, 176, 255, .18), transparent 60%);
  filter: blur(20px);
  animation: breathe 9s ease-in-out infinite;
}
.hero__grid {
  position: absolute; inset: auto -20% -10% -20%; height: 60%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  opacity: calc(.8 - var(--p));
}
.hero__horizon {
  position: absolute; left: 0; right: 0; top: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 176, 255, .7), transparent);
  box-shadow: 0 0 30px 4px rgba(43, 127, 255, .35);
  opacity: calc(.9 - var(--p) * 1.5);
}
.hero__content {
  text-align: center;
  opacity: calc(1 - var(--p) * 1.6);
  transform: translateY(calc(var(--p) * -80px)) scale(calc(1 - var(--p) * .08));
  will-change: transform, opacity;
}
.hero__title {
  font-size: clamp(2.9rem, 10.5vw, 8.25rem);
  line-height: .98; letter-spacing: -.05em; font-weight: 700;
}
.hero__line { display: block; }
.hero__lead { margin: 32px auto 0; max-width: 600px; font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--muted); line-height: 1.5; }
.hero .btn-row { justify-content: center; }
.hero__in { opacity: 0; transform: translateY(28px); filter: blur(8px); animation: rise 1.2s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .14s); }

.hero__scroll {
  position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px;
  opacity: calc(1 - var(--p) * 4);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: scrollcue 2s var(--ease) infinite; }

@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes breathe { 50% { opacity: .75; } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. Statement (texto que se ilumina) ---------- */
.statement { --p: 0; position: relative; height: 260vh; }
.statement__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.statement__text {
  max-width: 1080px;
  font-size: clamp(1.9rem, 5.2vw, 4rem);
  line-height: 1.14; letter-spacing: -.03em; font-weight: 700;
}
.statement__text .w { color: rgba(255, 255, 255, .14); transition: color .4s; }
.statement__text .w.is-lit { color: var(--text); }
.statement__text .w.is-accent.is-lit { color: var(--blue-2); }

.pillars { padding-top: 40px; }
.pillars__grid { display: grid; gap: 20px; }
.pillar { padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), transparent); }
.pillar__num { display: block; margin-bottom: 48px; font-size: .85rem; font-weight: 600; color: var(--blue-2); letter-spacing: .1em; }
.pillar h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.pillar p { margin-top: 12px; color: var(--muted); }
@media (min-width: 800px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 3. Servicios ---------- */
.services { display: grid; gap: 14px; }
.service {
  position: relative; overflow: hidden;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, transform .5s var(--ease), background-color .3s;
}
.service::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(43, 127, 255, .16), transparent 60%);
  transition: opacity .3s;
}
.service:hover { border-color: var(--line-2); }
.service:hover::after { opacity: 1; }
.service__ico { width: 34px; height: 34px; margin-bottom: 26px; fill: none; stroke: var(--blue-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
.service p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.service--wide h3 { font-size: 1.6rem; }
.service--accent { background: linear-gradient(145deg, rgba(43, 127, 255, .22), var(--surface) 60%); border-color: rgba(94, 176, 255, .35); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .service--wide { grid-column: span 2; padding: 40px 36px; }
}

/* ---------- 4. Antes / Después ---------- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; max-width: 1040px; margin-inline: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(43, 127, 255, .35);
  container-type: inline-size;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
@media (min-width: 700px) { .compare { aspect-ratio: 16 / 10; } }
.compare__layer { position: absolute; inset: 0; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(94, 176, 255, .9); pointer-events: none; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border-block: 6px solid transparent;
}
.compare__handle span::before { left: 11px; border-right: 8px solid var(--bg); }
.compare__handle span::after { right: 11px; border-left: 8px solid var(--bg); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 4px; }
.compare__tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none;
  background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(8px);
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; background: var(--blue); }

/* Web "antigua" */
.old-site {
  height: 100%; background: #efe9d8; color: #222; font-family: "Times New Roman", Times, serif;
  font-size: 2.6cqw; display: flex; flex-direction: column;
}
.old-site__marquee { background: #800000; color: #ff0; text-align: center; padding: .6em; font-weight: bold; font-family: "Comic Sans MS", "Comic Sans", cursive; }
.old-site__head { padding: 1em 1.4em; background: linear-gradient(#b7c9e2, #7e9cc4); border-bottom: 3px ridge #999; }
.old-site__logo { display: block; font-size: 2.1em; color: #003399; font-style: italic; font-weight: bold; text-shadow: 2px 2px 0 #fff; }
.old-site__links { color: #00e; text-decoration: underline; font-size: .9em; }
.old-site__body { flex: 1; display: grid; grid-template-columns: 26% 1fr; min-height: 0; }
.old-site__side { background: #d6ceb6; padding: 1em; display: flex; flex-direction: column; gap: .5em; color: #00e; text-decoration: underline; border-right: 2px groove #aaa; }
.old-site__counter { margin-top: auto; padding: .3em; background: #000; color: #0f0; font-family: "Courier New", monospace; text-decoration: none; font-size: .85em; text-align: center; }
.old-site__main { padding: 1.2em; overflow: hidden; }
.old-site__main strong { color: #800000; text-decoration: underline; }
.old-site__main p { margin-top: .6em; line-height: 1.35; text-align: justify; }
.old-site__img { margin-top: .8em; width: 55%; aspect-ratio: 4/3; border: 3px outset #ccc; background: repeating-linear-gradient(45deg, #ddd 0 8px, #ccc 8px 16px); display: grid; place-items: center; color: #777; font-size: .85em; }
.old-site__tiny { font-size: .7em; color: #777; }
@container (min-width: 700px) { .old-site { font-size: 1.45cqw; } }

/* Web "nueva" */
.new-site {
  height: 100%; background: radial-gradient(120% 90% at 80% 10%, #10306e 0%, #07070a 60%); color: #fff;
  font-family: var(--font); font-size: 2.6cqw; padding: 6em 1.6em 1.6em; display: flex; flex-direction: column;
}
.new-site__nav { display: flex; align-items: center; gap: 1.4em; font-size: .9em; color: rgba(255,255,255,.7); }
.new-site__nav b { color: #fff; font-size: 1.15em; margin-right: auto; letter-spacing: -.02em; }
.new-site__nav span:not(.new-site__btn) { display: none; }
.new-site__btn { display: inline-block; padding: .55em 1.2em; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: .9em; }
.new-site__btn--ghost { background: rgba(255,255,255,.12); }
.new-site__main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; align-items: center; padding-block: 1.2em; }
.new-site__visual {
  position: relative; height: 100%; max-height: 90%; border-radius: 1.2em; overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(94, 176, 255, .45), transparent 70%),
    linear-gradient(35deg, transparent 46%, rgba(255,255,255,.1) 47% 49%, transparent 50%),
    linear-gradient(-25deg, transparent 58%, rgba(255,255,255,.08) 59% 61%, transparent 62%),
    linear-gradient(160deg, #173a78, #0a1428);
  border: 1px solid rgba(255,255,255,.12);
}
.new-site__pin { position: absolute; left: 45%; top: 40%; width: 2.2em; height: 2.2em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); box-shadow: 0 0 2em var(--blue); }
.new-site__badge { position: absolute; left: .8em; bottom: .8em; padding: .35em .8em; border-radius: 99px; background: rgba(0,0,0,.55); font-size: .7em; color: #7ee3a6; }
.new-site__hero { min-width: 0; }
.new-site__chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .75em; color: var(--blue-2); }
.new-site__chip i { width: .5em; height: .5em; border-radius: 50%; background: var(--blue-2); }
.new-site__hero strong { display: block; margin-top: .5em; font-size: 2.1em; line-height: 1.02; letter-spacing: -.04em; }
.new-site__sub { display: block; margin-top: .7em; color: rgba(255,255,255,.65); font-size: .9em; }
.new-site__ctas { display: flex; flex-wrap: wrap; gap: .5em; margin-top: 1.1em; }
.new-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; margin-top: 1.4em; }
.new-site__cards span { padding: 1.2em .6em .5em; border-radius: .8em; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: .72em; color: rgba(255,255,255,.8); }
@container (min-width: 700px) {
  .new-site { font-size: 1.5cqw; padding: 4.6em 3em 2.4em; }
  .new-site__nav span:not(.new-site__btn) { display: inline; }
  .new-site__main { gap: 3em; }
  .new-site__hero strong { font-size: 3.1em; }
}

.compare__notes { display: grid; gap: 24px; max-width: 1040px; margin: 40px auto 0; }
.compare__notes h3 { font-size: 1.125rem; margin-bottom: 6px; }
.compare__notes div:last-child h3 { color: var(--blue-2); }
.compare__notes p { color: var(--muted); }
@media (min-width: 700px) { .compare__notes { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- 5. Portfolio ---------- */
.projects { display: grid; gap: 24px; }
.project {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .3s, transform .6s var(--ease);
}
.project:hover { border-color: var(--line-2); transform: translateY(-4px); }
.project__visual {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  display: grid; place-items: center; isolation: isolate;
}
.project__mark { font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; text-align: center; transition: transform .8s var(--ease); }
.project:hover .project__mark { transform: scale(1.05); }
.project__orb { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .7; }
.project--poda .project__visual { background: linear-gradient(160deg, #0d1f3c, #06101f); }
.project--poda .project__orb { background: radial-gradient(#2f7d4f, #1b4a8a 70%); }
.project--poda .project__mark { color: #eaf3ff; }
.project--xesco .project__visual { background: #0a0a0a; }
.project--xesco .project__orb { background: radial-gradient(#ff3b3b, transparent 70%); opacity: .45; }
.project--xesco .project__mark { color: #fff; text-transform: uppercase; font-style: italic; }
.project__body { padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__tag { font-size: .8rem; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.project h3 { font-size: 2rem; letter-spacing: -.03em; }
.project p { color: var(--muted); }
.project .link-arrow { margin-top: auto; padding-top: 10px; }
@media (min-width: 800px) { .projects { grid-template-columns: 1fr 1fr; } }

/* ---------- 6. Showcase (dispositivos) ---------- */
.showcase { --p: 0; --rise: 1; position: relative; height: 320vh; }
.showcase__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.showcase__sticky::before {
  content: ""; position: absolute; left: 50%; top: 65%; width: 120vw; height: 70vh; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(43, 127, 255, .22), transparent);
  pointer-events: none;
}
.showcase__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 4vh, 44px); padding-top: var(--nav-h); }
.showcase__head { text-align: center; }
.showcase__head .title { font-size: clamp(1.9rem, 5vw, 3.75rem); }
.showcase__captions { position: relative; height: 1.6em; margin-top: 14px; color: var(--muted); }
.showcase__caption { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.showcase__caption.is-active { opacity: 1; transform: none; }
.showcase__caption b { color: var(--text); }

.devices {
  position: relative; width: min(820px, 92vw, (100svh - 420px) * 1.4);
  min-width: min(300px, 92vw);
  transform: perspective(1400px) rotateX(calc((1 - var(--rise)) * 24deg)) translateY(calc((1 - var(--rise)) * 60px)) scale(calc(.9 + var(--rise) * .1));
  transform-origin: 50% 100%;
  opacity: calc(.3 + var(--rise) * .7);
  will-change: transform;
}
.laptop { width: 88%; }
.laptop__lid {
  position: relative; padding: 2.2% 2.2% 2.6%;
  background: #0c0c0e; border: 1px solid #2b2b30; border-radius: 16px 16px 4px 4px;
  box-shadow: 0 0 0 1px #000 inset, 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.laptop__cam { position: absolute; top: .8%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1f1f24; }
.laptop__base {
  position: relative; height: clamp(10px, 1.6vw, 16px); width: 112%; margin-left: -6%;
  background: linear-gradient(180deg, #45454b, #1d1d21 60%, #0e0e10);
  border-radius: 2px 2px 14px 14px;
}
.laptop__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 45%; margin-left: -8%; background: #151518; border-radius: 0 0 8px 8px; }

.phone { position: absolute; right: 0; bottom: -4%; width: 24%; min-width: 92px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .8)); transform: translateY(calc((1 - var(--rise)) * 40px)); }
.phone__frame { position: relative; aspect-ratio: 9 / 19.2; padding: 6%; background: #0c0c0e; border: 1px solid #34343a; border-radius: 18% / 8.5%; }
.phone__island { position: absolute; z-index: 3; top: 4.2%; left: 50%; width: 30%; height: 3%; margin-left: -15%; border-radius: 999px; background: #000; }

.screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #000; border-radius: 4px; }
.screen--phone { aspect-ratio: auto; height: 100%; border-radius: 13% / 6%; }
.screen__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.screen__slide.is-active { opacity: 1; transform: none; }
.screen__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Presentación visual cuando no hay capturas */
.screen__ph { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5% 6%; container-type: inline-size; }
.screen__slide--poda .screen__ph { background: radial-gradient(90% 80% at 85% 20%, #1e5a3a 0%, #0f2747 45%, #07101f 100%); }
.screen__slide--xesco .screen__ph { background: radial-gradient(70% 70% at 80% 30%, #3a0c0c 0%, #0b0b0b 60%); }
.ph-nav { display: flex; align-items: center; gap: 4cqw; font-size: 3.4cqw; }
.ph-nav b { margin-right: auto; letter-spacing: -.03em; }
.ph-nav i { width: 9cqw; height: 1cqw; border-radius: 1cqw; background: rgba(255,255,255,.35); }
.ph-hero { margin-block: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2.2cqw; }
.ph-kicker { font-size: 2.4cqw; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.6); }
.ph-hero strong { font-size: 7cqw; line-height: 1; letter-spacing: -.04em; }
.screen__slide--xesco .ph-hero strong { text-transform: uppercase; font-style: italic; }
.ph-btn { width: 22cqw; height: 5cqw; border-radius: 99px; background: var(--blue); }
.screen__slide--xesco .ph-btn { background: #e5e5e5; }
.ph-btn--ghost { background: rgba(255,255,255,.18) !important; }
.ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; }
.ph-cards i { height: 12cqw; border-radius: 2cqw; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.screen--phone .ph-nav { font-size: 9cqw; padding-top: 12cqw; }
.screen--phone .ph-nav i { width: 12cqw; height: 2cqw; }
.screen--phone .ph-kicker { font-size: 6cqw; }
.screen--phone .ph-hero { gap: 5cqw; }
.screen--phone .ph-hero strong { font-size: 15cqw; }
.screen--phone .ph-btn { width: 70%; height: 13cqw; }
.screen--phone .ph-cards { grid-template-columns: 1fr 1fr; gap: 5cqw; }
.screen--phone .ph-cards i { height: 30cqw; border-radius: 5cqw; }

.showcase__dots { display: flex; gap: 8px; }
.showcase__dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .4s var(--ease), background-color .4s; }
.showcase__dots span.is-active { width: 28px; background: var(--blue-2); }

/* ---------- 7. SEO ---------- */
.seo { display: grid; gap: 64px; align-items: center; }
.seo .section__head { margin-bottom: 40px; }
.seo .title, .about .title { font-size: clamp(2.35rem, 5vw, 4rem); }
.checklist { display: grid; gap: 18px; }
.checklist li { display: flex; gap: 14px; color: var(--muted); }
.checklist li b { color: var(--text); font-weight: 600; }
.checklist .ico { margin-top: 4px; color: var(--blue-2); stroke-width: 2.2; }

.serp {
  position: relative; padding: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #16161b, #0d0d10); border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(43, 127, 255, .45);
  font-size: .95rem;
}
.serp__bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #212127; color: var(--text); }
.serp__bar .ico { color: var(--muted); }
.serp__local { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.serp__map {
  position: relative; height: 130px;
  background:
    linear-gradient(35deg, transparent 46%, rgba(255,255,255,.08) 47% 49%, transparent 50%),
    linear-gradient(-20deg, transparent 60%, rgba(255,255,255,.06) 61% 63%, transparent 64%),
    linear-gradient(100deg, transparent 30%, rgba(94,176,255,.12) 31% 36%, transparent 37%),
    #15171c;
}
.serp__pin { position: absolute; left: 44%; top: 30%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); box-shadow: 0 0 24px var(--blue); animation: pin 2.4s ease-in-out infinite; }
.serp__pin--dim { left: 70%; top: 55%; width: 14px; height: 14px; background: #4a4a52; box-shadow: none; animation: none; }
.serp__pin--dim2 { left: 20%; top: 60%; width: 14px; height: 14px; background: #4a4a52; box-shadow: none; animation: none; }
@keyframes pin { 50% { translate: 0 -4px; } }
.serp__biz { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.serp__biz b { font-size: 1.1rem; }
.serp__biz span { color: var(--muted); font-size: .88rem; }
.serp__biz .serp__open { color: #43d17a; }
.serp__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.serp__actions span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--blue-2); font-size: .8rem; }
.serp__result { margin-top: 18px; padding: 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.serp__url { font-size: .8rem; color: var(--muted); }
.serp__result b { color: #8ab4ff; font-weight: 500; font-size: 1.1rem; }
.serp__result span:last-child { color: var(--muted); font-size: .9rem; }
.serp__label { position: absolute; top: -12px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .75rem; color: var(--muted); }
@media (min-width: 960px) { .seo { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

/* ---------- 8. Síntomas ---------- */
.symptoms { display: grid; gap: 12px; max-width: 980px; margin-inline: auto; }
.symptoms li {
  position: relative; padding: 22px 24px 22px 58px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  font-size: 1.125rem; font-weight: 500;
}
.symptoms li::before {
  content: "?"; position: absolute; left: 20px; top: 50%; translate: 0 -50%;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(43, 127, 255, .16); color: var(--blue-2); font-size: .85rem; font-weight: 700;
}
@media (min-width: 700px) { .symptoms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .symptoms { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 9. Auditoría ---------- */
.audit {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg); border: 1px solid rgba(94, 176, 255, .3);
  background: linear-gradient(135deg, #0a1a3a 0%, #08080b 70%);
}
.audit__glow { position: absolute; z-index: -1; right: -20%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 127, 255, .45), transparent); filter: blur(20px); }
.audit__list { display: grid; gap: 14px; margin-top: 36px; }
.audit__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.audit__list .ico { color: var(--blue-2); stroke-width: 2.2; }
@media (min-width: 700px) { .audit__list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- 10. Proceso ---------- */
.steps { --p: 0; position: relative; display: grid; gap: 0; max-width: 820px; margin: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(var(--blue-2), var(--blue)); transform-origin: top; transform: scaleY(clamp(0, calc((var(--p) - .15) * 1.8), 1)); box-shadow: 0 0 16px var(--blue); }
.step { position: relative; display: flex; gap: 24px; padding-block: 22px; }
.step__n {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-2); font-weight: 700; color: var(--blue-2);
}
.step h3 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.3; margin-top: 8px; }
.step p { margin-top: 6px; color: var(--muted); }

/* ---------- 11. Razones ---------- */
.reasons { display: grid; gap: 14px; }
.reason { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.reason__ico { width: 28px; height: 28px; margin-bottom: 22px; fill: none; stroke: var(--blue-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reason h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.reason p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
@media (min-width: 640px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 12. Sobre mí ---------- */
.about__grid { display: grid; gap: 64px; align-items: center; }
.about__visual { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.about__ring {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #18233a, #08080b 70%);
  border: 1px solid var(--line-2);
}
.about__ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--blue-2) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
.about__mono { font-size: clamp(4rem, 14vw, 7.5rem); font-weight: 800; letter-spacing: -.06em; }
.about__chip {
  position: absolute; padding: 10px 16px; border-radius: 999px;
  background: rgba(18, 18, 22, .85); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.about__chip--human { left: 0; top: 12%; }
.about__chip--ai { right: 0; bottom: 12%; color: var(--blue-2); }
@media (min-width: 900px) { .about__chip--human { left: -4%; } .about__chip--ai { right: -4%; } }
.about__text p:not(.eyebrow):not(.lead) { margin-top: 20px; color: var(--muted); font-size: 1.0625rem; max-width: 600px; }
.about__quote { margin-top: 36px; padding: 4px 0 4px 24px; border-left: 2px solid var(--blue); }
.about__quote p { margin: 0 !important; color: var(--text) !important; font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .about__grid { grid-template-columns: .9fr 1.1fr; gap: 96px; } }

/* ---------- 13. Precios ---------- */
.pricing { display: grid; gap: 16px; max-width: 1040px; margin-inline: auto; }
.pricing__side { display: grid; gap: 16px; }
.price {
  display: flex; flex-direction: column; gap: 14px;
  padding: 34px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
}
.price--main {
  position: relative; overflow: hidden;
  border-color: rgba(94, 176, 255, .35);
  background: linear-gradient(170deg, rgba(43, 127, 255, .18), var(--surface) 45%);
}
.price__name { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.08); color: var(--muted); }
.price__amount { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.price__amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price__amount span { font-size: .4em; letter-spacing: -.01em; color: var(--muted); font-weight: 600; }
.price__desc { color: var(--muted); }
.price__list { display: grid; gap: 10px; margin-block: 6px 18px; }
.price__list li { display: flex; gap: 10px; align-items: flex-start; }
.price__list .ico { margin-top: 4px; color: var(--blue-2); stroke-width: 2.2; }
.price .link-arrow { margin-top: auto; }
@media (min-width: 900px) {
  .pricing { grid-template-columns: 1.15fr 1fr; }
  .price--main { padding: 44px 40px; }
}

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 60px 22px 24px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 14px; height: 1.8px; margin-top: -1px;
  background: var(--blue-2); border-radius: 2px; transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 18px; }
.faq details > div { padding: 0 24px 24px; color: var(--muted); }

/* ---------- 15. Formulario ---------- */
.contact { display: grid; gap: 56px; }
.contact__direct { display: grid; gap: 10px; margin-top: 40px; }
.contact__direct a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: border-color .25s, transform .35s var(--ease);
  overflow-wrap: anywhere;
}
.contact__direct a:hover { border-color: var(--line-2); transform: translateX(4px); }
.contact__direct .ico { width: 24px; height: 24px; color: var(--blue-2); }
.contact__direct span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.35; }
.contact__direct small { font-size: .78rem; color: var(--faint); font-weight: 500; }

.form {
  padding: clamp(26px, 5vw, 48px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.form__grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .9rem; font-weight: 600; color: #d8d8de; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; min-height: 52px;
  border: 1px solid var(--line-2); border-radius: 14px; background: #0a0a0c;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eb0ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: #5f5f67; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 127, 255, .22); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff6b6b; }
.field__error { min-height: 0; font-size: .85rem; color: #ff8a8a; }
.field__error:empty { display: none; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.field--check label { flex: 1; font-weight: 500; color: var(--muted); }
.field--check label a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { flex-basis: 100%; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form__actions .btn { flex: 1 1 220px; }
.form__status { margin-top: 18px; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 14px 18px; border-radius: 14px; background: rgba(67, 209, 122, .12); color: #7ee3a6; }
.form__status.is-error { padding: 14px 18px; border-radius: 14px; background: rgba(255, 107, 107, .12); color: #ff9d9d; }
.form__status a { text-decoration: underline; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 1000px) { .contact { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; } }

/* ---------- 16. CTA final ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(120px, 20vw, 220px); text-align: center; }
.final__glow {
  position: absolute; z-index: -1; left: 50%; bottom: -50%; width: min(1200px, 160vw); aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(43, 127, 255, .5), rgba(11, 63, 209, .15) 50%, transparent 72%);
  animation: breathe 9s ease-in-out infinite;
}
.final__title { font-size: clamp(2.8rem, 9vw, 7rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.final .lead { margin-inline: auto; }

/* ---------- 17. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 64px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--bg); font-size: .95rem; }
.footer__inner { display: grid; gap: 36px; padding-bottom: 40px; }
.footer__brand p { margin-top: 12px; color: var(--faint); max-width: 320px; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer__nav a:hover, .footer__contact a:hover, .footer__legal a:hover { color: var(--text); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; color: var(--faint); font-size: .85rem;
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
.footer__legal nav { display: flex; gap: 20px; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 16px;
  border-radius: 999px; background: #25d366; color: #04210f; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55), 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-float .ico { width: 26px; height: 26px; stroke-width: 2; }
.wa-float__label { display: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
@media (min-width: 700px) { .wa-float { right: 24px; bottom: 24px; padding: 0 22px 0 18px; } .wa-float__label { display: inline; } }

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal { padding-block: calc(var(--nav-h) + 64px) 96px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); letter-spacing: -.04em; line-height: 1.05; }
.legal h2 { margin-top: 48px; font-size: 1.4rem; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--muted); margin-top: 14px; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal .callout { margin-top: 32px; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(255, 196, 0, .35); background: rgba(255, 196, 0, .08); color: #ffd666; }
.pending { padding: 1px 8px; border-radius: 6px; background: rgba(255, 196, 0, .16); color: #ffd666; font-weight: 600; font-size: .92em; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__in { opacity: 1; transform: none; filter: none; }
  .hero__content, .hero__glow, .devices, .phone { transform: none !important; opacity: 1 !important; }
  .hero__glow { transform: translate(-50%, -50%) !important; }
  .hero__grid, .hero__horizon { opacity: .6; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .statement { height: auto; }
  .statement__sticky { position: static; height: auto; padding-block: 120px; }
  .statement__text .w { color: var(--text); }
  .steps::after { transform: none; }
}
