/* D+M Arquitectos · sitio one-page
   Marca (brandbook oct. 2025): índigo, amarillo, celeste, gris, blanco · Geist.
   Idea: del plano a la obra. */

@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  --indigo: #001E91;
  --indigo-deep: #00166B;
  --amarillo: #FFC000;
  --celeste: #ABCEE1;
  --gris: #EDEDED;
  --blanco: #FFFFFF;

  --ink: var(--indigo);
  --ink-2: rgba(0, 30, 145, .74);
  --line: rgba(0, 30, 145, .16);
  --line-2: rgba(0, 30, 145, .34);

  --max: 1320px;
  --gut: clamp(20px, 5vw, 64px);
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  --header-h: 96px;

  --t-display: clamp(54px, 7.4vw, 116px);
  --t-h2: clamp(36px, 4.4vw, 62px);
  --t-h3: clamp(26px, 2.6vw, 36px);
  --t-lead: clamp(21px, 2.05vw, 30px);
  --t-body: 17px;
  --t-small: 14px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* Diagonal del isotipo: 3 : 4 (53,13° sobre la horizontal) */
  --brand-angle: 36.87deg;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 3px; }
::selection { background: var(--amarillo); color: var(--indigo); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--indigo); color: var(--blanco); padding: 12px 18px; text-decoration: none; font-weight: 500;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--indigo); --bd: var(--indigo);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 16px; font-weight: 500; letter-spacing: -.005em; line-height: 1; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--fill, var(--indigo));
  clip-path: polygon(0 0, 0 0, -60% 100%, 0 100%);
  transition: clip-path .5s var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: polygon(0 0, 160% 0, 100% 100%, 0 100%); }
.btn-solid { --bg: var(--indigo); --fg: var(--blanco); --fill: var(--amarillo); }
.btn-solid:hover, .btn-solid:focus-visible { color: var(--indigo); border-color: var(--amarillo); }
.btn-line:hover, .btn-line:focus-visible { color: var(--blanco); }
.btn-yellow { --bg: var(--amarillo); --fg: var(--indigo); --bd: var(--amarillo); --fill: var(--blanco); font-weight: 600; }
.btn-yellow:hover, .btn-yellow:focus-visible { border-color: var(--blanco); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: height .4s var(--ease), background-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { position: relative; display: block; height: 58px; aspect-ratio: 429.24 / 162.5; flex: none; }
.brand svg { height: 100%; width: auto; overflow: visible; }
.logo-full { transition: opacity .35s var(--ease), transform .45s var(--ease); transform-origin: left center; }
.logo-short { position: absolute; left: 0; top: 50%; height: 44px !important; translate: 0 -50%; opacity: 0; transform: scale(.92); transform-origin: left center; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.is-scrolled .logo-full { opacity: 0; transform: scale(.86); }
.is-scrolled .logo-short { opacity: 1; transform: none; }

/* Entrada del logo: la D y la M se unen */
.js .logo-full .lg-d, .js .logo-full .lg-m, .js .logo-full .lg-text, .js .logo-full .lg-sq { opacity: 0; }
.is-ready .logo-full .lg-d { animation: lg-d 1s var(--ease) .05s both; }
.is-ready .logo-full .lg-m { animation: lg-m 1s var(--ease) .05s both; }
.is-ready .logo-full .lg-sq { animation: fade .6s var(--ease) .55s both; }
.is-ready .logo-full .lg-text { animation: lg-text .8s var(--ease) .6s both; }
@keyframes lg-d { from { opacity: 0; transform: translate(-34px, 0); } to { opacity: 1; transform: none; } }
@keyframes lg-m { from { opacity: 0; transform: translate(34px, 0); } to { opacity: 1; transform: none; } }
@keyframes lg-text { from { opacity: 0; transform: translate(-10px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--indigo);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--amarillo);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; position: relative; width: 48px; height: 48px; margin-right: -10px; z-index: 2; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--indigo); transition: transform .4s var(--ease), top .4s var(--ease), background-color .3s; }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 27px; }
.menu-open .menu-btn span { background: var(--blanco); }
.menu-open .menu-btn span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--gris); padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) 0 clamp(56px, 9vh, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }

.hero-title { font-size: var(--t-display); line-height: .92; font-weight: 600; letter-spacing: -.045em; color: var(--indigo); }
.ht-line { position: relative; display: block; padding-bottom: .06em; }
.js .ht-line { color: transparent; -webkit-text-stroke: 1.25px var(--indigo); }
.js .ht-line::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--indigo); -webkit-text-stroke: 0;
  clip-path: polygon(0 0, 0 0, -60% 100%, 0 100%);
}
.is-ready .ht-line::after { animation: ink 1.25s var(--ease-io) both; }
.is-ready .ht-line:nth-child(1)::after { animation-delay: .75s; }
.is-ready .ht-line:nth-child(2)::after { animation-delay: .95s; }
@keyframes ink { to { clip-path: polygon(0 0, 160% 0, 100% 100%, 0 100%); } }

.hero-sub { margin: clamp(22px, 3vh, 32px) 0 clamp(30px, 4.5vh, 44px); font-size: var(--t-lead); line-height: 1.3; font-weight: 300; letter-spacing: -.01em; max-width: 24ch; }
.js .hero-sub, .js .hero-actions { opacity: 0; }
.is-ready .hero-sub { animation: rise .9s var(--ease) 1.15s both; }
.is-ready .hero-actions { animation: rise .9s var(--ease) 1.3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 38%; height: 42%;
  border-left: 1.5px solid var(--indigo); border-top: 1.5px solid var(--indigo); pointer-events: none;
}
.hero-media::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 56%; height: 52%; background: var(--amarillo); z-index: 0;
}
.slides { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gris); touch-action: pan-y; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.is-visible { visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .slide .obra { clip-path: polygon(0 0, 0 0, -60% 100%, 0 100%); }
.slide .lens { clip-path: circle(var(--r) at var(--x, 50%) var(--y, 50%)); }
.slides.is-lens { --r: clamp(88px, 11vw, 150px); cursor: none; }
.slides { transition: --r .45s var(--ease); }
.wipe {
  position: absolute; left: 0; top: 0; z-index: 4; width: 4px; height: 125%; margin-left: -2px;
  background: var(--amarillo); transform-origin: 0 0; transform: rotate(var(--brand-angle)); opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 30, 145, .12);
}
.lens-ring {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 5; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  translate: -50% -50%; border: 1.5px solid var(--indigo); border-radius: 50%; pointer-events: none;
  background:
    linear-gradient(var(--indigo), var(--indigo)) center / 18px 1.5px no-repeat,
    linear-gradient(var(--indigo), var(--indigo)) center / 1.5px 18px no-repeat;
  opacity: 0; transition: opacity .3s;
}
.is-lens .lens-ring { opacity: 1; }
.lens-hint {
  position: absolute; left: 16px; bottom: 16px; z-index: 5; padding: 8px 12px;
  font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--indigo); background: rgba(255, 255, 255, .92);
  pointer-events: none; transition: opacity .4s, transform .4s var(--ease);
}
.lens-hint::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1.5px solid var(--indigo); border-radius: 50%; vertical-align: -1px; }
.slides.is-lens .lens-hint, .lens-used .lens-hint { opacity: 0; transform: translateY(6px); }

.hero-caption { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 38px; }
.cap-name { display: grid; line-height: 1.25; min-height: 2.5em; }
.cap-name strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cap-name span { font-size: 15px; color: var(--ink-2); }
.cap-name.is-swap { animation: cap .7s var(--ease) both; }
@keyframes cap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cap-controls { display: flex; align-items: center; gap: 18px; }
.cap-toggle {
  flex: none; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--line-2);
  transition: border-color .3s, background-color .3s, color .3s;
}
.cap-toggle:hover { border-color: var(--indigo); }
.cap-toggle[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--blanco); }
.cap-steps { display: flex; gap: 6px; }
.cap-step { position: relative; display: block; width: 34px; height: 44px; }
.cap-step::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line-2); }
.cap-step i { position: absolute; left: 0; top: 21px; height: 2px; width: 100%; background: var(--indigo); transform: scaleX(0); transform-origin: left; }
.cap-step[aria-current="true"] i { transform: scaleX(1); }
.is-playing .cap-step[aria-current="true"] i { animation: step var(--hold, 5200ms) linear both; }
.is-held .cap-step[aria-current="true"] i { animation-play-state: paused; }
@keyframes step { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cap-pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 50%; transition: border-color .3s; }
.cap-pause:hover { border-color: var(--indigo); }
.cap-pause svg { width: 14px; height: 14px; fill: var(--indigo); }
.cap-pause .i-play { display: none; }
.cap-pause[aria-pressed="true"] .i-play { display: block; }
.cap-pause[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Cifras (cotas) ---------- */
.cifras { background: var(--indigo); color: var(--blanco); padding: clamp(56px, 7vw, 96px) 0 clamp(52px, 6.5vw, 88px); }
.cifras-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.cifras-list li { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 12px; }
.cifra { font-size: clamp(48px, 6vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--amarillo); font-variant-numeric: tabular-nums; }
.cota { position: relative; display: block; width: 100%; height: 26px; margin: 18px 0 14px; }
.cota::before {
  content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1.5px; background: rgba(255, 255, 255, .5);
  transform: scaleX(var(--k, 1)); transform-origin: left; transition: transform 1.1s var(--ease);
}
.cota::after, .cifras-list li:last-child .cota i {
  content: ""; position: absolute; left: -7px; top: 12px; width: 14px; height: 1.5px; background: var(--amarillo);
  transform: rotate(-53.13deg) scaleX(var(--t, 1)); transition: transform .4s var(--ease);
}
.cifras-list li:last-child .cota i { left: auto; right: -7px; }
.js .cifras:not(.is-in) .cota { --k: 0; --t: 0; }
.cifras-list li:nth-child(2) .cota::before { transition-delay: .15s; }
.cifras-list li:nth-child(3) .cota::before { transition-delay: .3s; }
.cifras-list li:nth-child(4) .cota::before { transition-delay: .45s; }
.cifras-list li:nth-child(2) .cota::after { transition-delay: .2s; }
.cifras-list li:nth-child(3) .cota::after { transition-delay: .35s; }
.cifras-list li:nth-child(4) .cota::after { transition-delay: .5s; }
.cifras-list li:last-child .cota i { transition-delay: .9s; }
.cifra-label { font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, .88); max-width: 16ch; }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 160px) 0; }
.sec-head { max-width: 980px; }
.h2 { font-size: var(--t-h2); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.h3 { font-size: var(--t-h3); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; }
.lead { margin-top: clamp(20px, 2.4vw, 32px); font-size: var(--t-lead); line-height: 1.38; font-weight: 300; letter-spacing: -.012em; max-width: 34ch; }
.lead-sm { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; max-width: 52ch; color: var(--ink-2); font-weight: 400; letter-spacing: -.005em; }

/* Nosotros */
.nos-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(16px, 3vw, 40px); align-items: center; }
.nos-grid .lead { max-width: 30ch; }
.nos-mark { position: relative; justify-self: end; width: min(100%, 420px); }
.converge { width: 100%; height: auto; overflow: visible; }
.converge .cv-d { transform: translateX(calc((1 - var(--p, 1)) * -58px)) rotate(calc((1 - var(--p, 1)) * -4deg)); transform-box: fill-box; transform-origin: 100% 50%; }
.converge .cv-m { transform: translateX(calc((1 - var(--p, 1)) * 58px)) rotate(calc((1 - var(--p, 1)) * 4deg)); transform-box: fill-box; transform-origin: 0 50%; }
.converge .cv-sq { opacity: var(--p, 1); transform: scale(calc(.8 + var(--p, 1) * .2)); transform-box: fill-box; transform-origin: center; }
.converge .cv-guide { fill: none; stroke: var(--celeste); stroke-width: .6; stroke-dasharray: 2 3; opacity: calc(1 - var(--p, 1)); }

/* Servicios: la calle de tipologías */
.sec-serv {
  background-color: var(--gris);
  background-image:
    linear-gradient(rgba(171, 206, 225, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 206, 225, .45) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.calle-wrap { position: relative; margin-top: clamp(48px, 7vw, 96px); }
.calle {
  position: relative; container-type: inline-size; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.calle::before, .calle::after {
  content: ""; position: absolute; top: calc(100cqi / 6 - 1px); width: 100vw; height: 2px; background: var(--indigo);
}
.calle::before { right: calc(100% - var(--gut)); }
.calle::after { left: calc(100% - var(--gut)); }
.js .calle:not(.is-drawn)::before, .js .calle:not(.is-drawn)::after { transform: scaleX(0); }
.calle::before { transform-origin: right; transition: transform 1.2s var(--ease); }
.calle::after { transform-origin: left; transition: transform 1.2s var(--ease) .9s; }
.tipo { position: relative; }
.tipo-svg { width: 100%; height: auto; overflow: visible; }
.tipo-svg .ln {
  fill: transparent; stroke: var(--indigo); stroke-width: 1.35; stroke-linejoin: round; stroke-linecap: round;
  transition: fill .55s var(--ease) calc(var(--i) * 14ms), stroke-dashoffset 1.5s var(--ease-io) calc(var(--b, 0) * 160ms + var(--i) * 22ms);
}
.tipo-svg [data-ground] { stroke-width: 2; }
.js .calle:not(.is-drawn) .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.calle.is-drawn .ln { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tipo.is-built .f-wall { fill: var(--blanco); }
.tipo.is-built .f-glass { fill: var(--celeste); }
.tipo.is-built .f-acc { fill: var(--amarillo); }
.tipo.is-built .f-solid { fill: var(--indigo); }
.tipo.is-built .f-roof { fill: #D5DAE8; }
.tipo.is-built .f-tree { fill: var(--celeste); }
.tipo.is-built .f-person { fill: var(--indigo); }
.tipo-name {
  position: relative; margin-top: 18px; padding: 0 8px 0 0;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
}
.tipo-name::before {
  content: ""; display: block; width: 26px; height: 3px; margin-bottom: 12px; background: var(--line-2);
  transition: background-color .4s, width .5s var(--ease);
}
.tipo.is-built .tipo-name::before { background: var(--amarillo); width: 44px; }
.calle-hint { margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.calle-hint[hidden] { display: none; }

/* Proyectos */
.destacado {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px) clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 8vw, 112px); align-items: start;
}
.dest-head { grid-column: 1 / -1; }
.tag-block {
  display: inline-block; margin-left: calc(-1 * var(--edge)); padding: .08em .45em .12em calc(var(--edge) + .02em);
  background: var(--indigo); color: var(--amarillo);
  font-size: var(--t-h3); line-height: 1.12; font-weight: 500; letter-spacing: -.02em;
}
.dest-head .h3 { margin-top: .12em; }
.framed { position: relative; margin: 18px 18px 0 0; }
.framed::before { content: ""; position: absolute; left: -14px; top: -14px; width: 60%; height: 50%; border-left: 1.5px solid var(--indigo); border-top: 1.5px solid var(--indigo); }
.framed::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 70%; height: 60%; background: var(--amarillo); z-index: -1; }
.framed img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dest-media { isolation: isolate; }
.ficha h4 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.ficha dl { margin: 14px 0 36px; border-top: 1.5px solid var(--indigo); }
.ficha dl div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ficha dt { font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.45; padding-top: 1px; }
.ficha dd { font-size: 16px; line-height: 1.45; }
.ficha p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.checks { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.checks li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.35; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .28em; width: 11px; height: 6px;
  border-left: 2px solid var(--amarillo); border-bottom: 2px solid var(--amarillo); transform: rotate(-45deg);
}

/* Galería horizontal */
.hgal { position: relative; margin-top: clamp(64px, 9vw, 128px); }
.hgal-sticky { position: relative; }
.hgal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.hgal-count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 4.2em; }
.hgal-bar { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.hgal-bar i { position: absolute; inset: 0; background: var(--indigo); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.hgal-track {
  display: flex; gap: clamp(16px, 2vw, 28px); align-items: flex-start;
  padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hgal-track::-webkit-scrollbar { display: none; }
.hgal-track::after { content: ""; flex: none; width: 1px; }
.pcard { flex: none; scroll-snap-align: start; scroll-margin-inline: var(--edge); --h: clamp(300px, 58vh, 560px); }
.pcard figure { overflow: hidden; height: var(--h); background: var(--gris); }
.pcard-l figure { width: calc(var(--h) * 1.5); }
.pcard-p figure { width: calc(var(--h) * .8); }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcard:hover img { transform: scale(1.045); }
.pcard figcaption { display: grid; gap: 2px; padding-top: 16px; line-height: 1.3; }
.pcard figcaption strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pcard figcaption span { font-size: 14.5px; color: var(--ink-2); }
.pcard-tag { justify-self: start; margin-bottom: 6px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; line-height: 1.3; background: var(--indigo); color: var(--amarillo); }

.hgal.is-pinned .hgal-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hgal.is-pinned .hgal-track { overflow: visible; scroll-snap-type: none; will-change: transform; }

.hgal-note { margin: -8px auto 24px; font-size: 14px; color: var(--ink-2); }

/* Contacto */
.sec-contact { background: var(--indigo); color: var(--blanco); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.contact-info { display: grid; align-content: start; gap: 22px; }
.mail {
  justify-self: start; font-size: clamp(20px, 2.1vw, 28px); font-weight: 400; letter-spacing: -.015em; text-decoration: none; word-break: break-all;
  background: linear-gradient(var(--amarillo), var(--amarillo)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px;
  transition: background-size .4s var(--ease);
}
.mail:hover { background-size: 100% 100%; color: var(--indigo); }
.copy { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 500; border: 1.5px solid rgba(255, 255, 255, .35); transition: border-color .3s, background-color .3s, color .3s; }
.copy:hover { border-color: var(--blanco); }
.copy.is-done { background: var(--amarillo); border-color: var(--amarillo); color: var(--indigo); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .35); transition: background-color .3s, border-color .3s, color .3s; }
.social a:hover { background: var(--amarillo); border-color: var(--amarillo); color: var(--indigo); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { position: relative; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--celeste); }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; font: inherit; font-size: 18px; color: var(--blanco);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .38); border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.field-full:has(textarea)::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-error input { border-bottom-color: #FF8A8A; }
.field-error { margin-top: 8px; font-size: 14px; color: #FFD0D0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: 15px; color: var(--celeste); }

/* Pie */
.site-footer { background: var(--gris); padding: clamp(64px, 8vw, 112px) 0 32px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; }
.foot-logo img { width: clamp(280px, 34vw, 460px); height: auto; }
.foot-col { min-width: 220px; }
.foot-h { margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.foot-col ul { display: grid; gap: 8px; }
.foot-col a, .to-top { font-size: 15px; text-decoration: none; background: linear-gradient(var(--amarillo), var(--amarillo)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.foot-col a:hover, .to-top:hover { background-size: 100% 2px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }

/* Páginas internas */
.page-head { background: var(--gris); padding: calc(var(--header-h) + 64px) 0 64px; }
.page-head .h2 { max-width: 16ch; }
.prose { max-width: 70ch; padding: clamp(56px, 7vw, 96px) var(--gut); margin: 0 auto; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 20px; }
.prose ul { display: grid; gap: 10px; padding-left: 0; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--amarillo); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .hero-visual { margin: 8px 18px 0 0; }
  .nos-grid { grid-template-columns: minmax(0, 1fr); }
  .nos-mark { justify-self: start; width: min(64%, 320px); margin-top: 48px; }
  .destacado { grid-template-columns: minmax(0, 1fr); }
  .calle { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; padding-bottom: 8px; }
  .calle::-webkit-scrollbar { display: none; }
  .calle::before, .calle::after { display: none; }
  .tipo { scroll-snap-align: start; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .brand { height: 44px; }
  .logo-short { height: 38px !important; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; background: var(--indigo);
    clip-path: polygon(0 0, 0 0, -75% 100%, 0 100%); visibility: hidden;
    transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
  }
  .menu-open .nav { clip-path: polygon(0 0, 175% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 0 var(--gut); }
  .nav a:not(.btn) { font-size: clamp(34px, 9vw, 48px); font-weight: 600; letter-spacing: -.03em; color: var(--blanco); padding: 4px 0; }
  .nav a:not(.btn)::after { height: 3px; bottom: 0; }
  .nav .btn { margin-top: 22px; min-height: 54px; font-size: 17px; --bg: var(--amarillo); --fg: var(--indigo); --bd: var(--amarillo); }
  .menu-open .brand { opacity: 0; }
  .menu-open { overflow: hidden; }
  .nos-mark { width: min(70%, 300px); }
  .cifras-list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .cifras-list li:nth-child(2) .cota i, .cifras-list li:nth-child(2) .cota::before { display: block; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .hero-caption { flex-direction: column; align-items: stretch; gap: 16px; }
  .cap-controls { justify-content: space-between; }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero-actions .btn { flex: 1 1 0; padding: 0 16px; }
  .hero-visual { margin-right: 12px; }
  .hero-media::before { left: -10px; top: -10px; }
  .hero-media::after { right: -12px; bottom: -12px; }
  .lens-hint { display: none; }
  .cap-step { width: 28px; }
  .cap-steps { gap: 4px; }
  .cap-controls { gap: 10px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .ficha dl div { grid-template-columns: minmax(0, 1fr); }
  .calle { grid-template-columns: repeat(5, minmax(76vw, 1fr)); }
  .pcard { --h: 300px; }
  .pcard-l figure { width: min(84vw, 450px); }
  .pcard-p figure { width: min(64vw, 240px); }
  .foot-logo img { width: 100%; max-width: 360px; }
}

@media (hover: none) { .lens-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Pie: crédito de Grow */
.foot-bottom { justify-content: flex-start; column-gap: 28px; }
.foot-bottom > p { margin-right: auto; }
.grow-credit { font-size: 15px; font-weight: 500; text-decoration: none; background: linear-gradient(var(--amarillo), var(--amarillo)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.grow-credit:hover { background-size: 100% 2px; }
@media (max-width: 560px) { .foot-bottom > p { flex-basis: 100%; } }
