/* ==========================================================================
   Perizie S.A.S. — Sitio corporativo
   Editorial · técnico · minimalista
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0C0D;
  --graphite: #17191B;
  --graphite-2: #1F2225;
  --orange: #F79A2E;
  --orange-ink: #A85A06;          /* naranja legible sobre fondos claros */
  --ivory: #F5F3EE;
  --sand: #ECE9E1;
  --white: #FFFFFF;
  --mute: #6B6E70;
  --mute-d: #9EA1A3;
  --text-d: #D6D7D5;
  --line: rgba(11, 12, 13, .14);
  --line-d: rgba(255, 255, 255, .13);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --hdr: 76px;
  --sec-y: clamp(84px, 11vw, 164px);
  --ease: cubic-bezier(.22, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
[id] { scroll-margin-top: calc(var(--hdr) - 1px); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 16px; font-weight: 500; border-radius: 2px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.1vw, 5.2rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.8rem); line-height: 1.08; }
h1 em, h2 em { font-style: italic; }
h3 { font-family: var(--serif); letter-spacing: -.005em; line-height: 1.15; }

.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--graphite); }
.lead-d { color: var(--text-d); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.eyebrow .rule { width: 28px; height: 1px; background: var(--orange); flex: none; }
.eyebrow .idx { font-variant-numeric: tabular-nums; color: var(--orange-ink); letter-spacing: .08em; }
.eyebrow-d { color: var(--mute-d); }
.eyebrow-d .idx { color: var(--orange); }

/* ---------- Botones ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  background: var(--orange); color: var(--ink);
  font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
  border: 1px solid var(--orange); border-radius: 2px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .ar { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--white); border-color: var(--white); }
.btn:hover .ar { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: transparent; color: var(--white); border-color: var(--orange); }

.ar { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.ar.up { transform: rotate(-90deg); }

.tlink {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease), border-color .3s;
}
.tlink .ar { transition: transform .35s var(--ease); }
.tlink:hover { border-color: transparent; background-size: 100% 1px; }
.tlink:hover .ar { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(11, 12, 13, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-d); background: rgba(11, 12, 13, .94); }
.hdr-inner { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: height .4s var(--ease); }
.site-header.is-scrolled .hdr-inner { height: 64px; }

.brand { display: block; color: var(--white); flex: none; }
.logo { height: 38px; width: auto; aspect-ratio: 666 / 157; color: var(--white); transition: height .4s var(--ease); }
.site-header.is-scrolled .logo { height: 34px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; align-items: center; gap: 30px; }
.nav li a {
  position: relative; display: block; padding: 8px 0;
  font-size: 13.5px; font-weight: 500; color: #C9CACA; transition: color .3s;
}
.nav li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav li a:hover, .nav li a.is-active { color: var(--white); }
.nav li a:hover::after, .nav li a.is-active::after { transform: scaleX(1); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* Hamburguesa */
.burger {
  display: none; position: relative; width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--white);
}
.burger-box { position: absolute; inset: 0; }
.burger-box i {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease), background .3s;
}
.burger-box i:nth-child(1) { top: 20px; }
.burger-box i:nth-child(2) { top: 26px; right: 18px; }
.burger:hover .burger-box i:nth-child(2) { right: 12px; }
.burger[aria-expanded="true"] .burger-box i { top: 23px; right: 12px; background: var(--orange); }
.burger[aria-expanded="true"] .burger-box i:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-box i:nth-child(2) { transform: rotate(-45deg); }

/* Menú desplegable */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink);
  padding-top: var(--hdr);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .75s var(--ease), visibility 0s linear .75s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu::before {           /* línea naranja que acompaña la apertura */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .75s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease), visibility 0s; }
.menu-inner {
  min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: space-between;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
}
.menu-list li { border-bottom: 1px solid var(--line-d); overflow: hidden; }
.menu-list li:first-child { border-top: 1px solid var(--line-d); }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  transform: translateY(105%); opacity: 0;
  transition: transform .8s var(--ease), opacity .5s, color .3s;
}
.menu.is-open .menu-list a { transform: none; opacity: 1; transition-delay: calc(.18s + var(--i) * .06s); }
.menu-list a:hover .ml, .menu-list a:focus-visible .ml { color: var(--orange); }
.mn { font-size: 12px; letter-spacing: .1em; color: var(--orange); font-variant-numeric: tabular-nums; min-width: 22px; }
.ml { font-family: var(--serif); font-size: clamp(1.75rem, 8vw, 2.7rem); line-height: 1.05; color: var(--white); transition: color .3s; }
.menu-foot { padding-top: 32px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .8s var(--ease); }
.menu.is-open .menu-foot { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .06s); }
.menu-foot p { margin-top: 22px; font-size: 14px; line-height: 1.8; color: var(--mute-d); }
.menu-foot p a { color: var(--text-d); }
.menu.is-open::before { transform: scaleX(1); transition-delay: .25s; }

@media (max-width: 1100px) {
  :root { --hdr: 68px; }
  .nav { display: none; }
  .burger { display: block; }
  .logo { height: 34px; }
  .site-header.is-scrolled .hdr-inner { height: 60px; }
}
@media (min-width: 1101px) { .menu { display: none; } }

/* ==========================================================================
   Hero — video controlado por scroll
   El contenedor es alto (recorrido del scroll) y el escenario queda fijo
   mientras JS avanza o retrocede el video según --p (0 a 1).
   ========================================================================== */
.hero { --p: 0; position: relative; color: var(--white); background: var(--ink); height: calc(100vh * 3.6); height: calc(100svh * 3.6); }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink) url("../assets/img/hero-poster.jpg") 62% 50% / cover no-repeat;   /* póster: se ve hasta que hay fotograma */
}
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to bottom, rgba(11,12,13,.72) 0, rgba(11,12,13,0) 26%),
    linear-gradient(to top, rgba(11,12,13,.9) 0, rgba(11,12,13,0) 38%);
}
.hero-shade::before {       /* velo lateral: se aclara al avanzar para dejar ver el video */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,12,13,.92) 0%, rgba(11,12,13,.74) 34%, rgba(11,12,13,.28) 66%, rgba(11,12,13,.08) 100%);
  opacity: clamp(.2, calc(1.45 - var(--p) * 1.6), 1);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px) var(--gutter) 0 / calc((100% - 2 * var(--gutter)) / 6) 100% repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
}
.hero-main { position: relative; flex: 1; display: flex; align-items: center; padding-top: calc(var(--hdr) + 16px); padding-bottom: clamp(20px, 3vw, 40px); }
.hero-copy {
  max-width: 720px;
  opacity: clamp(0, calc((.62 - var(--p)) * 5), 1);
  transform: translate3d(0, calc(var(--p) * -80px), 0);
}
.hero.is-past .hero-copy { visibility: hidden; pointer-events: none; }
.hero h1 { margin: 26px 0 30px; }
.hero h1 em { color: var(--text-d); }
.hero h1 .dot { color: var(--orange); font-weight: 400; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.hero .lead { max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Indicador de recorrido */
.hero-cue {
  position: absolute; right: var(--gutter); top: 50%; z-index: 1; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero-cue span { writing-mode: vertical-rl; }
.hero-cue i { position: relative; display: block; width: 1px; height: 120px; background: rgba(255,255,255,.28); }
.hero-cue b { position: absolute; left: -.5px; top: 0; width: 2px; height: 100%; background: var(--orange); transform: scaleY(var(--p)); transform-origin: top; }

/* Datos del hero */
.hero-foot {
  position: relative; z-index: 1; border-top: 1px solid var(--line-d);
  background: rgba(11,12,13,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 24px 28px 26px 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line-d); }
.fk { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--white); display: flex; align-items: center; gap: 10px; }
.fk::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; }
.fv { font-size: 13px; line-height: 1.5; color: #B5B8BA; max-width: 260px; }

/* Entrada del hero (solo con JS) */
.js .hero .ln > span { transform: translateY(108%); }
.js .hero .eyebrow, .js .hero .lead, .js .hero .actions, .js .hero-foot { opacity: 0; transform: translateY(18px); }
.js .hero-media { opacity: 0; }
.js .hero.is-ready .hero-media { opacity: 1; transition: opacity 1.6s var(--ease); }
.js .hero.is-ready .ln > span { transform: none; transition: transform 1.1s var(--ease); }
.js .hero.is-ready .ln:nth-child(2) > span { transition-delay: .12s; }
.js .hero.is-ready .eyebrow, .js .hero.is-ready .lead, .js .hero.is-ready .actions, .js .hero.is-ready .hero-foot {
  opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js .hero.is-ready .eyebrow { transition-delay: .05s; }
.js .hero.is-ready .lead { transition-delay: .4s; }
.js .hero.is-ready .actions { transition-delay: .5s; }
.js .hero.is-ready .hero-foot { transition-delay: .7s; }

/* Pantallas de poca altura: el escenario fijo debe caber siempre completo */
@media (max-height: 760px) {
  .hero h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); margin: 18px 0 20px; }
  .actions { margin-top: 26px; }
  .fv { display: none; }
  .facts li, .facts li + li { padding-top: 16px; padding-bottom: 18px; }
}
@media (max-height: 640px) {
  .hero .lead { display: none; }
  .hero-main { padding-top: calc(var(--hdr) + 8px); }
}
@media (max-height: 520px) {
  .btn-lg { --h: 46px; padding: 0 22px; }
  .hero h1 { font-size: clamp(2rem, 8vh, 3.2rem); margin: 12px 0 14px; }
  .actions { margin-top: 18px; }
  .facts li, .facts li + li { padding-top: 10px; padding-bottom: 12px; }
  .fk { font-size: 1.15rem; }
}

/* Móvil / tablet en vertical: video y póster verticales */
@media (orientation: portrait) and (max-width: 900px) {
  .hero-media { background-image: url("../assets/img/hero-poster-mobile.jpg"); background-position: 50% 50%; }
  .hero-video { object-position: 50% 50%; }
}

/* Sin scrub (movimiento reducido): hero estático de una pantalla */
.hero.is-static { height: auto; }
.hero.is-static .hero-stage { position: relative; height: auto; min-height: min(860px, 100vh); min-height: min(860px, 100svh); }
.hero.is-static .hero-copy { opacity: 1; transform: none; }
.hero.is-static .hero-cue { display: none; }

/* ==========================================================================
   Secciones
   ========================================================================== */
.sec { padding-block: var(--sec-y); position: relative; }
.sec-ivory { background: var(--ivory); }
.sec-white { background: var(--white); }
.sec-sand  { background: var(--sand); }
.sec-dark  { background: var(--graphite); color: var(--white); }
.sec-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head h2 { margin-top: 26px; }

/* La firma */
.firma { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 128px); }
.firma-head { position: sticky; top: calc(var(--hdr) + 40px); align-self: start; }
.firma-head h2 { margin-top: 26px; }
.firma-body { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.firma-body > p:not(.lead) { color: #3B3E40; max-width: 60ch; }
.firma-body strong { font-weight: 600; color: var(--ink); }
.creds { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); }
.creds > div { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); }
.creds > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.creds dt { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.creds .sq { width: 7px; height: 7px; background: var(--orange); flex: none; transition: transform .5s var(--ease); }
.creds > div:hover .sq { transform: rotate(90deg) scale(1.3); }
.creds dd { font-size: 14.5px; line-height: 1.55; color: var(--mute); }

/* Avalúos — índice editorial */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); }
.split-head { position: sticky; top: calc(var(--hdr) + 40px); align-self: start; }
.split-head h2 { margin: 26px 0 26px; }
.split-head .lead { max-width: 440px; color: #3B3E40; }
.index { border-top: 1px solid var(--ink); }
.row {
  position: relative; display: grid; color: inherit; grid-template-columns: 56px minmax(0, 1fr) 28px; align-items: start; gap: 18px;
  padding: 34px 0 36px; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.rn { font-size: 13px; letter-spacing: .08em; color: var(--orange-ink); font-variant-numeric: tabular-nums; padding-top: .7em; }
.rt h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--ink); margin-bottom: 10px; transition: transform .5s var(--ease); }
.rt p { color: var(--mute); max-width: 52ch; font-size: 15.5px; }
.row > .ar { margin-top: .8em; color: var(--orange-ink); opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease); }
.row:hover::before { transform: scaleX(1); }
.row:hover .rt h3 { transform: translateX(10px); }
.row:hover > .ar { opacity: 1; transform: none; }

/* Especializados */
.sec-dark h2 { color: var(--white); }
.sec-dark h2 em { color: var(--orange); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.tcell {
  position: relative; display: flex; color: inherit; flex-direction: column; gap: 18px; min-height: 380px;
  padding: 34px 34px 40px; isolation: isolate; overflow: hidden;
}
.tcell:first-child { padding-left: 0; }
.tcell + .tcell { border-left: 1px solid var(--line-d); }
.tcell::before {            /* foco que sigue al cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(247,154,46,.13), transparent 65%);
}
.tcell::after {             /* línea naranja superior */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.tcell:hover::before { opacity: 1; }
.tcell:hover::after { transform: scaleX(1); }
.tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.tcell h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); color: var(--white); margin-top: 34px; }
.tcell p { color: var(--mute-d); font-size: 15.5px; max-width: 34ch; }
.tcell .ar { margin-top: auto; color: var(--orange); transition: transform .5s var(--ease); }
.tcell:hover .ar { transform: translateX(8px); }

/* Fondo fotográfico muy tenue (no compite con la lectura) */
.esp { isolation: isolate; overflow: hidden; }
.esp::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../assets/img/interior-apartment.jpg") 30% 50% / cover no-repeat;
  opacity: .13; filter: grayscale(.3);
}
.esp::after {               /* funde la foto con el fondo grafito arriba y abajo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--graphite) 0%, rgba(23,25,27,0) 24%, rgba(23,25,27,0) 68%, var(--graphite) 100%);
}
.esp .tcell p { color: #B4B7B9; }
@media (orientation: portrait) and (max-width: 900px) {   /* móvil / tablet en vertical: versión vertical */
  .esp::before { background-image: url("../assets/img/interior-apartment-mobile.jpg"); background-position: 25% 40%; }
}

/* Sector financiero */
.fin { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.fin-copy h2 { margin: 26px 0 28px; }
.fin-copy .lead { max-width: 520px; color: #3B3E40; }
.sheet {
  background: var(--ink); color: var(--white); border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -40px rgba(11,12,13,.55);
  position: relative;
}
.sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
.sheet-h {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 32px 22px 36px; border-bottom: 1px solid var(--line-d);
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.15;
}
.sheet-tag { font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.sheet ul { padding: 10px 32px 18px 36px; }
.sheet li {
  display: grid; grid-template-columns: 18px 1fr; gap: 16px; align-items: start;
  padding: 17px 0; border-bottom: 1px solid var(--line-d); color: var(--text-d); font-size: 15.5px; line-height: 1.5;
}
.sheet li:last-child { border-bottom: 0; }
.ck { width: 10px; height: 10px; margin-top: .5em; border: 1px solid var(--orange); position: relative; transition: background .3s; }
.ck::after { content: ""; position: absolute; left: 2px; top: -1px; width: 3px; height: 6px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(40deg); opacity: 0; transition: opacity .3s; }
.sheet li:hover .ck { background: var(--orange); }
.sheet li:hover .ck::after { opacity: 1; }

/* Metodología */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .2s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; padding: 46px 32px 0 0; }
.step .node {
  position: absolute; left: 0; top: 0; width: 11px; height: 11px; background: var(--white); border: 1px solid var(--line);
  transition: background .4s, border-color .4s;
}
.steps.is-in .step .node { background: var(--orange); border-color: var(--orange); transition-delay: calc(.35s + var(--k, 0) * .5s); }
.step:nth-child(1) { --k: 0; } .step:nth-child(2) { --k: 1; } .step:nth-child(3) { --k: 2; } .step:nth-child(4) { --k: 3; }
.sn { display: block; font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.7rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 12px; }
.step p { color: var(--mute); font-size: 15.5px; max-width: 30ch; }
.js .step { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--k, 0) * .18s); }
.js .steps.is-in .step { opacity: 1; transform: none; }

/* Complementarios */
.comp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.comp-head h2 { margin-top: 26px; font-size: clamp(1.9rem, 3.1vw, 2.9rem); }
.comp-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.comp-list article { padding: 26px 26px 8px 0; }
.comp-list article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.comp-list h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 12px; }
.comp-list p { color: var(--mute); font-size: 15px; }

/* Contacto */
.contact { background: var(--ink); overflow: hidden; }
.contact-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 100% 100%, rgba(247,154,46,.10), transparent 70%); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 128px); align-items: start; }
.contact-copy h2 { margin: 26px 0 26px; }
.contact-copy .lead { max-width: 460px; }
.ways { margin-top: 48px; border-top: 1px solid var(--line-d); }
.ways li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-d); font-size: 15.5px; }
.ways li > span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); }
.ways a, .ways b { font-weight: 400; color: var(--white); text-align: right; }
.ways a { background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; padding-bottom: 2px; }
.ways a:hover { background-size: 100% 1px; color: var(--orange); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld-wide, .form-foot, .status { grid-column: 1 / -1; }
.fld label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); transition: color .3s; }
.fld label i { font-style: normal; text-transform: none; letter-spacing: 0; color: #72767A; }
.fld:focus-within label { color: var(--orange); }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 10px 0 12px; font: inherit; font-size: 16px; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); border-radius: 0; outline: none;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.fld :is(input, select, textarea) { scroll-margin-top: 120px; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input::placeholder, .fld textarea::placeholder { color: #6E7275; }
.fld select { cursor: pointer; padding-right: 28px; color: var(--white);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F79A2E' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat; }
.fld select:invalid { color: #6E7275; }
.fld select option { color: var(--ink); background: #fff; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-bottom-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
.fld.is-invalid input, .fld.is-invalid select { border-bottom-color: #E5604D; }
.fld.is-invalid label { color: #F08A7B; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 6px; }
.hint { font-size: 12.5px; line-height: 1.5; color: var(--mute-d); max-width: 30ch; }
.status { min-height: 1.4em; font-size: 14px; color: var(--orange); }

/* Footer */
.footer { background: #050606; color: var(--mute-d); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 72px 56px; }
.foot-brand .logo { height: 36px; color: var(--white); }
.foot-brand p { margin-top: 22px; max-width: 30ch; line-height: 1.6; }
.foot-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.foot-nav a, .foot-contact a { color: var(--text-d); transition: color .3s; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--orange); }
.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line-d); font-size: 13px; }
.totop { display: inline-flex; align-items: center; gap: 8px; color: var(--text-d); transition: color .3s; }
.totop:hover { color: var(--orange); }

/* ==========================================================================
   Revelado al hacer scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * .09s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero { height: calc(100vh * 3); height: calc(100svh * 3); }
  .hero-cue { display: none; }
  .hero-shade::before { background: linear-gradient(to bottom, rgba(11,12,13,.58), rgba(11,12,13,.68) 55%, rgba(11,12,13,.84)); }
  .facts li { padding: 20px 20px 22px 0; }
  .facts li + li { padding-left: 20px; }
  .fv { display: none; }
  .firma, .split, .fin, .comp, .contact-grid { grid-template-columns: 1fr; }
  .firma-head, .split-head { position: static; }
  .trio { grid-template-columns: 1fr; }
  .tcell { min-height: 0; padding: 32px 0 36px; }
  .tcell + .tcell { border-left: 0; border-top: 1px solid var(--line-d); }
  .tcell h3 { margin-top: 12px; }
  .tcell .ar { margin-top: 8px; }
  .comp-list { grid-template-columns: 1fr; }
  .comp-list article, .comp-list article + article { padding: 26px 0; border-left: 0; }
  .comp-list article + article { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 34px; border-top: 1px solid var(--line); }
  .step .node { top: -6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { height: calc(100vh * 2.8); height: calc(100svh * 2.8); }
  .hero h1 { margin: 20px 0 20px; }
  .hero .lead { font-size: 1rem; }
  .actions { margin-top: 26px; }
  .actions .btn-ghost { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 14px 0 16px; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-d); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .fk { font-size: 1.2rem; }
  .creds { grid-template-columns: 1fr; }
  .creds > div, .creds > div:nth-child(even) { padding: 24px 0; border-left: 0; }
  .row { grid-template-columns: 34px minmax(0, 1fr); padding: 26px 0 28px; }
  .row > .ar { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .ways li { flex-direction: column; gap: 4px; }
  .ways a, .ways b { text-align: left; }
}

/* ---------- Táctil: objetivos de toque ≥ 44 px ---------- */
@media (max-width: 960px), (pointer: coarse) {
  .brand { padding-block: 5px; }
  .tlink { min-height: 44px; padding-top: 12px; box-sizing: border-box; }
  .foot-nav ul { gap: 0 24px; }
  .foot-nav a { display: block; padding: 12px 0; }
  .foot-contact { gap: 0; }
  .foot-contact a, .foot-contact span { display: block; padding: 12px 0; }
  .totop { padding: 12px 0; }
  .ways a { display: inline-block; padding-block: 10px; }
  .menu-foot p a { display: inline-block; padding-block: 8px; }
}
@media (max-width: 640px) {
  .eyebrow { font-size: 12px; }
  .tag { font-size: 11.5px; }
  .sheet-tag { font-size: 11px; }
  .fld label { font-size: 11.5px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero .ln > span, .js .hero .eyebrow, .js .hero .lead, .js .hero .actions, .js .hero-foot, .js .hero-media, .js .step { opacity: 1; transform: none; }
}
