/* ==========================================================================
   AEVON — styles.css
   Índice:
   01 Tokens · 02 Base · 03 Utilidades · 04 Intro · 05 Cursor · 06 Nav
   07 Botones · 08 Hero · 09 Reel · 10 Placeholders · 11 Logos
   12 Manifiesto · 13 Servicios · 14 Soluciones · 15 Método · 16 Ventajas
   17 Testimonios · 18 Contacto · 19 Footer · 20 Responsive · 21 Motion
   ========================================================================== */

/* ---------- 01 Tokens ---------- */
:root {
  /* Paleta nieve: blanco nieve, hielo azulado, tinta azul marino y azul eléctrico */
  --bg: #f3f7fb;
  --bg-2: #e8f0f8;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --night: #e4eef8;
  --ink: #0c1a2e;
  --on-light: #0c1a2e;
  --charcoal: #1d2c44;
  --graphite: #34465f;
  --mute: #56677e;
  --mute-2: #8494a9;
  --line: rgba(12, 26, 46, 0.08);
  --line-2: rgba(12, 26, 46, 0.14);
  --silver: linear-gradient(180deg, #0c1a2e 0%, #23395a 55%, #5f7a9c 100%);

  --accent: #2f5bff;
  --accent-2: #4f7df0;
  --accent-text: #2a5ad8;
  --accent-soft: rgba(47, 91, 255, 0.10);
  --accent-glow: rgba(47, 91, 255, 0.28);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1480px;
  --nav-h: 76px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-1: 0 1px 0 rgba(12,26,46,0.9) inset, 0 12px 30px -14px rgba(40, 70, 120, 0.25);
  --shadow-2: 0 1px 0 rgba(12,26,46,0.9) inset, 0 30px 70px -28px rgba(40, 70, 120, 0.35);
}

/* ---------- 02 Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--accent); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- 03 Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--mute);
}
.eyebrow > span:first-child {
  display: inline-grid; place-items: center;
  min-width: 2.2rem; height: 1.5rem; padding: 0 .45rem;
  border: 1px solid var(--line-2); border-radius: 99px;
  color: var(--ink); font-size: .68rem;
}
.eyebrow--light { color: rgba(12,26,46,.6); }
.eyebrow--light > span:first-child { color: #fff; border-color: rgba(12,26,46,.22); }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); max-width: 62rem; }
.section-head--split {
  max-width: none; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 2rem 4rem;
}
.section-head--split > div:first-child { display: grid; gap: 1.5rem; }
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-title em { color: var(--accent); }
.section-lead { color: var(--mute); font-size: clamp(1.02rem, 1.2vw, 1.18rem); max-width: 34rem; text-wrap: pretty; }

.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* Reveal (solo con JS activo; sin JS todo se ve) */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: elementos con split nunca quedan invisibles */
.reveal[data-split], .js .reveal[data-split] { opacity: 1; transform: none; }

/* ---------- 04 Intro en vídeo ---------- */
.intro {
  position: fixed; inset: 0; z-index: 950;
  display: grid; place-items: center; overflow: hidden;
  background: #040507; color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease-io), visibility 0s 1.15s;
  /* Red de seguridad: si el JavaScript falla, la intro desaparece sola */
  animation: introSafety .01s 45s forwards;
}
@keyframes introSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
html:not(.js) .intro { display: none; }
html.intro-on { overflow: hidden; }
.intro.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }

.intro__bg {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
  filter: blur(28px) saturate(1.3) brightness(.5); transform: scale(1.05);
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.intro.is-playing .intro__bg { opacity: 1; }
.intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(4,5,7,.75) 100%);
}

.intro__frame {
  position: relative; z-index: 1;
  height: min(100svh - 48px, 1280px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  transform: scale(.94); opacity: 0;
  transition: transform 1.4s var(--ease-out), opacity 1s var(--ease-out);
}
.intro.is-playing .intro__frame, .intro.needs-tap .intro__frame { transform: none; opacity: 1; }
.intro.is-out .intro__frame { transform: scale(1.06) translateY(-4%); transition-duration: 1.1s; }
.intro__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #040507; }

.intro__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.intro__ui > * { pointer-events: auto; }
.intro__top {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(14px, 2.4vw, 28px) clamp(16px, 3vw, 36px);
  pointer-events: none;
}
.intro__top > * { pointer-events: auto; }
.intro__brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; }
.intro__brand .mono { color: rgba(255,255,255,.75); }
.intro__skip, .intro__sound {
  display: inline-flex; align-items: center; gap: .6rem;
  height: 46px; padding: 0 18px; border-radius: 99px;
  color: #fff; font-size: .9rem; font-weight: 500;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  transition: background-color .35s, color .35s, border-color .35s, transform .5s var(--ease-spring);
}
@supports (backdrop-filter: blur(10px)) {
  .intro__skip, .intro__sound { background: rgba(255,255,255,.1); backdrop-filter: blur(14px) saturate(1.4); }
}
.intro__skip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.intro__skip:hover, .intro__sound:hover { background: #fff; color: var(--on-light); border-color: #fff; }
.intro__skip:hover svg { transform: translateX(3px); }
.intro__skip:active, .intro__sound:active { transform: scale(.95); }

.intro__bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(18px, 2.6vw, 30px) clamp(16px, 3vw, 36px);
  pointer-events: none;
}
.intro__bottom > * { pointer-events: auto; }
.intro__hint { color: rgba(255,255,255,.5); }
.intro__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.intro__eq i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; opacity: .55; }
.intro__sound[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.intro__sound[aria-pressed="true"]:hover { color: #fff; }
.intro__sound[aria-pressed="true"] .intro__eq i { opacity: 1; animation: eq .9s var(--ease-io) infinite alternate; }
.intro__sound[aria-pressed="true"] .intro__eq i:nth-child(2) { animation-delay: -.3s; }
.intro__sound[aria-pressed="true"] .intro__eq i:nth-child(3) { animation-delay: -.6s; }
.intro__sound[aria-pressed="true"] .intro__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.intro__sound:not([aria-pressed="true"]) { animation: soundNudge 2.6s 2.5s var(--ease-out) infinite; }
@keyframes soundNudge { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 60%, 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }

.intro__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); pointer-events: none; }
.intro__progress i { display: block; height: 100%; background: var(--accent-2); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--accent-2); }

.intro__play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 20px 60px -10px rgba(30,77,255,.8);
  transition: transform .5s var(--ease-spring);
}
.intro__play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.intro__play:hover { transform: scale(1.08); }
.intro.needs-tap .intro__play { display: grid; }

/* En móvil vertical el vídeo ocupa toda la pantalla */
@media (max-aspect-ratio: 4/5) {
  .intro__frame { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .intro__bg { display: none; }
  .intro__top { background: linear-gradient(rgba(0,0,0,.45), transparent); padding-bottom: 40px; }
  .intro__bottom { background: linear-gradient(transparent, rgba(0,0,0,.5)); padding-top: 40px; }
  .intro__hint { display: none; }
}
@media (max-width: 480px) {
  .intro__brand .mono { display: none; }
}

/* Mientras dura la intro, las animaciones del hero esperan a que termine */
html.has-intro .line__in,
html.has-intro .hero__aside > *, html.has-intro .hero__meta,
html.has-intro .hero__foot, html.has-intro .hero__stage { animation-delay: 46s; }

/* ---------- 05 Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 800; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(12,26,46,.4);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { font-family: var(--f-mono); font-style: normal; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s; }
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--accent); background: var(--accent-soft); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.on-dark .cursor__ring { border-color: rgba(12,26,46,.5); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Scroll progress */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 700; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- 06 Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 600; padding: 14px var(--gutter); transition: transform .6s var(--ease-out); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 8px 0 18px; border-radius: 99px;
  border: 1px solid transparent;
  transition: background-color .5s, border-color .5s, box-shadow .5s, padding .5s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(255,255,255,.94);
  border-color: var(--line-2);
  box-shadow: var(--shadow-1);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .nav.is-scrolled .nav__inner { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: .14em; font-size: .95rem; --wm-ls: .14em; }
.brand__mark { color: var(--ink); transition: transform .8s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
.nav__links { display: flex; gap: 2rem; font-size: .9rem; color: var(--graphite); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 1.1rem; }
.nav__status { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; color: var(--mute); }
.nav__status i { width: 7px; height: 7px; border-radius: 50%; background: #18c37e; box-shadow: 0 0 0 3px rgba(24,195,126,.18); }
/* Selector de idioma */
.lang { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.6); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; }
.lang__opt { padding: .38rem .62rem; border-radius: 99px; color: var(--mute); line-height: 1; transition: color .3s, background-color .3s; }
.lang__opt:hover { color: var(--ink); }
.lang__opt[aria-current] { background: var(--ink); color: #fff; }
.lang--m { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease-out); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 550; background: var(--night); color: var(--ink);
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav { display: grid; gap: .3rem; }
.mobile-menu nav a { font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; display: flex; align-items: baseline; gap: 1rem; }
.mobile-menu nav a small { font-family: var(--f-mono); font-size: .7rem; color: var(--accent-2); letter-spacing: 0; }
.mobile-menu__foot { font-family: var(--f-mono); font-size: .75rem; color: rgba(12,26,46,.55); }
body.menu-open .nav__inner { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
body.menu-open .brand { color: var(--ink); }
body.menu-open .brand__mark { color: var(--ink); }
body.menu-open .nav__burger { background: #fff; }
body.menu-open .nav__burger span { background: var(--on-light); }

/* ---------- 07 Botones ---------- */
.btn {
  --bh: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .8rem;
  height: var(--bh); padding: 0 8px 0 24px; border-radius: 99px;
  font-size: .95rem; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .45s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn__icon {
  width: calc(var(--bh) - 16px); height: calc(var(--bh) - 16px); border-radius: 50%;
  display: grid; place-items: center; flex: none;
  transition: transform .6s var(--ease-out), background-color .45s;
}
.btn__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.btn:hover .btn__icon svg { transform: rotate(45deg); }

.btn--dark { background: #fff; box-shadow: 0 8px 24px -12px rgba(40,70,120,.35), inset 0 0 0 1px rgba(12,26,46,.08); color: var(--on-light); }
.btn--dark::before { background: var(--accent); }
.btn--dark:hover { color: #fff; }
.btn--dark .btn__icon { background: rgba(10,12,16,.08); }
.btn--dark:hover .btn__icon { background: rgba(12,26,46,.18); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--accent::before { background: #fff; }
.btn--accent .btn__icon { background: #fff; color: var(--accent); transition: transform .6s var(--ease-out), background-color .45s, color .45s; }
.btn--accent:hover { color: var(--on-light); }
.btn--accent:hover .btn__icon { background: var(--accent); color: #fff; }
.btn--accent:hover { box-shadow: 0 18px 40px -14px var(--accent-glow); }

.btn--ghost { padding: 0 24px; border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--on-light); border-color: var(--ink); }

.btn--sm { --bh: 44px; font-size: .88rem; padding-left: 18px; }
.btn--lg { --bh: 62px; font-size: 1rem; padding-left: 28px; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background-color .4s, color .4s, border-color .4s, transform .4s var(--ease-out);
}
.round-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: var(--ink); color: var(--on-light); border-color: var(--ink); }
.round-btn:active { transform: scale(.92); }

/* ---------- 08 Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem)) 0 2rem;
  display: flex; align-items: stretch;
  overflow: clip;
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 72%) var(--my, 42%), rgba(47,91,255,.24), transparent 60%),
    radial-gradient(900px circle at 85% 10%, rgba(79,123,255,.08), transparent 65%);
  transition: background .2s linear;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto;
  column-gap: 1.5rem;
}
.hero__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--mute); }
.tag {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .9rem .5rem .75rem; border-radius: 99px;
  background: rgba(12,26,46,.04); border: 1px solid var(--line-2); color: var(--ink);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero__title {
  grid-column: 1 / span 8; grid-row: 2;
  align-self: center;
  margin: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2.9rem, 7.4vw, 8.8rem);
  font-weight: 500; line-height: .94; letter-spacing: -0.055em;
  position: relative; z-index: 3;
}
.hero__title em { letter-spacing: -0.035em; padding-right: .06em; }
/* Acabado metálico en los grandes titulares */
.hero__title .line__in, .section-title, .contact__title {
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
  --wm-color: #1d2f4a;
}
.hero__title em, .section-title em, .contact__title em, .diag__q em {
  background: linear-gradient(100deg, #b4c6ff 0%, #6e8fff 45%, #2f5bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title, .contact__title { padding-bottom: .08em; }
.hero__title .dot { color: var(--accent); }
.line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.line__in { display: inline-block; will-change: transform; padding-bottom: .16em; margin-bottom: -.16em; }
.js .line__in { transform: translate3d(0, 110%, 0); animation: lineSafety .01s 5s forwards; }
.js.is-loaded .line__in { transform: none; transition: transform 1.25s var(--ease-out); }
.js.is-loaded .line:nth-child(2) .line__in { transition-delay: .08s; }
.js.is-loaded .line:nth-child(3) .line__in { transition-delay: .16s; }
.js.is-loaded .line:nth-child(4) .line__in { transition-delay: .24s; }
@keyframes lineSafety { to { transform: none; } }

.hero__aside { grid-column: 1 / span 6; grid-row: 3; display: grid; gap: 2rem; align-content: start; }
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--graphite); max-width: 36rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.js .hero__aside > *, .js .hero__meta, .js .hero__foot, .js .hero__stage { opacity: 0; transform: translateY(18px); animation: lineSafety .01s 5s forwards, fadeSafety .01s 5s forwards; }
@keyframes fadeSafety { to { opacity: 1; } }
.js.is-loaded .hero__aside > *, .js.is-loaded .hero__meta, .js.is-loaded .hero__foot, .js.is-loaded .hero__stage { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.js.is-loaded .hero__aside > :nth-child(1) { transition-delay: .45s; }
.js.is-loaded .hero__aside > :nth-child(2) { transition-delay: .55s; }
.js.is-loaded .hero__stage { transition-delay: .3s; transition-duration: 1.6s; }
.js.is-loaded .hero__meta { transition-delay: .2s; }
.js.is-loaded .hero__foot { transition-delay: .7s; }

.hero__foot {
  grid-column: 1 / -1; grid-row: 4;
  display: flex; align-items: center; gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--mute);
}
.hero__foot-r { margin-left: auto; }
.scroll-line { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-line i { position: absolute; inset: 0; background: var(--ink); animation: scrollLine 2.4s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Composición visual */
.hero__stage {
  grid-column: 8 / -1; grid-row: 2 / span 2;
  position: relative; min-height: 520px; align-self: center;
  pointer-events: none;
}
.hero__stage > * { position: absolute; will-change: transform; }
.orb { left: 50%; top: 46%; width: min(30vw, 440px); aspect-ratio: 1; translate: -50% -50%; }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.orb__ring.r1 { animation: spin 40s linear infinite; border-style: dashed; border-color: rgba(12,26,46,.16); }
.orb__ring.r2 { inset: 13%; animation: spin 26s linear infinite reverse; border-color: rgba(30,77,255,.28); }
.orb__ring.r2::before, .orb__ring.r1::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.orb__ring.r1::before { background: var(--ink); box-shadow: none; width: 6px; height: 6px; top: -3px; margin-left: -3px; }
/* Iceberg en un círculo de hielo */
.orb__ice {
  position: absolute; inset: 19%; width: 62%; height: 62%; border-radius: 50%; overflow: visible;
  filter: drop-shadow(0 30px 50px rgba(30,77,255,.35)) drop-shadow(0 0 1px rgba(12,26,46,.2));
}
.ice__berg { animation: iceBob 7s var(--ease-io) infinite; transform-origin: 200px 216px; }
.ice__waves { animation: iceWaves 6s linear infinite; }
.ice__snow circle { animation: iceSnow 7s linear infinite; }
.ice__snow circle:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.ice__snow circle:nth-child(3n) { animation-duration: 11s; animation-delay: -6s; }
.ice__snow circle:nth-child(4n) { animation-delay: -1.5s; }
@keyframes iceBob { 50% { transform: translateY(5px) rotate(-1deg); } }
@keyframes iceWaves { to { transform: translateX(100px); } }
@keyframes iceSnow { 0% { transform: translateY(-40px); opacity: 0; } 15% { opacity: .95; } 80% { opacity: .9; } 100% { transform: translateY(230px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.05); } }

.float-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(12,26,46,.09);
  outline: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 1rem 1.1rem;
  font-size: .85rem;
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .float-card { background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
}
.fc-1 { left: -4%; top: 6%; width: 250px; }
.fc-2 { right: -2%; top: 18%; width: 200px; }
.fc-3 { right: 4%; bottom: 10%; width: 230px; }
.fc-4 { left: 4%; bottom: 4%; display: flex; align-items: center; gap: .8rem; }
.fc__head { display: flex; justify-content: space-between; color: var(--mute); font-size: .66rem; }
.fc__head .up { color: var(--accent); }
.spark { width: 100%; height: 64px; margin: .6rem 0 .4rem; overflow: visible; }
.spark__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-loaded .spark__line { animation: draw 2.4s 1s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fc__foot { display: flex; justify-content: space-between; color: var(--mute-2); font-size: .6rem; }
.fc__rank { display: flex; justify-content: space-between; align-items: flex-end; }
.fc__rank .mono { font-size: .62rem; color: var(--mute); max-width: 6rem; line-height: 1.3; }
.fc__rank strong { font-size: 3rem; font-weight: 500; letter-spacing: -0.05em; line-height: .9; }
.fc__query { margin-top: .7rem; padding: .5rem .6rem; border-radius: 8px; background: var(--bg); font-size: .62rem; text-transform: none; color: var(--graphite); line-height: 1.55; min-height: calc(3.1em + 1rem); }
.fc__query.is-typing [data-query]::after { content: ""; display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -.2em; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.fc__pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; padding: .3rem .6rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.fc__pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fc__line { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; }
.fc__line .mono { font-size: .6rem; color: var(--mute-2); }
.fc-4 b { display: block; font-weight: 500; }
.fc-4 .mono { font-size: .6rem; color: var(--mute); }
.fc__ring { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.fc__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.fc__ring circle { fill: none; stroke-width: 3.5; }
.fc__ring .trk { stroke: var(--bg-2); }
.fc__ring .val { stroke: #18c37e; stroke-linecap: round; stroke-dasharray: 125.6; stroke-dashoffset: 125.6; }
.is-loaded .fc__ring .val { animation: ring 1.8s 1.2s var(--ease-out) forwards; }
@keyframes ring { to { stroke-dashoffset: 2.5; } }
.fc__ring span { font-weight: 600; font-size: .9rem; }
.float-card { animation: bob 7s var(--ease-io) infinite; }
.fc-2 { animation-delay: -2s; }
.fc-3 { animation-delay: -4s; }
.fc-4 { animation-delay: -1s; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- 09 Reel ---------- */
.reel { position: relative; padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(5rem, 10vw, 8rem); }
.reel__frame {
  --p: 0;
  position: relative; margin: 0 auto; overflow: hidden;
  width: calc(64% + 36% * var(--p));
  max-width: 1800px;
  aspect-ratio: 16 / 9;
  border-radius: calc(32px - 14px * var(--p));
  box-shadow: var(--shadow-2);
  transform: translateZ(0);
}
.reel__frame .ph { position: absolute; inset: 0; transform: scale(calc(1.18 - .18 * var(--p))); }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050609; transform: scale(calc(1.18 - .18 * var(--p))); }
.reel__frame.is-playing .reel__video { transform: none; }
.reel__frame { cursor: pointer; }
.reel__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(1rem, 2.5vw, 2rem); color: #fff; pointer-events: none; }
.reel__overlay .reel__play { pointer-events: auto; cursor: pointer; color: #fff; }
.reel__play:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.reel__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1800px; margin: 1.1rem auto 0; color: var(--mute); }
.reel__sound { height: 40px; padding: 0 15px; font-size: .82rem; }
.reel__sound:not([aria-pressed="true"]) { animation: none; }
@media (max-width: 600px) { .reel__sound { height: 36px; padding: 0 12px; font-size: .76rem; } .reel__meta { font-size: .62rem; } }
.reel__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(72px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  transition: transform .6s var(--ease-out), background-color .4s;
}
@supports (backdrop-filter: blur(10px)) { .reel__play { backdrop-filter: blur(10px); } }
.reel__play svg { width: 30%; fill: #fff; margin-left: 6%; }
.reel__frame:hover .reel__play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); }
.reel__caption { color: rgba(255,255,255,.75); }

/* ---------- 10 Placeholders ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(12,26,46,.03) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #eef4fb, #dfe9f4);
  color: var(--mute);
}
.ph::before, .ph::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid currentColor; opacity: .5;
}
.ph::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.ph::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.ph__label { position: relative; z-index: 1; padding: .45rem .75rem; border-radius: 99px; background: rgba(12,26,46,.05); border: 1px solid var(--line-2); font-size: .64rem; text-align: center; }
.ph--dark {
  background:
    radial-gradient(60% 80% at 70% 30%, rgba(30,77,255,.45), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(79,123,255,.25), transparent 70%),
    repeating-linear-gradient(135deg, rgba(12,26,46,.04) 0 1px, transparent 1px 16px),
    #e6eef7;
  color: rgba(12,26,46,.5);
}
.reel__frame .ph { place-items: start; padding: clamp(1rem, 2.5vw, 2rem); }
.ph--dark .ph__label { background: rgba(12,26,46,.08); border-color: rgba(12,26,46,.14); color: rgba(12,26,46,.75); }

/* ---------- 11 Logos ---------- */
.logos { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.logos__head { display: flex; justify-content: space-between; color: var(--mute); margin-bottom: 1.6rem; }
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-slot {
  flex: none; display: grid; place-items: center;
  min-width: clamp(230px, 21vw, 300px); height: 118px;
  border-right: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--mute-2);
  transition: color .4s, background-color .4s;
}
.logo-slot:hover { color: var(--ink); background: var(--surface); }
button.logo-slot { cursor: pointer; border-top: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
button.logo-slot:focus-visible { outline-offset: -4px; }
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Detalle de cada proyecto (ventana) */
html.case-open { overflow: hidden; }
.case {
  width: min(600px, calc(100% - 2rem)); max-height: min(86vh, 760px); margin: auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(12, 26, 46, .45); overflow: hidden;
}
.case[open] { display: flex; animation: caseIn .45s var(--ease-out); }
.case::backdrop { background: rgba(12, 26, 46, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes caseIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.case__panel { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 0; }
.case__body:focus { outline: none; }
.case__body { overflow-y: auto; padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.4rem) 1rem; }
.case__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--ink); transition: background-color .3s;
}
.case__close:hover { background: var(--bg-2); }
.case__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.case__eyebrow { color: var(--accent-text); margin: 0 3rem .7rem 0; }
.case__title { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1.4rem; }
.case__h { color: var(--mute); margin: 1.4rem 0 .5rem; font-weight: 500; }
.case__body p { color: var(--graphite); line-height: 1.6; }
.case__list { display: grid; gap: .55rem; }
.case__list li { position: relative; padding-left: 1.4rem; color: var(--graphite); line-height: 1.5; }
.case__list li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.case__cta { margin: .5rem clamp(1.4rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2rem); align-self: flex-start; }
@media (max-width: 560px) {
  .case { width: 100%; max-width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .case__cta { align-self: stretch; justify-content: center; }
  .case__cta .btn__label { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .case[open] { animation: none; } }
.client { display: inline-flex; align-items: center; gap: .85rem; padding-inline: 1.4rem; color: var(--charcoal); transition: color .4s; }
.logo-slot:hover .client { color: var(--ink); }
.client__badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(127,156,255,.14), rgba(12,26,46,.02)); color: var(--accent-text); transition: border-color .4s, transform .5s var(--ease-out); }
.logo-slot:hover .client__badge { border-color: rgba(127,156,255,.55); transform: translateY(-2px); }
.client__mark { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.client__txt { display: grid; gap: .28rem; text-align: left; line-height: 1; }
.client__txt b { font-family: var(--f-sans); font-size: .98rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.client__txt small { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); white-space: nowrap; }
.client__kpi { font-family: var(--f-mono); font-style: normal; font-size: .64rem; letter-spacing: .04em; color: #13865a; white-space: nowrap; }
.logos__sub { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--mute-2); }

/* ---------- 12 Manifiesto ---------- */
.manifesto { padding: clamp(4rem, 9vw, 8rem) 0 clamp(6rem, 12vw, 11rem); }
.manifesto__grid { display: grid; grid-template-columns: 1fr 4fr; gap: 2rem; }
.manifesto__text {
  font-size: clamp(1.7rem, 3.4vw, 3.3rem); line-height: 1.14; letter-spacing: -0.035em; font-weight: 500;
  text-wrap: pretty;
}
.manifesto__text em { color: var(--accent); }
.manifesto__text .w { opacity: .14; transition: opacity .35s linear; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__sign { grid-column: 2; color: var(--mute); }

/* ---------- 13 Servicios ---------- */
.services { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.svc-list { border-bottom: 1px solid var(--line); counter-reset: svc; }
.svc { border-top: 1px solid var(--line); position: relative; }
.svc__head {
  position: relative; isolation: isolate;
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 4rem 1fr auto 3rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) .5rem;
}
.svc__head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.svc__head:hover::before { transform: scaleY(1); }
.svc__num { color: var(--mute-2); transition: color .4s; }
.svc__name {
  font-size: clamp(1.6rem, 3.4vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05;
  transition: transform .7s var(--ease-out), color .4s;
}
.svc__head:hover .svc__name { transform: translateX(14px); }
.svc__tags { color: var(--mute); text-align: right; }
.svc__toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); justify-self: end; transition: background-color .4s, border-color .4s, transform .6s var(--ease-out); }
.svc__toggle::before, .svc__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .6s var(--ease-out); }
.svc__toggle::after { transform: rotate(90deg); }
.svc.is-open .svc__toggle { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }
.svc.is-open .svc__toggle::after { transform: rotate(0deg); }
.svc.is-open .svc__num { color: var(--accent); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease-out); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; display: grid; grid-template-columns: 4rem 1fr 1fr; gap: 1.5rem; }
.svc__copy { grid-column: 2; padding: 0 .5rem clamp(2rem, 3vw, 2.8rem); display: grid; gap: 1.6rem; align-content: start; max-width: 34rem; }
.svc__copy p { color: var(--graphite); font-size: 1.08rem; }
.svc__deliv { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc__deliv li { padding: .45rem .8rem; border: 1px solid var(--line-2); border-radius: 99px; font-size: .66rem; color: var(--graphite); }
.svc__media { grid-column: 3; aspect-ratio: 3 / 2; border-radius: var(--r-md); margin-bottom: clamp(2rem, 3vw, 2.8rem); opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .8s .15s var(--ease-out), transform .9s .15s var(--ease-out); }
.svc.is-open .svc__media { opacity: 1; transform: none; }
.svc__media--img { overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(40,70,120,0.36); background: var(--surface-2); }
.svc__media--img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.svc.is-open .svc__media--img img { transform: none; }
.svc__media--img:hover img { transform: scale(1.03); }
html:not(.js) .svc__body { grid-template-rows: 1fr; }
html:not(.js) .svc__media { opacity: 1; transform: none; }

/* ---------- 14 Soluciones ---------- */
.sectors { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--surface); }
.tabs { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); padding: clamp(.6rem, 1vw, .8rem); }
.tabs__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; background: var(--surface); border-radius: 20px; padding: .35rem; border: 1px solid var(--line); }
.tabs__btn { position: relative; z-index: 1; padding: 1rem .8rem; border-radius: 16px; font-size: .92rem; font-weight: 500; color: var(--mute); transition: color .4s; }
.tabs__btn[aria-selected="true"] { color: var(--on-light); }
.tabs__btn:not([aria-selected="true"]):hover { color: var(--ink); }
.tabs__ink { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 16px; background: var(--ink); transition: transform .7s var(--ease-out), width .7s var(--ease-out); }
html:not(.js) .tabs__ink { display: none; }
html:not(.js) .tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__panels { padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.panel__cols { display: grid; grid-template-columns: 1fr 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 4rem); }
.panel.is-active .panel__block { animation: panelIn .8s var(--ease-out) both; }
.panel.is-active .panel__block:nth-child(2) { animation-delay: .07s; }
.panel.is-active .panel__block:nth-child(3) { animation-delay: .14s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.panel__block { display: grid; gap: 1rem; align-content: start; }
.panel__k { color: var(--accent); }
.panel__block p { color: var(--graphite); font-size: 1.05rem; }
.checks { display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; font-size: 1.02rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%231E4DFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.panel__result { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line-2); }
.panel__num { font-size: clamp(3.5rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -0.06em; line-height: .9; }

/* ---------- 15 Método ---------- */
.process { position: relative; background: var(--night); color: var(--ink); padding: clamp(5rem, 9vw, 8rem) 0; overflow: clip; }
.process .eyebrow { color: rgba(12,26,46,.55); }
.process .eyebrow > span:first-child { color: var(--ink); border-color: rgba(12,26,46,.22); }
.process .section-title em { color: var(--accent-2); }
.process__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.process__head .eyebrow { grid-column: 1 / -1; }
.process__head .section-title { grid-column: 1 / 3; }
.process__meter { display: flex; align-items: center; gap: .7rem; color: rgba(12,26,46,.55); }
.process__meter span { color: var(--ink); }
.process__meter i { position: relative; display: block; width: 120px; height: 1px; background: rgba(12,26,46,.2); margin-left: .6rem; }
.process__meter b { position: absolute; inset: 0; background: var(--accent-2); transform-origin: left; transform: scaleX(.25); transition: transform .3s; }
.process__viewport { padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.process__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  position: relative; display: grid; gap: 1rem; align-content: start;
  min-height: 380px; padding: clamp(1.6rem, 2.5vw, 2.4rem);
  border: 1px solid rgba(12,26,46,.12); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12,26,46,.05), rgba(12,26,46,.01));
  transition: border-color .5s, background-color .5s, transform .6s var(--ease-out);
}
.step:hover { border-color: rgba(79,123,255,.6); transform: translateY(-6px); }
.step__num { font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 300; letter-spacing: -0.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(12,26,46,.35); transition: color .5s, -webkit-text-stroke-color .5s; }
.step:hover .step__num, .step.is-current .step__num { color: var(--accent-2); -webkit-text-stroke-color: var(--accent-2); }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; margin-top: auto; padding-top: 2rem; }
.step p { color: rgba(12,26,46,.66); }
.step__time { color: var(--accent-2); padding-top: 1rem; border-top: 1px solid rgba(12,26,46,.12); }

/* Modo horizontal (activado por JS en escritorio) */
.process.is-horizontal { padding: 0; }
.process.is-horizontal .process__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 1rem) 0 3rem; }
.process.is-horizontal .process__viewport { max-width: none; padding: 0; overflow: visible; }
.process.is-horizontal .process__track { display: flex; gap: 1.4rem; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); will-change: transform; }
.process.is-horizontal .step { width: clamp(340px, 32vw, 480px); min-height: min(52svh, 460px); }

/* ---------- 16 Ventajas ---------- */
.advantages { padding: clamp(5rem, 10vw, 9rem) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  --sx: 50%; --sy: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: .9rem; align-content: start;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(30,77,255,.09), transparent 60%);
  transition: opacity .5s;
}
.card:hover { box-shadow: var(--shadow-2); border-color: rgba(30,77,255,.25); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.025em; margin-top: 1.2rem; }
.card p { color: var(--mute); }
.card__k { color: var(--accent); }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); transition: background-color .4s, color .4s, transform .6s var(--ease-spring); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-8deg) scale(1.06); }
.card__big { font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 500; letter-spacing: -0.065em; line-height: .9; margin: .6rem 0 .4rem; }
.card__big small { font-size: .35em; letter-spacing: -0.02em; color: var(--mute-2); margin-left: .1em; }
.card--xl { grid-column: span 2; grid-row: span 2; }
.card--xl p { max-width: 28rem; font-size: 1.05rem; }
.card__bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: auto; padding-top: 2rem; }
.card__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--bg-2); transform-origin: bottom; transition: background-color .4s; }
.card__bars i:last-child, .card__bars i:nth-last-child(2) { background: var(--accent); }
.js .card__bars i { transform: scaleY(0); }
.js .card.is-visible .card__bars i { transform: scaleY(1); transition: transform 1.2s var(--ease-out); }
.card.is-visible .card__bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 50ms + .3s); }
.card--xl { min-height: 520px; display: flex; flex-direction: column; }
.card--dark { background: linear-gradient(155deg, #2a52ff 0%, #1233c9 45%, #0a1a6e 100%); color: #fff; border-color: transparent; }
.card--dark p { color: rgba(12,26,46,.62); }
.card--dark .card__k { color: var(--accent-2); }
.card--dark::before { background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(79,123,255,.28), transparent 60%); }
.card--dark .card__big small { color: rgba(12,26,46,.45); }
.card--wide { grid-column: span 4; }
.card__split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem 4rem; align-items: center; }
.card__split h3 { margin-top: 1.2rem; }
.card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card__stats li { display: grid; gap: .5rem; padding-left: 1.2rem; border-left: 1px solid var(--line-2); }
.card__stats strong { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.card__stats .mono { color: var(--mute); font-size: .66rem; }

/* ---------- 17 Testimonios ---------- */
.testimonials { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.testi__nav { display: flex; align-items: center; gap: 1rem; justify-self: end; }
.testi__count { color: var(--mute); min-width: 4.5rem; text-align: center; }
.testi__count b { color: var(--ink); font-weight: 500; }
.testi__stage { display: grid; }
.quote { grid-area: 1 / 1; display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.js .quote { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s .7s; }
.js .quote.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-out); }
.quote blockquote {
  font-size: clamp(1.6rem, 3.3vw, 3.1rem); line-height: 1.16; letter-spacing: -0.035em; font-weight: 400;
  max-width: 62rem; text-wrap: pretty; text-indent: -.42em;
}
.quote blockquote .w { text-indent: 0; }
.js .quote blockquote .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s; transition-delay: calc(var(--i) * 18ms); }
.js .quote.is-active blockquote .w { opacity: 1; transform: none; filter: none; }
.quote figcaption { display: flex; align-items: center; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.quote figcaption > span:nth-child(2) { display: grid; gap: .2rem; }
.quote figcaption b { font-weight: 500; }
.quote figcaption .mono { color: var(--mute); font-size: .66rem; }
.quote__kpi { margin-left: auto; padding: .55rem .9rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.avatar::before, .avatar::after { display: none; }
.avatar span { font-family: var(--f-mono); font-size: .75rem; color: var(--graphite); }
.avatar--mono {
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; color: #fff;
  background: linear-gradient(150deg, rgba(47,91,255,.55), rgba(47,91,255,.12));
  border: 1px solid rgba(127,156,255,.35);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.testi__progress { margin-top: 2.5rem; height: 1px; background: var(--line); overflow: hidden; }
.testi__progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- 18 Contacto ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--ink); padding: clamp(6rem, 11vw, 10rem) 0; }
.contact__bg {
  position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at var(--cx, 20%) var(--cy, 30%), rgba(30,77,255,.38), transparent 70%),
    radial-gradient(35% 40% at 90% 100%, rgba(79,123,255,.18), transparent 70%);
  transition: background .3s linear;
}
.contact__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(12,26,46,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(12,26,46,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 60% at 30% 40%, #000, transparent);
  mask-image: radial-gradient(60% 60% at 30% 40%, #000, transparent);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact__intro { display: grid; gap: 1.8rem; align-content: start; }
.contact__title { font-size: clamp(3rem, 7.2vw, 7.4rem); font-weight: 500; line-height: .95; letter-spacing: -0.055em; }
.contact__title em { color: var(--accent-2); }
.contact__lead { color: rgba(12,26,46,.66); font-size: 1.12rem; max-width: 30rem; }
.contact__mail {
  justify-self: start; position: relative;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em;
  padding-bottom: .3rem;
}
.contact__mail::before, .contact__mail::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; }
.contact__mail::before { background: rgba(12,26,46,.2); }
.contact__mail::after { background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); }
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__facts { display: grid; gap: .1rem; margin-top: 1rem; }
.contact__facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(12,26,46,.12); }
.contact__facts span { color: rgba(12,26,46,.5); }
.contact__facts b { font-weight: 400; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 99px;
  border: 1px solid rgba(12,26,46,.18); font-size: .88rem; cursor: pointer;
  transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease-spring);
}
.chip span:hover { border-color: rgba(12,26,46,.45); }
.chip input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip input:checked + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.chip:active span { transform: scale(.95); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 0 .6rem; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid rgba(12,26,46,.2); border-radius: 0;
  font: inherit; font-size: 1.02rem; outline: none; resize: vertical;
  transition: border-color .4s;
}
.field textarea { min-height: 96px; }
.field label { position: absolute; left: 0; top: 1.5rem; color: rgba(12,26,46,.5); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .4s; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-1.25rem) scale(.78); color: var(--accent-2); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field textarea ~ label { top: 1.5rem; }
.field:focus-within::after { transform: scaleX(1); }
.field__err { display: block; height: 0; overflow: hidden; color: #ff8a8a; font-size: .78rem; transition: height .3s; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }
.field.is-invalid .field__err { height: 1.4rem; padding-top: .35rem; }
.field.is-invalid { animation: shake .45s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.consent { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: rgba(12,26,46,.66); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1px solid rgba(12,26,46,.3); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, border-color .3s; flex: none; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.consent.is-invalid input { border-color: #ff6b6b; }
.consent a { color: var(--ink); }

/* ---------- 19 Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 6rem) 0 2rem; background: var(--bg); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer__claim { font-size: clamp(1.6rem, 2.8vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.1; font-weight: 500; max-width: 28rem; }
.footer__claim em { color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__cols div { display: grid; gap: .6rem; align-content: start; justify-items: start; font-size: .95rem; }
.footer__cols .mono { color: var(--mute-2); margin-bottom: .4rem; }
.footer__word {
  display: flex; justify-content: center;
  font-size: clamp(6rem, 25vw, 26rem); font-weight: 600; letter-spacing: -0.07em; line-height: .78;
  margin: 2rem 0 1.5rem; padding-bottom: .04em;
  color: #dbe6f3;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, rgba(40,70,120,0.03) 100%);
  mask-image: linear-gradient(180deg, #000 25%, rgba(40,70,120,0.03) 100%);
  user-select: none;
}
.footer__word .wm__e { --t: .1em; margin: 0 .04em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--mute); }

/* ---------- 20 Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 1.4rem; }
  .nav__status { display: none; }
  .hero__title { grid-column: 1 / span 9; }
  .hero__stage { grid-column: 7 / -1; }
  .fc-1 { left: -10%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl { grid-row: auto; min-height: 460px; }
  .card--wide { grid-column: span 2; }
  .card__split { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .lang--m { display: inline-flex; margin-left: auto; margin-right: -1.4rem; }
  .nav__inner { padding-right: 6px; }

  .hero { padding-bottom: 1.5rem; }
  .hero__grid { grid-template-rows: auto; row-gap: 0; }
  .hero__meta { grid-row: 1; }
  .hero__coords { display: none; }
  .hero__title { grid-column: 1 / -1; grid-row: 2; font-size: clamp(2.8rem, 11.5vw, 6rem); margin: 2.2rem 0 1.6rem; }
  .hero__aside { grid-column: 1 / -1; grid-row: 3; }
  .hero__stage { grid-column: 1 / -1; grid-row: 4; min-height: 640px; margin-top: 2.5rem; }
  .orb { width: min(80vw, 380px); top: 50%; }
  .fc-1 { left: 0; top: 2%; width: 220px; }
  .fc-2 { right: 0; top: 15%; }
  .fc-3 { right: 4%; bottom: 0; }
  .fc-4 { left: 0; bottom: 14%; }
  .hero__foot { grid-row: 5; }
  .hero__foot-r { display: none; }

  .reel__frame { width: calc(86% + 14% * var(--p)); }

  .section-head--split { grid-template-columns: 1fr; }
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__sign { grid-column: 1; }

  .svc__head { grid-template-columns: 2.6rem 1fr 2.8rem; gap: 1rem; }
  .svc__tags { display: none; }
  .svc__inner { grid-template-columns: 2.6rem 1fr; gap: 1rem; }
  .svc__copy { grid-column: 2; padding-bottom: 1.5rem; }
  .svc__media { grid-column: 2; }

  .tabs__list { grid-template-columns: repeat(2, 1fr); }
  .tabs__ink { display: none; }
  .tabs__btn[aria-selected="true"] { background: var(--ink); }
  .panel__cols { grid-template-columns: 1fr; }
  .panel__result { border-left: 0; padding-left: 0; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }

  .process__head { grid-template-columns: 1fr; }
  .process__head .section-title { grid-column: 1; }
  .process__meter { display: none; }
  .process__track { grid-template-columns: 1fr 1fr; }
  .step { min-height: 300px; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mono { font-size: .68rem; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }
  .hero__stage { min-height: 600px; }
  .fc-1 { width: 190px; top: 0; }
  .fc-2 { width: 160px; }
  .fc-3 { width: 200px; }
  .fc__rank strong { font-size: 2.4rem; }
  .logos__head span:last-child { display: none; }
  .tabs__list { grid-template-columns: 1fr; }
  .process__track { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .card--xl { min-height: 0; }
  .card__stats { grid-template-columns: 1fr; }
  .card__stats li { grid-template-columns: auto 1fr; align-items: baseline; gap: 1rem; }
  .testi__nav { justify-self: start; }
  .quote figcaption { flex-wrap: wrap; }
  .quote__kpi { margin-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- 21 Motion (solo efectos intrusivos) ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb__ring.r1, .orb__ring.r2 { animation-duration: 120s; }
  .ice__berg, .ice__waves, .ice__snow circle { animation: none; }
  .float-card { animation: none; }
  .pulse::after { animation: none; }
}

section[id] { scroll-margin-top: 72px; }

/* ==========================================================================
   22 Diagnóstico interactivo (sustituye al formulario)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .38; pointer-events: none; box-shadow: none; }
.btn.is-pulse { animation: btnPulse .9s var(--ease-out); }
@keyframes btnPulse { 0% { box-shadow: 0 0 0 0 rgba(79,123,255,.55); } 100% { box-shadow: 0 0 0 16px rgba(79,123,255,0); } }
.btn--ghost-light { padding: 0 24px; border: 1px solid rgba(12,26,46,.25); color: var(--ink); background: transparent; }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--ink); border-color: var(--ink); }

.contact__perks { display: grid; gap: .7rem; margin: .4rem 0 .6rem; }
.contact__perks li { display: flex; align-items: baseline; gap: .9rem; color: rgba(12,26,46,.82); }
.contact__perks .mono { color: var(--accent-2); font-size: .66rem; }

/* Orbe IA (identidad del asistente) */
.ai-orb {
  position: relative; flex: none; display: inline-block;
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #b9c9ff 0%, var(--accent-2) 30%, var(--accent) 55%, #071459 100%);
  box-shadow: 0 6px 20px -6px rgba(30,77,255,.7), inset -4px -6px 12px rgba(40,70,120,0.14), inset 3px 4px 8px rgba(12,26,46,.35);
}
.ai-orb i { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(79,123,255,.55); animation: orbRing 2.8s var(--ease-out) infinite; }
.ai-orb::after { content: ""; position: absolute; inset: 22% 26% auto auto; width: 22%; height: 22%; border-radius: 50%; background: rgba(12,26,46,.75); filter: blur(2px); }
@keyframes orbRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.ai-orb--lg { width: 64px; height: 64px; }

.diag {
  position: relative;
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.6rem); border-radius: var(--r-lg);
  background: rgba(255,255,255,.82); border: 1px solid rgba(12,26,46,.1);
  box-shadow: 0 40px 100px -40px rgba(40,70,120,0.27);
  min-width: 0;
}
@supports (backdrop-filter: blur(10px)) { .diag { backdrop-filter: blur(20px); } }
.diag::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(79,123,255,.55), transparent 35%, transparent 70%, rgba(79,123,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 1px; opacity: .7;
}
.diag.is-flash { animation: diagFlash 1.4s var(--ease-out); }
@keyframes diagFlash { 0% { box-shadow: 0 0 0 0 rgba(79,123,255,.6), 0 40px 100px -40px rgba(40,70,120,0.27); } 100% { box-shadow: 0 0 0 28px rgba(79,123,255,0), 0 40px 100px -40px rgba(40,70,120,0.27); } }
.diag__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(12,26,46,.1); }
.diag__brand { display: flex; align-items: center; gap: .9rem; }
.diag__brand b { display: block; font-weight: 500; letter-spacing: -0.01em; }
.diag__brand .mono { color: rgba(12,26,46,.5); font-size: .64rem; }
.diag__progress { display: flex; align-items: center; gap: .8rem; color: rgba(12,26,46,.5); }
.diag__progress b { color: var(--ink); font-weight: 500; }
.diag__progress > span { white-space: nowrap; }
.diag__progress i { position: relative; display: block; width: 84px; height: 2px; border-radius: 2px; background: rgba(12,26,46,.14); overflow: hidden; }
.diag__progress i b { position: absolute; inset: 0; background: var(--accent-2); transform-origin: left; transform: scaleX(.25); transition: transform .7s var(--ease-out); }
.diag.is-final .diag__progress { opacity: 0; transition: opacity .4s; }

.diag__body { position: relative; transition: height .6s var(--ease-out); overflow: hidden; margin: -6px; padding: 6px; }
.diag__step { display: none; }
.diag__step.is-active { display: block; animation: stepIn .7s var(--ease-out) both; }
.diag__step.is-active.is-back { animation-name: stepInBack; }
.diag__step.is-swap { animation: stepIn .6s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translate3d(28px, 0, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translate3d(-28px, 0, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.diag__kicker { color: var(--accent-2); }
.diag__q { font-size: clamp(1.45rem, 2.3vw, 2.05rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; margin: .6rem 0 1.5rem; text-wrap: balance; }
.diag__intro { color: rgba(12,26,46,.62); margin-top: .7rem; }
.diag__intro:empty { display: none; }
.diag__intro + div .diag__q { margin-top: .5rem; }
.diag__sub { color: rgba(12,26,46,.62); margin: -.8rem 0 1.2rem; }
.diag__hint { color: rgba(12,26,46,.45); margin-top: .8rem; font-size: .62rem; }
.diag .field { margin-top: .6rem; }
.diag .field--sm input { font-size: .95rem; }
.diag__form { display: grid; gap: .4rem; }
.diag__form .consent { margin-top: 1.2rem; }
.chips--lg { gap: .55rem; }
.chips--lg .chip span { padding: .78rem 1.15rem; font-size: .95rem; }
.diag__step.is-active .chip { animation: chipIn .55s var(--ease-out) both; }
.diag__step.is-active .chip:nth-child(2) { animation-delay: .04s; } .diag__step.is-active .chip:nth-child(3) { animation-delay: .08s; }
.diag__step.is-active .chip:nth-child(4) { animation-delay: .12s; } .diag__step.is-active .chip:nth-child(5) { animation-delay: .16s; }
.diag__step.is-active .chip:nth-child(6) { animation-delay: .2s; } .diag__step.is-active .chip:nth-child(7) { animation-delay: .24s; }
.diag__step.is-active .chip:nth-child(8) { animation-delay: .28s; } .diag__step.is-active .chip:nth-child(9) { animation-delay: .32s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chip input[type=radio]:checked + span { box-shadow: 0 8px 24px -10px rgba(12,26,46,.5); }

.diag__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.3rem; border-top: 1px solid rgba(12,26,46,.1); }
.diag__foot.is-hidden { display: none; }
.diag__back { color: rgba(12,26,46,.6); padding: .6rem 0; transition: color .3s, transform .4s var(--ease-out); }
.diag__back:hover { color: var(--ink); transform: translateX(-3px); }
.diag__back.is-hidden { visibility: hidden; }
.diag__status { flex: 1; text-align: right; color: rgba(12,26,46,.6); text-transform: none; font-size: .78rem; }
.diag__status.is-error { color: #ff8a8a; }
.diag__noscript { color: rgba(12,26,46,.7); }
.diag__noscript a { color: var(--ink); text-decoration: underline; }
.js .diag:not(.is-ready) .diag__step:not([data-step=business]) { display: none; }

/* ==========================================================================
   23 Asistente IA (chat flotante)
   ========================================================================== */
.ai { position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 650; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; pointer-events: none; }
.ai > * { pointer-events: auto; }
body.menu-open .ai { opacity: 0; pointer-events: none; }
.ai__launcher {
  order: 3;
  display: inline-flex; align-items: center; gap: .75rem;
  height: 58px; padding: 0 20px 0 9px; border-radius: 99px;
  background: rgba(255,255,255,.95); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -14px rgba(40,70,120,0.32), 0 1px 0 rgba(12,26,46,.06) inset;
  font-size: .92rem; font-weight: 500;
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-spring), box-shadow .4s, background-color .4s;
}
.ai.is-ready .ai__launcher { opacity: 1; transform: none; }
.ai__launcher:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -16px rgba(30,77,255,.6); }
.ai__launcher-badge { padding: .2rem .45rem; border-radius: 6px; background: rgba(47,91,255,.12); color: var(--accent-text); font-size: .6rem; }
.ai.is-open .ai__launcher { background: var(--surface-2); }
@supports (backdrop-filter: blur(10px)) { .ai__launcher { background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.5); } }

.ai__nudge {
  order: 2;
  position: absolute; right: 0; bottom: calc(58px + .8rem);
  display: flex; align-items: flex-start; gap: .4rem;
  width: max-content; max-width: 270px; padding: .9rem 1rem .9rem 1.1rem; border-radius: 18px 18px 6px 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  font-size: .9rem; line-height: 1.4;
  opacity: 0; transform: translateY(10px) scale(.95); transform-origin: bottom right; visibility: hidden;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring), visibility 0s .5s;
}
.ai__nudge.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring); }
.ai__nudge-text { text-align: left; }
.ai__nudge-close { color: var(--mute-2); font-size: 1.2rem; line-height: 1; padding: 0 .1rem; }
.ai__nudge-close:hover { color: var(--ink); }

.ai__panel {
  order: 1;
  display: flex; flex-direction: column;
  width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100svh - 120px));
  border-radius: 26px; overflow: hidden;
  background: rgba(255,255,255,.98); border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(40,70,120,0.38), 0 1px 0 rgba(12,26,46,.06) inset;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(16px) scale(.94); visibility: hidden; pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-spring), visibility 0s .45s;
}
@supports (backdrop-filter: blur(10px)) { .ai__panel { background: rgba(250,252,255,.86); backdrop-filter: blur(24px) saturate(1.6); } }
.ai__panel.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .45s var(--ease-out), transform .6s var(--ease-spring); }

.ai__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.ai__head .ai-orb { width: 38px; height: 38px; }
.ai__title { flex: 1; display: grid; gap: .1rem; }
.ai__title b { font-weight: 500; letter-spacing: -0.01em; }
.ai__title .mono { display: inline-flex; align-items: center; gap: .4rem; color: var(--mute); font-size: .6rem; }
.ai__dot { width: 6px; height: 6px; border-radius: 50%; background: #18c37e; box-shadow: 0 0 0 3px rgba(24,195,126,.18); }
.ai__icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--graphite); transition: background-color .3s, color .3s, transform .5s var(--ease-out); }
.ai__icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai__icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.ai__icon-btn[data-ai-reset]:hover { transform: rotate(-90deg); }

.ai__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .65rem; padding: 1.2rem 1rem; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: .72rem .95rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; word-wrap: break-word; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5rem; }
.msg ul { padding-left: 1.1rem; list-style: disc; }
.msg li + li { margin-top: .2rem; }
.msg strong { font-weight: 600; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--charcoal); }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg--error { align-self: flex-start; background: rgba(255,90,90,.08); border: 1px solid rgba(255,110,110,.25); color: #ffb1b1; font-size: .85rem; }
.msg.is-new, .msg-cta.is-new { animation: msgIn .55s var(--ease-spring) both; }
.msg--user.is-new { transform-origin: bottom right; }
.msg--bot.is-new { transform-origin: bottom left; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.msg--typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--mute-2); animation: typing 1.2s var(--ease-io) infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; background: var(--accent); } }

.msg-cta {
  display: grid; gap: .55rem; padding: 1rem; border-radius: 18px;
  background: linear-gradient(150deg, rgba(30,77,255,.12), rgba(30,77,255,.03));
  border: 1px solid rgba(30,77,255,.22);
}
.msg-cta .mono { color: var(--accent); font-size: .6rem; }
.msg-cta b { font-weight: 500; font-size: .95rem; line-height: 1.35; }
.msg-cta__btn { display: flex; justify-content: space-between; align-items: center; margin-top: .2rem; padding: .8rem 1rem; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 500; font-size: .9rem; transition: background-color .3s, transform .4s var(--ease-out); }
.msg-cta__btn i { font-style: normal; transition: transform .4s var(--ease-out); }
.msg-cta__btn:hover { background: #fff; color: var(--on-light); }
.msg-cta__btn:hover i { transform: translateX(4px); }
.msg-cta__link { font-size: .82rem; color: var(--accent); text-align: center; }

.ai__suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; }
.ai__suggest.is-empty { display: none; }
.ai__chip { padding: .48rem .8rem; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8rem; color: var(--graphite); text-align: left; animation: chipIn .5s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); transition: border-color .3s, color .3s, background-color .3s; }
.ai__chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.ai__form { display: flex; align-items: flex-end; gap: .5rem; margin: 0 .9rem; padding: 6px 6px 6px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .3s, box-shadow .3s; }
.ai__form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ai__form textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: .95rem; line-height: 1.4; padding: .55rem 0; max-height: 120px; color: var(--ink); }
.ai__form textarea:focus-visible { outline: none; }
.ai__send { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-light); transition: background-color .3s, transform .4s var(--ease-spring), opacity .3s; }
.ai__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai__send:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
.ai__send:disabled { opacity: .35; pointer-events: none; }
.ai__legal { padding: .6rem 1rem .8rem; text-align: center; color: var(--mute-2); font-size: .56rem; }

@media (max-width: 960px) {
}
@media (max-width: 640px) {
  .diag__progress i { width: 48px; }
  .diag__brand .mono { display: none; }
  .diag__brand b { font-size: .92rem; }
  .diag__brand .ai-orb { width: 34px; height: 34px; }
  .diag__foot .btn { flex: 1; justify-content: space-between; }
  .diag__status { position: absolute; left: 0; right: 0; bottom: -1.6rem; text-align: center; }
  .diag__foot { position: relative; }

  .ai__launcher { padding: 0; width: 58px; justify-content: center; }
  .ai__launcher-label, .ai__launcher-badge { display: none; }
  .ai__panel { position: fixed; left: 0; right: 0; bottom: 0; top: 6svh; width: auto; height: auto; border-radius: 24px 24px 0 0; transform-origin: bottom center; }
  .ai.is-open .ai__launcher { opacity: 0; pointer-events: none; }
  body.ai-open { overflow: hidden; }
  .ai__form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-orb i { animation: none; }
}


/* ==========================================================================
   24 Logotipo: la «E» de AEVON son tres rayas (Ξ)
   ========================================================================== */
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wm, .wm * { text-indent: 0; }
.wm__e {
  --t: .115em;
  display: inline-block; flex: none; width: .56em; height: .7em;
  margin: 0 calc(.05em + var(--wm-ls, 0em)) 0 .05em;
  background:
    linear-gradient(var(--wm-color, currentColor) 0 0) 0 0 / 100% var(--t) no-repeat,
    linear-gradient(var(--wm-color, currentColor) 0 0) 0 50% / 100% var(--t) no-repeat,
    linear-gradient(var(--wm-color, currentColor) 0 0) 0 100% / 100% var(--t) no-repeat;
}
.brand__name .wm__e, .intro__brand .wm__e { --t: .13em; }
.mono .wm__e { width: .5em; height: .64em; }

/* ==========================================================================
   25 Acabado premium: grano, aurora y tipografía monumental
   ========================================================================== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 690; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__aurora { position: absolute; inset: -10% -5% 10%; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: .55; will-change: transform; }
.hero__aurora i:nth-child(1) { width: 60vw; height: 60vw; right: -12vw; top: -18vw; background: radial-gradient(circle, rgba(47,91,255,.55), transparent 62%); animation: drift1 22s var(--ease-io) infinite alternate; }
.hero__aurora i:nth-child(2) { width: 46vw; height: 46vw; right: 18vw; top: 6vw; background: radial-gradient(circle, rgba(110,70,255,.32), transparent 62%); animation: drift2 26s var(--ease-io) infinite alternate; }
.hero__aurora i:nth-child(3) { width: 38vw; height: 38vw; left: -10vw; bottom: -8vw; background: radial-gradient(circle, rgba(0,170,255,.18), transparent 64%); animation: drift1 30s var(--ease-io) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(-6vw, 4vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(5vw, -3vw, 0) scale(.9); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(12,26,46,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(12,26,46,.035) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent);
}

.bigtype { position: relative; overflow: hidden; padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 6rem); }
.bigtype__track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; animation: marquee 60s linear infinite; }
.bigtype span {
  font-size: clamp(4rem, 11vw, 11rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(12,26,46,.2);
  transition: color .6s var(--ease-out), -webkit-text-stroke-color .6s;
}
.bigtype span:hover { color: rgba(12,26,46,.92); -webkit-text-stroke-color: transparent; }
.bigtype i { font-style: normal; font-size: clamp(1.6rem, 3.5vw, 3.4rem); color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.bigtype::before, .bigtype::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18vw; z-index: 1; pointer-events: none; }
.bigtype::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.bigtype::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* Tarjetas y paneles con filo de luz */
.card, .tabs, .step, .metric { box-shadow: 0 1px 0 rgba(12,26,46,.05) inset, var(--shadow-1); }
.services { border-top: 1px solid var(--line); }

/* ==========================================================================
   26 Cuestionario de contacto
   ========================================================================== */
.qz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qz legend { padding: 0; }
.qz__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--ink); background: rgba(12,26,46,.06); border: 1px solid rgba(12,26,46,.12); }
.field--xl input { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; padding: 2rem 0 .7rem; }
.field--xl label { top: 2.05rem; font-size: 1.05rem; }
.field--xl input:focus ~ label, .field--xl input:not(:placeholder-shown) ~ label { transform: translateY(-1.55rem) scale(.78); }
.qz__ideas { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.5rem 0 .3rem; }
.qz__idea {
  padding: .5rem .85rem; border-radius: 99px; font-size: .82rem; color: rgba(12,26,46,.72);
  border: 1px dashed rgba(12,26,46,.22);
  transition: border-color .3s, color .3s, background-color .3s, transform .4s var(--ease-spring);
}
.qz__idea:hover { border-style: solid; border-color: var(--accent-2); color: var(--ink); transform: translateY(-2px); }
.qz__idea.is-used { border-style: solid; border-color: transparent; background: rgba(127,156,255,.16); color: var(--ink); }
.qz .consent { margin-top: 1.1rem; }
/* Paso de inversión: barras deslizantes y opciones */
.diag__step[data-step=budget].is-active { display: grid; gap: .9rem; }
.diag__step[data-step=budget] .diag__q { margin-bottom: 0; }
.qz__note { color: rgba(12,26,46,.58); font-size: .92rem; margin: -.6rem 0 .4rem; }
.qz__range { display: grid; gap: .7rem; padding: 1rem 1.1rem 1.05rem; border: 1px solid rgba(12,26,46,.1); border-radius: 16px; background: rgba(12,26,46,.025); transition: border-color .4s; }
.qz__range.is-set { border-color: rgba(127,156,255,.35); }
.qz__range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.qz__range-head label { font-size: .92rem; color: rgba(12,26,46,.8); }
.qz__out { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.02em; color: rgba(12,26,46,.4); transition: color .3s; }
.qz__range.is-set .qz__out { color: var(--ink); }
.qz__range input[type=range] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer;
}
.qz__range input[type=range]:focus { outline: none; }
.qz__range input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0, var(--accent-2) var(--p), rgba(12,26,46,.12) var(--p));
}
.qz__range input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(12,26,46,.12); }
.qz__range input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.qz__range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(47,91,255,.35), 0 6px 16px rgba(40,70,120,0.23);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.qz__range input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 5px rgba(47,91,255,.35), 0 6px 16px rgba(40,70,120,0.23);
}
.qz__range:not(.is-set) input[type=range]::-webkit-slider-runnable-track { background: rgba(12,26,46,.12); }
.qz__range:not(.is-set) input[type=range]::-moz-range-progress { background: transparent; }
.qz__range input[type=range]:hover::-webkit-slider-thumb, .qz__range input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(47,91,255,.35), 0 6px 16px rgba(40,70,120,0.23); }
.qz__range input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 8px rgba(47,91,255,.45); }
.qz__range-scale { display: flex; justify-content: space-between; color: rgba(12,26,46,.36); font-size: .62rem; margin-top: -.3rem; }
.qz__group { display: grid; gap: .6rem; margin-top: .3rem; }
.qz__group-l { font-size: .92rem; color: rgba(12,26,46,.8); }
.qz__group-l small { color: rgba(12,26,46,.4); font-size: .6rem; margin-left: .4rem; }
.qz__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.qz__chip { position: relative; cursor: pointer; }
.qz__chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qz__chip span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 99px;
  font-size: .85rem; color: rgba(12,26,46,.72); border: 1px solid rgba(12,26,46,.18);
  transition: border-color .3s, color .3s, background-color .3s, transform .4s var(--ease-spring);
}
.qz__chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(12,26,46,.4); transition: background-color .3s, border-color .3s; }
.qz__chip:hover span { border-color: var(--accent-2); color: var(--ink); transform: translateY(-2px); }
.qz__chip input:checked + span { background: rgba(47,91,255,.22); border-color: var(--accent-2); color: var(--ink); }
.qz__chip input:checked + span::before { background: var(--accent-2); border-color: var(--accent-2); }
.qz__chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.qz__hint { color: rgba(12,26,46,.38); text-align: right; margin-top: -.5rem; text-transform: none; }
.qz__hint kbd { font-family: var(--f-mono); font-size: .66rem; padding: .1rem .4rem; border: 1px solid rgba(12,26,46,.2); border-radius: 6px; color: rgba(12,26,46,.7); }
.qz__hint.is-hidden { visibility: hidden; }
.btn.is-sending .btn__icon svg { animation: spin 1s linear infinite; }
.qz__done { padding: .4rem 0 .2rem; }
.qz__done:focus { outline: none; }
.qz__check { display: block; width: 68px; height: 68px; margin-bottom: 1.2rem; }
.qz__check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qz__check circle { stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.qz__check path { stroke: #fff; stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; }
.qz__done.is-active circle { animation: drawStroke .9s .15s var(--ease-out) forwards; }
.qz__done.is-active path { animation: drawStroke .6s .75s var(--ease-out) forwards; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
.qz.is-fallback .qz__check circle { stroke: #f0a840; }
.qz__done .diag__sub { margin: 0 0 1.6rem; color: rgba(12,26,46,.7); }
.qz__done .diag__sub a { color: var(--ink); }
.qz__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(12,26,46,.1); }
.qz__summary dt { color: rgba(12,26,46,.45); margin-bottom: .3rem; }
.qz__summary dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .qz__summary { grid-template-columns: 1fr; }
  .qz__hint { display: none; }
  .bigtype span { -webkit-text-stroke-width: .8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__aurora i { animation: none; }
}

/* ==========================================================================
   22 Tema nieve: fondo helado y nieve cayendo
   ========================================================================== */
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(176, 205, 245, .45), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(214, 230, 250, .7), transparent 65%),
    linear-gradient(180deg, #f6f9fd 0%, #eef4fb 45%, #f4f8fc 100%);
  background-attachment: fixed;
}
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
html.intro-on .snow { opacity: 0; }
.snow { transition: opacity 1.2s ease; }
/* Ventisqueros de nieve al pie de la portada */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 140px); pointer-events: none; z-index: 1;
  background:
    radial-gradient(60% 120% at 15% 100%, #fff 58%, transparent 60%),
    radial-gradient(50% 100% at 55% 110%, #fbfdff 58%, transparent 60%),
    radial-gradient(55% 110% at 92% 100%, #fff 58%, transparent 60%);
  filter: drop-shadow(0 -8px 18px rgba(150, 180, 225, .25));
}

/* Botón de sonido del showreel sobre fondo claro */
.reel__sound { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: 0 8px 22px -12px rgba(40,70,120,.35); }
.reel__sound:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.reel__sound[aria-pressed="true"] { color: #fff; }
/* Gran logotipo del pie: hielo con brillo */
.footer__word { background: linear-gradient(180deg, #cfdcec 0%, #e9f0f8 70%); -webkit-background-clip: text; background-clip: text; color: transparent; --wm-color: #cfdcec; }

/* ==========================================================================
   23 CEO: quién está detrás
   ========================================================================== */
.ceo { padding: clamp(1rem, 4vw, 3rem) 0 clamp(5rem, 10vw, 8rem); }
.ceo__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.ceo__card {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255,255,255,.95), transparent 70%),
    linear-gradient(160deg, #dfeaf7 0%, #c4d6ee 55%, #9fb8da 100%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(40,70,120,.45);
}
.ceo__initials {
  position: relative; z-index: 1;
  font-size: clamp(6rem, 14vw, 11rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ceo__peaks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; fill: #fff; opacity: .9; filter: drop-shadow(0 -6px 14px rgba(120,150,200,.35)); }
.ceo__badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 99px; background: rgba(255,255,255,.85);
  border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(6px);
}
.ceo__badge > i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ceo__copy { display: grid; gap: 1.5rem; }
.ceo__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; }
.ceo__name b { font-weight: 600; }
.ceo__name .mono { color: var(--accent-text); }
.ceo__bio { display: grid; gap: 1rem; }
.ceo__lead b { color: var(--ink); font-weight: 600; }
.ceo__lead { color: var(--graphite); font-size: clamp(1.02rem, 1.2vw, 1.18rem); max-width: 40rem; text-wrap: pretty; }
.ceo__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ceo__points li {
  display: grid; gap: .35rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
}
.ceo__points b { font-weight: 600; letter-spacing: -0.01em; }
.ceo__points span { color: var(--mute); font-size: .92rem; line-height: 1.45; }
.ceo__quote { padding-left: 1.2rem; border-left: 2px solid var(--accent); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--charcoal); max-width: 40rem; }
.ceo__quote em { color: var(--accent); }
.ceo__actions { padding-top: .5rem; }

@media (max-width: 960px) {
  .ceo__grid { grid-template-columns: 1fr; }
  .ceo__card { aspect-ratio: 16 / 10; max-width: 560px; }
  .ceo__points { grid-template-columns: 1fr; }
}
