/* =========================================================
   PATER · Trabajos verticales
   Sistema de diseño: antracita + amarillo/naranja de seguridad
   ========================================================= */

:root {
  --bg: #121417;
  --bg2: #171a1e;
  --bg3: #1e2227;
  --bg4: #272c32;
  --bg5: #323840;
  --line: rgba(236, 235, 230, .09);
  --line2: rgba(236, 235, 230, .16);
  --text: #ecebe6;
  --muted: #a0a6ad;
  --dim: #6c727a;
  --safety: #ffb400;
  --orange: #ff6b1a;
  --ink: #121417;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gut: clamp(16px, 5vw, 72px);
  --maxw: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
::selection { background: var(--safety); color: var(--ink); }
:focus-visible { outline: 2px solid var(--safety); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); }
.u { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* Iconos de línea */
.svc__icon svg, .adv__icon, .pillar__icon, .ph__label svg, .ccard svg, .drop__zone svg, .ba__loc svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ac { stroke: var(--safety); }
.fill { fill: currentColor; stroke: none; }

/* Grano global */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 2px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; font-stretch: 105%;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--safety); color: var(--ink); }
.btn--primary::before { background: var(--text); }
.btn--ghost { border: 1px solid var(--line2); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--ink); border-color: var(--text); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { --h: 64px; padding: 0 34px; font-size: 16px; }
.btn--wa { border: 1px solid #25d36655; color: #e8fff0; }
.btn--wa::before { background: #25d366; }
.btn--wa:hover { color: #052e14; }
.btn--wa svg { stroke: none; }
.btn--wa svg .fill { fill: currentColor; }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 120; pointer-events: none; }
  .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(--safety); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 180, 0, .5);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  }
  .cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 180, 0, .08); border-color: var(--safety); }
  .cursor.is-hidden { opacity: 0; }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg);
  transition: transform 1s var(--ease-io) .1s, visibility 0s 1.2s;
}
.loader__rope {
  position: absolute; top: 0; left: 50%; width: 2px; height: 50vh; background: var(--safety);
  transform-origin: top; transform: scaleY(0); animation: drop 1.1s var(--ease) .1s forwards;
}
.loader__box { position: relative; text-align: center; padding-top: 70px; }
.loader__logo {
  font-weight: 900; font-stretch: 125%; font-size: clamp(48px, 9vw, 104px); letter-spacing: -.02em; line-height: 1;
  clip-path: inset(0 0 100% 0); animation: reveal .9s var(--ease) .55s forwards;
}
.loader__meta { display: flex; gap: 10px; justify-content: center; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loader__alt { color: var(--safety); min-width: 4ch; text-align: right; }
@keyframes drop { to { transform: scaleY(1); } }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
body.is-loaded .loader { transform: translateY(-100%); visibility: hidden; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(18, 20, 23, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; max-width: calc(var(--maxw) + 120px); margin: 0 auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 1.6; }
.logo__mark path { stroke: var(--safety); }
.logo__mark circle { fill: var(--safety); stroke: none; }
.logo__word { font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: .02em; line-height: 1; }
.logo__sub { font-family: var(--mono); font-size: 9.5px; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line2); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--safety); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__alt { display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 5px; align-items: baseline; padding-left: 22px; border-left: 1px solid var(--line); }
.nav__alt-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nav__alt-val { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; min-width: 9ch; }
.nav__alt-val b { color: var(--safety); font-weight: 500; }
.nav__alt-bar { grid-column: 1 / -1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.nav__alt-bar i { position: absolute; inset: 0; background: var(--safety); transform-origin: left; transform: scaleX(0); }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: 4px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg2); padding: calc(var(--nav-h) + 24px) var(--gut) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden;
}
.mmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: clamp(32px, 9vw, 52px); font-weight: 800; font-stretch: 80%; text-transform: uppercase; line-height: 1.05; }
.mmenu nav small { font-family: var(--mono); font-size: 11px; color: var(--safety); font-weight: 400; }
.mmenu__foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* =========================================================
   CUERDA GUÍA (capa global)
   ========================================================= */
main { position: relative; }
.rope-layer { position: absolute; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; }
.rope-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rope-guide { fill: none; stroke: rgba(236, 235, 230, .08); stroke-width: 1; stroke-dasharray: 2 7; }
.rope-shadow { fill: none; stroke: rgba(255, 180, 0, .14); stroke-width: 7; stroke-linecap: round; filter: blur(4px); }
.rope-path { fill: none; stroke: var(--safety); stroke-width: 2; stroke-linecap: round; }
.rope-tip circle:first-child { fill: var(--bg); stroke: var(--safety); stroke-width: 2; }
.rope-tip circle:last-child { fill: var(--safety); }
.anchor {
  position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid var(--dim); background: var(--bg);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.anchor[data-side="l"] { left: calc(var(--gut) * .45 + 7px); }
.anchor[data-side="r"] { left: calc(100% - var(--gut) * .45 - 7px); }
.anchor[data-pos="top"] { top: 64px; }
.anchor[data-pos="bottom"] { top: calc(100% - 64px); }
.anchor.is-hit { border-color: var(--safety); background: var(--safety); box-shadow: 0 0 0 6px rgba(255, 180, 0, .14); }
.anchor--hero { left: var(--hx, 72%); top: 100%; opacity: 0; }

/* =========================================================
   SECCIONES BASE
   ========================================================= */
.sec { position: relative; padding-block: clamp(96px, 13vw, 176px); }
.sec > .wrap { position: relative; z-index: 1; }
.sec::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg); }

.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.label span { color: var(--safety); }
.label::after { content: ''; width: 48px; height: 1px; background: var(--line2); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--safety); box-shadow: 0 0 0 0 rgba(255, 180, 0, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 180, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0); } }

.h2 {
  font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(42px, 7vw, 108px); line-height: .9; max-width: 14ch;
}
.h2 em { font-style: normal; color: var(--safety); display: block; }
.h2--xl { font-size: clamp(54px, 10vw, 160px); }
.sec__head { margin-bottom: clamp(48px, 7vw, 96px); }
.sec__head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.sec__intro { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 46ch; margin-top: 28px; }
.sec__head--split .sec__intro { margin-top: 0; }

/* Revelado */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Placeholders de imagen */
.ph {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: 200px;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 22px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 0 / 1px 22px no-repeat,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #262b31, #1a1d21);
  border: 1px solid var(--line);
  color: var(--dim);
}
.ph::after {
  content: ''; position: absolute; inset: 14px; pointer-events: none;
  border: 1px dashed rgba(236, 235, 230, .08);
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph > img ~ .ph__label, .ph[hidden] { display: none; }
.ph:has(> img)::after { display: none; }
.ph--tall > img { filter: saturate(.85) contrast(1.05); }
.svc-preview__cap { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 6px 10px; background: var(--safety); color: var(--ink); font-size: 10.5px; }
.svc__thumb { display: none; }
.ph__label { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px; }
.ph__label svg { width: 28px; height: 28px; margin-bottom: 6px; color: var(--muted); }
.ph__label strong { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.ph__label span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* =========================================================
   HERO / DESCENSO
   ========================================================= */
.hero { position: relative; height: 260vh; z-index: 1; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(110% 80% at 75% 0%, #262b31 0%, var(--bg) 62%);
}

.facade {
  position: absolute; top: 0; right: 0; width: 54%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}
.facade__track { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.facade__layer {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr); grid-auto-rows: var(--rowh, 136px);
}
.facade__layer--dirty { background: #1c1f23; }
.facade__layer--dirty::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 18% 9% at 22% 14%, rgba(92, 70, 44, .32), transparent 70%),
    radial-gradient(ellipse 12% 16% at 70% 32%, rgba(0, 0, 0, .35), transparent 70%),
    radial-gradient(ellipse 22% 8% at 40% 58%, rgba(92, 70, 44, .28), transparent 70%),
    radial-gradient(ellipse 14% 12% at 82% 76%, rgba(0, 0, 0, .35), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 41px, rgba(0, 0, 0, .18) 41px 43px, transparent 43px 97px);
  background-size: 100% 1400px, 100% 1400px, 100% 1400px, 100% 1400px, auto;
}
.facade__layer--clean { background: #2f343a; will-change: clip-path; }
.cell { position: relative; padding: 22px 18%; border-bottom: 7px solid; }
.facade__layer--dirty .cell { border-color: #15171a; }
.facade__layer--clean .cell { border-color: #3c4249; }
.win { width: 100%; height: 100%; border-radius: 1px; }
.facade__layer--dirty .win { background: #101215; box-shadow: inset 0 0 0 2px #1f2226, inset 0 -18px 18px rgba(80, 60, 30, .2); }
.facade__layer--clean .win { background: linear-gradient(155deg, #43515e 0%, #1d252d 42%, #27313b 100%); box-shadow: inset 0 0 0 3px #4a5058; }
.facade__layer--clean .win.lit { background: linear-gradient(180deg, rgba(255, 196, 102, .75), rgba(255, 140, 40, .35)); box-shadow: inset 0 0 0 3px #4a5058, 0 0 30px rgba(255, 170, 60, .25); }
.facade__layer--dirty .win.lit { background: linear-gradient(180deg, rgba(160, 120, 60, .35), rgba(100, 70, 30, .2)); }
.cell.bal::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 26%; border: 2px solid; border-bottom: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, currentColor 9px 11px); }
.facade__layer--dirty .cell.bal::after { color: #2a2d31; border-color: #2a2d31; }
.facade__layer--clean .cell.bal::after { color: #5a6068; border-color: #5a6068; }
.facade__layer--dirty .cell.miss::before { content: ''; position: absolute; width: 38%; height: 22%; left: var(--mx, 8%); top: var(--my, 6%); background: #4a3626; clip-path: polygon(0 20%, 30% 0, 70% 12%, 100% 0, 92% 60%, 100% 100%, 40% 88%, 8% 100%); opacity: .8; }
.facade__edge { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 180, 0, .65) 30%, rgba(255, 180, 0, .65) 70%, transparent); box-shadow: 0 0 22px rgba(255, 180, 0, .45); will-change: transform; }

.hanger {
  position: absolute; top: 0; left: var(--hx, 72%); width: 2px; height: var(--len, 30vh); z-index: 2;
  transform-origin: 50% 0; animation: sway 7s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { transform: rotate(.5deg); } 50% { transform: rotate(-.5deg); } }
.hanger__rope { position: absolute; top: 0; bottom: 0; width: 2px; }
.hanger__rope--work { left: 0; background: var(--safety); }
.hanger__rope--safe { left: 8px; background: var(--orange); bottom: -38px; }
.hanger__tail { position: absolute; top: 100%; left: 0; width: 2px; height: 100vh; background: linear-gradient(var(--safety), transparent 60%); opacity: .35; }
.hanger__tech { position: absolute; top: 100%; left: -30px; width: 84px; height: auto; margin-top: -4px; overflow: visible; }
.t-body { fill: none; stroke: #d8d5cd; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.t-arm { stroke-width: 6; }
.t-leg2 { opacity: .55; }
.t-head { fill: #d8d5cd; }
.t-helmet { fill: var(--safety); }
.t-dev { fill: #8b9199; }
.t-seat { fill: var(--orange); }
.t-bag { fill: #5b6168; }

.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(18, 20, 23, .9) 34%, rgba(18, 20, 23, .2) 62%, transparent 80%), linear-gradient(0deg, rgba(18, 20, 23, .7), transparent 30%); }
.hero__content { position: relative; z-index: 3; height: 100%; }
.hero__phase { position: absolute; inset: 0; padding-inline: inherit; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); padding-bottom: 72px; }
.hero__phase--a { will-change: transform, opacity; }
.hero__title { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(56px, 11.5vw, 184px); line-height: .84; letter-spacing: -.015em; margin: 26px 0 30px; }
.ln { display: block; overflow: hidden; padding-bottom: .04em; }
.ln > span { display: inline-block; }
.js .ln > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js body.is-loaded .ln > span { transform: none; }
.ln:nth-child(2) > span { transition-delay: .08s; }
.ln:nth-child(3) > span { transition-delay: .16s; }
.ln--accent { color: var(--safety); }
.hero__lead { max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.js .hero__lead, .js .hero__ctas, .js .hero__phase--a .eyebrow { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.js body.is-loaded .hero__lead, .js body.is-loaded .hero__ctas, .js body.is-loaded .hero__phase--a .eyebrow { opacity: 1; transform: none; }

.hero__phase--b { gap: clamp(8px, 1.6vh, 20px); pointer-events: none; }
.hero__big { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: baseline; opacity: 0; transform: translateY(60px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.hero__big.is-on { opacity: 1; transform: none; }
.hero__big-n { font-family: var(--mono); font-size: 13px; color: var(--safety); letter-spacing: .1em; transform: translateY(-1.2em); }
.hero__big-t { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(50px, 9.5vw, 150px); line-height: .88; letter-spacing: -.015em; }
.hero__big small { grid-column: 2; font-size: clamp(14px, 1.2vw, 17px); color: var(--muted); margin-top: 6px; }
.hero__big--accent .hero__big-t { color: var(--safety); }

.hero__ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16vh; z-index: 2;
  background: repeating-linear-gradient(-45deg, rgba(236, 235, 230, .05) 0 2px, transparent 2px 12px), #16181b;
  border-top: 2px solid var(--safety); transform: translateY(100%); will-change: transform;
}
.hero__ground-label { position: absolute; top: 14px; right: var(--gut); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--safety); }
.hero__meta { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: space-between; align-items: center; color: var(--dim); max-width: none; transition: opacity .4s; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 38px; background: linear-gradient(var(--safety), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { to { top: 110%; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { position: relative; z-index: 2; background: var(--safety); color: var(--ink); overflow: hidden; padding: 20px 0; transform: rotate(-1.2deg) scale(1.02); margin: -10px 0; }
.marquee__track { display: flex; gap: 32px; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font-weight: 900; font-stretch: 75%; font-size: clamp(30px, 4vw, 56px); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee b { font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   INTRO
   ========================================================= */
.intro__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.statement { font-weight: 700; font-stretch: 88%; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.015em; }
.statement .w { color: rgba(236, 235, 230, .14); transition: color .35s; }
.statement .w.is-lit { color: var(--text); }
.statement .w.is-key.is-lit { color: var(--safety); }
.intro__side { display: grid; gap: 28px; }
.ph--tall { aspect-ratio: 3 / 4; min-height: 0; width: 100%; }
.intro__text { color: var(--muted); }
.intro__text strong { color: var(--text); font-weight: 600; }

/* =========================================================
   CIFRAS
   ========================================================= */
.stats { padding-top: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 44px); background: var(--bg2); min-height: 280px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--safety); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d) * 120ms + .3s); }
.stat.is-in::before { transform: scaleX(1); }
.stat__k { color: var(--dim); }
.stat__v { margin-top: auto; font-weight: 900; font-stretch: 72%; font-size: clamp(56px, 6.6vw, 104px); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__v sup { font-size: .36em; color: var(--safety); vertical-align: top; position: relative; top: .25em; margin-left: 4px; }
.stat__t { color: var(--muted); font-size: 15px; }
.stat--accent { background: var(--safety); color: var(--ink); }
.stat--accent .stat__k, .stat--accent .stat__t { color: rgba(18, 20, 23, .7); }
.stat--accent .stat__v sup { color: var(--ink); }
.stat--accent::before { background: var(--ink); }

/* =========================================================
   SERVICIOS
   ========================================================= */
.svc-list { border-top: 1px solid var(--line2); counter-reset: svc; }
.svc {
  position: relative; display: grid; grid-template-columns: 60px 64px minmax(0, 1.1fr) minmax(0, 1fr) 48px; gap: 24px; align-items: center;
  padding: 30px 20px; border-bottom: 1px solid var(--line2); cursor: default; isolation: isolate;
  transition: color .5s var(--ease);
}
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--safety); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc__num { color: var(--dim); transition: color .5s; }
.svc__icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; transition: border-color .5s, transform .6s var(--ease); }
.svc__icon svg { width: 30px; height: 30px; }
.svc__title { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(22px, 2.3vw, 36px); line-height: 1; letter-spacing: -.005em; transition: transform .6s var(--ease); }
.svc__desc { color: var(--muted); font-size: 15.5px; transition: color .5s; }
.svc__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); transition: transform .6s var(--ease), background .5s, border-color .5s; }
.svc__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform .6s var(--ease); }
@media (hover: hover) {
  .svc:hover { color: var(--ink); }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc__num, .svc:hover .svc__desc { color: rgba(18, 20, 23, .75); }
  .svc:hover .svc__icon { border-color: rgba(18, 20, 23, .3); transform: rotate(-8deg); }
  .svc:hover .ac { stroke: var(--ink); }
  .svc:hover .svc__title { transform: translateX(10px); }
  .svc:hover .svc__arrow { background: var(--ink); border-color: var(--ink); color: var(--safety); }
  .svc:hover .svc__arrow svg { transform: rotate(0); }
}
.svc-preview {
  position: fixed; top: 0; left: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 3; pointer-events: none;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.8); transition: opacity .35s var(--ease); will-change: transform;
}
.svc-preview.is-on { opacity: 1; }
.svc-preview .ph { width: 100%; height: 100%; min-height: 0; background-color: var(--bg4); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); border-color: var(--line2); }

/* =========================================================
   VENTAJAS / COMPARATIVA
   ========================================================= */
.compare::before { background: var(--bg2); }
.gantt { border: 1px solid var(--line2); background: var(--bg); padding: clamp(20px, 3vw, 40px); margin-bottom: clamp(48px, 6vw, 80px); }
.gantt__top { display: flex; justify-content: space-between; color: var(--dim); margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.gantt__head, .gantt__row { display: grid; grid-template-columns: 170px 1fr; }
.gantt__head { grid-template-columns: 170px repeat(7, 1fr); color: var(--dim); padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.gantt__head span:not(:first-child) { padding-left: 8px; border-left: 1px solid var(--line); }
.gantt__row { padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.gantt__label strong { display: block; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 22px; line-height: 1; }
.gantt__label small { color: var(--dim); }
.gantt__row--pater .gantt__label strong { color: var(--safety); }
.gantt__track {
  position: relative; height: 48px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 7));
}
.bar {
  position: absolute; top: 4px; bottom: 4px; left: calc(var(--s) / 7 * 100%); width: calc((var(--e) - var(--s)) / 7 * 100% - 3px);
  display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--d) * 180ms + .2s);
}
.gantt.is-in .bar { transform: scaleX(1); }
.bar--hatch { background: repeating-linear-gradient(-45deg, #3a3f46 0 6px, #2b2f35 6px 12px); color: var(--muted); }
.bar--grey { background: #3a3f46; color: var(--text); }
.bar--grey2 { background: #4b5159; color: var(--text); }
.bar--orange { background: var(--orange); padding: 0; }
.bar--safety { background: var(--safety); color: var(--ink); }
.gantt__free { position: absolute; left: calc(var(--s) / 7 * 100% + 16px); top: 50%; transform: translateY(-50%); color: var(--dim); opacity: 0; transition: opacity 1s 1.6s; white-space: nowrap; }
.gantt.is-in .gantt__free { opacity: 1; }
.gantt__foot { display: flex; gap: 28px; align-items: center; padding-top: 28px; }
.gantt__big { font-weight: 900; font-stretch: 72%; font-size: clamp(64px, 8vw, 120px); line-height: .85; color: var(--safety); flex-shrink: 0; }
.gantt__big sup { font-size: .4em; vertical-align: top; }
.gantt__foot p { color: var(--muted); max-width: 60ch; }
.gantt__foot p .mono { display: block; margin-top: 8px; font-size: 11px; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.adv { position: relative; background: var(--bg2); padding: clamp(26px, 3vw, 44px); min-height: 300px; display: flex; flex-direction: column; overflow: hidden; transition: background .5s; }
.adv::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid var(--line); transition: transform .8s var(--ease), border-color .5s; }
.adv:hover { background: var(--bg3); }
.adv:hover::after { transform: scale(1.8); border-color: rgba(255, 180, 0, .25); }
.adv__n { color: var(--dim); }
.adv__icon { width: 48px; height: 48px; margin: 28px 0 auto; color: var(--text); }
.adv h3 { margin-top: 36px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; }
.adv p { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 36ch; }
.adv--wide { grid-column: span 2; background: var(--bg3); }
.adv--wide h3 { font-size: clamp(30px, 3.4vw, 52px); color: var(--safety); }

/* =========================================================
   SEGURIDAD
   ========================================================= */
.safety { padding-top: clamp(120px, 15vw, 200px); }
.safety::before { background: radial-gradient(80% 60% at 20% 30%, #20242a, var(--bg) 70%); }
.hazard { position: absolute; top: 0; left: 0; right: 0; height: 16px; z-index: 1; background: repeating-linear-gradient(-45deg, var(--safety) 0 18px, var(--ink) 18px 36px); background-size: 51px 16px; animation: hazard 2.4s linear infinite; }
@keyframes hazard { to { background-position: 51px 0; } }
.safety__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.rig { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line); background: var(--bg2); padding: clamp(16px, 2.4vw, 32px); }
.rig svg { width: 100%; height: auto; display: block; overflow: visible; }
.rig figcaption { margin-top: 14px; color: var(--dim); }
.r-build { fill: #23272d; }
.r-hatch { stroke: rgba(236, 235, 230, .05); stroke-width: 2; }
.r-slab { fill: #3a4048; }
.r-ground { stroke: var(--line2); stroke-width: 2; }
.r-win rect { fill: #171a1e; stroke: #343a41; stroke-width: 2; }
.r-rope { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.r-rope--work { stroke: var(--safety); }
.r-rope--safe { stroke: var(--orange); transition-delay: .6s; }
.rig.is-in .r-rope { stroke-dashoffset: 0; }
.r-anchor { fill: var(--bg); stroke: var(--safety); stroke-width: 3; }
.r-anchor--safe { stroke: var(--orange); }
.r-prot { fill: #5b6168; }
.r-tech { opacity: 0; transform: translateY(-30px); transition: opacity 1s var(--ease) 1.2s, transform 1.4s var(--ease) 1.2s; }
.rig.is-in .r-tech { opacity: 1; transform: none; }
.r-limb { fill: none; stroke: #d8d5cd; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.r-torso { stroke-width: 16; }
.r-head { fill: #d8d5cd; }
.r-helmet { fill: var(--safety); }
.r-dev { fill: #8b9199; stroke: var(--bg); stroke-width: 2; }
.r-dev--safe { fill: var(--orange); }
.r-lab { opacity: 0; transition: opacity .8s var(--ease); transition-delay: calc(var(--i) * 160ms + 1.6s); }
.rig.is-in .r-lab { opacity: 1; }
.r-lab path { stroke: var(--line2); stroke-width: 1; fill: none; stroke-dasharray: 3 3; }
.r-lab circle { fill: var(--safety); }
.r-lab text { font-family: var(--font); font-size: 15px; font-weight: 700; fill: var(--text); }
.r-lab text.r-sub { font-family: var(--mono); font-size: 11px; font-weight: 400; fill: var(--dim); letter-spacing: .04em; }
.r-lab text.r-num { display: none; font-family: var(--mono); font-size: 22px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.rig__legend { display: none; }

.pillars { display: grid; gap: 14px; }
.pillar { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 28px; border: 1px solid var(--line); background: rgba(23, 26, 30, .7); transition: border-color .5s, transform .6s var(--ease); }
.pillar:hover { border-color: rgba(255, 180, 0, .5); transform: translateX(6px); }
.pillar__icon { width: 52px; height: 52px; color: var(--text); }
.pillar h3 { font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: 22px; line-height: 1.05; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.norms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.norms li { padding: 8px 12px; border: 1px solid var(--line2); color: var(--muted); font-size: 11px; }

/* =========================================================
   MÉTODO
   ========================================================= */
.process::before { background: var(--bg2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--safety) 0 10px, transparent 10px 16px); opacity: .5; }
.step { position: relative; padding-top: 84px; }
.step__n { position: absolute; top: 0; left: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 2px solid var(--safety); font-family: var(--mono); font-size: 14px; color: var(--safety); }
.step h3 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 32ch; }

/* =========================================================
   GALERÍA ANTES / DESPUÉS
   ========================================================= */
.ba { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.ph--before .ph__label, .ph--after .ph__label { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 46%; }
.ph--before .ph__label { left: 25%; }
.ph--after .ph__label { left: 75%; }
.ba__stage { --pos: 50%; position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line2); user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; }
.ba__img .ph { position: absolute; inset: 0; min-height: 0; }
.ba__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ph--before {
  background:
    radial-gradient(ellipse 20% 14% at 30% 30%, rgba(110, 80, 50, .45), transparent 70%),
    radial-gradient(ellipse 14% 22% at 62% 58%, rgba(0, 0, 0, .45), transparent 70%),
    radial-gradient(ellipse 26% 10% at 20% 76%, rgba(110, 80, 50, .35), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(0, 0, 0, .25) 60px 63px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 14px),
    #1c1e21;
}
.ph--after {
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(160deg, #3b4148, #2a2f35);
  color: var(--muted);
}
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--safety); pointer-events: none; }
.ba__handle::before { content: ''; position: absolute; top: 0; left: 6px; bottom: 0; width: 2px; background: var(--orange); opacity: .7; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--safety); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 180, 0, .18); transition: transform .4s var(--ease); }
.ba__stage:hover .ba__knob { transform: scale(1.08); }
.ba__knob svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba__tag { position: absolute; top: 18px; padding: 7px 12px; background: rgba(18, 20, 23, .78); backdrop-filter: blur(6px); pointer-events: none; }
.ba__tag--l { left: 18px; }
.ba__tag--r { right: 18px; color: var(--safety); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible + .ba__handle, .ba__stage:focus-within .ba__knob { box-shadow: 0 0 0 4px var(--text); }
.ba__info { align-self: stretch; display: flex; flex-direction: column; border: 1px solid var(--line); padding: clamp(22px, 2.4vw, 36px); background: var(--bg2); }
.ba__title { margin-top: 14px; font-weight: 850; font-stretch: 78%; text-transform: uppercase; font-size: clamp(28px, 2.8vw, 42px); line-height: .95; }
.ba__loc { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 15px; }
.ba__loc svg { width: 18px; height: 18px; color: var(--safety); flex-shrink: 0; }
.ba__specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border-block: 1px solid var(--line); }
.ba__specs div { padding: 16px 0; }
.ba__specs div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.ba__specs dt { color: var(--dim); font-size: 10.5px; }
.ba__specs dd { font-weight: 800; font-stretch: 80%; font-size: 24px; margin-top: 4px; }
.ba__list { margin-top: auto; display: grid; gap: 4px; }
.ba__list button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid transparent; color: var(--muted); font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
.ba__list button span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.ba__list button:hover { color: var(--text); background: var(--bg3); }
.ba__list button[aria-selected="true"] { color: var(--text); border-color: var(--line2); background: var(--bg3); }
.ba__list button[aria-selected="true"] span { color: var(--safety); }
.ba__fade { animation: bafade .6s var(--ease); }
@keyframes bafade { from { opacity: 0; transform: translateY(10px); } }

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials::before { background: var(--bg2); }
.tst { position: relative; max-width: 1100px; }
.tst__mark { position: absolute; top: -.32em; left: -.08em; font-weight: 900; font-size: clamp(200px, 26vw, 380px); line-height: 1; color: var(--safety); opacity: .14; pointer-events: none; }
.tst__slides { display: grid; position: relative; }
.tst__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.tst__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease) .1s; }
.tst__slide blockquote { font-weight: 600; font-stretch: 90%; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.01em; }
.tst__slide.is-active blockquote { animation: tstIn 1s var(--ease); }
@keyframes tstIn { from { transform: translateY(24px); } }
.tst__slide figcaption { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.tst__slide figcaption strong { display: block; font-size: 17px; }
.tst__slide figcaption small { color: var(--muted); font-size: 14px; }
.tst__av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg4); border: 1px solid var(--line2); font-family: var(--mono); font-size: 13px; color: var(--safety); }
.tst__nav { display: flex; align-items: center; gap: 20px; margin-top: 52px; }
.tst__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.tst__btn:hover { background: var(--safety); color: var(--ink); border-color: var(--safety); }
.tst__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#tstPrev svg { transform: rotate(180deg); }
.tst__bars { flex: 1; display: flex; gap: 8px; max-width: 420px; }
.tst__bars button { flex: 1; height: 24px; position: relative; }
.tst__bars button::before, .tst__bars button i { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line2); }
.tst__bars button i { background: var(--safety); transform: scaleX(0); transform-origin: left; }
.tst__bars button.is-done i { transform: scaleX(1); }
.tst__bars button.is-active i { animation: tstbar var(--dur, 7s) linear forwards; }
.tst.is-paused .tst__bars button.is-active i { animation-play-state: paused; }
@keyframes tstbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   ZONA
   ========================================================= */
.zone__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.towns { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-top: 40px; border-top: 1px solid var(--line); }
.towns li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: default; transition: color .3s, padding .4s var(--ease); }
.towns li span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.towns li:hover, .towns li.is-hl { color: var(--safety); padding-left: 6px; }
.radar { position: relative; border: 1px solid var(--line); background: radial-gradient(circle at 30% 50%, #1d2126, var(--bg) 70%); }
.radar svg { display: block; width: 100%; height: auto; }
.rd-ring { fill: none; stroke: var(--line2); stroke-dasharray: 2 6; }
.rd-zone { fill: rgba(255, 180, 0, .06); stroke: var(--safety); stroke-width: 1.5; stroke-opacity: .6; }
.towns li span { color: var(--safety); }
.rd-ring-l { font-family: var(--mono); font-size: 10px; fill: var(--dim); letter-spacing: .08em; }
.rd-axis { stroke: var(--line); }
.rd-grid { stroke: rgba(236, 235, 230, .035); }
.rd-sweep { transform-box: view-box; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.rd-link { stroke: rgba(255, 180, 0, .25); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .3s; }
.rd-town circle { fill: var(--text); transition: r .3s, fill .3s; }
.rd-town text { font-family: var(--font); font-size: 15px; font-weight: 600; fill: var(--muted); transition: fill .3s; }
.rd-town.is-far circle { fill: var(--dim); }
.rd-town.is-hl circle { fill: var(--safety); r: 6; }
.rd-town.is-hl text { fill: var(--safety); }
.rd-town.is-hl .rd-link { opacity: 1; }
.rd-base circle.c { fill: var(--safety); }
.rd-base circle.p { fill: none; stroke: var(--safety); transform-box: fill-box; transform-origin: center; animation: ping 2.4s var(--ease) infinite; }
.rd-base text { font-family: var(--font); font-weight: 900; font-stretch: 80%; font-size: 18px; fill: var(--safety); text-transform: uppercase; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(6); opacity: 0; } }
.rd-pt { font-family: var(--mono); font-size: 10px; fill: var(--dim); letter-spacing: .1em; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact::before { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__side { position: sticky; top: calc(var(--nav-h) + 32px); }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.ccard { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--bg2); transition: background .4s; min-width: 0; }
.ccard:not(.ccard--static):hover { background: var(--bg3); }
.ccard svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--safety); }
.ccard small { display: block; color: var(--dim); font-size: 10.5px; }
.ccard strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ccard--wa { grid-column: 1 / -1; background: #1f3a2a; padding: 26px; }
.ccard--wa:hover { background: #25d366 !important; color: #052e14; }
.ccard--wa:hover small { color: #0b4a22; }
.ccard--wa svg { width: 34px; height: 34px; color: #25d366; }
.ccard--wa:hover svg { color: #052e14; }
.ccard--wa strong { font-size: 22px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }

.form-wrap { position: relative; border: 1px solid var(--line2); background: var(--bg); padding: clamp(22px, 3vw, 44px); }
.form-wrap::before { content: ''; position: absolute; top: -1px; left: -1px; width: 60px; height: 60px; border-top: 2px solid var(--safety); border-left: 2px solid var(--safety); }
.form-wrap::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 60px; height: 60px; border-bottom: 2px solid var(--safety); border-right: 2px solid var(--safety); }
.form { display: grid; gap: 18px; }
.form__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--safety); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 16px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); font: inherit; font-size: 16px; outline: none; transition: border-color .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select:invalid { color: var(--dim); }
.field select option { background: var(--bg2); color: var(--text); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--safety); background: var(--bg3); }
.field input:not(:placeholder-shown) + label, .field input:focus + label,
.field textarea:not(:placeholder-shown) + label, .field textarea:focus + label,
.field--select label { transform: translateY(-10px) scale(.72); color: var(--safety); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.field__err { display: none; position: absolute; right: 12px; top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--orange); }
.field.is-invalid .field__err { display: block; }

.drop { position: relative; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__zone { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border: 1.5px dashed var(--line2); background: var(--bg2); text-align: center; cursor: pointer; transition: border-color .3s, background .3s; }
.drop__zone svg { width: 28px; height: 28px; color: var(--safety); margin-bottom: 4px; }
.drop__zone span { font-size: 15px; color: var(--muted); }
.drop__zone strong { color: var(--text); }
.drop__zone small { color: var(--dim); font-size: 10.5px; }
.drop.is-over .drop__zone, .drop__zone:hover { border-color: var(--safety); background: var(--bg3); }
.drop input:focus-visible + .drop__zone { outline: 2px solid var(--safety); outline-offset: 3px; }
.drop__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.drop__thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line2); animation: bafade .5s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(18, 20, 23, .85); display: grid; place-items: center; }
.thumb button svg { width: 14px; height: 14px; fill: none; stroke: var(--text); stroke-width: 2; }
.thumb button:hover { background: var(--orange); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: background .3s, border-color .3s; margin-top: 1px; }
.check__box svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 3; opacity: 0; }
.check input:checked + .check__box { background: var(--safety); border-color: var(--safety); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--safety); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--orange); }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__actions .btn--primary { flex: 1 1 260px; }
.form__actions .btn--wa { flex: 0 1 auto; --h: 64px; }
.form__status { min-height: 1.4em; color: var(--muted); }
.form__status.is-error { color: var(--orange); }
.form.is-sending .btn--primary { pointer-events: none; opacity: .7; }
.form__ok { text-align: center; padding: 60px 20px; animation: bafade .7s var(--ease); }
.form__ok-icon { width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 50%; background: var(--safety); display: grid; place-items: center; }
.form__ok-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2.6; }
.form__ok h3 { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(40px, 5vw, 64px); line-height: .9; }
.form__ok p { color: var(--muted); max-width: 40ch; margin: 18px auto 28px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(72px, 10vw, 140px); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer__claim { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(40px, 6vw, 92px); line-height: .9; max-width: 13ch; }
.footer__claim em { font-style: normal; color: var(--safety); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; }
.footer__cols h4 { color: var(--dim); font-weight: 400; margin-bottom: 18px; }
.footer__cols li { color: var(--muted); font-size: 15px; padding: 4px 0; }
.footer__cols a { transition: color .3s; }
.footer__cols a:hover { color: var(--safety); }
.footer__word { text-align: center; line-height: .78; margin-bottom: -.06em; }
.footer__word span { display: inline-block; font-weight: 900; font-stretch: 125%; font-size: 21vw; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 230, .14); background: linear-gradient(180deg, rgba(255, 180, 0, .0) 40%, rgba(255, 180, 0, .18)); -webkit-background-clip: text; background-clip: text; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; padding-right: calc(var(--gut) + 70px); color: var(--dim); border-top: 1px solid var(--line); max-width: none; }
.totop:hover { color: var(--safety); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 75; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  transform: scale(0); transition: transform .6s var(--ease);
}
.wa-float.is-on { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping2 2.6s var(--ease) infinite; }
@keyframes ping2 { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__alt { margin-left: auto; }
  .burger { display: block; }
  .svc { grid-template-columns: 48px 56px 1fr 48px; }
  .svc__desc { grid-column: 3 / 4; grid-row: 2; margin-top: -10px; }
}
@media (max-width: 980px) {
  .intro__grid, .safety__grid, .ba, .zone__grid, .contact__grid, .sec__head--split { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps::before { display: none; }
  .rig, .contact__side { position: relative; top: 0; }
  .ph--tall { aspect-ratio: 16 / 10; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .rope-layer, .anchor { display: none; }
  .bar[data-short] { font-size: 0; }
  .bar[data-short]::after { content: attr(data-short); font-size: 12px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .logo__sub, .nav__cta, .hide-sm { display: none; }
  .nav__alt { padding-left: 14px; }
  .hanger { --hx: 84%; }
  .hanger__tech { width: 62px; left: -22px; }
  .hanger__rope--safe { left: 6px; }
  .facade { width: 100%; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .hero__vignette { background: linear-gradient(90deg, rgba(18, 20, 23, .92) 0%, rgba(18, 20, 23, .6) 70%, rgba(18, 20, 23, .3)), linear-gradient(0deg, rgba(18, 20, 23, .8), transparent 40%); }
  .hero__title { font-size: clamp(50px, 16.5vw, 96px); margin: 18px 0 20px; }
  .hero__phase { padding-bottom: 64px; }
  .hero__phase--a .eyebrow { font-size: 10.5px; letter-spacing: .12em; }
  .hero__lead { font-size: 15.5px; }
  .hero__ctas { margin-top: 24px; gap: 10px; }
  .hero__ctas .btn { --h: 52px; }
  .hero__meta { justify-content: center; bottom: 18px; }
  .hero__meta > .mono:first-child { display: none; }
  .hero__ground-label { right: auto; left: var(--gut); }
  .hero__big-t { font-size: clamp(34px, 11.5vw, 76px); }
  .hero__big { column-gap: 12px; max-width: 84%; }
  .hero__big small { font-size: 14px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .svc { grid-template-columns: 44px 1fr; gap: 14px 16px; padding: 24px 4px; }
  .svc__num { display: none; }
  .svc__icon { width: 44px; height: 44px; grid-row: span 2; align-self: start; }
  .svc__icon svg { width: 24px; height: 24px; }
  .svc__desc { grid-column: 2; grid-row: 2; margin-top: 0; }
  .svc__arrow { display: none; }
  .svc__thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 4px; border: 1px solid var(--line); background: var(--bg3); }
  .svc-preview { display: none; }
  .gantt { padding: 18px 14px; }
  .gantt__head { grid-template-columns: repeat(7, 1fr); font-size: 10px; }
  .gantt__head span:first-child { display: none; }
  .gantt__head span:nth-child(2) { border-left: 0; padding-left: 0; }
  .gantt__row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .gantt__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .gantt__label strong { font-size: 18px; }
  .gantt__track { height: 40px; }
  .bar { font-size: 11px; padding: 0 6px; }
  .bar[data-short]::after { font-size: 10.5px; }
  .gantt__free { display: none; }
  .gantt__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv--wide { grid-column: auto; }
  .adv { min-height: 0; padding: 22px 20px; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start; }
  .adv__n { grid-column: 1 / -1; margin-bottom: 12px; }
  .adv__icon { width: 36px; height: 36px; margin: 0; grid-row: span 2; }
  .adv h3 { margin-top: 2px; font-size: 22px; }
  .adv p { margin-top: 8px; grid-column: 2; }
  .adv--wide h3 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; row-gap: 34px; }
  .steps::before { display: block; top: 8px; bottom: 8px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--safety) 0 10px, transparent 10px 16px); }
  .step { padding: 4px 0 0 70px; }
  .step__n { width: 48px; height: 48px; font-size: 13px; }
  .step h3 { font-size: 22px; margin-bottom: 8px; }
  .pillar { grid-template-columns: 36px 1fr; gap: 16px; padding: 20px; }
  .pillar__icon { width: 36px; height: 36px; }
  .pillar h3 { font-size: 19px; }
  .pillar:hover { transform: none; }
  .r-lab text { display: none; }
  .r-lab text.r-num { display: block; }
  .r-lab circle { r: 17px; }
  .r-lab path { stroke-width: 2; }
  .rig__legend { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .rig__legend li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15px; font-weight: 600; }
  .rig__legend b { width: 26px; height: 26px; border-radius: 50%; background: var(--safety); color: var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; }
  .rig__legend small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--dim); letter-spacing: .04em; margin-top: 2px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 0; padding: 20px 16px; gap: 10px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat__v { font-size: clamp(36px, 11.5vw, 56px); margin-top: 18px; }
  .stat__t { font-size: 13px; line-height: 1.35; }
  .stat__k { font-size: 10px; }
  .ba__stage { aspect-ratio: 4 / 5; }
  .ba .ph__label span { display: none; }
  .ba .ph__label strong { font-size: 10.5px; }
  .ba__tag { top: 12px; font-size: 10px; padding: 6px 9px; }
  .ba__tag--l { left: 12px; }
  .ba__tag--r { right: 12px; }
  .ba__specs dd { font-size: 20px; }
  .ba__knob { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .towns { grid-template-columns: 1fr; margin-top: 28px; }
  .towns li { padding: 9px 0; }
  .rd-town text, .rd-pt { display: none; }
  .rd-town circle { r: 7px; }
  .rd-town.is-hl circle { r: 10px; }
  .rd-town.is-hl text { display: block; font-size: 26px; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; }
  .rd-ring-l { font-size: 18px; }
  .rd-base text { font-size: 28px; }
  .form__row, .contact__cards { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; padding: 40px 0; }
  .footer__cols > div:nth-child(3) { grid-column: 1 / -1; }
  .footer__cols li { font-size: 14px; overflow-wrap: anywhere; }
  .footer__top { padding-bottom: 40px; }
  .footer__top .btn { width: 100%; }
  .tst__bars { max-width: none; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .marquee { padding: 14px 0; }
}
@media (max-width: 420px) {
  .nav__alt-label { display: none; }
}
/* Pantallas bajas (móviles pequeños, horizontal): el hero debe caber entero */
@media (max-height: 700px) {
  .hero__meta { display: none; }
  .hero__phase { padding-bottom: 16px; }
  .hero__title { font-size: clamp(44px, min(14vw, 11vh), 150px); margin: 14px 0 16px; }
  .hero__lead { font-size: 15px; line-height: 1.45; }
  .hero__ctas { margin-top: 18px; }
  .hero__big-t { font-size: clamp(32px, min(11vw, 9vh), 130px); }
}
@media (max-height: 560px) {
  .hero__lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero { height: 100vh; }
  .grain { display: none; }
}

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal-page { background: var(--bg); }
.legal-nav { position: sticky; top: 0; z-index: 10; background: rgba(18, 20, 23, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.legal-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.legal-back { color: var(--muted); transition: color .3s; }
.legal-back:hover { color: var(--safety); }
.legal { max-width: 860px; padding-block: clamp(48px, 8vw, 96px) clamp(64px, 10vw, 120px); }
.legal__title { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(44px, 8vw, 88px); line-height: .9; }
.legal__date { color: var(--dim); margin-top: 18px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.legal__toc a { padding: 9px 14px; border: 1px solid var(--line2); font-size: 14px; color: var(--muted); transition: border-color .3s, color .3s; }
.legal__toc a:hover { color: var(--text); border-color: var(--text); }
.legal__toc a[aria-current="page"] { background: var(--safety); border-color: var(--safety); color: var(--ink); font-weight: 600; }
.legal__summary { border-left: 3px solid var(--safety); background: var(--bg2); padding: 18px 22px; margin-bottom: 40px; color: var(--muted); }
.legal__summary strong { color: var(--text); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.1; margin-bottom: 14px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--safety); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a:not(.btn) { color: var(--safety); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__data { display: grid; border: 1px solid var(--line); margin-top: 16px; }
.legal__data div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 16px; }
.legal__data div + div { border-top: 1px solid var(--line); }
.legal__data dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.legal__data dd { color: var(--text); overflow-wrap: anywhere; }
.legal mark.pend { background: rgba(255, 180, 0, .18); color: var(--safety); padding: 0 4px; }
.legal__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.legal__table th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--bg2); font-weight: 400; }
.legal-foot { border-top: 1px solid var(--line); }
.legal-foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px 32px; color: var(--dim); }
.legal-foot a:hover { color: var(--safety); }
@media (max-width: 640px) {
  .legal__data div { grid-template-columns: 1fr; gap: 4px; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table thead { display: none; }
  .legal__table tr { border: 1px solid var(--line); margin-bottom: 10px; }
  .legal__table td { border: 0; padding: 8px 12px; }
  .legal__table td + td { border-top: 1px dashed var(--line); }
}
.legal .legal__toc a { color: var(--muted); text-decoration: none; }
.legal .legal__toc a:hover { color: var(--text); }
.legal .legal__toc a[aria-current="page"] { color: var(--ink); }
