/* =========================================================
   ASSET — Desarrollo inmobiliario
   Colores y tipografías según Brandbook ASSET v1.0
   ========================================================= */

@font-face { font-family: "Fractul"; src: url("../assets/fonts/Fractul-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-Italic.ttf") format("truetype"); font-weight: 300 400; font-style: italic; font-display: swap; }

:root {
  /* Marca */
  --orange: #FF5012;
  --green: #216A49;
  --cemento: #E1E0DC;
  --piedra: #606265;
  --carbon: #111C23;
  /* Derivados */
  --cemento-2: #ECEBE7;
  --cemento-3: #D3D1CB;
  --line: rgba(17, 28, 35, .14);
  --line-light: rgba(225, 224, 220, .16);

  --f-title: "Fractul", "Archivo", Arial, sans-serif;
  --f-body: "Archivo", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cemento);
  color: var(--carbon);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--orange); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía base ---------- */
.kicker {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font-family: var(--f-title);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(34px, 5.6vw, 84px);
  line-height: .98;
  letter-spacing: -.01em;
}
.lead { font-family: var(--f-body); font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 10020;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform .6s var(--ease-out);
}
.header.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__iso { width: 30px; height: 25px; fill: currentColor; }
.brand__name { font-family: var(--f-title); font-size: 22px; letter-spacing: .02em; line-height: 1; }
.brand__name sup { font-size: 8px; margin-left: 2px; vertical-align: top; }
.nav {
  /* el menú ocupa la mitad derecha de la pantalla, repartido en todo su ancho */
  position: absolute; left: calc(50% + var(--gutter)); right: var(--gutter); top: 50%; translate: 0 -50%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav a {
  font-size: clamp(9px, .72vw, 12px); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__sep { flex: none; width: 22px; height: 1px; background: currentColor; opacity: .6; }

.menu-btn { display: none; width: 38px; height: 38px; position: relative; }
.menu-btn span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 22px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 10010;
  background: var(--carbon); color: var(--cemento);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--f-title); text-transform: uppercase; font-size: clamp(32px, 9vw, 54px); line-height: 1.1; }
.menu nav a:hover { color: var(--orange); }
.menu__foot { margin-top: auto; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }

/* =========================================================
   INICIO — Renders (cortina al hacer scroll, estilo Mersi)
   ========================================================= */
.showcase { position: relative; height: 400vh; background: var(--carbon); }
/* entrada al cargar la página */
.showcase__sticky { transition: opacity 1.2s ease; }
body.is-loading .showcase__sticky { opacity: 0; }
body.is-loading .showcase__panel img:first-child { transform: scale(1.18); }
.tag { transition: background-color .9s var(--ease), opacity 1s .5s ease, translate 1.2s .5s var(--ease-out); }
body.is-loading .tag { opacity: 0; translate: 0 30px; }
.showcase__scroll {
  position: absolute; left: var(--gutter); bottom: 46px; color: var(--cemento);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.showcase__scroll i { width: 1px; height: 46px; background: rgba(225,224,220,.35); position: relative; overflow: hidden; }
.showcase__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.showcase__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; }
.showcase__panel { position: relative; flex: 1; overflow: hidden; }
.showcase__panel--l { flex-basis: 50%; }
.showcase__panel--r { flex-basis: 50%; }
.showcase__panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
  transition: clip-path 1.25s var(--ease), transform 1.8s var(--ease-out);
}
.showcase__panel--r img { clip-path: inset(0 0 100% 0); transition-delay: .08s; }
.showcase__panel img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); }
.showcase__panel img:first-child { clip-path: inset(0 0 0 0); }

.tag {
  --tag-bg: var(--orange);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(600px, calc(100vw - 2 * var(--gutter)));
  background: var(--tag-bg); color: var(--carbon);
  padding: 18px 20px 14px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.tag__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; }
.tag__title { font-family: var(--f-title); font-size: clamp(18px, 2vw, 24px); line-height: 1.02; }
.tag__iso { width: clamp(70px, 8vw, 104px); height: clamp(58px, 6.7vw, 87px); fill: rgba(0,0,0,.2); overflow: visible; }

.tag__count { justify-self: end; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.tag__bottom { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tag__title, .tag__num, .tag__place, .tag__type { transition: opacity .4s ease, transform .5s var(--ease-out); display: inline-block; }
.tag.is-swapping .tag__title, .tag.is-swapping .tag__num, .tag.is-swapping .tag__place, .tag.is-swapping .tag__type { opacity: 0; transform: translateY(8px); }

.showcase__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; height: 1px; background: rgba(255,255,255,.22); }
.showcase__progress span { position: absolute; inset: 0; background: var(--cemento); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   Secciones comunes
   ========================================================= */
section { position: relative; }
.intro { padding: 0 var(--gutter); max-width: 1180px; }
.intro--center { margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro--center .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.intro__sub { margin-top: 26px; max-width: 560px; font-size: 17px; opacity: .8; }
.intro--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; flex-wrap: wrap; }

.frame { padding: 14px; border: 1px solid var(--line); margin: 0; }
.frame figcaption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding-top: 12px; }

.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* Imagen faltante: placeholder con textura de concreto */
.is-missing-wrap { position: relative; }
.img-missing {
  position: absolute; inset: 0;
  background: url("../assets/img/tallado/concreto.jpg") center/cover, #4a4b4d;
  display: grid; place-items: center; text-align: center; padding: 20px;
  color: rgba(225,224,220,.75);
  font-family: var(--f-title); text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(16px, 2vw, 26px);
  text-shadow: -1px -1px 1px rgba(0,0,0,.6), 1px 1px 0 rgba(255,255,255,.12);
}
.img-missing small { display: block; font-family: var(--f-body); font-size: 10px; letter-spacing: .2em; margin-top: 8px; opacity: .7; text-shadow: none; }

/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */
/* Título grande */
.about { background: var(--cemento); }
.ag-hero {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: clamp(120px, 12vw, 180px) var(--gutter) 0; text-align: center;
}
.ag-title {
  font-family: var(--f-title); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 3.9vw, 76px); line-height: .92; letter-spacing: -.01em;
}

.ag-sub {
  font-family: var(--f-body); font-weight: 500;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35;
}

/* Texto con líneas que suben desde una máscara */
[data-lines] .ln { display: block; overflow: hidden; }
[data-lines] .ln > span { display: block; transform: translateY(100%); transition: transform 1s cubic-bezier(.215,.61,.355,1); }
[data-lines]:not(.is-split) { visibility: hidden; }
[data-lines].is-in .ln > span { transform: none; }
[data-lines] .ln--empty { height: 1em; }

/* Enlaces con letras que ruedan */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.2; }
.roll__t, .roll__b { display: block; white-space: nowrap; }
.roll__b { position: absolute; left: 0; top: 0; }
.roll__t > span, .roll__b > span { display: inline-block; white-space: pre; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.roll__b > span { transform: translateY(100%); }
a:hover > .roll .roll__t > span { transform: translateY(-100%); }
a:hover > .roll .roll__b > span { transform: translateY(0); }

/* Fundador / equipo: 3 columnas iguales */
/* la sección se queda fija mientras las imágenes crecen */
.eq3-pin { position: relative; height: 220vh; margin-top: clamp(90px, 10.4vw, 150px); }
.eq3 {
  position: sticky; top: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: 100vh; min-height: 620px;
}
.eq3__col { position: relative; overflow: hidden; }
.eq3__col > img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(30% 24%); will-change: clip-path, transform; }
.eq3__logo img { object-position: 50% 46%; }
.eq3__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px clamp(24px, 3.5vw, 64px);
}
.eq3__text .ag-sub { margin-bottom: 26px; }
.eq3__name { font-family: var(--f-title); font-weight: 500; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.05; }
.eq3__role { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--piedra); margin: 10px 0 26px; }
.eq3__bio { font-size: clamp(13px, 1vw, 16px); line-height: 1.5; max-width: 400px; }
.eq3__bio + .eq3__bio { margin-top: 14px; }
.eq3__bio--team { margin-top: 18px; }
.eq3__sep { width: 28px; height: 1px; background: currentColor; opacity: .4; margin: 34px 0; }

/* ---------- Nuestro trabajo ---------- */
.nt-pin { position: relative; height: 300vh; margin-top: clamp(90px, 10.4vw, 150px); }
.nt {
  position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden;
  padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
}
.nt__row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: opacity .4s; }
.nt__row .ag-sub:last-child { justify-self: end; }
.nt__iso { width: 76px; height: 64px; fill: var(--carbon); }
.nt__title {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-title); font-weight: 500; text-transform: uppercase;
  font-size: clamp(30px, 3.9vw, 76px); line-height: 1;
}
.nt__word { position: relative; transition: color .4s; will-change: transform; }
.nt__frame {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(220px, 30vw, 620px); aspect-ratio: 620 / 277; border-radius: 2px;
  box-shadow: inset 2px 2px 3px rgba(0,0,0,.22), inset -2px -2px 2px rgba(255,255,255,.75), 2px 2px 2px rgba(255,255,255,.7), -1px -1px 2px rgba(0,0,0,.12);
}
.nt__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 2;
  clip-path: inset(50%);
  will-change: clip-path;
}
.nt.is-open .nt__word { color: #fff; }
.nt.is-open .nt__row { opacity: 0; }
.nt__frame { transition: opacity .4s; }
.nt.is-open .nt__frame { opacity: 0; }

/* cifras: tres huecos tallados en concreto liso, con el texto grabado */
.nt__img { transition: filter .9s ease, transform .9s ease; }
.nt.is-info .nt__img { filter: blur(7px) brightness(.62); transform: scale(1.05); }
.nt__info {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 3vh, 36px);
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.nt.is-info .nt__info { opacity: 1; }
.nt.is-info .nt__title { opacity: 0; transition: opacity .4s; }
.nt__heading {
  font-family: var(--f-title); font-weight: 500; text-transform: uppercase; color: #fff;
  font-size: clamp(30px, 3.9vw, 76px); line-height: 1; text-align: center;
  opacity: 0; translate: 0 20px; transition: opacity .8s ease, translate 1s var(--ease-out);
}
.nt.is-info .nt__heading { opacity: 1; translate: 0 0; }
.nt__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: clamp(14px, 2vw, 28px); }
.nt__stat {
  aspect-ratio: 1; padding: clamp(18px, 2vw, 30px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center;
  background:
    linear-gradient(rgba(58,60,62,.72), rgba(58,60,62,.72)),
    url("../assets/img/tallado/concreto-liso.jpg") center / 256px auto repeat, #5a5c5e;
  border-radius: 2px;
  /* hueco tallado: sombra profunda arriba-izquierda, luz en el borde inferior-derecho */
  box-shadow:
    inset 10px 12px 18px rgba(0,0,0,.55),
    inset 3px 4px 4px rgba(0,0,0,.45),
    inset -2px -2px 2px rgba(255,255,255,.18),
    1px 1px 0 rgba(255,255,255,.22),
    -1px -1px 0 rgba(0,0,0,.35);
  opacity: 0; translate: 0 30px;
  transition: opacity .8s ease, translate 1s var(--ease-out);
}
.nt.is-info .nt__stat { opacity: 1; translate: 0 0; }
.nt.is-info .nt__stat:nth-child(1) { transition-delay: .15s; }
.nt.is-info .nt__stat:nth-child(2) { transition-delay: .27s; }
.nt.is-info .nt__stat:nth-child(3) { transition-delay: .39s; }
/* texto grabado en naranja: sombra sutil, como pintura dentro de un grabado poco profundo */
.nt__num, .nt__label {
  text-shadow: -1px -1px 0 rgba(0,0,0,.35), 1px 1px 0 rgba(255,255,255,.12);
}
.nt__num {
  color: #E8551E;
  font-family: var(--f-title); font-weight: 500; font-size: clamp(28px, 3vw, 54px); line-height: 1;
  white-space: nowrap;
}
.nt__num small { font-size: .45em; margin-left: .15em; }
.nt__label {
  color: #fff; text-shadow: -1px -1px 0 rgba(0,0,0,.25);
  font-size: clamp(13px, 1.15vw, 18px); font-weight: 500; line-height: 1.35; max-width: 250px;
}
.nt__note {
  color: #fff; text-align: center; max-width: 720px;
  font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5;
  opacity: 0; transition: opacity .8s .5s ease;
}
.nt.is-info .nt__note { opacity: .9; }


/* =========================================================
   SERVICIOS — estilo Mersi / Process
   ========================================================= */
.services { background: var(--cemento); }

/* Hero fijo */
.sv-hero { position: relative; height: 300vh; height: 300svh; }
.sv-hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sv-frame {
  position: absolute; left: 50%; top: 22%; translate: -50% 0;
  width: clamp(150px, 14.9vw, 320px); aspect-ratio: 214 / 261;
  box-shadow:
    inset 3px -3px 3px rgba(0,0,0,.2),
    inset -3px 3px 3px rgba(255,255,255,.7),
    3px -3px 3px rgba(255,255,255,.6),
    -2px 2px 3px rgba(0,0,0,.1);
  border-radius: 2px;
}
.sv-title {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 90px;
  font-family: var(--f-title); font-weight: 500; text-transform: uppercase; text-align: center;
  font-size: clamp(40px, 8.1vw, 170px); line-height: .9; letter-spacing: -.02em;
}
.sv-hero__row {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center;
}
.sv-hero__row .sv-logo:last-child { justify-self: end; }
.sv-logo { width: 56px; height: 47px; fill: currentColor; color: var(--carbon); transition: color .4s; }
.sv-sub { transition: color .4s; }
.sv-hero.is-open .sv-hero__row { color: #fff; }
.sv-hero__row { transition: opacity .4s ease; }
.sv-hero.is-after .sv-hero__row { opacity: 0; }
.sv-hero.is-open .sv-sub, .sv-hero.is-open .sv-logo { color: #fff; }
.sv-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 2;
  clip-path: inset(50% 50% 50% 50%);
  will-change: clip-path;
}

/* Letras que suben una por una */
[data-chars] .w { display: inline-block; white-space: nowrap; }
[data-chars] .ch { display: inline-block; overflow: hidden; vertical-align: top; }
[data-chars] .ch > span { display: inline-block; transform: translateY(100%); transition: transform 1s cubic-bezier(.215,.61,.355,1); }
[data-chars].is-in .ch > span { transform: none; }
[data-chars]:not(.is-split) { visibility: hidden; }

/* Contenido que aparece cuando la imagen cubre la pantalla */
.sv-after { position: absolute; inset: 0; z-index: 4; color: #fff; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.sv-hero.is-after .sv-after { opacity: 1; }
.sv-after__top { position: absolute; left: 0; right: 0; top: 34px; text-align: center; color: #fff; }
.sv-label {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(530px, calc(100vw - 2 * var(--gutter)));
  background: var(--orange); color: var(--carbon);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px;
  padding: 18px;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1s cubic-bezier(.77,0,.175,1);
}
.sv-hero.is-after .sv-label { clip-path: inset(0 0 0 0); }
.sv-label__iso { width: 96px; height: 80px; fill: rgba(0,0,0,.2); overflow: visible; }
.sv-label p { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; text-align: center; }
.sv-after__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
}
.sv-after__bottom .ag-sub { color: #fff; padding-bottom: 8px; }
.sv-big { font-family: var(--f-title); font-weight: 500; text-transform: uppercase; font-size: clamp(30px, 3.9vw, 76px); line-height: .95; }
.sv-big:last-child { justify-self: end; text-align: right; }

/* Pasos */
.sv-steps { position: relative; height: calc(var(--n) * 100vh); }
.sv-steps__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sv-step {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr;
  clip-path: inset(100% 0 0 0);
}
.sv-step:first-child { clip-path: inset(0 0 0 0); }
/* foto con opacidad oscura y un pequeño desenfoque */
.sv-step__img {
  width: 100%; height: 100%; min-height: 0; object-fit: cover;
  filter: blur(2.5px) brightness(.62);
  transform: scale(1.04);
}
.sv-step { grid-template-rows: 100%; }
.sv-step__info {
  min-height: 0; background: #D3D1CB; color: var(--carbon);
}
.sv-step--alt .sv-step__info { background: #DBD9D4; }
/* título en blanco, centrado sobre la foto */
.sv-step__head {
  position: absolute; left: 25%; top: 50%; translate: -50% -50%; z-index: 2;
  width: min(560px, calc(50% - 2 * clamp(28px, 4vw, 70px)));
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  color: #fff;
}
.sv-step__head h3 {
  order: 2;
  font-family: var(--f-title); font-weight: 500; color: #fff;
  font-size: clamp(36px, 4.4vw, 80px); line-height: .96; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.sv-step__head span { order: 1; font-family: var(--f-title); font-weight: 500; font-size: clamp(16px, 1.3vw, 22px); color: #fff; opacity: .85; }
/* cuadro de texto: mismo tamaño y siempre centrado en la columna derecha */
.sv-step__box {
  position: absolute; left: 75%; top: 50%; translate: -50% -50%;
  width: min(520px, calc(50% - 2 * clamp(28px, 4vw, 70px)));
  min-height: 330px; box-sizing: border-box;
  padding: clamp(24px, 2.6vw, 40px);
  background: rgba(255,255,255,.18);
  box-shadow: inset 2px 2px 3px rgba(0,0,0,.14), inset -2px -2px 2px rgba(255,255,255,.7);
}
.sv-step__box p { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; }
.sv-step__label { margin-top: 22px; font-size: 10px !important; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.sv-step__box ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sv-step__box li { font-size: clamp(13px, 1vw, 15px); line-height: 1.4; padding: 9px 0; border-top: 1px solid rgba(17,28,35,.14); display: flex; gap: 12px; }
.sv-step__box li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .5em; background: var(--orange); }

/* =========================================================
   PROYECTOS — estilo Mersi / Projets
   ========================================================= */
.projects { position: relative; padding-bottom: clamp(80px, 10vw, 140px); }
.pj-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; }
.pj-hero__head { position: absolute; left: 0; right: 0; top: 18vh; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pj-title {
  font-family: var(--f-title); font-weight: 500; text-transform: uppercase;
  font-size: clamp(34px, 3.9vw, 76px); line-height: .92; letter-spacing: -.01em; margin-top: 4px;
}

.pj-strip {
  position: absolute; left: 9px; right: 9px; bottom: 9px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px;
}
.pj-strip__item { aspect-ratio: 134 / 194; overflow: hidden; }
.pj-strip__item img { width: 100%; height: 100%; object-fit: cover; }
.projects.is-flipped .pj-strip__item img, .projects.is-returning .pj-strip__item img { visibility: hidden; }

.pj-grid { padding: 0 9px; display: flex; flex-direction: column; gap: 45px; margin-top: 9vh; }
.pj-row { display: grid; gap: 10px; }
.pj-row--3 { grid-template-columns: repeat(3, 1fr); }
.pj-row--4 { grid-template-columns: repeat(4, 1fr); }
.pj-row--3 .pj-link { height: 37vw; }
.pj-row--4 .pj-link { height: 27vw; }
.pj-item { transition: opacity .4s ease; scroll-margin-top: 100px; }
.pj-link { position: relative; display: block; overflow: hidden; background: transparent; }
.pj-img { width: 100%; height: 100%; object-fit: cover; }
.projects.is-desktop:not(.is-flipped) .pj-grid { visibility: hidden; }
.projects.is-desktop .pj-img.is-waiting { opacity: 0; }
.pj-info { display: flex; justify-content: space-between; align-items: baseline; padding-top: 9px; }
.pj-info__name { font-family: var(--f-title); font-weight: 500; font-size: 12px; }
.pj-info__cat { font-size: 9px; font-weight: 500; }

/* etiqueta al pasar el mouse */
.pj-tag {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 28%; min-height: 110px; max-height: 190px;
  background: var(--tag); color: var(--carbon);
  display: flex; justify-content: space-between; gap: 20px; padding: 14px 16px;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .5s cubic-bezier(.65,0,.35,1);
}
.pj-link:hover .pj-tag, .pj-item.is-touch .pj-tag { clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.16,1,.3,1); }
.pj-tag__txt { display: flex; flex-direction: column; justify-content: space-between; }
.pj-tag__txt h3 { font-family: var(--f-title); font-weight: 500; font-size: clamp(15px, 1.25vw, 22px); line-height: 1.05; }
.pj-tag__txt span { font-size: 9px; font-weight: 500; }
.pj-tag__logo { max-width: 52%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center; }
.pj-tag .is-missing-wrap { position: relative; width: 52% !important; height: 100% !important; }
.pj-tag .img-missing { background: transparent; color: rgba(0,0,0,.18); font-size: clamp(20px, 2.4vw, 40px); text-shadow: -1px -1px 1px rgba(0,0,0,.25), 1px 1px 1px rgba(255,255,255,.8); }
.pj-tag .img-missing small { display: none; }

/* clones que vuelan entre la tira y la cuadrícula */
.pj-fly { position: absolute; z-index: 40; object-fit: cover; pointer-events: none; margin: 0; }

/* =========================================================
   GALERÍA — dos filas de fotos que se deslizan con el scroll
   ========================================================= */
.gallery { padding: clamp(80px, 9vw, 130px) 0; background: var(--cemento-2); overflow: hidden; }
.gl-kicker { padding: 0 var(--gutter); }
.gl-rows { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(30px, 4vw, 50px); }
.gl-row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.gl-row img { height: clamp(200px, 24vw, 440px); width: auto; flex: none; object-fit: cover; aspect-ratio: 3 / 2; pointer-events: none; user-select: none; }
.gl-row img:nth-child(3n+2) { aspect-ratio: 4 / 5; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(17,28,35,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { max-width: 88vw; max-height: 84vh; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox__stage .lb-msg { color: var(--cemento); font-family: var(--f-title); font-size: 24px; text-align: center; }
.lightbox__stage .lb-msg small { display: block; font-family: var(--f-body); font-size: 14px; opacity: .7; margin-top: 8px; }
.lightbox__close { position: absolute; top: 18px; right: 24px; color: var(--cemento); font-size: 38px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--cemento); font-size: 26px; padding: 18px; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox.is-video .lightbox__nav { display: none; }

/* =========================================================
   CONTACTO — sobre el tallado en concreto
   ========================================================= */
/* Contacto: mismo concepto que "Recibir información" — foto en la mitad izquierda, contenido a la derecha */
.contact {
  min-height: 100vh; background: var(--cemento); color: var(--carbon);
  display: grid; grid-template-columns: 1fr 1fr;
}
/* foto a la derecha, con opacidad oscura y desenfoque */
.contact__bg { position: relative; order: 2; overflow: hidden; background: #3a3b3d; }
.contact__bg img {
  position: absolute; left: -3%; top: -20%; width: 106%; height: 140%; max-width: none;
  object-fit: cover; object-position: 85% 50%;
  filter: blur(3px) brightness(.82);
  will-change: transform;
}
.contact__bg::after { content: ""; position: absolute; inset: 0; background: rgba(17,28,35,.42); }
.contact__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  padding: clamp(100px, 10vw, 130px) clamp(28px, 5vw, 90px);
}
.contact__head .kicker { color: var(--orange); }
.contact__head .display { font-size: clamp(30px, 3.4vw, 54px); }
.contact__head p:last-child { margin-top: 20px; opacity: .8; max-width: 470px; }
.contact .card {
  background: rgba(255,255,255,.22);
  box-shadow: inset 2px 2px 3px rgba(0,0,0,.14), inset -2px -2px 2px rgba(255,255,255,.7);
}

.card { background: var(--cemento-2); color: var(--carbon); padding: clamp(22px, 3vw, 36px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 18px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--piedra); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--carbon);
  background: transparent; border: 0; border-bottom: 1px solid rgba(17,28,35,.3);
  padding: 8px 0; border-radius: 0; outline: none; width: 100%;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.field.is-invalid input, .field.is-invalid select { border-color: #c4261a; }
.btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  background: var(--orange); color: #fff;
  padding: 15px 26px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background .4s, gap .4s var(--ease-out);
}
.btn:hover { background: var(--carbon); gap: 22px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.form__status { font-size: 14px; min-height: 1.2em; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: #c4261a; }

/* =========================================================
   SUSCRIPCIÓN + INFO (split estilo Mersi)
   ========================================================= */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.newsletter__img { position: relative; overflow: hidden; }
.newsletter__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newsletter__info { display: flex; align-items: center; justify-content: flex-end; padding: 120px var(--gutter); }
.info { text-align: right; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.info h3 { font-family: var(--f-title); font-weight: 500; font-size: 30px; margin-bottom: 14px; }
.info a:hover { color: var(--orange); }
.info__hours { opacity: .65; margin-top: 6px; }
.social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin-top: 18px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

.sub-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  background: rgba(225, 224, 220, .78);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.5);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.sub-card.reveal { transform: translate(-50%, calc(-50% + 46px)); }
.sub-card.reveal.is-in { transform: translate(-50%, -50%); }
.sub-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.sub-card h3 { font-family: var(--f-title); font-weight: 500; font-size: 22px; line-height: 1.1; }
.sub-card__iso { width: 64px; height: 54px; flex: none; fill: rgba(0,0,0,.1); overflow: visible; }

.sub-card > p { font-size: 14px; opacity: .8; }
.sub-card__field { display: flex; border-bottom: 1px solid rgba(17,28,35,.35); }
.sub-card__field input { flex: 1; min-width: 0; font: inherit; font-size: 14px; font-weight: 400; background: transparent; border: 0; outline: none; padding: 10px 0; color: var(--carbon); }
.sub-card__field input::placeholder { color: var(--piedra); text-transform: uppercase; font-size: 11px; letter-spacing: .14em; font-weight: 500; }
.sub-card__field button { font-size: 20px; padding: 0 4px; transition: transform .4s var(--ease-out), color .3s; }
.sub-card__field button:hover { transform: translateX(5px); color: var(--orange); }
.sub-card__field.is-invalid { border-color: #c4261a; }

/* =========================================================
   FOOTER — estilo Mersi: isotipo grabado en concreto repetido
   ========================================================= */
.footer { background: var(--cemento-2); color: var(--carbon); padding: clamp(90px, 9vw, 130px) 0 14px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  padding: 0 var(--gutter); margin-bottom: 40px;
}
.footer__claim { font-size: clamp(19px, 1.65vw, 26px); line-height: 1.12; font-weight: 400; }
.footer__links { display: flex; gap: 34px; }
.footer__links a, .footer__bottom a, .footer__bottom span {
  font-family: var(--f-title); font-weight: 500; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__links svg { width: 7px; height: 7px; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.footer__links a:hover svg { transform: rotate(45deg); }

.footer__band {
  position: relative; height: clamp(330px, 31vw, 620px);
  /* isotipo grabado repetido sobre una sola textura de concreto continua: sin líneas divisorias */
  background:
    url("../assets/img/tallado/iso-pattern.svg") center / auto calc(100% / 3) repeat,
    linear-gradient(rgba(20,22,24,.38), rgba(20,22,24,.38)),
    url("../assets/img/tallado/concreto-fino.jpg") center / 698px auto repeat,
    #4a4b4d;
  display: grid; place-items: center; overflow: hidden;
}
/* la franja queda por encima del grano general: sin puntitos */
.footer__band { z-index: 10000; }
.footer__band > * { position: relative; z-index: 1; }
.footer__card {
  position: relative; width: min(490px, calc(100vw - 2 * var(--gutter))); height: calc(100% * .66);
  background: var(--cemento-2); padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
/* marco tallado alrededor de la tarjeta */
.footer__card::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  box-shadow: inset 2px 2px 3px rgba(0,0,0,.16), inset -2px -2px 2px rgba(255,255,255,.9), 1px 1px 2px rgba(255,255,255,.9), -1px -1px 2px rgba(0,0,0,.1);
}
.footer__news {
  background: #CFCBC3; padding: 34px 32px 30px; display: flex; flex-direction: column; justify-content: space-between;
}
.footer__news h3 { font-family: var(--f-title); font-weight: 500; font-size: 15px; }
.footer__news .sub-card__field { border-color: rgba(17,28,35,.6); }
.footer__news .sub-card__field button svg { width: 8px; height: 8px; }
.footer__news .form__status { min-height: 0; font-size: 12px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 10px 34px; text-align: center; }
.footer__iso { width: 112px; height: 94px; fill: rgba(0,0,0,.06); overflow: visible; }
.footer__line { width: 4px; height: 52px; border-radius: 2px; box-shadow: inset 1px 1px 2px rgba(0,0,0,.18), inset -1px -1px 1px rgba(255,255,255,.9); }
.footer__brand p { font-family: var(--f-title); font-weight: 500; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }

.footer__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 26px 22px 0;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer__bottom > span { justify-self: end; }
.footer__star svg { width: 18px; height: 15px; fill: var(--carbon); display: block; }

/* =========================================================
   EFECTO GRANO — textura de papel sobre toda la página
   ========================================================= */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='1.8' intercept='-.4'/><feFuncG type='linear' slope='1.8' intercept='-.4'/><feFuncB type='linear' slope='1.8' intercept='-.4'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .38; mix-blend-mode: multiply;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* si la mitad derecha no alcanza para el menú, se usa el botón de menú */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 1100px) {
}

@media (max-width: 760px) {
  .footer__card { grid-template-columns: 1fr; height: auto; }
  .footer__brand { padding: 24px 10px; gap: 16px; }
  .footer__band { height: auto; padding: 60px 0; background-size: auto 140px, auto, cover; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__bottom nav { justify-content: center; gap: 8px 20px; }
  .footer__bottom > span { justify-self: center; }
  .footer__links { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 991px) {
  .pj-hero { height: auto; min-height: 0; padding: 130px 0 40px; }
  .pj-hero__head { position: static; }
  .pj-strip { display: none; }
  .pj-grid { margin-top: 0; gap: 30px; }
  .pj-row--3, .pj-row--4 { grid-template-columns: 1fr 1fr; }
  .pj-row--3 .pj-link, .pj-row--4 .pj-link { height: 60vw; }
}
@media (max-width: 640px) {
  .pj-row--3, .pj-row--4 { grid-template-columns: 1fr; }
  .pj-row--3 .pj-link, .pj-row--4 .pj-link { height: 110vw; }
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__bg { order: 0; height: 62vh; }
  .contact__inner { padding: 60px var(--gutter) 80px; }
  .eq3-pin { height: auto; }
  .eq3 { position: static; grid-template-columns: 1fr; height: auto; }
  .eq3__col { height: 110vw; }
  .eq3__text { height: auto; padding: 70px var(--gutter); }
  .nt-pin { height: auto; }
  .nt { position: relative; height: auto; min-height: 0; padding: 0; }
  .nt__row, .nt__frame { display: none; }
  .nt__title { padding: 0 var(--gutter) 20px; justify-content: center; gap: 12px; }
  .nt__img { position: relative; height: 70vw; clip-path: none !important; }
  .nt__info { position: relative; opacity: 1; background: none; padding: 26px var(--gutter) 0; }
  .nt__heading { color: var(--carbon); opacity: 1; translate: none; }
  .nt__stats { grid-template-columns: 1fr; width: 100%; }
  .nt__stat { aspect-ratio: auto; padding: 34px 20px; opacity: 1; translate: none; }
  .nt__note { color: var(--carbon); opacity: 1; }
  .newsletter { grid-template-columns: 1fr; min-height: 0; }
  .newsletter__img { height: 62vh; }
  .sub-card, .sub-card.reveal, .sub-card.reveal.is-in { position: relative; left: auto; top: auto; transform: none; margin: -110px auto 0; z-index: 2; }
  .sub-card.reveal { opacity: 0; } .sub-card.reveal.is-in { opacity: 1; }
  .sub-card { order: 1; }
  .newsletter__info { order: 2; justify-content: center; padding: 60px var(--gutter) 80px; }
  .info { text-align: center; }
  .social { justify-content: center; }
}

@media (max-width: 640px) {
  .sv-step { grid-template-columns: 1fr; grid-template-rows: 34% 66%; }
  .sv-step__info { padding: 22px var(--gutter); display: flex; flex-direction: column; gap: 16px; }
  .sv-step__head { left: 50%; top: 17%; width: calc(100% - 2 * var(--gutter)); gap: 8px; }
  .sv-step__head h3 { font-size: 32px; }
  .sv-step__box { position: static; translate: none; width: auto; min-height: 0; padding: 16px; }
  .sv-step__box p { font-size: 14px; }
  .sv-step__label { margin-top: 12px; }
  .sv-step__box li { padding: 5px 0; font-size: 13px; }
  .sv-frame { top: 16%; width: 42vw; }
  .sv-title { bottom: 110px; }
  .sv-after__bottom { grid-template-columns: 1fr 1fr; }
  .sv-after__bottom .ag-sub { display: none; }
  .sv-label { grid-template-columns: 1fr; justify-items: center; }
  .showcase__sticky { flex-direction: column; }
  .showcase__panel { flex-basis: 50%; }
  .tag { padding: 14px 14px 12px; gap: 14px; }
  .field-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
