/* ==========================================================================
   Dourojeanni & Asociados — hoja de estilos
   Tipografías: Archivo (títulos) · Manrope (texto)
   ========================================================================== */

:root {
  --ink:        #0B0F14;
  --ink-2:      #12161B;
  --ink-3:      #05080B;
  --ink-hover:  #131A22;
  --gold:       #D9A227;
  --gold-dark:  #B4841F;
  --gold-deep:  #8E6714;
  --bg:         #F6F5F2;
  --bg-soft:    #FBFAF7;
  --white:      #FFFFFF;
  --line:       #E6E2D9;
  --line-2:     #E1DDD3;
  --line-3:     #D3CDC0;
  --text:       #43484E;
  --text-2:     #4A5057;
  --muted:      #5A6067;
  --muted-2:    #6B7178;
  --header-h:   76px;
  --pad-x:      clamp(20px, 4vw, 56px);
  --pad-y:      clamp(72px, 9vw, 130px);
  --maxw:       1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #1B1E22;
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3 {
  font-family: Archivo, system-ui, sans-serif;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }
.gold { color: var(--gold); }
.gold-dark { color: var(--gold-dark); }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 15, 20, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 162, 39, .28);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { object-fit: contain; display: block; }
.brand-text { display: grid; gap: 1px; line-height: 1; }
.brand-name {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: .06em; color: #fff;
}
.brand-sub {
  font-family: Archivo, sans-serif; font-weight: 500; font-size: 10.5px;
  letter-spacing: .3em; color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-nav a {
  color: rgba(255, 255, 255, .72);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--ink);
  padding: 11px 20px;
  font-weight: 700;
  letter-spacing: .09em;
  border-bottom: 0;
  transition: background .2s ease;
}
.site-nav .nav-cta:hover { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .28);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 150px var(--pad-x) 0;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink-3) 0%, rgba(5,8,11,.94) 34%, rgba(5,8,11,.45) 62%, rgba(5,8,11,.15) 100%);
  opacity: .88;
}
.hero-inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; }

.hero-copy {
  max-width: 760px;
  padding-bottom: clamp(48px, 7vw, 86px);
  animation: rise .7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 26px;
}
.hero-lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .76);
  max-width: 580px;
  margin: 0 0 38px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.stat { padding: 26px; border-right: 1px solid rgba(255, 255, 255, .1); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num {
  display: block;
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 34px;
  color: var(--gold); line-height: 1;
}
.stat-label {
  display: block; margin-top: 8px;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* --------------------------------------------------------------- botones -- */

.btn {
  display: inline-block;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 17px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.34); color: #fff; font-weight: 600; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--outline-dark {
  border-color: #C9C3B6; color: var(--ink-2);
  font-weight: 600; font-size: 12.5px; letter-spacing: .1em; padding: 13px 24px;
  margin-left: auto;
}
.btn--outline-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--outline-light {
  border-color: rgba(255,255,255,.34); color: #fff;
  font-weight: 600; font-size: 13px; letter-spacing: .1em; padding: 15px 28px;
  margin-left: auto;
}
.btn--outline-light:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* -------------------------------------------------------------- secciones -- */

.section { padding: var(--pad-y) var(--pad-x); scroll-margin-top: var(--header-h); }
.section--bg { background: var(--bg); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #fff; }
.section--darker { background: var(--ink-2); color: #fff; padding-bottom: clamp(72px, 9vw, 120px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-family: Archivo, sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow .rule { width: 40px; height: 2px; background: var(--gold); flex: 0 0 auto; }
.hero .eyebrow {
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: .22em;
  margin-bottom: 26px;
}
.hero .eyebrow .rule { width: 54px; }

.section h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06;
  margin: 0 0 28px;
  color: var(--ink-2);
}
.section--dark h2, .section--darker h2, .contact h2 { color: #fff; }
.h2--narrow { max-width: 620px; }
.h2--tight { margin-bottom: 36px; }
.h2--contact { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; max-width: 520px; margin-bottom: 30px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-bottom: 54px;
}
.section-head h2 { margin: 0; }
.section-intro { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 420px; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
.split--center { align-items: center; }
.split--top { align-items: start; }

.prose { display: grid; gap: 20px; font-size: 16.5px; line-height: 1.72; color: var(--text); max-width: 560px; margin: 0 0 34px; }
.prose p { margin: 0; }

/* ------------------------------------------------------------- nosotros -- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 34px 0 0; padding: 0; }
.chips li {
  border: 1px solid #D8D3C8; background: #fff; padding: 9px 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #4A4F55;
}

.figure-card { position: relative; margin: 0; }
.figure-card img {
  width: 100%; height: clamp(380px, 44vw, 600px);
  object-fit: cover; display: block;
}
.figure-card figcaption {
  position: absolute; bottom: -1px; left: -1px;
  background: var(--ink); color: #fff;
  padding: 26px 30px; max-width: 300px;
  border-top: 3px solid var(--gold);
  display: grid; gap: 6px;
}
.figure-card strong { font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.figure-card span { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.62); }

/* --------------------------------------------------------------- perfil -- */

.architect { align-items: start; }
.architect-id { max-width: 420px; }
.architect-id img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center center;
  display: block; padding-top: 0;
  background: #1B2129; border-top: 3px solid var(--gold);
}
.architect-name {
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.01em;
  margin: 26px 0 12px;
}
.architect-title {
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 13.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0;
}
.architect-role { font-size: 14.5px; color: rgba(255,255,255,.55); margin: 8px 0 0; }

.prose--dark { color: rgba(255,255,255,.72); max-width: 620px; margin-bottom: 0; }

.credentials {
  margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
}
.credentials > div {
  background: var(--ink-2); padding: 24px 22px 26px;
  display: grid; gap: 8px; align-content: start;
}
.credentials dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.credentials dd { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); }

/* ------------------------------------------------------- tarjetas de svc -- */

/* ------------------------------------------------------- tarjetas de svc -- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-cards--alt { background: var(--line-2); border-color: var(--line-2); }

.card { background: #fff; display: flex; flex-direction: column; transition: background .2s ease; }
.card:hover { background: var(--bg-soft); }
.card > img { width: 100%; height: 195px; object-fit: cover; display: block; background: #EDEAE3; }
.card-body { padding: 30px 28px 34px; display: grid; gap: 18px; align-content: start; }
.card-body h3 {
  display: flex; align-items: baseline; gap: 12px;
  font-weight: 700; font-size: 18.5px; line-height: 1.25;
  letter-spacing: .01em; margin: 0; color: var(--ink-2);
  text-transform: uppercase;
}
.card-body .num { font-weight: 700; font-size: 12px; color: var(--gold); letter-spacing: .1em; }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; color: var(--text-2); }
.bullets li { display: flex; gap: 11px; }
.bullets li::before { content: "·"; color: var(--gold); font-weight: 700; }

.note { margin: 14px 0 0; font-size: 12px; letter-spacing: .06em; color: #9A9BA0; }

.bar {
  margin-top: 22px;
  border: 1px solid var(--line-2); background: #fff;
  padding: 24px 28px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.bar-label { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.bar-text { font-size: 15px; color: var(--text-2); }

/* -------------------------------------------------------- llave en mano -- */

.lead-dark { font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.7); max-width: 480px; margin: 0 0 40px; }
.turnkey-img {
  width: 100%; height: clamp(260px, 26vw, 360px);
  object-fit: cover; display: block; border-top: 3px solid var(--gold);
}

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
  counter-reset: step;
}
.steps li {
  background: var(--ink); padding: 28px 24px 30px;
  display: grid; gap: 10px; align-content: start;
  transition: background .2s ease;
}
.steps li:hover { background: var(--ink-hover); }
.steps li.is-final { background: var(--ink-hover); border-left: 2px solid var(--gold); }
.step-num { font-family: Archivo, sans-serif; font-weight: 800; font-size: 13px; color: var(--gold); letter-spacing: .14em; margin-bottom: 6px; }
.step-title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.step-text { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.55); }

/* ----------------------------------------------------------------- ITSE -- */

.tall-img { width: 100%; height: clamp(400px, 46vw, 620px); object-fit: cover; display: block; }

.prose--single { display: block; margin-bottom: 40px; max-width: 540px; }

.itse-media { position: relative; margin: 0; padding-bottom: 56px; }
.itse-media > img {
  width: 100%; height: clamp(420px, 48vw, 640px);
  object-fit: cover; display: block;
}
.itse-flag {
  position: absolute; top: 0; right: 0;
  background: var(--gold); color: var(--ink);
  padding: 10px 16px;
  font-family: Archivo, sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.itse-media figcaption {
  position: absolute; bottom: 0; left: 0; right: clamp(24px, 10%, 90px);
  background: var(--ink); color: #fff;
  padding: 26px 30px 28px;
  border-top: 3px solid var(--gold);
  display: grid; gap: 8px;
}
.itse-media figcaption strong {
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: clamp(20px, 2vw, 26px); letter-spacing: .02em; line-height: 1.15;
}
.itse-media figcaption span { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.62); }

.list-label {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 6px;
}
.list-label span {
  font-family: Archivo, sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.list-label::after { content: ""; flex: 1; height: 1px; background: #DCD7CB; }

.checklist {
  list-style: none; margin: 0 0 38px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  column-gap: clamp(24px, 3vw, 44px);
}
.checklist li {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #E4E0D6;
  font-size: 15px; line-height: 1.45; color: #33383E;
}
.checklist li::before {
  content: "✓";
  flex: 0 0 auto; width: 21px; height: 21px; margin-top: 1px;
  background: var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); font-size: 11px; font-weight: 800;
}

.callout {
  background: var(--ink); color: #fff;
  padding: clamp(28px, 3vw, 36px) clamp(28px, 3vw, 38px);
  margin: 0;
  border-top: 3px solid var(--gold);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.callout p {
  margin: 0; flex: 1 1 260px;
  font-family: Archivo, sans-serif;
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.45; font-weight: 600;
  letter-spacing: -.005em;
}
.btn--sm { font-size: 12.5px; letter-spacing: .1em; padding: 15px 26px; white-space: nowrap; }

/* ------------------------------------------------------------- facility -- */

.tile-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.tile-grid li {
  background: var(--bg-soft); padding: 22px 18px;
  font-size: 14.5px; font-weight: 600; color: #33383E;
  min-height: 96px; display: flex; align-items: flex-end;
  transition: background .2s ease, color .2s ease;
}
.tile-grid li:hover { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ proyectos -- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--line-3);
  background: transparent; color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { position: relative; overflow: hidden; background: var(--ink); margin: 0; }
.project[hidden] { display: none; }
.project img {
  width: 100%; height: 268px; object-fit: cover; display: block;
  opacity: .92; transition: transform .55s ease, opacity .35s ease;
}
.project:hover img { transform: scale(1.05); opacity: 1; }
.project-label {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 22px 20px;
  background: linear-gradient(0deg, rgba(5,8,11,.92) 0%, rgba(5,8,11,.55) 62%, transparent 100%);
  pointer-events: none;
  display: grid; gap: 7px;
}
.project-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.project-name { font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .01em; color: #fff; }

.experience-bar {
  margin-top: 26px;
  background: var(--ink); color: #fff;
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 3.4vw, 44px);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap;
  border-top: 3px solid var(--gold);
}
.experience-num { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; color: var(--gold); }
.experience-bar strong {
  display: block;
  font-family: Archivo, sans-serif; font-weight: 700;
  font-size: clamp(17px, 1.7vw, 22px); letter-spacing: .04em; text-transform: uppercase;
}
.experience-bar div span {
  display: block; margin-top: 6px;
  font-size: 14.5px; color: rgba(255,255,255,.6);
  letter-spacing: .06em; text-transform: uppercase;
}

/* --------------------------------------------------------------- galería -- */

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, 14vw);
  gap: 10px;
}

.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  z-index: 2;
}

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 3; }
.gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 3; }
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(6),
.gallery-item:nth-child(7) { grid-column: span 6; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.1);
}

.gallery-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 20px 18px;
  background: linear-gradient(0deg, rgba(5,8,11,.92) 0%, rgba(5,8,11,.55) 62%, transparent 100%);
  pointer-events: none;
  display: grid;
  gap: 7px;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.gallery-item:hover .gallery-label,
.gallery-item:focus-visible .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-name {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.35vw, 17px);
  letter-spacing: .01em;
  color: #fff;
  line-height: 1.25;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vw, 80px) clamp(16px, 4vw, 72px) clamp(72px, 9vw, 96px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 11, .92);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1120px, 100%);
  max-height: 100%;
  display: grid;
  justify-items: center;
  gap: 16px;
  transform: translateY(14px) scale(.985);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.lightbox.is-open .lightbox-stage {
  transform: translateY(0) scale(1);
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  border: 1px solid rgba(217, 162, 39, .22);
  background: var(--ink-2);
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 18px;
  text-align: center;
  max-width: 640px;
}

.lightbox-counter {
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox-alt {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  color: #fff;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  font-size: 28px;
  line-height: 1;
}

.lightbox-close:hover { border-color: rgba(217, 162, 39, .55); color: var(--gold); }

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  font-size: 34px;
  line-height: 1;
  padding-bottom: 4px;
}

.lightbox-nav:hover { border-color: rgba(217, 162, 39, .55); color: var(--gold); }
.lightbox-nav--prev { left: clamp(10px, 2vw, 28px); }
.lightbox-nav--next { right: clamp(10px, 2vw, 28px); }

body.lightbox-open { overflow: hidden; }

/* ------------------------------------------------------------- clientes -- */

.logo-marquee {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246,245,242,.65) 0%, #fff 40%, #fff 60%, rgba(246,245,242,.65) 100%);
  padding: 28px 0;
}

.logo-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 10vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.logo-marquee__fade--left {
  left: 0;
  background: linear-gradient(90deg, #fff 10%, transparent 100%);
}

.logo-marquee__fade--right {
  right: 0;
  background: linear-gradient(270deg, #fff 10%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: logo-scroll 42s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee__list {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-marquee__item {
  flex: 0 0 auto;
  width: clamp(176px, 21vw, 240px);
  height: 118px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(11, 15, 20, .03);
  transition: border-color .3s ease, box-shadow .3s ease, transform .35s ease;
}

.logo-marquee__item:hover {
  border-color: rgba(217, 162, 39, .55);
  box-shadow: 0 10px 28px rgba(11, 15, 20, .08);
  transform: translateY(-2px);
}

.logo-marquee__item img {
  max-width: 100%;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: .72;
  transition: filter .35s ease, opacity .35s ease;
}

.logo-marquee__item:hover img {
  filter: none;
  opacity: 1;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    justify-content: center;
    padding: 0 var(--pad-x);
    gap: 14px;
  }
  .logo-marquee__list:last-child { display: none; }
  .logo-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 14px;
  }
}

/* ----------------------------------------------------------- por qué -- */

.reasons {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
}
.reasons li {
  background: var(--ink-2); padding: 32px 26px 36px;
  display: grid; gap: 14px; align-content: start;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.35;
  transition: background .2s ease;
}
.reasons li:hover { background: #1B2129; }
.reasons .num { font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--gold); }

/* ------------------------------------------------------------- contacto -- */

.contact { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 0 var(--pad-x); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.contact-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--ink-3) 0%, rgba(5,8,11,.96) 44%, rgba(5,8,11,.62) 72%, rgba(5,8,11,.3) 100%);
}
.contact-inner { position: relative; padding: var(--pad-y) 0; }

.contact-data {
  display: grid; gap: 1px; margin: 0;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14);
  max-width: 480px;
}
.contact-data > div {
  background: rgba(11,15,20,.6); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.contact-data dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); min-width: 88px;
}
.contact-data dd { margin: 0; font-size: 15.5px; color: rgba(255,255,255,.86); }
.contact-data dd a { color: rgba(255,255,255,.86); }
.contact-data dd a:hover { color: var(--gold); }

.form-card {
  background: var(--bg); color: #1B1E22;
  padding: clamp(28px, 3.2vw, 42px);
  border-top: 3px solid var(--gold);
}
#quote-form { display: grid; gap: 18px; }
.form-head h3 { font-weight: 800; font-size: clamp(20px, 2vw, 26px); margin: 0 0 6px; color: var(--ink-2); }
.form-head p { margin: 0; font-size: 14.5px; color: var(--muted-2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; }
label > span {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2);
}
input, select, textarea {
  border: 1px solid var(--line-3); background: #fff;
  padding: 13px 14px;
  font-family: Manrope, sans-serif; font-size: 15px; color: #1B1E22;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 162, 39, .18);
}
input:invalid:not(:placeholder-shown) { border-color: #C0563E; }

.btn--submit {
  background: var(--ink); color: #fff; border: none;
  font-size: 13.5px; letter-spacing: .1em; padding: 18px 26px; margin-top: 4px;
  width: 100%;
}
.btn--submit:hover { background: var(--gold); color: var(--ink); }

.form-success { display: grid; gap: 16px; justify-items: start; padding: 30px 0; }
.form-success[hidden] { display: none; }
.form-success .check {
  width: 52px; height: 52px;
  border: 2px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-dark); font-size: 22px;
}
.form-success h3 { font-weight: 800; font-size: 26px; margin: 0; color: var(--ink-2); }
.form-success p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.btn--reset {
  background: none; border: 1px solid #C9C3B6; color: var(--text-2);
  font-weight: 600; font-size: 12.5px; letter-spacing: .1em; padding: 13px 22px; margin-top: 8px;
}
.btn--reset:hover { border-color: var(--ink-2); color: var(--ink-2); }

/* --------------------------------------------------------------- footer -- */

.site-footer { background: var(--ink-3); color: rgba(255,255,255,.6); padding: 48px var(--pad-x); }
.footer-inner {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap; justify-content: space-between;
}
.brand--footer span {
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 12.5px;
  letter-spacing: .26em; color: rgba(255,255,255,.82);
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav a { color: rgba(255,255,255,.55); }
.footer-nav a:hover { color: var(--gold); }
.copyright { margin: 0; font-size: 12.5px; letter-spacing: .04em; }
.powered-by {
  margin: 28px auto 0;
  max-width: var(--maxw);
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.38);
}
.powered-by a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,162,39,.35);
}
.powered-by a:hover { color: var(--gold); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1180px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .gallery-collage { grid-auto-rows: minmax(130px, 18vw); }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) {
    grid-column: span 6;
    grid-row: span 2;
  }
  .gallery-item:nth-child(1) { grid-row: span 3; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: rgba(11, 15, 20, .98);
    border-bottom: 1px solid rgba(217, 162, 39, .28);
    padding: 8px var(--pad-x) 22px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .nav-cta { text-align: center; margin-top: 14px; padding: 15px 20px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-left: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:first-child { padding-left: 26px; }
  .stat:nth-child(2n) { border-right: 0; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .split--center .tall-img,
  .split--center .figure-card img { height: clamp(300px, 60vw, 460px); }
  .contact-inner { padding-bottom: clamp(56px, 9vw, 110px); }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .itse-media { padding-bottom: 0; }
  .itse-media figcaption { position: static; right: auto; }
  .grid-cards, .projects, .reasons, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .btn--outline-dark, .btn--outline-light { margin-left: 0; }
  .bar { flex-direction: column; align-items: flex-start; }
  .figure-card figcaption { position: static; max-width: none; }
  .hero { min-height: 0; padding-top: 120px; }
  .hero-copy { padding-bottom: 44px; }
  .gallery-collage {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 148px;
    gap: 8px;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) {
    grid-row: span 1;
  }
  .gallery-label {
    opacity: 1;
    transform: none;
    padding: 16px 14px 14px;
  }
  .logo-marquee { padding: 20px 0; }
  .logo-marquee__item {
    width: 160px;
    height: 100px;
    padding: 8px 10px;
  }
  .logo-marquee__item img { max-height: 64px; }
  .lightbox {
    padding: 72px 12px 88px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
  .lightbox-nav--prev { left: 6px; }
  .lightbox-nav--next { right: 6px; }
  .lightbox-img { max-height: 68vh; }
}

/* ------------------------------------------------------- WhatsApp float -- */

.wa-float {
  --wa: #075e54;
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 10px 28px rgba(7, 94, 84, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  background: #054c44;
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 14px 32px rgba(7, 94, 84, 0.42),
    0 2px 0 rgba(0, 0, 0, 0.14);
}

.wa-float:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

body.lightbox-open .wa-float {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .wa-float {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 18px;
  }

  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}

@media print {
  .site-header, .nav-toggle, .filters, .btn, .wa-float { display: none !important; }
  body { background: #fff; }
}
