/* ARX — hoja de estilos
   Lenguaje visual: galería nocturna (referencia: Krea). Monocromo total: el blanco es el único acento.
   Elevación por tono de superficie; la única sombra es la del monitor del hero. Sin dependencias externas. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --obsidian: #000000;
  --midnight: #0b0f15;
  --charcoal: #171717;
  --graphite: #262626;
  --iron: #404040;
  --slate: #525252;
  --ash: #737373;
  --fog: #a3a3a3;
  --pearl: #d4d4d5;
  --mist: #e5e5e5;
  --white: #ffffff;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 128px);
  --r-card: 8px;
  --r-surface: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--obsidian); }
body {
  margin: 0; background: var(--obsidian); color: var(--white);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
.js:not(.intro-done) body { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
::selection { background: var(--white); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--white); color: var(--obsidian); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Intro de carga ---------- */
.intro { display: none; }
.js .intro { display: block; position: fixed; inset: 0; z-index: 300; background: var(--obsidian); transition: opacity .8s var(--ease-out); }
.js.intro-done .intro { display: none; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-canvas { width: 100%; height: 100%; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 1px; background: var(--white); transform-origin: left; transform: scaleX(var(--sp, 0)); opacity: .7; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(3rem, 7.2vw, 6rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance;
}
.heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance;
}
.subheading { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.lede { color: var(--fog); font-size: 1.0625rem; max-width: 46ch; }
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 56px; }

/* ---------- Botones (píldoras) ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
  transition: transform .45s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: translate(var(--tx), var(--ty)) scale(.97); }
.btn-white { background: var(--white); color: var(--obsidian); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.btn-white:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--fog); border-color: var(--pearl); }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(0, 0, 0, .78); border-bottom-color: var(--graphite); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-solid { background: rgba(0, 0, 0, .55); backdrop-filter: blur(16px) saturate(1.4); } }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 24px; height: auto; }
.brand-word { width: 52px; height: auto; }
.js:not(.intro-done) .brand { opacity: 0; }
.brand { transition: opacity .6s .2s; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .875rem; text-decoration: none; color: var(--fog); transition: color .25s;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-list a:not(.btn):hover { color: var(--white); }
.nav-list a:not(.btn):hover::after, .nav-list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-list a.is-current { color: var(--white); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(140px, 18vh, 200px) 0 0; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #0d0d0d, var(--obsidian) 70%); }
.mesh {
  position: absolute; inset: 0 0 auto; width: 100%; height: min(100svh, 980px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; text-align: center; padding: 0 var(--gutter); max-width: 1000px; margin: 0 auto; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.display .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.display .line > span { display: inline-block; }
.js .display .line > span { transform: translateY(110%); }
.js.is-loaded .display .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js.is-loaded .display .line:nth-child(2) > span { transition-delay: .08s; }
.hero-lede { color: var(--fog); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 48ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(12px); }
.js.is-loaded .hero-lede, .js.is-loaded .hero-actions { opacity: 1; transform: none; transition: opacity .9s .3s, transform 1s .3s var(--ease-out); }
.js.is-loaded .hero-actions { transition-delay: .42s; }

/* Monitor del hero: se endereza con el scroll */
.stage { position: relative; z-index: 1; perspective: 1400px; padding: clamp(64px, 9vw, 112px) var(--gutter) var(--section); }
.monitor {
  --tilt: 18deg; --lift: 0px; --s: .94;
  max-width: 1080px; margin: 0 auto; background: var(--charcoal); border: 1px solid var(--iron); border-radius: var(--r-surface); overflow: hidden;
  box-shadow: 0 9px 8px rgba(0, 0, 0, .2), 0 6px 4px -1px rgba(0, 0, 0, .2), 0 60px 120px -30px rgba(255, 255, 255, .06);
  transform: rotateX(var(--tilt)) translateY(var(--lift)) scale(var(--s)); transform-origin: 50% 0;
  will-change: transform;
}
.js .monitor { opacity: 0; }
.js.is-loaded .monitor { opacity: 1; transition: opacity 1.2s .5s; }
.monitor-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--graphite); }
.monitor-title { font-size: .75rem; color: var(--ash); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--iron); }
.monitor-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: 380px; }
.term {
  margin: 0; padding: 22px 24px; font-family: var(--mono); font-size: .8125rem; line-height: 1.75; color: var(--fog);
  white-space: pre-wrap; word-break: break-word; border-right: 1px solid var(--graphite); background: var(--obsidian);
}
.term .ln { display: block; }
.term .w { color: var(--white); }
.term .d { color: var(--slate); }
.term .m { color: var(--pearl); }
.term .caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -2px; background: var(--white); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.status { display: flex; flex-direction: column; padding: 8px 0; transition: opacity .6s; }
.js .status { opacity: .25; }
.js .status.is-in { opacity: 1; }
.status-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; }
.status-title { font-weight: 500; font-size: .9375rem; }
.status-phase { font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--iron); color: var(--fog); transition: background-color .3s, color .3s, border-color .3s; }
.status-phase.is-after { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.status-rows { margin: 0; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--graphite); font-size: .8125rem; }
.srow dt { color: var(--fog); }
.srow dd { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.val { font-weight: 500; font-variant-numeric: tabular-nums; }
.tag { font-size: .6875rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--iron); color: var(--fog); transition: all .3s; }
.tag.is-ok { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.srow.is-flip .val { animation: flip .5s var(--ease-out); }
@keyframes flip { from { opacity: 0; transform: translateY(-6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.status-note { margin-top: auto; padding: 12px 22px; font-size: .75rem; color: var(--ash); }

/* ---------- Frase que se ilumina con el scroll ---------- */
.statement { padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section); }
.statement-text {
  max-width: 24ch; margin: 0 auto; text-align: center;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.875rem, 4.2vw, 3.5rem); line-height: 1.12; letter-spacing: -.025em;
}
.js .statement-text .word { color: var(--iron); transition: color .35s; }
.js .statement-text .word.on { color: var(--white); }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: grid; gap: 28px; align-content: start; padding: 12px 12px 28px; background: var(--charcoal);
  border-radius: var(--r-surface); overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card-body { display: grid; gap: 12px; padding: 0 16px; }
.card-body > p { color: var(--fog); font-size: .9375rem; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags li { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--graphite); color: var(--fog); }
.card-art { position: relative; height: 220px; border-radius: 10px; background: var(--obsidian); overflow: hidden; display: grid; align-content: center; padding: 20px; }

.frows { display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 72px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-card); background: var(--charcoal); font-size: .8125rem; transition: background-color .4s; }
.sev { font-size: .6875rem; color: var(--fog); border: 1px solid var(--iron); border-radius: 999px; text-align: center; padding: 1px 0; }
.ftext { color: var(--pearl); transition: color .4s; }
.fstate { justify-self: end; font-size: .6875rem; font-weight: 500; color: var(--ash); }
.fstate::before { content: "Abierto"; }
.frow.is-fixed .ftext { color: var(--ash); text-decoration: line-through; text-decoration-color: var(--slate); }
.frow.is-fixed .fstate { color: var(--white); }
.frow.is-fixed .fstate::before { content: "Corregido"; }

.art-tickets { align-content: start; gap: 6px; }
.pulse { width: 100%; height: 48px; }
.pulse path { fill: none; stroke: var(--white); stroke-width: 1.5; stroke-dasharray: 700; stroke-dashoffset: 700; }
.card.is-play .pulse path { animation: draw 2.2s var(--ease-io) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.trows { display: grid; gap: 6px; }
.trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r-card); background: var(--charcoal); font-size: .8125rem; }
.tid { font-family: var(--mono); color: var(--ash); font-size: .75rem; }
.ttext { color: var(--pearl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tstate { font-size: .6875rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--iron); color: var(--fog); }
.tstate.is-done { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.card.is-play .trow { animation: rise .55s var(--ease-out) both; }
.card.is-play .trow:nth-child(2) { animation-delay: .1s; }
.card.is-play .trow:nth-child(3) { animation-delay: .2s; }

.flow { position: relative; display: grid; gap: 8px; }
.flow::before { content: ""; position: absolute; left: 29px; top: 16px; bottom: 16px; width: 1px; background: var(--iron); }
.flow li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .8125rem; color: var(--pearl); }
.flow span {
  position: relative; z-index: 1; display: grid; place-items: center; height: 30px; border-radius: 999px; background: var(--charcoal);
  border: 1px solid var(--iron); font-size: .6875rem; font-weight: 500; color: var(--fog); transition: background-color .3s, color .3s, border-color .3s;
}
.card.is-play .flow li span { animation: nodeOn 3s var(--ease-io) infinite; }
.card.is-play .flow li:nth-child(2) span { animation-delay: .6s; }
.card.is-play .flow li:nth-child(3) span { animation-delay: 1.2s; }
.card.is-play .flow li:nth-child(4) span { animation-delay: 1.8s; }
@keyframes nodeOn { 0%, 20% { background: var(--white); color: var(--obsidian); border-color: var(--white); } 32%, 100% { background: var(--charcoal); color: var(--fog); border-color: var(--iron); } }

.browser { border: 1px solid var(--graphite); border-radius: 10px; overflow: hidden; background: var(--charcoal); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--graphite); }
.url { flex: 1; height: 20px; line-height: 20px; padding: 0 10px; border-radius: 999px; background: var(--obsidian); font-size: .6875rem; color: var(--ash); }
.browser-body { display: grid; gap: 8px; padding: 14px; }
.wb { display: block; height: 30px; border-radius: 6px; background: var(--graphite); transform-origin: left; }
.wb-a { height: 10px; width: 40%; }
.wb-b { height: 46px; background: var(--pearl); }
.wb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card.is-play .wb { animation: build .7s var(--ease-out) both; }
.card.is-play .wb-b { animation-delay: .1s; }
.card.is-play .wb-row .wb:nth-child(1) { animation-delay: .2s; }
.card.is-play .wb-row .wb:nth-child(2) { animation-delay: .28s; }
.card.is-play .wb-row .wb:nth-child(3) { animation-delay: .36s; }
@keyframes build { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Proceso: scrollytelling ---------- */
.story { position: relative; height: 420vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.story-copy { display: grid; gap: 36px; }
.story-steps { display: grid; gap: 6px; }
.sstep { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 16px 0; color: var(--slate); transition: color .5s; }
.sstep p { font-size: .9375rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s, margin .5s; }
.sstep.is-active { color: var(--white); }
.sstep.is-active p { max-height: 6em; opacity: 1; margin-top: 6px; color: var(--fog); }
.sstep-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid currentColor; font-size: .75rem; font-weight: 500; }
.sstep.is-active .sstep-n { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.sstep-bar { position: absolute; left: 52px; right: 0; bottom: 0; height: 1px; background: var(--graphite); }
.sstep-bar i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(var(--sp, 0)); }

.screen-frame { background: var(--charcoal); border: 1px solid var(--graphite); border-radius: var(--r-surface); overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--graphite); }
.screen-title { font-family: var(--mono); font-size: .75rem; color: var(--ash); }
.screens { display: grid; min-height: 380px; }
.screen { grid-area: 1 / 1; display: grid; align-content: center; gap: 20px; padding: 28px; opacity: 0; transform: translateY(16px) scale(.98); filter: blur(4px); transition: opacity .6s, transform .8s var(--ease-out), filter .6s; }
.screen.is-active { opacity: 1; transform: none; filter: none; }
.screen-cap { font-size: .8125rem; color: var(--ash); text-align: center; }

.net { width: 100%; max-height: 280px; }
.net-links path { stroke: var(--iron); stroke-width: 1; fill: none; }
.hub { fill: var(--white); }
.nodes circle { fill: var(--graphite); stroke: var(--slate); stroke-width: 1.5; }
.nodes circle.risk { fill: none; stroke: var(--white); stroke-dasharray: 3 3; }
.screen.is-active .nodes circle.risk { animation: riskBlink 1.2s steps(1) infinite; }
@keyframes riskBlink { 50% { stroke-opacity: .25; } }
.ring { fill: none; stroke: var(--white); stroke-width: 1; opacity: 0; transform-origin: 200px 130px; }
.screen.is-active .ring { animation: ring 2.4s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(9); opacity: 0; } }

.plan, .log { display: grid; gap: 8px; }
.plan li, .log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-card); background: var(--obsidian); font-size: .875rem; color: var(--pearl); }
.prio { font-size: .6875rem; text-align: center; padding: 2px 0; border-radius: 999px; border: 1px solid var(--iron); color: var(--fog); }
.plan li:nth-child(-n+2) .prio { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.log li { grid-template-columns: 24px minmax(0, 1fr); }
.log li span { color: var(--white); font-weight: 600; }
.screen.is-active .plan li, .screen.is-active .log li { animation: rise .55s var(--ease-out) both; }
.screen.is-active .plan li:nth-child(2), .screen.is-active .log li:nth-child(2) { animation-delay: .12s; }
.screen.is-active .plan li:nth-child(3), .screen.is-active .log li:nth-child(3) { animation-delay: .24s; }
.screen.is-active .plan li:nth-child(4), .screen.is-active .log li:nth-child(4) { animation-delay: .36s; }

.report { display: grid; gap: 8px; }
.rrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-card); background: var(--obsidian); font-size: .875rem; color: var(--pearl); }
.weeks { display: inline-flex; gap: 6px; }
.weeks i { width: 14px; height: 14px; border-radius: 4px; background: var(--graphite); }
.screen.is-active .weeks i { animation: fillOn .4s var(--ease-out) forwards; }
.screen.is-active .weeks i:nth-child(2) { animation-delay: .15s; }
.screen.is-active .weeks i:nth-child(3) { animation-delay: .3s; }
.screen.is-active .weeks i:nth-child(4) { animation-delay: .45s; }
@keyframes fillOn { to { background: var(--white); } }
.meter { position: relative; width: 120px; height: 6px; border-radius: 999px; background: var(--graphite); overflow: hidden; }
.meter i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }
.screen.is-active .meter i { animation: build 1.2s var(--ease-out) .2s forwards; }
.rval { color: var(--fog); font-size: .8125rem; }

/* ---------- Capas ---------- */
.band { background: linear-gradient(180deg, var(--obsidian), var(--charcoal) 18%, var(--charcoal) 82%, var(--obsidian)); }
.layers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.layers-copy { display: grid; gap: 22px; }
.layers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--iron); background: transparent;
  color: var(--fog); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.pill:hover { border-color: var(--pearl); color: var(--white); }
.pill:active { transform: scale(.96); }
.pill[aria-selected="true"] { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.layer-text { min-height: 4.5em; color: var(--pearl); font-size: 1.0625rem; max-width: 46ch; }
.layer-text.is-swap { animation: rise .45s var(--ease-out); }
.layers-visual { position: relative; aspect-ratio: 1 / 1; max-height: 560px; }
.shield-field { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Este sitio ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.proof-copy { display: grid; gap: 20px; }
.checks-card { background: var(--charcoal); border-radius: var(--r-surface); padding: 8px 0; }
.checks { font-family: var(--mono); font-size: .8125rem; }
.check { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--graphite); }
.check:last-child { border-bottom: 0; }
.check-k { color: var(--fog); }
.check-v { text-align: right; color: var(--ash); white-space: nowrap; }
.check-v.ok { color: var(--white); }
.check-v.ok::before { content: "✓ "; }
.check-v.warn { color: var(--pearl); }
.check-v .sub { display: block; color: var(--ash); white-space: normal; font-size: .75rem; }
.js .check { opacity: 0; transform: translateX(-8px); transition: opacity .45s, transform .55s var(--ease-out); }
.js .check.is-on { opacity: 1; transform: none; }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list { border-top: 1px solid var(--graphite); }
.qa { border-bottom: 1px solid var(--graphite); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .25s;
}
.qa summary:hover { color: var(--pearl); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform .45s var(--ease-out);
  background: linear-gradient(var(--fog), var(--fog)) center / 14px 1.5px no-repeat, linear-gradient(var(--fog), var(--fog)) center / 1.5px 14px no-repeat;
}
.qa[open] summary::after { transform: rotate(135deg); }
.qa-body { padding: 0 0 22px; color: var(--fog); max-width: 60ch; }
.qa[open] .qa-body { animation: rise .45s var(--ease-out); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.contact-copy { display: grid; gap: 20px; }
.contact-alt { display: grid; gap: 6px; margin-top: 16px; }
.contact-label { font-size: .8125rem; color: var(--ash); margin-top: 10px; }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-row a { text-decoration: none; font-size: 1.125rem; border-bottom: 1px solid var(--iron); transition: border-color .25s; }
.copy-row a:hover { border-color: var(--white); }
.copy-btn {
  min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--iron); background: transparent; color: var(--fog);
  font-size: .75rem; cursor: pointer; transition: all .25s;
}
.copy-btn:hover { color: var(--white); border-color: var(--pearl); }
.copy-btn.is-done { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.form { display: grid; gap: 14px; padding: 28px; background: var(--charcoal); border-radius: var(--r-surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .875rem; font-weight: 500; padding: 0; color: var(--pearl); }
.opt { color: var(--ash); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--iron); border-radius: var(--r-card); background: var(--obsidian);
  font-size: 1rem; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pearl); }
.field [aria-invalid="true"] { border-color: var(--white); border-style: dashed; }
.field-err { color: var(--pearl); font-size: .8125rem; line-height: 1.25; min-height: 1.25em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--iron); border-radius: 999px; font-size: .875rem; color: var(--fog); transition: all .25s; }
.chip:hover span { border-color: var(--pearl); color: var(--white); }
.chip input:checked + span { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .875rem; font-weight: 500; color: var(--white); }
.form-status:empty { display: none; }
.form-note { font-size: .8125rem; color: var(--ash); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--iron); padding: 80px 0 0; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; color: var(--ash); font-size: .875rem; }
.footer-h { font-size: .875rem; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 12px; font-size: .875rem; color: var(--fog); }
.footer-col a { text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: var(--white); }
.footer-word {
  width: 100%; aspect-ratio: 503 / 195;
  background: linear-gradient(180deg, var(--graphite), var(--obsidian) 90%);
  -webkit-mask: url("../img/arx-wordmark-grande.png") no-repeat center bottom / contain;
  mask: url("../img/arx-wordmark-grande.png") no-repeat center bottom / contain;
  transform: translateY(var(--fy, 0%));
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 40px; border-top: 1px solid var(--graphite); font-size: .8125rem; color: var(--ash); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section-head, .layers-grid, .proof-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 16px; }
  .cards { grid-template-columns: 1fr; }
  .monitor-body { grid-template-columns: 1fr; }
  .term { border-right: 0; border-bottom: 1px solid var(--graphite); min-height: 280px; }
  .story { height: auto; }
  .story-sticky { position: static; height: auto; display: block; overflow: visible; padding: var(--section) 0; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-visual { position: sticky; top: 76px; z-index: 2; order: -1; }
  .story-copy { order: 1; }
  .screens { min-height: 300px; }
  .screen { padding: 20px; }
  .sstep { min-height: 46vh; align-content: start; padding-top: 24px; }
  .story-visual { top: 72px; }
  .sstep p { max-height: none; opacity: 1; margin-top: 6px; }
  .sstep-bar { display: none; }
  .layers-visual { max-height: 420px; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
  .nav-toggle-bars { position: relative; transform: translateY(-3px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }
  .nav-list {
    position: fixed; inset: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 96px var(--gutter) 40px;
    background: var(--obsidian); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s var(--ease-out), visibility 0s .55s;
  }
  .nav-list.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease-out); }
  .nav-list a:not(.btn) { min-height: 56px; font-family: var(--display); font-size: 2rem; color: var(--white); padding: 0; }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta { margin: 20px 0 0; }
  .nav-list .btn { width: 100%; min-height: 52px; }
  .form-row { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 46px minmax(0, 1fr); }
  .frow .fstate { display: none; }
  .check { flex-direction: column; gap: 2px; }
  .check-v { text-align: left; }
  .form { padding: 20px; }
  .srow { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .display .line > span, .js .hero-lede, .js .hero-actions, .js .monitor, .js .check { opacity: 1; transform: none; }
  .monitor { transform: none; }
  .js .statement-text .word { color: var(--white); }
  .pulse path { stroke-dashoffset: 0; }
}
