:root {
  --ink: #14181f;
  --ink-2: #1d232d;
  --steel: #2b3340;
  --text: #1f242c;
  --muted: #5d6673;
  --line: #e3e0d9;
  --paper: #faf8f4;
  --paper-2: #f1ede5;
  --accent: #d9902b;
  --accent-dark: #b8741a;
  --radius: 14px;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --bar-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .8em 1.5em;
  background: var(--accent);
  color: #1a1206;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--accent);
  transition: background .2s, transform .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(217,144,43,.7); }
.btn--small { min-height: 40px; padding: .45em 1.1em; font-size: .9rem; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn--dark { color: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 24, 31, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s;
}
.topbar.is-scrolled { box-shadow: 0 8px 30px -12px rgba(0,0,0,.5); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__logo { height: 48px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .95rem; opacity: .8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav__call { display: none; }
.menu-btn { display: none; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(217,144,43,.18), transparent 55%),
    var(--ink);
  overflow: hidden;
}
.hero::after {
  /* blueprint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 10%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 110px);
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.78); max-width: 560px; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__areas li {
  font-size: .85rem; font-weight: 500;
  padding: .4em 1em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
}

.hero__mosaic {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  height: clamp(380px, 46vw, 540px);
}
.hero__mosaic img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero__mosaic .m1 { grid-row: span 2; }
.hero__mosaic .m2 { animation-delay: .12s; }
.hero__mosaic .m3 { animation-delay: .24s; }
.hero__badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--accent); color: #1a1206;
  padding: 12px 18px; border-radius: 12px;
  font-size: .8rem; line-height: 1.3; font-weight: 600;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.6);
  animation: rise .9s .4s cubic-bezier(.2,.7,.2,1) both;
}
.hero__badge strong { display: block; font-family: var(--head); font-size: 1.15rem; font-weight: 800; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Trades strip */
.trades { background: var(--accent); color: #1a1206; overflow: hidden; padding: 14px 0; }
.trades__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.trades span {
  font-family: var(--head); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px;
}
.trades span::after { content: "◆"; font-size: .6rem; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--accent); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__sub { max-width: 420px; margin: 0; color: rgba(255,255,255,.65); }
.link-arrow { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text p { color: var(--muted); }
.owner {
  display: flex; align-items: center; gap: 18px; margin: 28px 0 0;
  padding: 14px 22px 14px 14px; width: fit-content; max-width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.owner img {
  width: 92px; height: 92px; flex: none; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--accent);
}
.owner figcaption { display: flex; flex-direction: column; line-height: 1.35; }
.owner strong { font-family: var(--head); font-size: 1.15rem; color: var(--ink); }
.owner span { font-size: .9rem; color: var(--muted); }
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.services li {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line);
  padding: 18px 20px; border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.services li:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(20,24,31,.35); }
.services__num { font-family: var(--head); font-weight: 800; font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.services strong { font-family: var(--head); font-size: 1.08rem; color: var(--ink); }
.services li > span:last-child { font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* Gallery */
.filters { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: -4px; padding-inline: 4px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer;
  min-height: 40px; padding: .4em 1.1em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  font-weight: 500; font-size: .92rem;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px;
}
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--steel); border: 0; padding: 0; margin: 0; cursor: zoom-in;
  animation: fadeIn .45s ease both;
}
.gallery__item.is-tall, .gallery__item.is-tall-lg { grid-row: span 2; }
.gallery__item.is-wide { grid-column: span 2; grid-row: span 2; }
.gallery__item[hidden] { display: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px; text-align: left;
  color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(10,12,16,.8));
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process li {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.process img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.process__step {
  margin: 18px 20px 4px; font-family: var(--head); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
}
.process h3 { margin: 0 20px 6px; font-size: 1.2rem; }
.process p { margin: 0 20px 22px; color: rgba(255,255,255,.65); font-size: .95rem; line-height: 1.5; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__intro p { color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(20,24,31,.35); }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 10px;
  display: grid; place-items: center; background: var(--ink);
}
.card__icon svg { width: 20px; height: 20px; fill: var(--accent); }
.card__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.card__value { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.6); font-size: .9rem; padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer strong { color: #fff; }

/* Mobile call bar */
.callbar { display: none; }

/* Scroll reveal (only hides content once JS confirms it can reveal it) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.process li.reveal:nth-child(2) { transition-delay: .08s; }
.process li.reveal:nth-child(3) { transition-delay: .16s; }
.process li.reveal:nth-child(4) { transition-delay: .24s; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,12,16,.95);
  display: grid; place-items: center; padding: 60px 80px;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 80vh; max-height: 80dvh; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: .95rem; text-align: center; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; line-height: 1; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --bar-h: 62px; }
  .topbar__cta { display: none; }
  .menu-btn {
    display: grid; place-content: center; gap: 5px;
    width: 46px; height: 46px; margin-right: -8px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: var(--bar-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; opacity: 1; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav__call {
    display: flex; justify-content: center; margin-top: 16px; border: 0; border-radius: 999px;
    background: var(--accent); color: #1a1206; font-weight: 700;
  }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__mosaic { height: auto; grid-template-rows: none; grid-template-columns: 1.1fr 1fr 1fr; aspect-ratio: 16 / 9; }
  .hero__mosaic .m1 { grid-row: auto; }
  .hero__badge { left: 12px; bottom: -18px; }

  .about, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 32px); }
  .brand__logo { height: 40px; }

  .hero__inner { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
  .hero__actions { margin: 24px 0 28px; }
  .hero__actions .btn { flex: 1 1 140px; }
  .hero__mosaic { gap: 8px; aspect-ratio: 4 / 3; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .hero__mosaic .m1 { grid-row: span 2; }
  .hero__mosaic img { border-radius: 12px; }

  .trades span { font-size: .9rem; padding: 0 18px; gap: 18px; }

  .services { grid-template-columns: 1fr; }
  .services li { padding: 16px 18px; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .gallery__item.is-wide { grid-column: span 2; grid-row: span 2; }
  .gallery__item.is-tall-lg { grid-row: span 1; }
  .gallery__item:last-child { grid-column: span 2; grid-row: span 1; }
  .gallery__item figcaption { opacity: 1; transform: none; font-size: .78rem; padding: 28px 10px 8px; }

  /* Process: swipeable row */
  .process {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none;
  }
  .process::-webkit-scrollbar { display: none; }
  .process li { flex: 0 0 78%; scroll-snap-align: start; }
  .js .process li.reveal { opacity: 1; transform: none; }

  .contact__actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 0; align-items: center;
    padding: 14px 16px;
  }
  .card__icon { grid-row: span 2; margin: 0; }
  .card__value { font-size: 1.05rem; }

  .lightbox { padding: 64px 8px 80px; }
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }

  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    transition: transform .3s, opacity .3s;
  }
  .callbar.is-hidden { transform: translateY(120%); opacity: 0; }
  .callbar a {
    text-align: center; padding: 15px; border-radius: 999px; font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  }
  .callbar a:first-child { background: var(--accent); color: #1a1206; }
  .callbar a:last-child { background: var(--ink); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
