:root {
  --paper: #f7f4ee;
  --paper-2: #f0ece2;
  --ink: #17170f;
  --muted: #726f62;
  --line: #e2ddd0;
  --green: #0a9f5c;
  --green-deep: #07713f;
  --green-bright: #00f07a;
  --card: #ffffff;
  --display: "Fraunces", serif;
  --body: "Work Sans", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* photographic treatment: grayscale -> color on hover, the visual signature that unifies stock photography under one identity */
.photo {
  position: relative;
  overflow: hidden;
  background: #111;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
  transition:
    filter 0.6s ease,
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.photo:hover img {
  filter: grayscale(0);
  transform: scale(1.07);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 159, 92, 0) 55%,
    rgba(10, 159, 92, 0.18) 100%
  );
  pointer-events: none;
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition:
    background 0.3s ease,
    padding 0.3s ease;
}
header.scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 8px 10px;
  border-radius: 10px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  grid-template-rows: repeat(4, 5px);
  gap: 1.5px;
}
.bm {
  width: 5px;
  height: 5px;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14.5px;
  color: var(--ink);
}
@media (max-width: 840px) {
  .nav-links {
    display: none;
  }

  nav {
    max-width: 100vw;
    margin: 0 0;
    padding: 0 10px;
  }
}
.nav-cta {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: 100px;
}
.nav-cta:hover {
  background: var(--green-deep);
  color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
}
.hero .photo {
  position: absolute;
  inset: 0;
}
.hero .photo img {
  filter: grayscale(0) contrast(1.02) brightness(0.94);
  transform: scale(1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 10, 0.15) 0%,
    rgba(15, 15, 10, 0.05) 35%,
    rgba(15, 15, 10, 0.65) 100%
  );
}
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 40px 70px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--display);
  color: #fdfcf8;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  max-width: 820px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-bright);
}
.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-sub p {
  color: #e8e6dd;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-solid {
  background: var(--green-bright);
  color: #0b1f13;
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px 26px;
  border-radius: 100px;
}
.btn-solid:hover {
  background: #fff;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 15px 24px;
  border-radius: 100px;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 28px;
  z-index: 2;
  color: #e8e6dd;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.5);
}
@media (max-width: 760px) {
  .scroll-cue {
    display: none;
  }

  .hero {
    min-width: 100vw;
    position: relative;
    height: 100vh;
    min-height: 640px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 15px;
  }
}

/* ---------- SECTION GENERIC ---------- */
section {
  padding: 130px 0;
}
.kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-head {
  max-width: 640px;
  margin-bottom: 70px;
}
.section-head p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  margin-top: 20px;
}

/* ---------- SERVICIOS: alternating editorial rows ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.svc-row:last-child {
  border-bottom: 1px solid var(--line);
}
.svc-row:nth-child(even) {
  direction: rtl;
}
.svc-row:nth-child(even) > * {
  direction: ltr;
}
.svc-photo {
  aspect-ratio: 5/4;
  border-radius: 2px;
}
.svc-index {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}
.svc-row h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.svc-row p.desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 22px;
}
.svc-link {
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-deep);
  border-bottom: 1px solid var(--green-deep);
  padding-bottom: 2px;
}
@media (max-width: 840px) {
  .svc-row,
  .svc-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
}

/* ---------- ANTES / DESPUES SIGNATURE SLIDER ---------- */
.transform-section {
  background: var(--ink);
  color: var(--paper);
  padding: 130px 0;
}
.transform-section .kicker {
  color: var(--green-bright);
}
.transform-section h2 {
  color: #fdfcf8;
}
.transform-section .section-head p {
  color: #c7c4b7;
}
.ba-wrap {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 640px;
  border-radius: 2px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}
.ba-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-after {
  z-index: 1;
}
.ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-tag {
  position: absolute;
  top: 22px;
  z-index: 3;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(10, 10, 8, 0.55);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.ba-tag.before-tag {
  left: 22px;
}
.ba-tag.after-tag {
  right: 22px;
  background: rgba(0, 240, 122, 0.85);
  color: #0b1f13;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 0;
  transform: translateX(-50%);
}
.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
}
.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.ba-handle-grip svg {
  width: 16px;
  height: 16px;
}
.ba-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 14px;
  color: #c7c4b7;
  flex-wrap: wrap;
  gap: 10px;
}
.ba-caption b {
  color: #fff;
  font-weight: 600;
}

/* ---------- PROCESO — photo filmstrip ---------- */
.proceso-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.proceso-cell {
  background: var(--paper);
  padding: 36px 30px 40px;
  position: relative;
}
.proceso-cell .photo {
  aspect-ratio: 4/3;
  margin-bottom: 26px;
  border-radius: 2px;
}
.proceso-no {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.proceso-cell h4 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.proceso-cell p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 850px) {
  .proceso-strip {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .proceso-strip {
    grid-template-columns: 1fr;
  }
}

/* ---------- PROYECTOS — masonry gallery ---------- */
.gallery {
  columns: 3 220px;
  column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.gallery-item .photo {
  width: 100%;
}
.gallery-item:nth-child(1) .photo {
  aspect-ratio: 3/4;
}
.gallery-item:nth-child(2) .photo {
  aspect-ratio: 1/1;
}
.gallery-item:nth-child(3) .photo {
  aspect-ratio: 4/5;
}
.gallery-item:nth-child(4) .photo {
  aspect-ratio: 1/1;
}
.gallery-item:nth-child(5) .photo {
  aspect-ratio: 3/4;
}
.gallery-item:nth-child(6) .photo {
  aspect-ratio: 1/1;
}
.gallery-cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
}
.gallery-cap .g-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  font-weight: 700;
}
.gallery-cap h5 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- STATS band over photo ---------- */
.stats-band {
  position: relative;
  padding: 110px 0;
  color: #fff;
}
.stats-band .photo {
  position: absolute;
  inset: 0;
}
.stats-band .photo img {
  filter: grayscale(1) brightness(0.55);
  transform: scale(1);
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, 0.35);
}
.stats-band .wrap {
  position: relative;
  z-index: 2;
}
.stats-band .section-head {
  margin-bottom: 56px;
}
.stats-band .section-head p {
  color: #ddd9cc;
}
.stats-band .kicker {
  color: var(--green-bright);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-n {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
}
.stat-l {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ddd9cc;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
}

/* ---------- CONTACTO ---------- */
.contact-section {
  padding: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}
.contact-photo {
  position: relative;
}
.contact-photo .photo {
  position: absolute;
  inset: 0;
}
.contact-photo .photo img {
  filter: grayscale(0.15);
  transform: scale(1);
}
.contact-photo-overlay {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
  color: #fff;
  max-width: 340px;
}
.contact-photo-overlay .kicker {
  color: var(--green-bright);
}
.contact-photo-overlay h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  margin-top: 10px;
}
.contact-form-side {
  background: var(--paper-2);
  display: flex;
  align-items: center;
  padding: 80px 60px;
}
.contact-form-inner {
  max-width: 460px;
  width: 100%;
}
.contact-form-inner h2 {
  margin-bottom: 14px;
}
.contact-form-inner > p {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 15.5px;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
input,
select,
textarea {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 15px;
  font-family: var(--body);
  font-size: 14.5px;
  border-radius: 6px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 96px;
}
.submit-btn {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: 100px;
  margin-top: 10px;
  cursor: pointer;
  font-family: var(--body);
}
.submit-btn:hover {
  background: var(--green-deep);
  color: #fff;
}
@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .contact-photo {
    min-height: 340px;
    width: 100vw;
  }

  .contact-section {
  padding: 0;
  width: 100vw;
}

.contact-form-side {
  width: 100vw;
  padding: 50px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form-inner {
  max-width: 460px;
  width: 90vw;
}
}

/* ---------- FOOTER ---------- */
footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-legal {
  font-size: 12.5px;
  color: #a29e8f;
}

::selection {
  background: var(--green-bright);
  color: #0b1f13;
}


@media (max-width: 850px){
  footer {
    width: 100vw;
  padding: 56px 0;
}

.footer-links {
  flex-direction: column;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}
}