/* Herstell · sitio 2026. Colores y formas del brochure: verde bosque, verde azulado y oro;
   las esquinas cortadas (chamfer) salen del emblema de la "H". */
:root {
  --bg: #08120e;
  --bg-2: #0d1b15;
  --bg-3: #13271e;
  --line: rgba(233, 239, 235, .12);
  --line-2: rgba(233, 239, 235, .22);
  --text: #e9efeb;
  --muted: #9fb3aa;
  --green: #17412d;
  --teal: #00635a;
  --teal-2: #0f8c7d;
  --gold: #efb407;
  --gold-2: #d4952b;
  --paper: #eef2ef;
  --paper-2: #dfe7e2;
  --ink: #0e2219;
  --ink-muted: #4c6359;
  --f-display: "Chakra Petch", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: #111; padding: 8px 14px; }
.skip:focus { left: 8px; }

.chamfer { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* etiquetas tipo plano: "—— NOSOTROS" */
.tag {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.tag::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.h-xl { font-size: clamp(38px, 6.2vw, 84px); text-transform: uppercase; }
.h-lg { font-size: clamp(30px, 4.4vw, 56px); text-transform: uppercase; }
.h-xl em, .h-lg em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }
.claro { background: var(--paper); color: var(--ink); }
.claro .lead { color: var(--ink-muted); }
.claro .tag { color: var(--teal); }
.claro .h-xl em, .claro .h-lg em { color: var(--teal); }
[data-split] .line { display: block; overflow: hidden; padding: .14em 0 .04em; margin-top: -.14em; }
[data-split] .line > span { display: block; }

/* ── botones ── */
.btn {
  --c: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--c);
  font: 600 14px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-gold { background: var(--gold); color: #10140f; }
.btn-gold:hover { background: #ffc823; }
.btn-ghost { background: rgba(8, 18, 14, .35); color: var(--text); --c: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font: 500 13px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* ── header ── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solido { background: rgba(8, 18, 14, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.oculto { transform: translateY(-100%); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  position: relative; text-decoration: none; padding: 6px 0;
  font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); opacity: .85;
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { right: 0; }
.menu-toggle { display: none; }
.menu-movil { display: none; }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-slide {
  position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 9s linear;
}
.hero-slide.activa { opacity: 1; transform: scale(1); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050a08 center/cover; }
.hero-chispas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-velo {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(8, 18, 14, .92) 0%, rgba(8, 18, 14, .55) 55%, rgba(8, 18, 14, .25) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-body { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
.hero-title {
  font-size: clamp(46px, 9.4vw, 132px); text-transform: uppercase; line-height: .92; letter-spacing: -.015em; margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; padding: .16em 0 .03em; margin-top: -.16em; }
.hero-title .line > span { display: block; }
.js:not(.calma) .hero-title .line > span { transform: translateY(110%); }
.oro { color: var(--gold); }
.hero-desc { font-size: clamp(17px, 1.6vw, 21px); color: #cfdbd5; max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot {
  display: flex; align-items: center; gap: 24px; padding-bottom: 28px; padding-top: 22px;
  border-top: 1px solid var(--line); font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-badges span::before { content: "◆"; color: var(--gold); margin-right: 10px; font-size: 8px; vertical-align: 2px; }
.hero-contador { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hero-contador b { color: var(--text); font-weight: 500; }
.hero-contador i { width: 60px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-contador i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: barra 6s linear infinite; }
@keyframes barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue { writing-mode: vertical-rl; display: none; }

/* ── ticker ── */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: correr 70s linear infinite; }
.ticker span { font: 600 15px var(--f-display); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.ticker b { color: var(--gold); font-size: 9px; }
@keyframes correr { to { transform: translateX(-50%); } }

/* ── nosotros ── */
.nosotros { position: relative; padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.torre {
  position: absolute; top: 40px; left: 0; right: 0; display: flex; flex-direction: column; pointer-events: none;
  font: 700 clamp(64px, 13vw, 200px)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 180, 7, .22); padding-left: var(--gutter); white-space: nowrap;
}
.torre span:nth-child(2) { padding-left: 8vw; }
.torre span:nth-child(3) { padding-left: 16vw; }
.nosotros .wrap { position: relative; }
.nos-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 18vh;
  background: rgba(13, 27, 21, .88); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.nos-img { position: relative; min-height: 420px; overflow: hidden; }
.nos-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nos-sello { position: absolute; left: 18px; bottom: 18px; width: 74px; height: 74px; display: grid; place-items: center; background: rgba(8, 18, 14, .8); border: 1px solid var(--line-2); }
.nos-sello img { width: 46px; }
.nos-texto { padding: clamp(28px, 4vw, 56px); }
.barra { display: block; width: 56px; height: 4px; background: var(--gold); margin-bottom: 26px; }
.nos-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--text); }
.nos-lead strong { color: var(--gold); font-family: var(--f-mono); font-weight: 500; letter-spacing: .04em; }
.nos-texto hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.nos-texto > p { color: var(--muted); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.mv .tag { margin-bottom: 12px; }
.mv p:not(.tag) { color: var(--muted); font-size: 15.5px; margin: 0; }
.numeros { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; }
.numeros li { padding: 28px 26px; border-right: 1px solid var(--line); }
.numeros li:last-child { border-right: 0; }
.numeros b { display: block; font: 700 clamp(44px, 5vw, 68px)/1 var(--f-display); color: var(--gold); margin-bottom: 12px; }
.numeros span { font: 400 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── servicios ── */
.srv-intro { padding: clamp(80px, 10vw, 130px) 0 clamp(50px, 6vw, 80px); }
.srv-intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.srv-panel { padding: 50px 0 clamp(80px, 9vw, 120px); background: var(--bg); }
.srv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.srv-tabs button {
  border: 1px solid var(--line-2); background: transparent; padding: 10px 16px; cursor: pointer;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.srv-tabs button.activa, .srv-tabs button:hover { border-color: var(--gold); color: var(--gold); }

/* mosaico de servicios: xl 2×2 · w 2×1 · t 1×2 · s 1×1 */
.mosaico { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 230px); grid-auto-flow: dense; gap: 12px; }
.tesela { position: relative; min-width: 0; }
.tesela.t-xl { grid-column: span 2; grid-row: span 2; }
.tesela.t-w { grid-column: span 2; }
.tesela.t-t { grid-row: span 2; }
.tesela.fuera { display: none; }
.tesela a {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px;
  text-decoration: none; overflow: hidden; isolation: isolate; background: var(--bg-3);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.tesela img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85) brightness(.85); }
.tesela.pieza a { background: radial-gradient(circle at 60% 40%, #1f4231, #07100c 72%); }
.tesela.pieza img { object-fit: contain; padding: 14% 12% 30%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
.tesela a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 18, 14, .95) 0%, rgba(8, 18, 14, .35) 55%, rgba(8, 18, 14, .1) 100%); transition: background .4s; }
.tesela a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tesela-num { position: absolute; top: 16px; left: 20px; font: 500 11.5px var(--f-mono); letter-spacing: .1em; color: var(--gold); }
.tesela-txt { display: grid; gap: 6px; }
.tesela-txt b { font: 600 clamp(17px, 1.55vw, 22px)/1.1 var(--f-display); text-transform: uppercase; }
.tesela.t-xl .tesela-txt b { font-size: clamp(24px, 2.6vw, 38px); }
.tesela-txt small { font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tesela-flecha { position: absolute; top: 14px; right: 16px; width: 22px; height: 22px; color: var(--text); opacity: .7; transition: transform .35s var(--ease), color .3s, opacity .3s; }
.tesela a:hover img, .tesela a:focus-visible img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.tesela.pieza a:hover img { transform: scale(1.08) rotate(-2deg); }
.tesela a:hover::after, .tesela a:focus-visible::after { transform: scaleX(1); }
.tesela a:hover .tesela-flecha { color: var(--gold); opacity: 1; transform: translate(3px, -3px); }
.tesela-cta a { background: var(--gold); color: #10140f; }
.tesela-cta a::before { display: none; }
.tesela-cta a::after { background: #10140f; }
.tesela-cta .tag { color: #10140f; margin-bottom: 4px; }
.tesela-cta small { color: #3b3410; }
.tesela-cta .tesela-flecha { color: #10140f; opacity: 1; }

/* ── proceso ── */
.proceso { position: relative; background: var(--bg); }
.proc-pin { position: relative; height: 100vh; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.proc-fotos { position: absolute; inset: 0; z-index: -2; }
.proc-foto { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.1); transition: opacity 1s ease, transform 1.6s var(--ease); filter: saturate(.85); }
.proc-foto.activa { opacity: .55; transform: scale(1); }
.proc-velo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 50%, rgba(8, 18, 14, .35), rgba(8, 18, 14, .92) 70%); }
.proc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; }
.proc-tag { grid-column: 1 / -1; }
.proc-letras { overflow: hidden; }
.proc-letra-row { display: block; font: 700 clamp(70px, 13vw, 190px)/.9 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--gold); letter-spacing: -.02em; }
.proc-pasos { display: grid; gap: 6px; }
.proc-paso { display: flex; gap: 22px; align-items: flex-start; padding: 18px 20px; border-left: 2px solid var(--line); opacity: .38; transition: opacity .5s, border-color .5s, background .5s; }
.proc-paso.activa { opacity: 1; border-color: var(--gold); background: linear-gradient(90deg, rgba(239, 180, 7, .1), transparent); }
.proc-letra { font: 700 44px/1 var(--f-display); color: var(--gold); width: 40px; flex: none; }
.proc-paso h3 { font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; margin-bottom: 6px; }
.proc-paso p { margin: 0; color: var(--muted); }
.proc-pips { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.proc-pips i { width: 3px; height: 34px; background: var(--line-2); transition: background .4s, height .4s; }
.proc-pips i.activa { background: var(--gold); height: 56px; }

/* ── en planta ── */
.planta { padding: clamp(80px, 10vw, 130px) 0 0; overflow: hidden; }
.planta-head { margin-bottom: 50px; }
.planta-pista { padding-bottom: clamp(80px, 10vw, 130px); }
.planta-track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; }
.planta-foto { margin: 0; width: clamp(260px, 30vw, 420px); aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.planta-foto:nth-child(even) { margin-top: 60px; }
.planta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25); }
.planta-foto:hover img { transform: scale(1.05); filter: none; }
.planta-fin {
  width: clamp(260px, 26vw, 360px); aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 30px; background: var(--gold); color: #10140f; text-decoration: none; align-self: center;
}
.planta-fin .tag { color: #10140f; }
.planta-fin b { font: 700 clamp(30px, 3vw, 44px)/1 var(--f-display); text-transform: uppercase; }
.planta-fin .i { width: 34px; height: 34px; }

/* ── calidad ── */
.calidad { padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(ellipse at 0% 0%, rgba(0, 99, 90, .25), transparent 55%), var(--bg-2); border-block: 1px solid var(--line); }
.cal-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.iso { margin-top: 30px; display: flex; gap: 20px; align-items: center; padding: 20px 24px; background: rgba(239, 180, 7, .08); border: 1px solid rgba(239, 180, 7, .35); max-width: 560px; }
.iso b { font: 700 22px/1 var(--f-display); color: var(--gold); white-space: nowrap; }
.iso span { font-size: 14.5px; color: var(--muted); }
.cal-fotos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.cal-fotos figure { margin: 0; overflow: hidden; background: #fff; }
.cal-fotos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.cal-fotos figure:not(:first-child) { aspect-ratio: 1; }
.cal-fotos img { width: 100%; height: 100%; object-fit: cover; }
.pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(50px, 6vw, 80px); }
.pilar { position: relative; padding: 30px 26px 34px; background: var(--bg-3); border: 1px solid var(--line); transition: background .3s; }
.pilar:hover { background: #18301f; }
.pilar-i { width: 42px; height: 42px; color: var(--gold); margin-bottom: 22px; }
.pilar h3 { font-size: 21px; text-transform: uppercase; margin-bottom: 8px; }
.pilar p { color: var(--muted); margin: 0; font-size: 15.5px; }
.pilar-n { position: absolute; top: 20px; right: 22px; font: 500 11px var(--f-mono); color: var(--muted); }

/* ── clientes ── */
.clientes { padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; }
.cli-head { margin-bottom: 50px; }
.cli-marquee { display: grid; gap: 16px; }
.cli-fila { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cli-track { display: flex; gap: 16px; width: max-content; animation: correr 46s linear infinite; }
.cli-fila.reversa .cli-track { animation-direction: reverse; animation-duration: 52s; }
.cli-marquee:hover .cli-track { animation-play-state: paused; }
.cli-logo { width: 220px; height: 110px; display: grid; place-items: center; padding: 18px 26px; background: #fff; border: 1px solid var(--paper-2); }
.cli-logo img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .4s, opacity .4s; }
.cli-logo:hover img { filter: none; opacity: 1; }

/* ── contacto ── */
.contacto { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 90px); }
.sec-head { margin-bottom: 50px; }
.sec-head .lead { margin-top: 20px; }
.contacto-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.cotiza { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--bg-3); border: 1px solid var(--line); }
.campo { display: grid; gap: 8px; }
.campo-full { grid-column: 1 / -1; }
.campo label { font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: rgba(8, 18, 14, .7); border: 1px solid var(--line-2); border-radius: 0;
  font-size: 16px; transition: border-color .25s, background .25s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.campo select option, .campo select optgroup { background: var(--bg-2); color: var(--text); }
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--gold); background: rgba(8, 18, 14, .95); }
.campo .error { border-color: #ff7a59; }
.form-nota { margin: 0; font-size: 13.5px; color: var(--muted); }
.canales { display: grid; gap: 14px; }
.canal { padding: 22px 24px; border: 1px solid var(--line); background: rgba(13, 27, 21, .6); }
.canal .tag { margin-bottom: 8px; }
.canal-nota { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.canal ul { display: grid; gap: 8px; }
.canal li a, .canal-dir p { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15.5px; overflow-wrap: anywhere; }
.canal li a:hover { color: var(--gold); }
.canal .i { color: var(--gold); }
.canal-dir p { align-items: flex-start; }
.canal-dir .i { margin-top: 4px; }
.mapa { margin-top: 40px; height: 380px; background: var(--bg-3); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(160deg) contrast(.9); }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: #050c09; padding: 60px 0 26px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-top .brand img { height: 50px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font: 500 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 30px; padding: 40px 0; }
.footer-grid p { color: var(--muted); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid li { margin-bottom: 8px; color: var(--muted); }
.social { display: inline-flex; gap: 8px; align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font: 400 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-bottom .credit { color: var(--muted); text-decoration: none; }
.footer-bottom .credit:hover { color: var(--text, #fff); }
@media (min-width: 700px) { .footer-bottom { padding-right: 84px; } } /* que el botón de WhatsApp no tape el crédito */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center;
  background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.preview-tag { position: fixed; left: 14px; bottom: 14px; z-index: 60; padding: 7px 12px; background: rgba(8, 18, 14, .85); border: 1px solid var(--line-2); font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

/* ── página de servicio ── */
.sv-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-bottom: 60px; }
.sv-hero-media { position: absolute; inset: 0; z-index: -3; background: center/cover no-repeat; transform: scale(1.05); }
.sv-hero.pieza .sv-hero-media { background-size: auto 62%; background-position: 85% 55%; background-color: #050a08; }
.sv-hero-body { padding-top: calc(var(--header-h) + 50px); }
.migas { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.migas a { text-decoration: none; }
.migas a:hover { color: var(--gold); }
.migas b { color: var(--gold); font-weight: 500; }
.sv-title { font-size: clamp(38px, 7vw, 96px); max-width: 16ch; }
.sv-detalle { padding: clamp(70px, 9vw, 120px) 0; }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.sv-texto .lead { margin-top: 22px; }
.sv-puntos { margin-top: 34px; border-top: 1px solid var(--line); }
.sv-puntos li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17.5px; }
.sv-puntos span { font: 500 12px/1.9 var(--f-mono); color: var(--gold); flex: none; }
.sv-galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sv-galeria figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.sv-galeria figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.sv-galeria figure:only-child, .sv-galeria figure:nth-child(2):last-child { grid-column: auto; }
.sv-galeria img { width: 100%; height: 100%; object-fit: cover; }
.sv-galeria figure.pieza { background: radial-gradient(circle at 50% 45%, #1d3a2c, #07100c 75%); display: grid; place-items: center; padding: 8%; }
.sv-galeria figure.pieza img { object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)); }
.sv-cta { border-block: 1px solid var(--line); background: var(--gold); color: #10140f; }
.sv-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 34px; flex-wrap: wrap; }
.sv-cta p { margin: 0; font: 600 clamp(20px, 2.2vw, 28px)/1.2 var(--f-display); text-transform: uppercase; max-width: 34ch; }
.sv-cta .tag { color: #10140f; display: flex; margin-bottom: 10px; }
.sv-cta .btn-gold { background: #10140f; color: var(--gold); --c: #10140f; }
.sv-otros { padding: clamp(70px, 9vw, 110px) 0; }
.otros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.otro { position: relative; display: grid; gap: 6px; min-height: 230px; align-content: end; padding: 22px; text-decoration: none; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.otro-img { position: absolute; inset: 0; z-index: -1; background: center/cover no-repeat; opacity: .4; transition: opacity .4s, transform .8s var(--ease); }
.otro-img.pieza { background-size: auto 70%; background-color: #07100c; }
.otro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 18, 14, .95), transparent); }
.otro b { font: 600 20px/1.1 var(--f-display); text-transform: uppercase; }
.otro small { font: 400 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.otro .i { position: absolute; top: 18px; right: 18px; color: var(--gold); width: 22px; height: 22px; }
.otro:hover .otro-img { opacity: .7; transform: scale(1.05); }
.siguiente { display: flex; align-items: center; gap: 22px; margin-top: 40px; padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; flex-wrap: wrap; }
.siguiente .tag { margin: 0; }
.siguiente b { font: 700 clamp(24px, 3.4vw, 46px)/1 var(--f-display); text-transform: uppercase; }
.siguiente .i { width: 40px; height: 40px; color: var(--gold); margin-left: auto; transition: transform .35s var(--ease); }
.siguiente:hover .i { transform: translateX(8px); }
.siguiente:hover b { color: var(--gold); }

/* barra de avance de lectura */
.avance { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--gold)); pointer-events: none; }
.linea-scan { position: absolute; top: 0; left: -4px; width: 3px; height: 100%; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(239, 180, 7, .7), transparent); }

/* ── responsive ── */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: grid; gap: 7px; place-content: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line-2); cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-movil:not([hidden]) {
    display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
    position: fixed; inset: var(--header-h) 0 0; z-index: 49; padding: 30px var(--gutter) 40px; background: var(--bg); overflow-y: auto;
  }
  .menu-movil nav { display: grid; }
  .menu-movil nav a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 30px/1 var(--f-display); text-transform: uppercase; }
  .menu-movil small { font: 500 11px var(--f-mono); color: var(--gold); }
  .numeros { grid-template-columns: repeat(2, 1fr); }
  .numeros li:nth-child(2) { border-right: 0; }
  .numeros li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pilares { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 38px; }
  .hero-foot { flex-wrap: wrap; gap: 14px; }
  .hero-contador { display: none; }
  .nos-card { grid-template-columns: 1fr; margin-top: 30vw; }
  .nos-img { min-height: 340px; }
  .mv { grid-template-columns: 1fr; gap: 20px; }
  .srv-intro-grid, .cal-grid, .contacto-grid, .sv-grid { grid-template-columns: 1fr; }
  .mosaico { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 10px; }
  .tesela.t-t { grid-row: span 2; }
  .proc-pin { height: auto; min-height: 0; padding: 90px 0; }
  .proc-body { grid-template-columns: 1fr; }
  .proc-letras, .proc-pips { display: none; }
  .proc-paso { opacity: 1; border-color: var(--gold); background: rgba(8, 18, 14, .6); }
  .proc-foto.activa { opacity: .35; }
  .planta-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .planta-track::-webkit-scrollbar { display: none; }
  .planta-foto, .planta-fin { width: 74vw; flex: none; scroll-snap-align: center; }
  .planta-foto:nth-child(even) { margin-top: 0; }
  .cotiza { grid-template-columns: 1fr; }
  .mapa { height: 300px; }
  .sv-hero { min-height: 72svh; }
  .sv-hero.pieza .sv-hero-media { background-size: 70% auto; background-position: 50% 40%; opacity: .55; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-cta span { display: none; }
  .header-cta { padding: 0 14px; }
  .hero-title { font-size: clamp(42px, 13.5vw, 64px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badges span:nth-child(3) { display: none; }
  .numeros { grid-template-columns: 1fr 1fr; }
  .numeros li { padding: 22px 16px; }
  .pilares { grid-template-columns: 1fr; }
  .cal-fotos figure:first-child { aspect-ratio: 16 / 10; }
  .cli-logo { width: 170px; height: 90px; padding: 14px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mosaico { grid-auto-rows: 150px; }
  .tesela.t-xl { grid-row: span 2; }
  .tesela a { padding: 14px; }
  .tesela-num { top: 12px; left: 14px; }
  .tesela-txt small { display: none; }
  .tesela.t-xl .tesela-txt small, .tesela.t-w .tesela-txt small { display: block; }
  .torre { font-size: 19vw; }
  .sv-galeria { grid-template-columns: 1fr; }
  .sv-galeria figure, .sv-galeria figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .preview-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .cli-track, .hero-contador i::after { animation: none; }
  .hero-slide { transition: opacity .01s; }
}
