/* Pages compartidos: subpáginas — Quiénes somos, Proyectos, Clientes, Contacto */

/* Header de subpágina: gran título y subhead editorial */
.page-header {
  padding-top: 180px;
  padding-bottom: clamp(80px, 12vw, 160px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  border-bottom: 1px solid var(--line);
  position: relative;
  background-image: url("assets/concrete-background-doble.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,241,234,0.34) 0%, rgba(244,241,234,0.28) 55%, rgba(244,241,234,0.96) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header__crumb {
  grid-column: 1 / -1;
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 64px;
}
.page-header__crumb .dot { width: 6px; height: 6px; background: #637865; display: inline-block; }
.page-header__title {
  grid-column: 1 / span 8;
  font-weight: 200;
  font-size: clamp(56px, 9.5vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.page-header__title em { font-style: normal; font-weight: 400; color: var(--olive); }
.page-header__intro {
  grid-column: 9 / -1;
  align-self: end;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 920px) {
  .page-header__title, .page-header__intro { grid-column: 1 / -1; }
  .page-header__intro { margin-top: 24px; }
  .page-header { padding-top: 140px; }
}

/* Long-form content pattern (Quiénes somos) */
.longform {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.longform__chap {
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: 3fr 8fr;
  column-gap: 64px;
  row-gap: clamp(70px, 10vw, 150px);
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.longform__chap:last-child { border-bottom: 1px solid var(--line); }
.longform__chap .num--top { grid-column: 1; grid-row: 1; }
.longform__chap-head { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 100px; }
.longform__chap-body { grid-column: 2; grid-row: 2; }
.longform__chap .num { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; }
.longform__chap h3 { font-weight: 300; font-size: 60px; line-height: 1.05; letter-spacing: -0.025em; color: #637865; max-width: 12ch; }
.longform__chap-body p { font-size: 17px; line-height: 1.6; margin-bottom: 20px; max-width: 60ch; }
.longform__chap-body p:first-child { font-size: 22px; font-weight: 500; line-height: 1.45; color: var(--ink); margin-bottom: 32px; }
.longform__figure { margin: calc(clamp(40px, 5vw, 72px) + 70px) calc(-1 * ((100vw - 2*var(--pad-x) - 352px)/12 + 32px + var(--pad-x))) 0 0; overflow: hidden; }
.longform__figure img { display: block; width: 100%; height: auto; will-change: transform; }
.longform__figpair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 5vw, 72px); margin-right: calc(-1 * ((100vw - 2*var(--pad-x) - 352px)/12 + 32px + var(--pad-x))); }
.longform__figpair figure { margin: 0; overflow: hidden; }
.longform__figpair img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; will-change: transform; }
@media (max-width: 560px) { .longform__figpair { grid-template-columns: 1fr; } }
@media (max-width: 920px) {
  .longform__chap { grid-column: 1 / -1; grid-template-columns: 1fr; row-gap: 24px; }
  .longform__chap .num--top { grid-row: auto; }
  .longform__chap-head { position: static; grid-row: auto; }
  .longform__chap-body { grid-column: 1; grid-row: auto; }
}

/* Banner imagen completa (Quiénes somos) */
.full-image {
  height: 80vh;
  min-height: 520px;
  position: relative;
}
.full-image .ph__img { will-change: transform; }
.full-image .ph { position: absolute; inset: 0; }
body[data-page="quienes-somos"] .full-image { height: 850px; min-height: 0; }

/* ===== Módulo Nuestros valores (Quiénes somos) ===== */
.values-section {
  position: relative;
  color: var(--paper);
  background-color: #2f3c40;
  background-image:
    linear-gradient(180deg, rgba(47,60,64,0.30) 0%, rgba(47,60,64,0.50) 55%, rgba(47,60,64,0.86) 100%),
    url("assets/concrete-estructura-background-f6d4f992.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: 0;
}
.values-section > * { position: relative; z-index: 1; }
.values-section .section-head__index { border-top-color: rgba(244,241,234,0.30); }
.values-section .section-head__index .num,
.values-section .section-head__index .label { color: rgba(244,241,234,0.62); }

/* Bloque intro: titular grande izq + copy arriba dcha */
.values-intro {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  column-gap: clamp(48px, 7vw, 130px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 92px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.values-intro__title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin: 0;
  max-width: 16ch;
}
.values-intro__copy {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244,241,234,0.66);
  margin: 6px 0 0;
  max-width: 42ch;
}

/* Valores grid */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(244,241,234,0.22);
}
.value {
  padding: clamp(40px, 4vw, 64px) clamp(28px, 2.4vw, 44px) clamp(80px, 11vw, 150px) clamp(28px, 2.4vw, 40px);
  border-right: 1px solid rgba(244,241,234,0.14);
}
.value:first-child { padding-left: 0; }
.value:last-child { border-right: 0; padding-right: 0; }
.value .num { font-family: var(--mono); font-size: 13px; font-weight: 300; letter-spacing: 0.2em; color: rgba(244,241,234,0.5); }
.value h4 { font-weight: 300; font-size: 30px; line-height: 1.05; margin: clamp(48px, 5vw, 80px) 0 18px; letter-spacing: -0.02em; color: var(--paper); }
.value p { font-size: 14px; line-height: 1.6; color: rgba(244,241,234,0.62); max-width: 24ch; }
@media (max-width: 920px) {
  .values-intro { grid-template-columns: 1fr; row-gap: 28px; }
  .values-intro__title { max-width: none; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(2) { border-right: 0; padding-right: 0; }
  .value:nth-child(3) { padding-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid rgba(244,241,234,0.14); }
  .value h4 { margin-top: 40px; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0; padding: 36px 0 8px; border-top: 1px solid rgba(244,241,234,0.14); }
  .value:first-child { border-top: 0; }
  .value h4 { margin-top: 36px; }
}

/* Proyectos: lista index ---------------------------------------- */
.project-index {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.proj-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 1fr 200px 40px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background 0.4s ease;
}
.proj-row:hover { background: var(--paper-2); }
.proj-row .num { font-family: var(--mono); font-size: 13px; font-weight: 300; letter-spacing: 0.18em; }
.proj-row .name { font-weight: 400; font-size: 28px; letter-spacing: -0.02em; }
.proj-row .loc, .proj-row .year, .proj-row .type { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.proj-row .arrow { font-family: var(--mono); font-size: 14px; }
.proj-row .peek {
  position: absolute;
  right: 80px;
  top: 50%;
  width: 240px; height: 160px;
  transform: translate(20px, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease;
  z-index: 4;
}
.proj-row:hover .peek { transform: translate(0, -50%) scale(1); opacity: 1; }
@media (max-width: 920px) {
  .proj-row { grid-template-columns: 40px 1fr 24px; gap: 16px; padding: 24px 0; }
  .proj-row .loc, .proj-row .year, .proj-row .type, .proj-row .peek { display: none; }
  .proj-row .name { font-size: 20px; }
}

/* Ficha de proyecto ----------------------------------------- */
.project-detail {
  padding: clamp(60px, 8vw, 120px) var(--pad-x) clamp(80px, 12vw, 160px);
  border-bottom: 1px solid var(--line);
}
.project-detail__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  margin-bottom: 64px;
}
.project-detail__num {
  grid-column: 1 / span 2;
  font-family: var(--mono); font-size: 13px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase;
}
.project-detail__title {
  grid-column: 3 / span 9;
  font-weight: 300; font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95; letter-spacing: -0.035em;
}
.project-detail__subtitle {
  grid-column: 3 / span 9;
  margin-top: 18px;
  font-size: 18px; color: var(--ink-soft); max-width: 60ch;
}
.project-detail__hero {
  display: grid; grid-template-columns: 8fr 4fr;
  gap: var(--gutter);
  margin-bottom: 80px;
}
.project-detail__hero .ph { aspect-ratio: 16/10; }
.project-detail__hero .stack { display: grid; gap: var(--gutter); }
.project-detail__hero .stack .ph { aspect-ratio: 4/5; }
.project-detail__hero .stack .ph:last-child { aspect-ratio: 16/10; }

.project-detail__body {
  display: grid; grid-template-columns: 4fr 8fr; gap: 64px;
  margin-top: 48px;
}
.project-detail__data {
  display: grid; gap: 18px;
  align-content: start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.project-detail__data dt { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 18px; }
.project-detail__data dt:first-child { margin-top: 18px; }
.project-detail__data dd { font-size: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.project-detail__text p { font-size: 17px; line-height: 1.65; margin-bottom: 18px; max-width: 62ch; }
.project-detail__text p:first-child { font-size: 21px; font-weight: 300; line-height: 1.45; margin-bottom: 28px; }

@media (max-width: 920px) {
  .project-detail__num, .project-detail__title, .project-detail__subtitle { grid-column: 1 / -1; }
  .project-detail__hero { grid-template-columns: 1fr; }
  .project-detail__body { grid-template-columns: 1fr; gap: 36px; }
}

/* Clientes ---------------------------------------- */
.client-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  gap: var(--gutter);
  align-items: start;
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.client-row:last-child { border-bottom: 1px solid var(--line); }
.client-row .num { font-family: var(--mono); font-size: 18px; font-weight: 300; letter-spacing: 0.12em; color: #637865; align-self: start; }
.client-row .arrow { font-family: var(--mono); font-size: 14px; justify-self: end; align-self: end; }
.client-row h3 { font-weight: 300; font-size: clamp(36px, 4.5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.client-row p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 50ch; }
.client-row .pill { margin-top: 32px; }
@media (max-width: 920px) {
  .client-row { grid-template-columns: 40px 1fr; gap: 20px; padding: 36px 0; }
  .client-row p { grid-column: 2; }
  .client-row .arrow { display: none; }
}

/* Contacto ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 80px;
  align-items: start;
}
.contact-info { display: grid; gap: 48px; padding-top: 8px; }
.contact-info h4 { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.contact-info .big { font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.contact-info .big a { transition: color 0.25s ease; }
.contact-info .big a:hover { color: var(--olive); }
.contact-info .meta { font-size: 16px; line-height: 1.55; }

.contact-form { display: grid; gap: 28px; padding-top: 8px; }
.field { display: grid; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  background: transparent;
  border: 0; outline: none;
  padding: 8px 0;
  font-size: 18px; color: var(--ink);
  font-family: var(--sans);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .actions { display: flex; justify-content: flex-end; align-items: center; padding-top: 12px; gap: 24px; }
.contact-form.is-sent .btn { background: var(--olive); border-color: var(--olive); }
.contact-form .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Toast de confirmacion del formulario de contacto */
.toast {
  position: fixed;
  left: 50%;
  top: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 320px;
  max-width: min(90vw, 480px);
  padding: 22px 28px;
  background: var(--ink);
  color: var(--paper);
  border-left: 5px solid var(--olive);
  box-shadow: 0 24px 60px rgba(20, 24, 25, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.toast.is-error { border-left-color: #9c4a3c; }
.toast__icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
}
.toast.is-error .toast__icon { background: #9c4a3c; }
.toast__text { font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.4; }

@media (max-width: 560px) {
  .toast { left: 16px; right: 16px; top: 16px; transform: translateY(-16px) scale(0.97); min-width: 0; max-width: none; }
  .toast.is-visible { transform: translateY(0) scale(1); }
}

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
}

/* Pager-nav: navegación entre fichas de proyecto */
.pager-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pager-nav__side {
  display: grid;
  gap: 14px;
  padding: 48px 32px 56px;
  background: var(--paper);
  transition: background 0.4s ease;
  align-content: end;
  min-height: 200px;
}
.pager-nav__side:hover { background: var(--paper-2); }
.pager-nav__index { text-align: center; align-content: center; }
.pager-nav__next { text-align: right; }
.pager-nav__dir {
  font-family: var(--mono); font-size: 12px; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.pager-nav__num {
  font-family: var(--mono); font-size: 11px; font-weight: 300;
  letter-spacing: 0.18em; color: var(--ink-soft);
}
.pager-nav__name {
  font-weight: 300; font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.pager-nav__icon { font-size: 28px; color: var(--ink-soft); margin: 4px 0; }
@media (max-width: 820px) {
  .pager-nav { grid-template-columns: 1fr; }
  .pager-nav__next, .pager-nav__index { text-align: left; align-content: end; }
}

/* Stickers / pill tags */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #637865;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.pill .dot { width: 6px; height: 6px; background: #637865; border-radius: 50%; display: inline-block; }

/* Botón de envío con el estilo del CTA del menú ("Iniciar un proyecto") */
.btn.btn--contacto {
  background: #637865;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 16px 22px;
  justify-content: center;
  min-width: 235px;
}
.btn.btn--contacto:hover { background: #4a5a4c; border-color: #4a5a4c; color: #ffffff; }

/* ===== CTA 50/50 (fichas de proyecto) — replica de la home ===== */
.cta-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(440px, 52vh, 600px);
  overflow: hidden;
}
.cta-section .cta-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5vw, 72px) clamp(40px, 5vw, 88px) clamp(96px, 13vh, 140px) var(--pad-x);
}
.cta-section .cta-left .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.cta-section .cta-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-top: clamp(22px, 3vw, 34px);
}
.cta-section .cta-right { position: relative; overflow: hidden; }
.cta-section .cta-img {
  position: absolute;
  left: 0; right: 0;
  top: -14%; bottom: -14%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.cta-section .cta-contact__big {
  font-weight: 200;
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.cta-section .cta-contact__big .it { color: var(--olive); font-weight: 400; font-style: normal; }
.cta-section .cta-bar {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(34px, 6vh, 64px);
  background: #637865;
  border: 1px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  z-index: 5;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cta-section .cta-bar:hover { background: #4a5a4c; border-color: #4a5a4c; }
.cta-section .cta-bar__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cta-section .cta-bar__arrows {
  position: absolute;
  top: 50%;
  right: clamp(22px, 3vw, 44px);
  transform: translateY(-50%);
  width: clamp(130px, 16vw, 220px);
  height: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.cta-section .cta-bar__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: ctaMarch 4.5s linear infinite;
}
.cta-section .cta-arrow {
  width: 26px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
@media (max-width: 920px) {
  .cta-section { grid-template-columns: 1fr; min-height: 0; }
  .cta-section .cta-left { justify-content: flex-start; padding: clamp(48px,12vw,72px) var(--pad-x) 0; }
  .cta-section .cta-right { height: 60vw; min-height: 300px; }
  .cta-section .cta-bar { position: static; left: auto; right: auto; width: 100%; margin: 0; }
}

/* ===== CTA banner pre-footer (Quiénes somos) ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 64vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  color: var(--paper);
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  will-change: transform;
}
.cta-banner__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20,26,28,0.86) 0%, rgba(20,26,28,0.62) 38%, rgba(20,26,28,0.28) 70%, rgba(20,26,28,0.12) 100%);
}
.cta-banner__inner {
  padding: clamp(48px, 6vw, 96px) var(--pad-x) clamp(120px, 16vh, 180px);
}
.cta-banner .section-head__index { border-top-color: rgba(244,241,234,0.32); }
.cta-banner .section-head__index .num,
.cta-banner .section-head__index .label { color: rgba(244,241,234,0.7); }
.cta-banner .cta-contact__big {
  font-weight: 200;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: clamp(28px, 4vw, 56px) 0 0;
}
.cta-banner .cta-contact__big .it { color: #9fb0a2; font-weight: 400; font-style: normal; }
.cta-banner__copy {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244,241,234,0.74);
  max-width: 40ch;
  margin-top: clamp(24px, 3vw, 40px);
}

/* Botón olive con flechas en marcha (igual que la home) */
.cta-banner .cta-bar {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(40px, 7vh, 80px);
  background: #637865;
  border: 1px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  z-index: 5;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cta-banner .cta-bar:hover { background: #4a5a4c; border-color: #4a5a4c; }
.cta-banner .cta-bar__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cta-banner .cta-bar__arrows {
  position: absolute;
  top: 50%;
  right: clamp(22px, 3vw, 44px);
  transform: translateY(-50%);
  width: clamp(130px, 16vw, 220px);
  height: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.cta-banner .cta-bar__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: ctaMarch 4.5s linear infinite;
}
.cta-banner .cta-arrow {
  width: 26px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
@keyframes ctaMarch {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner .cta-bar__track { animation: none; }
}

/* Grano en figuras del longform y banner CTA (Quiénes somos) */
.longform__figure, .longform__figpair figure, .cta-banner { position: relative; }
.longform__figure::after,
.longform__figpair figure::after,
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.42;
}
.cta-banner__veil, .cta-banner__inner { z-index: 2; }
/* Banner de imagen completa: alto adaptativo para no sobre-recortar */
@media (max-width: 1100px) {
  body[data-page="quienes-somos"] .full-image { height: 60vw; max-height: 620px; }
}
@media (max-width: 640px) {
  body[data-page="quienes-somos"] .full-image { height: 66vw; min-height: 300px; }
}

/* CTA sobre foto clara: velo más denso para mantener el contraste del titular */
.cta-banner--light-photo .cta-banner__veil {
  background: linear-gradient(90deg, rgba(20,26,28,0.88) 0%, rgba(20,26,28,0.72) 38%, rgba(20,26,28,0.58) 70%, rgba(20,26,28,0.48) 100%);
}

/* Grano en las figuras del longform */
.longform__figure, .longform__figpair figure { position: relative; overflow: hidden; }

/* ============================================================
   Galería editorial + lightbox (ficha de proyecto)
   ============================================================ */
.gallery-section { padding-top: clamp(40px, 6vw, 80px); }
.gal-carousel { position: relative; margin-top: 40px; }
.gal-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track .gal-item { flex: 0 0 calc((100% - 20px) / 3); scroll-snap-align: start; }
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(47,60,64,0.22); border-radius: 50%;
  background: rgba(244,241,234,0.92); color: var(--ink); cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background .3s ease, opacity .3s ease;
}
.gal-arrow:hover { background: #637865; border-color: #637865; color: #fff; }
.gal-arrow[disabled] { opacity: 0; pointer-events: none; }
.gal-arrow--prev { left: -18px; }
.gal-arrow--next { right: -18px; }
.gal-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.gal-item {
  position: relative; display: block; overflow: hidden; padding: 0; border: 0; cursor: pointer;
  background: var(--paper-2); aspect-ratio: 3 / 2; grid-column: span 1;
}
.gal-item--wide { grid-column: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease; }
.gal-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(20,26,28,0.66) 100%);
  opacity: 0; transition: opacity 0.45s ease;
}
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.045); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-item__meta {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: baseline; gap: 12px; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.gal-item:hover .gal-item__meta, .gal-item:focus-visible .gal-item__meta { opacity: 1; transform: translateY(0); }
.gal-item__num { font-family: var(--mono); font-size: 11px; font-weight: 300; letter-spacing: 0.18em; color: rgba(244,241,234,0.6); flex-shrink: 0; }
.gal-item__cap { display: none; }
.gal-item:focus-visible { outline: 1px solid #637865; outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(16, 20, 22, 0.94); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; gap: 18px; max-width: min(1240px, 90vw); max-height: 86vh; }
.lightbox__img { max-width: 100%; max-height: 74vh; object-fit: contain; display: block; margin: 0 auto; transition: opacity 0.25s ease; }
.lightbox__img.is-loading { opacity: 0.62; }
.lightbox__bar { display: flex; justify-content: flex-end; align-items: baseline; gap: 24px; padding-top: 2px; }
.lightbox__cap { display: none; }
.lightbox__count { font-family: var(--mono); font-size: 11px; font-weight: 300; letter-spacing: 0.18em; color: rgba(244,241,234,0.5); flex-shrink: 0; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 3; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border: 1px solid rgba(244,241,234,0.2); border-radius: 50%;
  background: transparent; color: rgba(244,241,234,0.8); cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; border-color: rgba(244,241,234,0.6); background: rgba(244,241,234,0.07); }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 26px; }
.lightbox__next { right: 26px; }
.lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 1100px) {
  .gal-track .gal-item { flex-basis: calc((100% - 10px) / 2); }
  .gal-arrow--prev { left: 8px; }
  .gal-arrow--next { right: 8px; }
}
@media (max-width: 820px) {
  .gal-track { gap: 8px; }
  .gal-track .gal-item { flex-basis: 82%; }
  .gal-arrow { width: 44px; height: 44px; }
  .gal-item__meta { opacity: 1; transform: none; }
  .gal-item::after { opacity: 1; }
  .lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: 14px; }
  .lightbox__next { right: 14px; }
  .lightbox__stage { max-width: 94vw; }
  .lightbox__bar { flex-direction: column; gap: 6px; align-items: flex-start; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .gal-item img, .gal-item__meta, .gal-item::after, .lightbox { transition: none; }
  .gal-track { scroll-behavior: auto; }
}
