/* =============================================================
   Construcción y Reformas Silerone — styles.css
   1. Fuentes y tokens · 2. Base · 3. Utilidades · 4. Componentes
   5. Secciones · 6. Efectos · 7. Responsive · 8. Movimiento reducido
   ============================================================= */

/* ---------- 1. Fuentes y tokens ---------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --blue: #0971B8;
  --blue-deep: #065A93;
  --blue-soft: #6DB4E6;
  --ink: #15171A;
  --ink-2: #3A4047;
  --muted: #6A727B;
  --line: rgba(21, 23, 26, .12);
  --line-2: rgba(21, 23, 26, .22);
  --paper: #FFFFFF;
  --bone: #F3F4F2;
  --night: #0E0F13;
  --night-2: #16181D;
  --on-dark: #E8EBEE;
  --on-dark-2: rgba(232, 235, 238, .62);
  --night-line: rgba(255, 255, 255, .13);

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1480px;
  --nav-h: 76px;
  --section: clamp(96px, 12vw, 176px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
}
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.05; text-wrap: balance; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- 3. Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1rem; background: var(--ink); color: #fff; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.ico { width: 20px; height: 20px; flex: none; }
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sec-label { color: var(--muted); display: flex; gap: .9em; align-items: baseline; margin-bottom: 28px; }
.sec-label span { color: var(--blue); }
.h2 {
  font-size: clamp(2.3rem, 5.4vw, 5.2rem);
  font-stretch: 112%;
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: .98;
  max-width: 17ch;
}

/* ---------- 4. Componentes ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 24px;
  font-size: 15px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .ico { transition: transform .45s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary::before { background: var(--ink); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; border-color: var(--ink); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 14px; }
.btn-sm .ico { width: 18px; height: 18px; }

/* ---------- 5. Secciones ---------- */

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-sym { width: 34px; height: 34px; color: var(--blue); }
.brand-word { width: 136px; height: auto; aspect-ratio: 634.2 / 71.6; }
.nav-links { display: none; gap: 34px; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-links a { position: relative; padding-block: 6px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); margin-right: 10px; }
.nav-phone .ico { width: 17px; height: 17px; color: var(--blue); }
.nav-cta { display: none; }
.nav-call, .nav-burger {
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--line-2);
}
.nav-call .ico { width: 19px; height: 19px; }
.nav-burger { position: relative; }
.nav-burger i { position: absolute; left: 12px; right: 12px; height: 1.6px; background: currentColor; transition: transform .45s var(--ease-out); }
.nav-burger i:first-of-type { transform: translateY(-4px); }
.nav-burger i:last-of-type { transform: translateY(4px); }
.nav-burger[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--blue); color: #fff;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 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 0s .7s; visibility: hidden;
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(2.4rem, 11vw, 4rem); font-stretch: 112%; font-weight: 600; letter-spacing: -.03em; line-height: 1.12;
  border-bottom: 1px solid rgba(255, 255, 255, .22); padding-block: 8px;
}
.menu-links .label { opacity: .7; min-width: 2.4em; }
.menu-foot { display: grid; gap: 6px; font-family: var(--mono); font-size: 14px; }
body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .nav .brand, body.menu-open .nav .brand-sym, body.menu-open .nav-call, body.menu-open .nav-burger { color: #fff; border-color: rgba(255, 255, 255, .4); }

/* HERO */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); }
.hero-meta {
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.hero-meta-mid, .hero-coords { display: none; }
.hero-title {
  font-size: clamp(2.9rem, 17vw, 11rem);
  font-weight: 640;
  font-stretch: 88%;
  letter-spacing: -.045em;
  line-height: .9;
  color: var(--ink);
}
.hl { display: block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.hl-in { display: inline-block; }
.rotator { display: inline-grid; color: var(--blue); }
.rot-word { grid-area: 1 / 1; white-space: nowrap; }
.js .rot-word { transform: translateY(108%); transition: transform .9s var(--ease-out); }
.js .rot-word.is-on { transform: none; }
.js .rot-word.is-out { transform: translateY(-108%); }
.rot-word:not(.is-on) { visibility: hidden; }
.js .rot-word.is-out, .js .rot-word.is-on { visibility: visible; }
.mm { position: relative; display: inline-block; }
.cota-mm {
  position: absolute; left: 0; right: .02em; top: 94%; height: .12em;
  border-inline: 2px solid var(--blue);
}
.cota-mm::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--blue); transform-origin: center;
}
.hero-foot {
  display: grid; gap: 28px; margin-top: clamp(40px, 5vw, 64px);
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 44ch; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero-media {
  --in: 0px;
  position: relative; margin-top: clamp(40px, 6vw, 80px);
  height: min(82vh, 60vw); min-height: 440px;
  clip-path: inset(0 var(--in));
  overflow: hidden; background: var(--bone);
}
.hero-media-in { position: absolute; inset: 0; transform: scale(var(--hs, 1.08)); transform-origin: 50% 40%; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hm-cotas { position: absolute; inset: 0; pointer-events: none; color: #fff; margin-inline: var(--in); }
.hm-x, .hm-y { position: absolute; display: flex; align-items: center; justify-content: center; }
.hm-x { left: 64px; right: 64px; top: 34px; height: 14px; }
.hm-y { top: 64px; bottom: 64px; left: 34px; width: 14px; flex-direction: column; }
.hm-x i, .hm-y i { position: absolute; border-color: rgba(255, 255, 255, .85); border-style: solid; }
.hm-x i { inset: 0; border-width: 0 1.5px; }
.hm-y i { inset: 0; border-width: 1.5px 0; }
.hm-x i::before, .hm-y i::before { content: ""; position: absolute; background: rgba(255, 255, 255, .85); transition: transform 1.4s var(--ease-io) .2s; }
.hm-x i::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; }
.hm-y i::before { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; }
.hm-x b, .hm-y b {
  position: relative; font: 500 12px/1 var(--mono); letter-spacing: .06em;
  background: rgba(14, 15, 19, .55); padding: 5px 8px; color: #fff;
}
.hm-y b { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 5px; }
.hm-mark { position: absolute; width: 18px; height: 18px; }
.hm-mark::before, .hm-mark::after { content: ""; position: absolute; background: #fff; }
.hm-mark::before { left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; }
.hm-mark::after { top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -.75px; }
.hm-tl { left: 25px; top: 25px; } .hm-tr { right: 25px; top: 25px; }
.hm-bl { left: 25px; bottom: 25px; } .hm-br { right: 25px; bottom: 25px; }
.hm-scale { position: absolute; right: 56px; bottom: 30px; color: #fff; background: rgba(14, 15, 19, .55); padding: 5px 8px; }

.hero-head { position: relative; }
.hero-badge { display: none; }
@media (min-width: 960px) {
  .hero-badge {
    display: grid; place-items: center; position: absolute; right: 0; bottom: .4vw;
    width: clamp(150px, 12.5vw, 190px); aspect-ratio: 1; border-radius: 50%;
    background: var(--blue); color: #fff; transition: background-color .5s var(--ease-out), transform .6s var(--ease-out);
  }
  .hero-badge:hover { background: var(--ink); transform: rotate(-8deg) scale(1.04); }
  .badge-ring { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 26s linear infinite; }
  .badge-ring text { font: 500 12.5px var(--mono); fill: currentColor; letter-spacing: .08em; }
  .badge-sym { width: 30%; height: 30%; }
  .js .hero-badge { opacity: 0; transform: scale(.6) rotate(-40deg); transition: opacity .8s var(--ease-out) .5s, transform 1.2s var(--ease-out) .5s, background-color .5s var(--ease-out); }
  .js.is-loaded .hero-badge { opacity: 1; transform: none; }
  .js.is-loaded .hero-badge:hover { transform: rotate(-8deg) scale(1.04); transition-delay: 0s; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cinta */
.ticker { background: var(--blue); color: #fff; overflow: hidden; padding-block: 22px; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-row { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.ticker-row span {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-stretch: 112%; font-weight: 560; letter-spacing: -.02em; white-space: nowrap;
}
.ticker-row svg { width: 22px; height: 22px; color: rgba(255, 255, 255, .55); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* LA EMPRESA */
.intro-grid { display: grid; gap: 8px; }
.statement {
  font-size: clamp(1.6rem, 3.3vw, 3.05rem);
  font-weight: 520; font-stretch: 104%;
  letter-spacing: -.025em; line-height: 1.16;
  color: var(--ink);
}
.js .statement .w { color: rgba(21, 23, 26, .16); transition: color .5s var(--ease-out); }
.js .statement .w.is-lit { color: var(--ink); }
.facts { display: grid; gap: 0; margin-top: clamp(56px, 8vw, 120px); }
.fact { border-top: 1px solid var(--line); padding: 28px 0 32px; display: grid; gap: 10px; }
.fact-n { color: var(--blue); }
.fact h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-stretch: 110%; letter-spacing: -.02em; }
.fact p { color: var(--muted); max-width: 36ch; }

/* OBRA NUEVA (actividad principal) */
.on { background: var(--night); color: var(--on-dark-2); }
.on .sec-label { color: var(--on-dark-2); flex-wrap: wrap; align-items: center; row-gap: 12px; }
.on .sec-label span { color: var(--blue-soft); }
.on .sec-label .tag {
  font-style: normal; background: var(--blue); color: #fff; padding: 6px 9px; font-size: 11px; margin-left: 4px;
}
.on-head { display: grid; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); }
.on-title {
  font-size: clamp(2.6rem, 6.8vw, 6.8rem); font-stretch: 112%; font-weight: 640;
  letter-spacing: -.045em; line-height: .94; color: #fff; max-width: 12ch;
}
.on-intro { display: grid; gap: 28px; align-content: end; justify-items: start; }
.on-intro p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--on-dark); max-width: 42ch; }
.on-intro .btn-primary::before { background: #fff; }
.on-intro .btn-primary:hover { color: var(--ink); }
.on-phases { display: grid; gap: 28px; }
.on-phase { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; }
.on-phase figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--night-2); }
.on-phase img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.on-phase:hover img { transform: scale(1.045); }
.on-phase .label { display: flex; align-items: center; gap: 12px; color: var(--blue-soft); margin-bottom: 12px; }
.on-phase .label::after { content: ""; flex: 1; height: 1px; background: var(--night-line); }
.on-phase h3 { color: #fff; font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-stretch: 110%; letter-spacing: -.025em; margin-bottom: 8px; }
.on-phase p { font-size: 15.5px; max-width: 34ch; }
.on-types { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--night-line); display: grid; gap: 14px; }
.on-types .label { color: var(--on-dark-2); }
.on-types ul { display: flex; flex-wrap: wrap; gap: 8px; }
.on-types li {
  font-family: var(--mono); font-size: 13px; color: var(--on-dark);
  border: 1px solid var(--night-line); padding: 8px 12px; transition: background-color .3s, border-color .3s, color .3s;
}
.on-types li:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* SERVICIOS */
.services { position: relative; background: var(--bone); }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(48px, 6vw, 88px); }
.svc-list { border-bottom: 1px solid var(--line-2); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 76px; grid-template-areas: "n thumb" "t thumb" "d d";
  column-gap: 20px; row-gap: 10px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line-2);
  color: var(--ink);
  transition: color .45s var(--ease-out);
}
.svc-n { grid-area: n; color: var(--blue); transition: color .45s var(--ease-out); }
.svc-t {
  grid-area: t; font-size: clamp(1.75rem, 3.7vw, 3.5rem); font-stretch: 112%; font-weight: 600;
  letter-spacing: -.035em; line-height: 1; color: inherit;
  transition: transform .6s var(--ease-out);
}
.svc-t .tag {
  display: inline-block; vertical-align: middle; font-style: normal;
  font-size: 11px; letter-spacing: .08em; padding: 5px 8px; margin-top: 10px; display: table;
  background: var(--blue); color: #fff; transition: background-color .45s, color .45s;
}
.svc-d { grid-area: d; color: var(--muted); max-width: 46ch; transition: color .45s var(--ease-out); }
.svc-thumb { grid-area: thumb; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-go { display: none; }
.svc-link { position: absolute; inset: 0; z-index: 2; }
.svc-link:focus-visible { outline-offset: -2px; }
.svc { cursor: pointer; }
.svc-foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; margin-top: 40px; }
.svc-foot p { font-size: 1.1rem; color: var(--ink-2); }
.svc-preview { display: none; }

/* BANDA NIVEL */
.band-level { position: relative; background: var(--night); overflow: hidden; }
.band-level picture, .band-level img { width: 100%; }
.band-level img { height: clamp(460px, 50vw, 760px); object-fit: cover; object-position: 50% 100%; transform: translateY(var(--py, 0)) scale(1.06); }
.band-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(44px, 5vw, 84px); color: var(--ink); }
.band-copy .label { color: var(--ink-2); margin-bottom: 16px; }
.band-quote {
  font-size: clamp(2.1rem, 4.8vw, 4.8rem); font-stretch: 112%; font-weight: 620;
  letter-spacing: -.04em; line-height: 1; color: var(--ink); max-width: 14ch; text-wrap: balance;
}

/* ESPECIALIDAD */
.esp { background: var(--night); color: var(--on-dark-2); padding-top: clamp(48px, 6vw, 96px); }
.esp .h2, .esp h3 { color: #fff; }
.esp .sec-label { color: var(--on-dark-2); }
.esp .sec-label span { color: var(--blue-soft); }
.esp-grid { display: grid; gap: 56px; }
.esp-fig { position: relative; overflow: hidden; background: var(--night-2); aspect-ratio: 4 / 5; }
.esp-fig img { width: 100%; height: 100%; object-fit: cover; }
.esp-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff; background: linear-gradient(transparent, rgba(14, 15, 19, .6));
}
.esp-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--on-dark); max-width: 44ch; margin-top: 28px; }
.principles { margin-top: 48px; border-bottom: 1px solid var(--night-line); }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 24px 0; border-top: 1px solid var(--night-line); }
.principles .label { color: var(--blue-soft); padding-top: 6px; }
.principles h3 { font-size: 1.45rem; font-stretch: 110%; letter-spacing: -.02em; margin-bottom: 6px; }
.principles p { max-width: 46ch; }
.materials { margin-top: 40px; }
.materials .label { color: var(--on-dark-2); margin-bottom: 14px; }
.materials ul { display: flex; flex-wrap: wrap; gap: 8px; }
.materials li {
  font-family: var(--mono); font-size: 13px; color: var(--on-dark);
  border: 1px solid var(--night-line); padding: 8px 12px; transition: background-color .3s, border-color .3s, color .3s;
}
.materials li:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* TRABAJOS */
.works { background: var(--paper); padding-block: var(--section) calc(var(--section) * .75); }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.works-count { display: none; align-items: center; gap: 14px; color: var(--muted); }
.works-count span { color: var(--ink); }
.works-count i { display: block; width: 120px; height: 2px; background: var(--line); }
.works-count b { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(.125); }
.works-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 16px; scrollbar-width: none;
}
.works-track::-webkit-scrollbar { display: none; }
.work { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; color: var(--ink); }
.work figure { overflow: hidden; aspect-ratio: 3 / 4; background: var(--bone); margin-bottom: 16px; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.work:hover img { transform: scale(1.045); }
.work .label { color: var(--blue); margin-bottom: 6px; }
.work h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-stretch: 110%; letter-spacing: -.025em; margin-bottom: 6px; }
.work p:not(.label) { color: var(--muted); font-size: 15.5px; max-width: 32ch; }
.work-cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: var(--blue); color: #fff; padding: 28px; aspect-ratio: 3 / 4; align-self: flex-start;
  transition: background-color .5s var(--ease-out);
}
.work-cta:hover { background: var(--ink); }
.work-cta .label { color: rgba(255, 255, 255, .7); }
.work-cta strong { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-stretch: 112%; font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.work-cta-go { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.work-cta:hover .ico { transform: translateX(6px); }
.work-cta .ico { transition: transform .45s var(--ease-out); }

/* PROCESO */
.process { background: var(--bone); }
.process-grid { display: grid; gap: 56px; }
.steps { position: relative; margin-top: 48px; padding-left: 64px; }
.step { position: relative; padding-bottom: 40px; }
.step:last-of-type { padding-bottom: 0; }
.step-n {
  position: absolute; left: -64px; top: 0; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); z-index: 1;
  transition: background-color .5s var(--ease-out), color .5s, border-color .5s;
}
.step.is-on .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.step h3 { font-size: clamp(1.4rem, 2.1vw, 1.85rem); font-stretch: 110%; letter-spacing: -.025em; padding-top: 6px; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 44ch; }
.steps-rail { position: absolute; left: 20px; top: 21px; bottom: 20px; width: 1px; background: var(--line-2); }
.steps-rail i { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.process-fig { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #e6e7e4; }
.process-fig img { width: 100%; height: 100%; object-fit: cover; }

/* TOLEDO */
.toledo { position: relative; overflow: hidden; background: var(--night); color: #fff; min-height: clamp(560px, 86vh, 900px); display: flex; align-items: flex-end; }
.toledo picture { position: absolute; inset: 0; }
.toledo img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.1); }
.toledo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 19, 0) 25%, rgba(14, 15, 19, .38) 55%, rgba(14, 15, 19, .86) 100%); }
.toledo-copy { position: relative; z-index: 1; padding-bottom: clamp(48px, 7vw, 104px); }
.toledo-copy .label { color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.toledo-copy .h2 { color: #fff; }
.toledo-copy p:last-child { margin-top: 20px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .86); }

/* CONTACTO */
.contact { background: var(--blue); color: #fff; }
.contact .sec-label { color: rgba(255, 255, 255, .72); }
.contact .sec-label span { color: #fff; }
.contact-title {
  font-size: clamp(2.6rem, 7.2vw, 7.4rem); font-stretch: 112%; font-weight: 640;
  letter-spacing: -.045em; line-height: .94; color: #fff; max-width: 13ch;
}
.contact-grid { display: grid; gap: 24px; margin-top: clamp(48px, 6vw, 88px); }
.qform { background: var(--paper); color: var(--ink); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 22px; }
.chips-set { border: 0; padding: 0; min-width: 0; }
.chips-set legend { color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14.5px; font-weight: 500; padding: 10px 14px; border: 1px solid var(--line-2); color: var(--ink);
  transition: background-color .3s var(--ease-out), color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip.is-on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.fields-2 { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field .label { color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0 12px;
  font-size: 17px; background: transparent; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #a3a9af; }
.form-error { color: #B42318; font-size: 15px; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { flex: 1 1 220px; }
.form-note { font-size: 14px; color: var(--muted); }
.contact-card { display: grid; align-content: start; border-top: 1px solid rgba(255, 255, 255, .3); }
.cc-person { display: flex; align-items: center; gap: 16px; padding: 24px 0 28px; }
.cc-sym { width: 52px; height: 52px; color: #fff; flex: none; }
.cc-name { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-stretch: 112%; font-weight: 620; letter-spacing: -.03em; color: #fff; line-height: 1.05; }
.cc-person .label { color: rgba(255, 255, 255, .7); margin-top: 6px; }
.cc-row {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px;
  padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .3); color: #fff;
}
.cc-row .label { color: rgba(255, 255, 255, .7); }
.cc-row strong { color: #fff; font-weight: 560; font-size: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.cc-phone strong { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-stretch: 110%; letter-spacing: -.02em; }
.cc-row .ico { transition: transform .45s var(--ease-out); }
a.cc-row:hover .ico { transform: translate(3px, -3px); }
.cc-zone { grid-template-columns: 96px 1fr; border-bottom: 1px solid rgba(255, 255, 255, .3); }

/* FOOTER */
.footer { position: relative; background: var(--night); color: var(--on-dark-2); padding-top: clamp(72px, 9vw, 128px); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.footer-brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.footer-brand .brand-sym { width: 58px; height: 58px; color: var(--blue); }
.footer-brand .brand-word { width: clamp(180px, 22vw, 260px); }
.footer-brand .label { display: block; color: var(--on-dark-2); margin-top: 10px; font-size: 11px; }
.footer-cols { display: grid; gap: 36px; padding-block: 48px; }
.footer-cols .label { color: var(--on-dark-2); margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 8px; color: var(--on-dark); }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--blue-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 40px; border-top: 1px solid var(--night-line); font-size: 14px; }
.footer-bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-giant { width: calc(100% - 2 * var(--gutter)); margin: 0 auto -1.2%; color: rgba(255, 255, 255, .045); }

/* Barra móvil */
.mbar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px;
  padding: 6px; background: rgba(14, 15, 19, .9); color: #fff;
  transform: translateY(140%); transition: transform .6s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) { .mbar { background: rgba(14, 15, 19, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.mbar.is-on { transform: none; }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font-size: 14.5px; font-weight: 600; }
.mbar .ico { width: 18px; height: 18px; }
.mbar .is-primary { background: var(--blue); }


/* ---------- Lanzamiento: formulario, contacto rápido, cookies, volver arriba, carga ---------- */

/* Barras de scroll de la marca */
html { scrollbar-color: var(--blue) #E9ECEF; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #E9ECEF; }
::-webkit-scrollbar-thumb { background: var(--blue); border: 3px solid #E9ECEF; border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }
.qform textarea::-webkit-scrollbar-thumb { border-color: #fff; }

/* Animación de carga: la S se construye ladrillo a ladrillo (solo la primera visita de la sesión) */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #fff;
  transition: opacity .5s var(--ease-out), visibility 0s .5s;
  animation: loaderSafety .01s 2.8s forwards;
}
.js.seen .loader { display: none; }
.loader.is-out { opacity: 0; visibility: hidden; }
.loader-s { width: 72px; height: 72px; color: var(--blue); overflow: visible; }
.loader-s path { fill: currentColor; opacity: 0; transform: translateY(-16px); animation: brickIn .5s var(--ease-out) forwards; }
.loader-s path:nth-child(1) { animation-delay: .05s; } .loader-s path:nth-child(2) { animation-delay: .12s; }
.loader-s path:nth-child(3) { animation-delay: .19s; } .loader-s path:nth-child(4) { animation-delay: .26s; }
.loader-s path:nth-child(5) { animation-delay: .33s; } .loader-s path:nth-child(6) { animation-delay: .40s; }
.loader-s path:nth-child(7) { animation-delay: .47s; } .loader-s path:nth-child(8) { animation-delay: .54s; }
@keyframes brickIn { to { opacity: 1; transform: none; } }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Formulario */
.qform-body { display: grid; gap: 22px; }
.qform-body[hidden], .qform-success[hidden] { display: none; }
.field-err { color: #B42318; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.field-err:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: #B42318; box-shadow: 0 1px 0 #B42318; }
.field.is-valid input, .field.is-valid textarea { border-color: #1A7F4B; }
.form-hint { font-size: 14px; color: var(--muted); margin-top: -10px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-q {
  font-family: var(--mono); font-weight: 500; font-size: 14px; white-space: nowrap;
  background: var(--bone); padding: 11px 14px; color: var(--ink); transition: opacity .3s;
}
.captcha.is-loading .captcha-q { opacity: .45; }
.captcha-row input { width: 84px; text-align: center; font-size: 18px; }
.captcha-refresh {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s, transform .5s var(--ease-out);
}
.captcha-refresh:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-120deg); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); cursor: pointer; }
.checkline a, .form-status a, .qform-success a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.checkline a:hover, .form-status a:hover, .qform-success a:hover { color: var(--blue-deep); }
.form-status { font-size: 15px; padding: 12px 14px; border-left: 3px solid; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FEF3F2; border-color: #B42318; color: #7A271A; }
.form-status.is-info { background: var(--bone); border-color: var(--blue); color: var(--ink-2); }
.btn-send .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .75s linear infinite;
}
.btn-send.is-loading { cursor: progress; }
.btn-send.is-loading .spinner { display: block; }
.btn-send.is-loading .ico { display: none; }
.btn-send:disabled { opacity: .9; }
.qform-success { display: grid; gap: 16px; justify-items: start; padding: 8px 0; outline: none; animation: popIn .6s var(--ease-out); }
.qform-success h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-stretch: 112%; letter-spacing: -.03em; }
.qform-success p { max-width: 46ch; }
.ok-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #E7F6EE; color: #1A7F4B; }
.ok-ico .ico { width: 30px; height: 30px; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Ventanita de contacto directo (WhatsApp / llamada) */
.quick { background: var(--ink); color: #fff; padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 14px; margin-bottom: 8px; }
.quick .label { color: rgba(255, 255, 255, .62); }
.quick-t { color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.quick-t strong { color: #fff; white-space: nowrap; }
.quick-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-btns .btn { height: 54px; padding: 0 14px; }
.btn-wa { background: #25D366; color: #08311A; }
.btn-wa::before { background: #fff; }
.btn-wa:hover { color: #08311A; }
.btn-call { background: #fff; color: var(--ink); }
.btn-call::before { background: var(--blue); }
.btn-call:hover { color: #fff; }
.contact-card .cc-person { border-top: 0; }
a.cc-row { transition: background-color .35s var(--ease-out), padding .35s var(--ease-out); }
a.cc-row:hover { background: rgba(255, 255, 255, .08); padding-inline: 10px; }

/* Aviso de cookies */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: #fff; color: var(--ink-2); padding: 18px 18px 16px; display: grid; gap: 14px;
  box-shadow: 0 18px 50px rgba(14, 15, 19, .22), 0 0 0 1px var(--line); max-width: 460px;
  animation: popIn .6s var(--ease-out);
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 14.5px; line-height: 1.5; }
.cookie strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.cookie a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btns .btn { flex: 1 1 0; }
.cookie-open .mbar { transform: translateY(140%); }
.linklike { padding: 0; text-align: left; color: inherit; font-size: inherit; }
.linklike:hover { color: var(--blue-soft); }

/* Volver arriba */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 39; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), visibility 0s .4s, background-color .3s, bottom .5s var(--ease-out);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--blue); }
.to-top:hover .ico { transform: translateY(-3px); }
.to-top .ico { position: relative; transition: transform .4s var(--ease-out); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 2; }
.to-top-ring circle:first-child { stroke: rgba(255, 255, 255, .16); }
.to-top-ring circle:last-child { stroke: var(--blue-soft); stroke-linecap: round; }
.to-top:hover .to-top-ring circle:last-child { stroke: #fff; }
.mbar.is-on ~ .to-top { bottom: 84px; }
.cookie-open .to-top { opacity: 0; visibility: hidden; }

/* Estados al pasar el cursor que faltaban */
.brand .brand-sym { transition: transform .5s var(--ease-out); }
.brand:hover .brand-sym { transform: rotate(-8deg) scale(1.06); }
.footer-cols li a { position: relative; }
.footer-cols li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blue-soft); }
.footer-bottom a:hover { color: var(--blue-soft); }
.hero-ctas .btn-line:hover .ico, .nav-phone:hover { color: inherit; }
.nav-phone { transition: color .3s; }
.nav-phone:hover span { color: var(--blue); }
.mbar a { transition: background-color .3s; }
.mbar a:hover { background: rgba(255, 255, 255, .08); }
.mbar .is-primary:hover { background: var(--blue-deep); }
.work h3 { transition: color .3s; }
.work:hover h3 { color: var(--blue); }
.step:hover .step-n { border-color: var(--blue); }
.fact { transition: border-color .4s; }
.fact:hover { border-top-color: var(--blue); }
.principles li { transition: border-color .4s; }
.principles li:hover { border-top-color: var(--blue-soft); }

@media (min-width: 720px) {
  .cookie { left: 20px; bottom: 20px; right: auto; }
  .to-top { right: 24px; bottom: 24px; }
}

/* ---------- 6. Efectos ---------- */
/* Revelados (solo con JS; sin JS todo se ve) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Titulares palabra a palabra */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw > span { display: inline-block; }
.js [data-split].is-split .sw > span { transform: translateY(105%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-split].is-in .sw > span { transform: none; }
/* Hero: entrada */
.js .hero-title .hl-in { transform: translateY(104%); transition: transform 1.2s var(--ease-out); }
.js .hero-title .hl:nth-child(2) .hl-in { transition-delay: .09s; }
.js.is-loaded .hero-title .hl-in { transform: none; }
.js .cota-mm { transform: scaleY(0); transition: transform .5s var(--ease-out) 1s; }
.js .cota-mm::before { transform: scaleX(0); transition: transform 1s var(--ease-io) 1.15s; }
.js.is-loaded .cota-mm, .js.is-loaded .cota-mm::before { transform: none; }
.js .hm-x i::before { transform: scaleX(0); }
.js .hm-y i::before { transform: scaleY(0); }
.js .is-drawn i::before { transform: none; }
/* Alicatado: la foto aparece pieza a pieza */
.tiles { position: absolute; inset: 0; display: grid; z-index: 2; pointer-events: none; }
.tiles span { background: var(--tile-bg, var(--paper)); transition: transform .7s var(--ease-io); transition-delay: var(--d, 0s); }
.esp-fig .tiles, .on-phase .tiles { --tile-bg: var(--night); }
.process-fig .tiles { --tile-bg: var(--bone); }
.is-laid .tiles span { transform: scale(0); }

/* ---------- 7. Responsive ---------- */
@media (min-width: 540px) {
  .fields-2 { grid-template-columns: 1fr 1fr; }
  .on-phases { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .on-phase { display: block; }
  .on-phase figure { margin-bottom: 18px; }
  .work { flex-basis: min(60vw, 380px); }
}
@media (min-width: 720px) {
  .hero-title { font-stretch: 112%; font-size: clamp(3rem, 10.4vw, 11rem); }
  .hero-meta-mid, .hero-coords { display: inline; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .svc {
    grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 56px;
    grid-template-areas: "n t d go"; align-items: center; column-gap: 28px; padding: 36px 0;
  }
  .svc-n { align-self: center; }
  .svc-t .tag { display: inline-block; margin: 0 0 0 8px; transform: translateY(-.3em); }
  .hero-ctas .btn { flex: 0 0 auto; }
  .svc-thumb { display: none; }
  .svc-go {
    grid-area: go; display: grid; place-items: center; width: 56px; height: 56px;
    border: 1px solid var(--line-2); transition: transform .6s var(--ease-out), border-color .45s, background-color .45s, color .45s;
  }
  .mbar { display: none; }
}
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-call, .nav-burger { display: none; }
  .menu { display: none !important; }
  .brand-word { width: 150px; }
  .brand-sym { width: 36px; height: 36px; }
  .intro-grid { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .intro-grid .sec-label { grid-column: 1 / 4; padding-top: .9em; }
  .intro-grid .statement { grid-column: 4 / 13; }
  .facts { grid-template-columns: repeat(12, 1fr); }
  .fact:nth-child(1) { grid-column: 4 / 7; } .fact:nth-child(2) { grid-column: 7 / 10; } .fact:nth-child(3) { grid-column: 10 / 13; }
  .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: start; }
  .sec-head .sec-label { grid-column: 1 / 4; padding-top: .9em; }
  .sec-head .h2 { grid-column: 4 / 13; }
  /* Servicios: fondo azul que sube al pasar el ratón */
  .svc::before {
    content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
    background: var(--blue); transform: scaleY(0); transform-origin: bottom;
    transition: transform .6s var(--ease-out);
  }
  .svc:hover { color: #fff; }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc-n, .svc:hover .svc-d { color: rgba(255, 255, 255, .85); }
  .svc:hover .svc-t { transform: translateX(14px); }
  .svc:hover .svc-t .tag { background: #fff; color: var(--blue); }
  .svc:hover .svc-go { border-color: #fff; background: #fff; color: var(--blue); transform: rotate(45deg); }
  .svc-preview {
    display: block; position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
    width: clamp(220px, 19vw, 300px); aspect-ratio: 4 / 5; overflow: hidden;
    opacity: 0; transition: opacity .35s var(--ease-out);
  }
  .svc-preview.is-on { opacity: 1; }
  .svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .45s var(--ease-out), transform .9s var(--ease-out); }
  .svc-preview img.is-on { opacity: 1; transform: none; }
  .on-head { grid-template-columns: 7fr 5fr; column-gap: 32px; align-items: end; }
  .on-phases { grid-template-columns: repeat(4, 1fr); }
  .on-types { grid-template-columns: max-content 1fr; align-items: center; gap: 24px; }
  .esp-grid { grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: start; }
  .esp-media { grid-column: 1 / 6; position: sticky; top: calc(var(--nav-h) + 32px); }
  .esp-body { grid-column: 7 / 13; }
  .process-grid { grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: start; }
  .process-body { grid-column: 1 / 7; }
  .process-media { grid-column: 8 / 13; position: sticky; top: calc(var(--nav-h) + 32px); }
  .contact-grid { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); }
  .footer-cols { grid-template-columns: 2fr 2fr 1.4fr; }
  .works-count { display: flex; }
  /* Galería horizontal anclada (la activa JS) */
  .works.is-pinned { padding: 0; }
  .works.is-pinned .works-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--nav-h); }
  .works.is-pinned .works-track { overflow: visible; scroll-snap-type: none; padding-bottom: 0; will-change: transform; }
  .work { flex-basis: clamp(300px, 25vw, 400px); }
  .works.is-pinned .work figure { aspect-ratio: auto; height: min(52vh, 33vw); }
  .works.is-pinned .work-cta { aspect-ratio: auto; height: min(52vh, 33vw); }
}
@media (min-width: 1280px) {
  .nav-phone { display: inline-flex; }
}

/* ---------- 8. Movimiento reducido: solo lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation-duration: 120s; }
}
