/* =========================================================
   FINITUM — Estilos
   Paleta: #111111 · #FFFFFF · #777777 · #F2F2F2 (+ tonos)
   ========================================================= */
:root {
  --ink: #111111;
  --ink-2: #1a1a1a;
  --ink-3: #242424;
  --white: #ffffff;
  --grey: #777777;
  --grey-2: #a3a3a3;
  --soft: #f2f2f2;
  --line: #e2e2e2;
  --line-dark: rgba(255,255,255,.14);

  --ff: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-serif: 'Instrument Serif', Georgia, serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(88px, 12vw, 168px);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); overflow-x: hidden; }
/* Red de seguridad: nada puede ensanchar la página en el celular */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, section, footer, header { max-width: 100vw; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--grey); display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.h2 {
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.06; font-weight: 500; letter-spacing: -.03em;
  max-width: 18ch;
}
.h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); font-weight: 400; }
em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--solid:hover { background: var(--ink-3); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.logo__mark { width: 26px; height: 26px; }
/* Logo oficial (blanco). Sobre la cabecera blanca se invierte a negro. */
/* Logo Finitum: versión clara sobre fondos oscuros, versión a color sobre la cabecera blanca */
.logo__img { height: 42px; width: auto; }
.logo__img--dark { display: none; }
.header.is-scrolled .logo__img--light { display: none; }
.header.is-scrolled .logo__img--dark { display: block; }
body.nav-open .header .logo__img--light { display: block; }
body.nav-open .header .logo__img--dark { display: none; }
@media (max-width: 420px) { .header .logo__img { height: 34px; } }
.footer .logo__img { height: 110px; }
.footer__contact { margin-top: 20px; }
.contact__direct { margin-top: 28px; font-size: 15px; color: #444; }
.contact__direct a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }
.logo__text { font-size: 15px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; }
.logo__text strong { font-weight: 700; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a { font-size: 13px; font-weight: 500; letter-spacing: .02em; position: relative; padding: 6px 0; opacity: .85; transition: opacity .3s; }
.nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__list a:hover, .nav__list a.is-current { opacity: 1; }
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); }
.header:not(.is-scrolled) .nav__cta { background: #fff; color: var(--ink); border-color: #fff; }
.header:not(.is-scrolled) .nav__cta:hover { background: transparent; color: #fff; }
.nav__cta { height: 44px; padding: 0 20px; font-size: 11.5px; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav__list { gap: 20px; }
  .nav { gap: 24px; }
}
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); color: #fff;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
    padding: 100px var(--gutter) 48px;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { font-size: clamp(28px, 7vw, 40px); font-weight: 400; letter-spacing: -.02em; opacity: .9; display: inline-block; transform: translateY(16px); transition: transform .5s var(--ease), opacity .3s; }
  .nav__list a::after { display: none; }
  .nav .nav__cta { background: #fff; color: var(--ink); border-color: #fff; height: 52px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open .nav__list a { transform: none; }
  body.nav-open .header { color: #fff; background: transparent; box-shadow: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.js .hero__media img { animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }
.hero .hero__tag { left: auto; right: var(--gutter); bottom: auto; top: calc(var(--header-h) + 16px); z-index: 3; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.72) 42%, rgba(17,17,17,.15) 100%),
              linear-gradient(0deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,0) 40%);
}
.elevation[hidden] { display: none; }
.elevation { position: absolute; right: -4%; top: 6%; width: 74%; height: 88%; opacity: .95; }
.el-lines path, .el-lines rect, .el-dims path { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js .el-lines path, .js .el-lines rect, .js .el-dims path { animation: draw 2.6s var(--ease) both; }
.js .el-dims path { animation-delay: 1.2s; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }

.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 60px); padding-bottom: 72px; }
.hero .eyebrow { color: rgba(255,255,255,.62); }
.hero__title {
  font-size: clamp(38px, min(5.6vw, 8.4vh), 84px); line-height: 1.02; font-weight: 400; letter-spacing: -.04em;
  max-width: 17ch; margin-bottom: 28px;
}
.hero__title em { color: #fff; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.72); max-width: 46ch; margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot {
  position: relative; z-index: 2; display: flex; gap: 40px; padding-top: 26px; padding-bottom: 30px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5);
  border-top: 1px solid var(--line-dark);
}
.hero__foot { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
@media (max-width: 760px) {
  .elevation { width: 150%; right: -60%; top: 4%; height: 62%; opacity: .55; }
  .hero__media::after { background: linear-gradient(0deg, rgba(17,17,17,.98) 30%, rgba(17,17,17,.5) 100%); }
  .hero__foot { gap: 18px; flex-wrap: wrap; font-size: 10.5px; margin: 0 var(--gutter); padding-left: 0; padding-right: 0; width: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--sec) 0; position: relative; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: rgba(255,255,255,.55); }
.section--soft { background: var(--soft); }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.about__body p + p { margin-top: 22px; color: var(--grey); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.fact { padding: 36px 32px 0 0; display: flex; flex-direction: column; gap: 10px; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact__num { font-size: clamp(48px, 6vw, 84px); font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.fact__label { color: var(--grey); font-size: 15px; max-width: 24ch; }
.about__split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 9vw, 120px); }
.about__split .media { aspect-ratio: 4 / 3; }
.trust p { color: var(--grey); margin-bottom: 28px; max-width: 42ch; }
.trust__list { margin-bottom: 28px; display: grid; gap: 10px; }
@media (max-width: 860px) {
  .about__grid, .about__split { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Medios / placeholders arquitectónicos ---------- */
.media { position: relative; display: block; overflow: hidden; background: var(--ink-2); width: 100%; height: 100%; margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
/* Tono algo más sobrio para que las fotos dialoguen con la paleta */
.media img, .hero__media img { filter: saturate(.8) contrast(1.02); }
.media--ph { background-color: #2a2a2a; }
.media--ph::before { content: ''; position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.media__tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7);
  background: rgba(17,17,17,.55); padding: 6px 10px; backdrop-filter: blur(4px);
}
/* Composiciones: muros, cielo y retículas de ventanas, solo con la paleta */
.ph-a::before {
  background:
    linear-gradient(#3b3b3b, #3b3b3b) 12% 64% / 76% 2px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(19% - 2px), #1c1c1c calc(19% - 2px) 19%) 12% 100% / 76% 34% no-repeat,
    linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 55%, rgba(255,255,255,.12)) 12% 100% / 76% 34% no-repeat,
    linear-gradient(#e9e9e9, #e9e9e9) 0 100% / 100% 66% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), #1c1c1c calc(25% - 2px) 25%) 46% 26% / 50% 22% no-repeat,
    linear-gradient(170deg, rgba(255,255,255,.3), rgba(255,255,255,.05)) 46% 26% / 50% 22% no-repeat,
    linear-gradient(#d6d6d6, #d6d6d6) 50% 18% / 62% 34% no-repeat,
    linear-gradient(180deg, #8d8d8d, #bdbdbd);
}
.ph-b::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(33.33% - 3px), #151515 calc(33.33% - 3px) 33.33%) 50% 60% / 70% 62% no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.02) 50%, rgba(255,255,255,.1)) 50% 60% / 70% 62% no-repeat,
    linear-gradient(#5a5a5a, #5a5a5a) 50% 60% / calc(70% + 16px) calc(62% + 16px) no-repeat,
    linear-gradient(180deg, #4a4a4a, #2b2b2b);
}
.ph-c::before {
  background:
    linear-gradient(#151515, #151515) 50% 30% / 3px 40% no-repeat,
    linear-gradient(#151515, #151515) 50% 50% / 50% 3px no-repeat,
    linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,.06) 60%) 50% 30% / 50% 40% no-repeat,
    linear-gradient(#151515, #151515) 50% 80% / 3px 26% no-repeat,
    linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,.04) 60%) 50% 80% / 50% 26% no-repeat,
    linear-gradient(180deg, #f2f2f2, #d9d9d9);
}
.ph-d::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(50% - 2px), #1b1b1b calc(50% - 2px) 50%) 30% 55% / 30% 40% no-repeat,
    linear-gradient(150deg, rgba(255,255,255,.26), rgba(255,255,255,.04)) 30% 55% / 30% 40% no-repeat,
    linear-gradient(#1b1b1b, #1b1b1b) 76% 55% / 2px 40% no-repeat,
    linear-gradient(150deg, rgba(255,255,255,.26), rgba(255,255,255,.04)) 76% 55% / 22% 40% no-repeat,
    linear-gradient(180deg, #777, #5c5c5c);
}
.ph-e::before {
  background:
    linear-gradient(90deg, #2c2c2c 0 6%, transparent 6% 94%, #2c2c2c 94%) 50% 50% / 64% 70% no-repeat,
    linear-gradient(#2c2c2c, #2c2c2c) 50% 50% / 3px 70% no-repeat,
    linear-gradient(125deg, rgba(255,255,255,.4), rgba(255,255,255,.08) 45%, rgba(255,255,255,.22)) 50% 50% / 64% 70% no-repeat,
    linear-gradient(180deg, #bdbdbd, #9a9a9a);
}
.ph-f::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(50% - 2px), #e8e8e8 calc(50% - 2px) 50%) 50% 22% / 56% 24% no-repeat,
    linear-gradient(170deg, rgba(255,255,255,.18), rgba(255,255,255,.02)) 50% 22% / 56% 24% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(33.33% - 2px), #e8e8e8 calc(33.33% - 2px) 33.33%) 50% 78% / 56% 36% no-repeat,
    linear-gradient(170deg, rgba(255,255,255,.18), rgba(255,255,255,.02)) 50% 78% / 56% 36% no-repeat,
    linear-gradient(180deg, #2a2a2a, #161616);
}

/* ---------- Ventanas PVC ---------- */
.pvc__head .h2 { max-width: 20ch; }
.pvc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 8vw, 120px); margin-top: clamp(56px, 8vw, 96px); align-items: start; }
.section-diagram { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); border: 1px solid var(--line-dark); padding: clamp(20px, 3vw, 40px); }
.section-diagram svg { width: 100%; height: auto; }
.section-diagram figcaption { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .06em; }
.benefits { border-top: 1px solid var(--line-dark); }
.benefit { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line-dark); transition: padding .4s var(--ease); }
.benefit:hover { padding-left: 10px; }
.benefit__n { font-size: 13px; letter-spacing: .14em; color: rgba(255,255,255,.4); padding-top: 6px; }
.benefit h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.benefit p { color: rgba(255,255,255,.62); max-width: 48ch; }
@media (max-width: 900px) {
  .pvc__grid { grid-template-columns: minmax(0, 1fr); }
  .section-diagram { position: static; max-width: 460px; }
}

/* ---------- Colores ---------- */
.finishes__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.finishes__head > p { color: var(--grey); max-width: 44ch; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 28px); }
.swatch h3 { font-size: 16px; font-weight: 600; margin-top: 18px; }
.swatch p { font-size: 14px; color: var(--grey); }
.swatch__sample {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  border: 18px solid var(--c, #fff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 0 var(--line);
  background: linear-gradient(150deg, #f7f7f7, #d8d8d8 60%, #ececec);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.swatch__sample::before { content: ''; position: absolute; inset: 0; border: 6px solid rgba(0,0,0,.06); }
.swatch__sample::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%); background: var(--c, #fff); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.swatch:hover .swatch__sample { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 24px 40px -24px rgba(0,0,0,.35); }
.sw-white { --c: #fafafa; border-color: #fafafa; outline: 1px solid var(--line); }
.sw-black { --c: #151515; }
.sw-grey { --c: #8a8a8a; }
.sw-graphite { --c: #3c3d3f; }
.sw-wood {
  --c: #7a5638;
  border-image: repeating-linear-gradient(100deg, #6e4b30 0 6px, #8a6242 6px 9px, #74503a 9px 14px, #956b48 14px 16px) 18;
}
.sw-wood::after { background: repeating-linear-gradient(10deg, #6e4b30 0 5px, #8a6242 5px 8px, #74503a 8px 12px); }
.sw-other { border: 1px dashed #bdbdbd; background: var(--soft); display: grid; place-items: center; }
.sw-other::before, .sw-other::after { display: none; }
.sw-other span { font-size: 40px; font-weight: 200; color: var(--grey); }
.note { margin-top: 36px; font-size: 13px; color: var(--grey); }
@media (max-width: 1000px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .finishes__head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .swatches { grid-template-columns: repeat(2, 1fr); } .swatch__sample { border-width: 14px; } }

/* ---------- Proyectos ---------- */
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; border: 1px solid #cfcfcf; font-size: 13px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); grid-auto-flow: dense; }
.project { margin: 0; grid-column: span 4; display: flex; flex-direction: column; }
.project.p-wide { grid-column: span 8; }
.project.p-tall .project__open { aspect-ratio: 4 / 5; }
.project__open { display: block; width: 100%; aspect-ratio: 4 / 3; position: relative; overflow: hidden; cursor: zoom-in; }
.project.p-wide .project__open { aspect-ratio: 16 / 9; }
.project__open:hover .media img, .project__open:hover .media--ph::before { transform: scale(1.04); }
.project figcaption { padding-top: 18px; }
.project__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.project h3 { font-size: 19px; font-weight: 600; margin: 6px 0 4px; letter-spacing: -.01em; }
.project p { font-size: 14px; color: var(--grey); }
.project.is-hidden { display: none; }
.gallery__empty { padding-top: 8px; padding-bottom: 8px; color: var(--grey); font-size: 15px; }
@media (max-width: 900px) {
  .project, .project.p-wide { grid-column: span 6; }
  .project.p-wide .project__open { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .project, .project.p-wide { grid-column: span 12; }
  .project.p-tall .project__open { aspect-ratio: 4 / 3; }
  .filters { overflow-x: auto; flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .filter { flex: 0 0 auto; }
}

/* ---------- Proceso ---------- */
.process__head { margin-bottom: clamp(48px, 7vw, 88px); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.step { padding: 32px 28px 8px 0; border-top: 1px solid var(--ink); position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n { display: block; font-size: clamp(40px, 4vw, 56px); font-weight: 300; letter-spacing: -.05em; line-height: 1; margin-bottom: 36px; color: var(--grey-2); transition: color .4s; }
.step:hover .step__n { color: var(--ink); }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--grey); }
.process__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.process__notes p { background: var(--soft); padding: 28px 32px; font-size: 15px; color: #444; }
.process__notes strong { color: var(--ink); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { display: grid; grid-template-columns: 80px 1fr; column-gap: 20px; padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top-color: var(--ink); }
  .step__n { grid-row: span 2; margin: 0; font-size: 36px; }
  .process__notes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cobertura ---------- */
.coverage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.coverage__text { color: rgba(255,255,255,.62); margin: 28px 0 40px; max-width: 42ch; }
.regions { position: relative; padding-left: 40px; }
.regions::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: rgba(255,255,255,.25); }
.region { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.region:first-child { border-top: 1px solid var(--line-dark); }
.region::before { content: ''; position: absolute; left: -38px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border: 1px solid #fff; background: var(--ink); transition: background .3s; }
.region:hover::before { background: #fff; }
.region__code { font-size: 30px; font-weight: 300; letter-spacing: -.03em; color: rgba(255,255,255,.5); }
.region h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.region p { font-size: 14px; color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .coverage__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contacto / formulario ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.contact__intro .lead { color: #444; margin-top: 28px; max-width: 40ch; }
.contact__points { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__points li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.contact__points li::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--ink); }
.form { background: var(--soft); padding: clamp(28px, 4vw, 56px); display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.form, .form > * { min-width: 0; max-width: 100%; }
/* El selector de fecha de Android/iOS trae un ancho mínimo propio: lo anulamos */
.field input[type="date"] { min-width: 0; max-width: 100%; display: block; line-height: 1.2; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.opt { font-weight: 400; color: var(--grey); text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d4d4d4; border-radius: 0; padding: 14px 16px; min-height: 52px;
  transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #a8a8a8; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__hint { font-size: 13px; color: var(--grey); }
.field__error { font-size: 13px; color: var(--ink); font-weight: 600; min-height: 0; }
.field__error:not(:empty)::before { content: '— '; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.scope-notice { background: var(--ink); color: #fff; padding: 20px 22px; font-size: 15px; line-height: 1.55; }
.form__legal { font-size: 13px; color: var(--grey); text-align: center; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.confirm { border-top: 1px solid #d4d4d4; padding-top: 22px; display: grid; gap: 14px; }
.confirm__q { font-weight: 600; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.confirm__done { font-size: 15px; }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { position: static; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 24px 18px; }
  .confirm__actions .btn { flex: 1 1 100%; }
  /* Los botones con texto largo no deben forzar el ancho */
  .btn { white-space: normal; text-align: center; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; letter-spacing: .1em; }
}

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer .logo { color: #fff; margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a:not(.btn):hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.4); flex-wrap: wrap; }
.credits { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,.4); }
.credits summary { cursor: pointer; letter-spacing: .06em; }
.credits p { margin-top: 10px; max-width: 90ch; line-height: 1.7; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px;
  display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .35s var(--ease), background .35s; opacity: 0; transform: translateY(16px); pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: translateY(-3px); background: #000; }
.wa-float svg { width: 24px; height: 24px; }
html:not(.js) .wa-float { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10,10,10,.96); display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; padding: 64px 12px 24px; }
.lightbox[hidden] { display: none; }
.lightbox__stage { grid-column: 2; height: 100%; display: grid; place-items: center; min-height: 0; }
.lightbox__stage > * { max-width: 100%; max-height: 78vh; width: min(1200px, 100%); height: auto; aspect-ratio: 16 / 10; }
.lightbox__stage .media { background: transparent; }
.lightbox__stage .media img { object-fit: contain; width: 100%; height: 100%; transform: none !important; }
.lightbox__caption { grid-column: 1 / -1; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; padding-top: 18px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; font-size: 36px; color: #fff; width: 48px; height: 48px; line-height: 1; font-weight: 200; }
.lightbox__nav { color: #fff; font-size: 26px; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.25); justify-self: center; transition: border-color .3s; }
.lightbox__nav:hover { border-color: #fff; }
.lightbox__fade { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__prev { grid-row: 3; grid-column: 1; }
  .lightbox__next { grid-row: 3; grid-column: 2; }
  .lightbox__caption { grid-row: 2; padding-bottom: 16px; }
}

/* ---------- Revelado al hacer scroll (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* El hero aparece por sí solo al cargar (no depende del scroll) */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn 1s var(--ease) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .12s; }
.js .hero .reveal:nth-child(3) { animation-delay: .24s; }
.js .hero .reveal:nth-child(4) { animation-delay: .36s; }
/* Solo movimiento, sin ocultar: el texto se lee aunque la animación no llegue a ejecutarse */
@keyframes heroIn { from { transform: translateY(18px); } to { transform: none; } }
