/* ============================================================================
   JB CONTRACTORS SERVICES LLC — Front publico
   Diseño adaptado de la referencia archifol.io/v/9wt9np7r:
   reticula editorial de 14 columnas, tipografia Archivo + Public Sans,
   secciones de portafolio con numerales romanos y tarjetas de 2 columnas.
   Identidad visual: verdes de la marca sobre fondo salvia Benjamin Moore.
   ========================================================================== */

/* ------------------------------- Tokens ---------------------------------- */
:root {
  --ink: #1c1b1f;            /* texto principal (mismo tono que la referencia) */
  --ink-soft: #2f382f;
  --ink-faint: #485348;
  --green: #3e7b46;          /* verde corporativo (tarjeta de presentacion) */
  --green-dark: #2a5630;
  --green-soft: #68b66e;
  --paper: #bfcab2;          /* salvia de la muestra Benjamin Moore */
  --paper-alt: #cdd6c2;      /* superficie clara para distinguir capas */
  --line: #a5b297;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-desktop: 1440px;
}

/* --------------------------------- Base ----------------------------------- */
#app { background: var(--ed-cream); }
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Contenedor editorial de la referencia (max-w-screen-desktop) */
.container { max-width: var(--w-desktop); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px)  { .container { padding-inline: 40px; } }
@media (min-width: 1100px) { .container { padding-inline: 56px; } }

/* Reticula de 14 columnas (laptop) / 8 (tablet) / 4 (movil), como la referencia */
.grid-14 { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
@media (min-width: 768px)  { .grid-14 { grid-template-columns: repeat(8, 1fr); column-gap: 24px; } }
@media (min-width: 1100px) { .grid-14 { grid-template-columns: repeat(14, 1fr); column-gap: 48px; } }

/* Etiqueta de seccion (kicker) */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

/* Enlaces de texto con subrayado animado */
.text-link { color: var(--green-dark); font-weight: 600; border-bottom: 1px solid var(--green-soft); padding-bottom: 1px; transition: border-color .2s ease; }
.text-link:hover { border-color: var(--green-dark); }

/* ------------------------------- Botones ---------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border: 1px solid var(--green);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: translateY(1px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-light:hover { background: var(--paper-alt); }

/* ================================ Header =================================== */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  background: rgba(246, 247, 243, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ed-ease, cubic-bezier(.33, 1, .68, 1)), border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* Sobre el hero oscuro el header flota en blanco; al bajar toma la crema de marca. */
.site-header.is-over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-over-hero.is-scrolled {
  background: rgba(246, 247, 243, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-over-hero .nav-links a,
.site-header.is-over-hero .nav-toggle span { color: #fff; }
.site-header.is-over-hero .nav-links a::after { background: #fff; }
.site-header.is-over-hero.is-scrolled .brand img { filter: none; }

.header-inner {
  max-width: var(--w-desktop);
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px)  { .header-inner { padding-inline: 40px; } }
@media (min-width: 1100px) { .header-inner { padding-inline: 56px; } }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green-dark); }
.brand-wordmark { display: block; width: auto; height: 42px; max-width: min(320px, calc(100vw - 116px)); flex: none; }
.brand-wordmark--light { display: none; }
.site-header.is-over-hero .brand-wordmark--dark { display: none; }
.site-header.is-over-hero .brand-wordmark--light { display: block; }

.nav-links { display: none; gap: 32px; font-family: var(--font-display); font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; padding-bottom: 3px; color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--green-dark); font-weight: 600; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Hamburguesa (dos rayas, como la referencia) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: none;
}
.nav-toggle span { display: block; height: 1.6px; width: 100%; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.is-open span:first-child { transform: translateY(4.3px) rotate(45deg); }
.nav-toggle.is-open span:last-child  { transform: translateY(-4.3px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Overlay a pantalla completa del menu movil */
.nav-overlay {
  position: fixed; inset: 0;
  z-index: 55;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-overlay nav { display: flex; flex-direction: column; gap: 28px; }
.nav-overlay a { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.nav-overlay a.is-active { color: var(--green-dark); }
@media (min-width: 900px) { .nav-overlay { display: none; } }

/* ============================ Intro (H1 + lead) ============================ */
.home-artwork {
  display: flex;
  justify-content: center;
  width: 100%;
  background: var(--paper);
  overflow: hidden;
}
.home-artwork img {
  display: block;
  width: min(100%, 1774px);
  height: auto;
  max-height: calc(100vh - 74px);
  object-fit: contain;
}
.intro { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 56px); }
.intro h1 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 500; letter-spacing: -0.03em; max-width: 14ch; }
.intro .lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 56ch; }
.intro-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================ Scrollytelling =============================== */
/* A fixed editorial rail pairs the build model with the story; no card grid. */
.story-layout {
  display: flex;
  align-items: stretch;
  gap: clamp(28px, 5vw, 78px);
  max-width: 1540px;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(70px, 10vw, 150px);
}
.story-visual { flex: 0 0 43%; min-width: 0; }
.story-sticky {
  position: sticky;
  top: 82px;
  height: min(76vh, 690px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.story-stage-heading { padding-inline: 8px; }
.story-build-label { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.story-build-label b { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.story-stage-heading h2 { margin-top: 6px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
.house-stage {
  position: relative;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  isolation: isolate;
  perspective: 1050px;
  border-radius: 42px;
  background: radial-gradient(ellipse at 50% 75%, #cdd6c2 0%, #bfcab2 58%, #b3bfa8 100%);
}
/* El modelo 3D de la villa y sus cubos se definen en /css/villa.css. */

.story-progress { height: 4px; margin: 0 10px; overflow: hidden; border-radius: 999px; background: rgba(42,86,48,.18); }
.story-progress span { display: block; width: 16.667%; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s ease; }
.story-stage-caption { margin: 0; padding: 0 10px; min-height: 1.5em; color: var(--ink-soft); font-size: 13px; }

.story-rail { flex: 1 1 57%; min-width: 0; padding: 5vh 0 8vh; }
.story-unit { opacity: .72; transform: translateY(18px); transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.story-unit.is-current, .story-unit.is-past { opacity: 1; transform: translateY(0); }
.story-opening { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 56px; }
.story-opening-mark { width: min(100%, 680px); margin-bottom: clamp(18px, 3vh, 32px); }
.story-opening-mark img { width: 100%; height: auto; object-fit: contain; }
.story-kicker { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.story-opening h1 { max-width: 12ch; font-size: clamp(37px, 4.4vw, 66px); font-weight: 600; line-height: 1.02; }
.story-opening-lead { margin-top: 22px; color: var(--ink); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }
.story-opening > p:not(.story-kicker):not(.story-opening-lead) { max-width: 58ch; color: var(--ink-soft); }
.story-opening-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 10px; }
.story-section { padding: 18px 0 36px; }
.story-section-heading { display: flex; align-items: flex-end; gap: 20px; padding: 48px 0 26px; border-bottom: 1px solid var(--line); }
.story-roman { color: #d89c46; font-family: var(--font-display); font-size: clamp(38px, 5vw, 66px); font-weight: 700; line-height: .9; }
.story-section-heading h2 { font-size: clamp(27px, 3vw, 42px); font-weight: 600; }
.story-project { display: flex; align-items: center; gap: clamp(22px, 4vw, 48px); min-height: 56vh; padding: clamp(34px, 6vh, 68px) 0; border-bottom: 1px solid rgba(42,86,48,.16); }
.story-project--reverse { flex-direction: row-reverse; }
.story-project-visual { flex: 0 0 40%; width: 40%; max-width: 300px; margin: 0; }
.story-project-visual img { display: block; width: 100%; max-height: 270px; aspect-ratio: 4 / 3; border-radius: 26px; object-fit: cover; }
.story-project-visual figcaption { padding: 10px 4px 0; color: var(--ink-faint); font-size: 11px; letter-spacing: .04em; }
.story-project-visual figcaption span { padding: 0 4px; color: #d89c46; }
.story-project-copy { flex: 1; min-width: 0; }
.story-service { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.story-project-copy h3 { margin-bottom: 13px; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.1; }
.story-project-copy > p:not(.story-service) { color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.story-project-copy .text-link { font-size: 13px; }
.story-finish { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0; }
.story-finish h2 { max-width: 13ch; font-size: clamp(36px, 4vw, 58px); }
.story-rating { display: flex; flex-direction: column; gap: 2px; margin: 24px 0 28px; color: var(--ink-soft); font-size: 13px; }
.story-rating strong { color: var(--green); font-family: var(--font-display); font-size: 42px; line-height: 1; }
.story-rating strong span { color: #d89c46; }
.story-quotes { margin: 0 0 20px; }
.story-quote { margin: 0; padding: 17px 0 17px 20px; border-left: 2px solid #d89c46; }
.story-quote p { margin: 0 0 7px; font-size: 14px; line-height: 1.55; }
.story-quote cite { color: var(--ink-faint); font-size: 12px; font-style: normal; }
.story-quote cite span { color: var(--green); }
.story-finish-cta { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.story-finish-cta h3 { margin-bottom: 10px; font-size: clamp(24px, 2.5vw, 34px); }
.story-finish-cta p { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 900px) {
  .story-layout { display: block; padding-top: 22px; }
  .story-visual { position: sticky; top: 82px; z-index: 30; width: 100%; background: rgba(191,202,178,.95); backdrop-filter: blur(12px); }
  .story-sticky { position: relative; top: auto; height: 292px; min-height: 0; padding: 8px 0; gap: 7px; }
  .story-stage-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
  .story-stage-heading h2 { margin: 0; font-size: 17px; }
  .house-stage { min-height: 220px; border-radius: 26px; }
  .story-stage-caption { display: none; }
  .story-rail { padding: 0 4px 70px; }
  .story-opening { min-height: 64vh; padding-top: 40px; }
  .story-project { min-height: 0; }
  .story-finish { min-height: 0; }
}
@media (max-width: 560px) {
  .story-sticky { height: 252px; }
  .house-stage { min-height: 184px; }
  .story-project, .story-project--reverse { flex-direction: column; align-items: flex-start; gap: 18px; padding: 38px 0; }
  .story-project-visual { width: min(100%, 360px); max-width: none; flex-basis: auto; }
  .story-project-visual img { max-height: 230px; }
  .story-section-heading { gap: 14px; }
  .story-opening h1 { font-size: clamp(36px, 10vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  .story-unit, .build-piece, .house-detail, .story-progress span { transition: none !important; }
  .story-unit { opacity: 1; transform: none; }
  .villa-piece { opacity: 1 !important; translate: none !important; }
}

/* =========================== About (home, 2 col.) ========================== */
.about-split { padding: 24px 0 clamp(64px, 8vw, 120px); align-items: start; }
.about-text { grid-column: 1 / -1; }
.about-media { grid-column: 1 / -1; order: -1; }
@media (min-width: 768px) {
  .about-text { grid-column: 2 / 7; }
  .about-media { grid-column: 8 / 14; order: 0; }
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text p { font-size: 16.5px; color: var(--ink-soft); }

/* ==================== Secciones portafolio (I. II. III.) =================== */
.section-banner { overflow: hidden; }
.section-banner img {
  width: 100%; height: clamp(220px, 34vw, 460px);
  object-fit: cover;
}

.section-head { padding: clamp(48px, 6vw, 84px) 0 clamp(28px, 3vw, 44px); }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  grid-column: 2 / -1;
}
@media (max-width: 767px) { .section-head h2 { grid-column: 1 / -1; } }
.section-head .numeral { color: var(--green); font-weight: 300; font-size: 0.94em; margin-right: 14px; }

/* Tarjetas de proyecto (2 por fila, como la referencia) */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px 48px;
  padding-bottom: clamp(56px, 7vw, 104px);
}
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; }
.card-media {
  display: block;
  overflow: hidden;
  background: var(--paper-alt);
  border-radius: 2px;
}
.card-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-body { display: block; margin-top: 16px; }
.card-service {
  display: block;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.card-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card-loc { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

.cards-empty {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  padding: 40px;
  text-align: center;
  border-radius: 4px;
}

/* ================================ CTA band ================================= */
.cta-band { background: var(--green-dark); color: #fff; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }

.cta-band .cta-inner { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .cta-band .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 500; letter-spacing: -0.02em; max-width: 20ch; }
.cta-band p { color: #cfe3d1; max-width: 52ch; margin: 12px 0 0; }

/* ================================ Footer =================================== */
.site-footer { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 40px; text-align: center; }
.footer-grid { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 28px; }

.footer-main { display: flex; flex-direction: column; align-items: center; }
.footer-main h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; }
.footer-line { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }
.footer-line a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.footer-line a:hover { border-color: var(--green-dark); color: var(--green-dark); }
.footer-copy { margin-top: 8px; font-size: 13px; color: var(--ink-faint); }
.footer-staff { display: inline-block; margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.footer-staff:hover { color: var(--green-dark); border-color: var(--green-soft); }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 24px; }
.footer-actions .footer-staff { margin-top: 0; }
.btn-sm { font-size: 13.5px; padding: 11px 22px; }
.external-icon { margin-left: 7px; vertical-align: -1px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; }
.footer-nav a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-nav a:hover { border-color: var(--green); }

/* ============================ Paginas interiores =========================== */
.page-head { padding: clamp(96px, 11vw, 140px) 0 clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(38px, 5vw, 72px); font-weight: 500; letter-spacing: -0.03em; }
.page-lead { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); max-width: 60ch; }

.page-body { padding-bottom: clamp(56px, 7vw, 104px); }

/* Tablas editoriales (Services / Specifications), como la referencia */
.spec-table { border-top: 1px solid var(--ink); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 1.6fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-row .k { color: var(--ink-soft); }
.spec-row .v { font-weight: 500; }
.spec-row .v.muted { color: var(--ink-faint); font-weight: 400; }
@media (max-width: 639px) { .spec-row { grid-template-columns: 1fr; gap: 2px; } }

/* Seccion de dos columnas con tabla + texto (Services & detalle proyecto) */
.split-cols { align-items: start; }
.split-left  { grid-column: 1 / -1; }
.split-right { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .split-left  { grid-column: 2 / 8; }
  .split-right { grid-column: 9 / 14; }
}
.split-right p { color: var(--ink-soft); }
.split-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Reseñas de clientes */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.review-stars { color: var(--green); letter-spacing: 3px; font-size: 15px; }
.review-text { font-size: 15px; color: var(--ink); flex: 1; }
.review-meta { font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-badge { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: var(--paper-alt); border: 1px solid var(--green-soft); padding: 3px 8px; border-radius: 999px; }

/* Highlights (About) */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 900px) { .highlights { grid-template-columns: repeat(4, 1fr); } }
.highlight { border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.highlight strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--green-dark); }
.highlight span { font-size: 13.5px; color: var(--ink-soft); }

/* ============================== Contacto =================================== */
.contact-grid { align-items: start; }
.contact-info  { grid-column: 1 / -1; }
.contact-form  { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .contact-info { grid-column: 2 / 7; }
  .contact-form { grid-column: 8 / 14; }
}
.contact-info p { color: var(--ink-soft); }
.contact-info .big { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.contact-info .big a:hover { color: var(--green-dark); }
.contact-list { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-soft); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 123, 70, 0.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 14px; font-size: 14.5px; }
.form-status.ok   { color: var(--green-dark); }
.form-status.err  { color: #b3261e; }

/* ========================== Detalle de proyecto ============================= */
.project-hero img { width: 100%; height: clamp(280px, 42vw, 520px); object-fit: cover; }
.project-head { padding: clamp(96px, 11vw, 140px) 0 clamp(20px, 3vw, 36px); }
.project-head h1 { font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -0.03em; max-width: 16ch; }
.project-back { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.project-back:hover { color: var(--green-dark); }

.project-specs { padding-bottom: clamp(36px, 4vw, 56px); align-items: start; }

.gallery-grid { columns: 1; column-gap: 28px; padding-bottom: clamp(56px, 7vw, 104px); }
@media (min-width: 700px) { .gallery-grid { columns: 2; } }
.gallery-item { break-inside: avoid; margin-bottom: 28px; cursor: zoom-in; overflow: hidden; border-radius: 2px; position: relative; }
.gallery-item img { width: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 20, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: 2px; }
.lightbox-counter { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 16px; letter-spacing: .08em; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff;
  font-size: 30px; line-height: 1; opacity: .8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 20px;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.18); }
.lightbox-arrow--prev { left: 18px; }
.lightbox-arrow--next { right: 18px; }

/* ================================= 404 ===================================== */
.notfound { padding: clamp(80px, 12vw, 160px) 0; text-align: left; }
.notfound h1 { font-size: clamp(40px, 6vw, 80px); }
.notfound p { color: var(--ink-soft); margin-top: 14px; }
.notfound .btn { margin-top: 24px; }

/* Utilidades de espaciado vertical compartidas */
.section-pad   { padding: clamp(40px, 5vw, 64px) 0; }
.stack-lg      > * + * { margin-top: 56px; }
