/* ==========================================================================
   VIPWoodwork — public site stylesheet (no framework)
   Tokens match the live CNC order page (/corte/).
   ========================================================================== */
:root {
  --ink: #141416;
  --ink-2: #3a3a40;
  --muted: #6d6d73;
  --line: #e3e1dc;
  --bg: #f6f5f2;
  --card: #fff;
  --blue: #1b3fa0;
  --blue-2: #2a55c9;
  --blue-soft: #e8edfa;
  --wood: #b5793f;
  --wood-soft: #f4e9dd;
  --on-dark: #f6f5f2;
  --on-dark-2: #b9b9c0;
  --blue-on-dark: #7f9df0;
  --wa: #25d366;

  --font-display: "Nova Square", "Segoe UI", system-ui, sans-serif;
  --font-body: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --radius: 14px;
  --radius-lg: 22px;
  --hdr-h: 68px;
  --shadow: 0 1px 2px rgba(20, 20, 22, .06), 0 8px 28px rgba(20, 20, 22, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.005em; }
h3 { font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .dark :focus-visible, .cta-band :focus-visible, .hero :focus-visible, .lightbox :focus-visible { outline-color: var(--blue-on-dark); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.white { background: var(--card); }
.section.wood { background: var(--wood-soft); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark a:not(.btn) { color: var(--blue-on-dark); }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-sm { width: .9em; height: .9em; }

/* ---------- typography helpers */
.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  font: 700 12.5px/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.dark .kicker, .hero .kicker, .page-hero.has-img .kicker, .cta-band .kicker { color: var(--blue-on-dark); }
.h-xl { font-size: clamp(38px, 7vw, 92px); line-height: 1.02; }
.h-lg { font-size: clamp(30px, 4.6vw, 58px); }
.h-md { font-size: clamp(24px, 3vw, 36px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { max-width: 720px; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* ---------- buttons */
.btn {
  --b: var(--ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--c); text-decoration: none;
  font: 700 15px/1.1 var(--font-body); letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { color: var(--c); transform: translateY(-1px); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn-blue { --b: var(--blue); }
.btn-blue:hover { --b: var(--blue-2); }
.btn-light { --b: #fff; --c: var(--ink); }
.btn-light:hover { --b: var(--blue-soft); }
.btn-ghost { background: transparent; --c: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; --b: rgba(255,255,255,.55); --c: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); --b: #fff; }
.btn-wa { --b: var(--wa); --c: #0b2e17; }
.btn-wa:hover { --b: #3be07a; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) { .btn-row .btn { width: 100%; } .btn { white-space: normal; text-align: center; } }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow:hover { color: var(--blue); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--hdr-h);
  background: var(--ink); color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hdr-inner { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; }
.wordmark { font: 400 21px/1 var(--font-display); letter-spacing: .05em; white-space: nowrap; }
.wm-vip { color: #fff; }
.wm-ww { color: var(--blue-2); }
.brand:hover .wm-ww { color: var(--blue-on-dark); }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--on-dark-2); text-decoration: none; font-weight: 600; font-size: 14.5px; background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:hover, .sub-toggle:hover, .nav-list > li > a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: #fff; }
.nav-list > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue-2); border-radius: 0; }
.sub-toggle .ico { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px;
  background: #1e1e22; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub.open .sub, .no-js .has-sub:hover .sub, .no-js .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.sub a:hover, .sub a[aria-current="page"] { background: rgba(255,255,255,.07); color: #fff; }
.sub-sep { border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; padding-top: 6px; }
.badge { display: inline-block; font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: var(--wood); color: #fff; }

.hdr-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  text-decoration: none; font: 700 12.5px/1 var(--font-body); letter-spacing: .08em;
}
.lang-toggle span { padding: 8px 10px; border-radius: 999px; color: var(--on-dark-2); transition: background .2s, color .2s; }
.lang-toggle span.is-on { background: #fff; color: var(--ink); }
.lang-toggle:hover span:not(.is-on) { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; color: #fff; }
.bars { position: relative; display: block; width: 22px; height: 16px; margin: 0 auto; }
.bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.bars span:nth-child(1) { top: 0; } .bars span:nth-child(2) { top: 7px; } .bars span:nth-child(3) { top: 14px; }
.nav-open .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-open .bars span:nth-child(2) { opacity: 0; }
.nav-open .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.nav-mobile-extra { display: none; }

@media (max-width: 1180px) {
  .nav-list > li > a, .sub-toggle { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .main-nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; background: var(--ink); margin: 0;
    padding: 12px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s, transform .22s, visibility .22s;
  }
  .js.nav-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open body { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list > li > a, .sub-toggle { width: 100%; height: auto; padding: 18px 4px; font: 400 22px/1.2 var(--font-display); color: #fff; justify-content: space-between; border-radius: 0; }
  .nav-list > li > a[aria-current="page"] { box-shadow: none; color: var(--blue-on-dark); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: none; border: 0; box-shadow: none; padding: 0 0 14px; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .sub a { font-size: 16px; padding: 11px 8px; color: var(--on-dark-2); }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: 28px; }
  .nav-mobile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-mobile-row .btn { padding: 0 12px; }
  .no-js .main-nav { display: none; }
}
@media (max-width: 640px) {
  .hdr-cta { display: none; }
  .wordmark { font-size: 17px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand { gap: 9px; }
  .hdr-inner { gap: 10px; }
}
@media (max-width: 374px) {
  .wordmark { font-size: 15px; letter-spacing: .03em; }
  .lang-toggle span { padding: 7px 8px; }
}

/* ---------- home hero */
.hero { position: relative; min-height: min(calc(100svh - var(--hdr-h)), 900px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 55%; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,20,22,.15) 0%, rgba(20,20,22,.05) 35%, rgba(20,20,22,.78) 100%), linear-gradient(90deg, rgba(20,20,22,.55), rgba(20,20,22,0) 65%); }
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(42px, 8.2vw, 112px); line-height: .98; max-width: 11ch; margin-bottom: 24px; text-wrap: balance; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 58ch; margin-bottom: 32px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.8); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .ico { color: var(--blue-on-dark); }

/* ---------- page hero (inner pages) */
.page-hero { position: relative; padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 7vw, 96px); background: var(--bg); }
.page-hero.has-img { color: #fff; background: var(--ink); min-height: min(68vh, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-media img { object-fit: cover; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,20,22,.2), rgba(20,20,22,.8)); }
.page-hero-inner { position: relative; z-index: 1; width: 100%; }
.page-title { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.page-hero.has-img .lead { color: rgba(255,255,255,.88); }

/* ---------- split residential / commercial */
.split { display: grid; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 20px; } }
.split-card { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 52vw, 640px); border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--ink); }
.split-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.split-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,22,0) 35%, rgba(20,20,22,.82)); }
.split-card:hover img { transform: scale(1.05); }
.split-body { padding: clamp(24px, 3.5vw, 44px); width: 100%; }
.split-body h3 { font: 400 clamp(34px, 4.6vw, 60px)/1 var(--font-display); margin-bottom: 12px; }
.split-body p { color: rgba(255,255,255,.86); max-width: 40ch; margin-bottom: 20px; }
.split-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); transition: background .2s, color .2s; }
.split-card:hover .split-go { background: #fff; color: var(--ink); }
.split-card:hover { color: #fff; }

/* ---------- area tiles */
.atiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .atiles { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.atile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; isolation: isolate; }
@media (min-width: 900px) { .atile { aspect-ratio: 5 / 6; } }
.atile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.atile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,22,0) 50%, rgba(20,20,22,.78)); }
.atile:hover img { transform: scale(1.06); }
.atile-label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: clamp(14px, 2vw, 24px); }
.atile-title { font: 400 clamp(19px, 2.4vw, 30px)/1.05 var(--font-display); margin: 0; color: #fff; }
.atile .ico { width: 22px; height: 22px; flex: none; transition: transform .2s; }
.atile:hover .ico { transform: translateX(4px); }
.atile:hover { color: #fff; }

/* ---------- project cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.pgrid-featured { grid-template-columns: 1fr; }
@media (min-width: 760px) { .pgrid-featured { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgrid-featured { grid-template-columns: repeat(3, 1fr); } .pgrid-featured .pcard-lg { grid-column: span 2; grid-row: span 2; } .pgrid-featured .pcard-lg .pcard-media { aspect-ratio: auto; height: 100%; min-height: 520px; } .pgrid-featured .pcard-lg .pcard-link { height: 100%; display: flex; flex-direction: column; } .pgrid-featured .pcard-lg .pcard-media { flex: 1; } }
.pcard[hidden] { display: none; }
.pcard-link { display: block; text-decoration: none; color: inherit; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard-link:hover .pcard-media img { transform: scale(1.045); }
.ph-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.ph-empty .ico { width: 40px; height: 40px; }
.pcard-body { padding: 16px 2px 0; }
.pcard-meta { font: 700 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.pcard-title { font: 700 clamp(19px, 1.6vw, 22px)/1.25 var(--font-body); margin: 0 0 6px; color: var(--ink); }
.pcard-link:hover .pcard-title { color: var(--blue); }
.pcard-scope { color: var(--ink-2); margin: 0 0 4px; font-size: 15.5px; }
.pcard-credit { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- process */
.process { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.pstep { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.pstep-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.pstep-media img { width: 100%; height: 100%; object-fit: cover; }
.pstep-body { padding: 22px 22px 26px; }
.pstep-num { font: 400 15px/1 var(--font-display); color: var(--blue); letter-spacing: .1em; display: block; margin-bottom: 12px; }
.pstep h3 { font-size: 20px; margin-bottom: 8px; }
.pstep p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--ink); padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px); }
.stat-value { display: block; font: 400 clamp(30px, 3.6vw, 48px)/1 var(--font-display); color: #fff; margin-bottom: 12px; white-space: nowrap; }
.stat:nth-child(2n) .stat-value { color: var(--blue-on-dark); }
.stat-label { color: var(--on-dark-2); font-size: 15px; line-height: 1.45; margin: 0; }
@media (max-width: 899px) { .stat:last-child { grid-column: 1 / -1; } }
@media (max-width: 400px) { .stat-value { font-size: 26px; } }

/* ---------- partners */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px clamp(24px, 5vw, 72px); list-style: none; margin: 0; padding: 0; }
.partners li { font: 400 clamp(20px, 2.6vw, 32px)/1.2 var(--font-display); color: var(--ink-2); text-align: center; letter-spacing: .02em; }
.partners li + li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wood); margin-right: clamp(24px, 5vw, 72px); vertical-align: middle; position: relative; top: -3px; }
@media (max-width: 700px) { .partners { flex-direction: column; } .partners li + li::before { display: none; } }

/* ---------- CNC promo */
.promo { display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--on-dark); }
@media (min-width: 900px) { .promo { grid-template-columns: 1.05fr 1fr; } }
.promo-media { position: relative; min-height: 280px; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: clamp(28px, 5vw, 64px); }
.promo-body h2 { color: #fff; }
.promo-body p { color: var(--on-dark-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600; color: var(--on-dark); }

/* ---------- contact strip + CTA band */
.cta-band { background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.cta-band-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1.2fr auto; } }
.cta-band-title { font-size: clamp(28px, 4vw, 48px); color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; font-size: 18px; max-width: 56ch; }

.contact-strip { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-strip { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.cinfo { display: grid; gap: 14px; }
@media (min-width: 560px) { .cinfo { grid-template-columns: 1fr 1fr; } }
.cinfo-item { display: flex; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.cinfo-item:hover { border-color: var(--blue); color: var(--ink); }
.cinfo-item .ico { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.cinfo-item strong { display: block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cinfo-item span { font-weight: 600; overflow-wrap: anywhere; }

.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; white-space: nowrap; }

/* ---------- generic layout blocks */
.two-col { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col.reverse > :first-child { order: 2; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-tall img { aspect-ratio: 4 / 5; }
.media-wide img { aspect-ratio: 16 / 10; }
.prose p { color: var(--ink-2); font-size: 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3fa0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checklist.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px 28px; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.dark .feature { background: #1d1d21; border-color: rgba(255,255,255,.08); }
.dark .feature h3 { color: #fff; }
.dark .feature p { color: var(--on-dark-2); }
.dark .feature .ico { color: var(--blue-on-dark); }

.types { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.type { background: var(--card); padding: 28px 24px; }
.type-n { font: 400 14px/1 var(--font-display); color: var(--wood); display: block; margin-bottom: 16px; }
.type h3 { font: 400 24px/1.1 var(--font-display); margin-bottom: 8px; }
.type p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.quote-block { font: 400 clamp(28px, 4.4vw, 56px)/1.1 var(--font-display); margin: 0 0 18px; max-width: 18ch; }
.quote-block::before { content: "“"; color: var(--wood); }
.quote-block::after { content: "”"; color: var(--wood); }

/* ---------- projects filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.seg-group { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.seg-group a { padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.seg-group a:hover { color: var(--ink); background: var(--bg); }
.seg-group a[aria-current="true"] { background: var(--ink); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.chip-row a:hover { border-color: var(--ink); color: var(--ink); }
.chip-row a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-label { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.filter-block { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.result-count { margin-left: auto; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .result-count { margin-left: 0; width: 100%; } }
.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- project detail */
.proj-head { padding: clamp(40px, 6vw, 80px) 0 32px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink-2); margin-bottom: 28px; }
.back-link:hover { color: var(--blue); }
.proj-title { font-size: clamp(34px, 5.4vw, 72px); max-width: 20ch; text-wrap: balance; }
.proj-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .proj-layout { grid-template-columns: 1fr 340px; gap: 64px; align-items: start; } .proj-aside { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 700 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; gap: 16px; } .gallery .g-item:first-child { grid-column: 1 / -1; } .gallery.g-one .g-item { grid-column: 1 / -1; } }
.g-item { position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--line); width: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.gallery .g-item:first-child img { aspect-ratio: auto; max-height: 82vh; }
.g-item:hover img { transform: scale(1.03); }
.g-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(20,20,22,.6); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; }
.proj-desc { margin-top: 40px; }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(12,12,14,.96); color: #fff; display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; }
.lb-count { font-weight: 700; font-size: 14px; color: var(--on-dark-2); }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 64px 16px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-cap { text-align: center; padding: 0 16px 20px; color: var(--on-dark-2); font-size: 15px; min-height: 1.5em; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px 12px; } .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lb-cap { padding-bottom: 76px; } }

/* ---------- contact page */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: 500 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-weight: 600; font-size: 14px; margin: 6px 0 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.alert { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; border: 1px solid; }
.alert strong { display: block; margin-bottom: 4px; }
.alert p { margin: 0; }
.alert-ok { background: #e9f6ee; border-color: #9fd3b2; color: #14532d; }
.alert-err { background: #fdecea; border-color: #f2b8b5; color: #8c1d18; }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .map-wrap { aspect-ratio: 16 / 10; } }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.visit-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 20px; align-content: start; }
.entrance { margin: 0; }
.entrance img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.entrance figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- design teaser */
.teaser-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.teaser-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.teaser-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(127,157,240,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(127,157,240,.35) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000); }
.teaser-badge { position: absolute; left: 20px; bottom: 20px; }

/* ---------- footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 15.5px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.ft-grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; } }
.ft-brand .brand-logo { width: 48px; height: 48px; }
.ft-tagline { margin: 18px 0 18px; max-width: 36ch; }
.ft-title { font: 700 12.5px/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ft-addr { margin-bottom: 14px; line-height: 1.6; }
.ft-link-strong, .ft-social { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.site-footer .ft-link-strong { color: var(--blue-on-dark); }
.ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ft-contact a { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.ft-contact .ico, .ft-social .ico { color: var(--blue-on-dark); }
.site-footer .hours dt { font-weight: 500; color: var(--on-dark-2); }
.site-footer .hours dd { color: var(--on-dark); font-weight: 600; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 32px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.ft-nav a { font-weight: 600; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.ft-bottom p { margin: 0; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #0b2e17; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #0b2e17; }
.wa-float .ico { width: 28px; height: 28px; }
.nav-open .wa-float, .lb-open .wa-float { display: none; }

/* ---------- reveal on scroll (progressive) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .section-head, .section-head.center { justify-content: center; text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* ---------- dark / blue cards (about page) */
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: var(--on-dark-2); }
.pstep-dark { background: #1d1d21; border-color: rgba(255,255,255,.08); }
.pstep-dark p { color: var(--on-dark-2); }
.pstep-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.pstep-blue .pstep-body { display: flex; flex-direction: column; gap: 14px; }
.pstep-blue .ico { width: 40px; height: 40px; }
.pstep-blue p { color: rgba(255,255,255,.9); }
.small { font-size: 15px; }

/* ---------- CNC page */
.steps-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.steps-list li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17.5px; color: var(--ink-2); }
.steps-n { font: 400 15px/1 var(--font-display); color: var(--blue); flex: none; width: 2.2em; }
.size-visual { position: relative; padding: 8px 0 8px 8px; }
.sheet { border: 2px solid var(--wood); border-radius: 6px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px 12px; font: 400 15px/1 var(--font-display); color: var(--ink); }
.sheet-b { width: 100%; aspect-ratio: 108 / 71; background: repeating-linear-gradient(135deg, rgba(181,121,63,.08) 0 10px, rgba(181,121,63,.16) 10px 20px); }
.sheet-a { position: absolute; left: 0; bottom: 0; width: 88.9%; aspect-ratio: 96 / 48; background: #fff; border-color: var(--blue); align-items: flex-start; justify-content: flex-start; box-shadow: var(--shadow); }

/* ---------- contact extras */
.hours-lg { font-size: 18px; gap: 10px; margin-top: 16px; }
.hours-lg div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ft-like { font: 700 12.5px/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.addr-lg { font-size: 20px; font-weight: 600; line-height: 1.5; }
.h3-like { font: 700 19px/1.25 var(--font-body); margin-bottom: 6px; }


/* ---------- Encabezado opción 2: blanco, logo JG azul, Montserrat (VIP negrita + WOODWORK liviano) */
.wordmark { font-family: 'Montserrat', var(--font-body); }
.wm-vip { font-weight: 700; }
.wm-ww { font-weight: 300; }
.site-header { background: #fff; color: #141416; border-bottom: 1px solid #ecebe7; }
.site-header .wordmark { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #dcdad5; padding-left: 12px; font-size: 21px; line-height: 1; letter-spacing: .12em; }
.site-header .wm-vip, .site-header .wm-ww { color: #141416; }
.site-header .brand:hover .wm-ww { color: #1b3fa0; }
.wm-sub { display: block; font: 500 8.5px/1 'Montserrat', sans-serif; letter-spacing: .32em; color: #8a8a90; margin-top: 6px; }
.site-header :focus-visible { outline-color: #1b3fa0; }
.site-header .lang-toggle { border-color: #dcdad5; }
.site-header .lang-toggle span { color: #77777d; }
.site-header .lang-toggle span.is-on { background: #141416; color: #fff; }
.site-header .lang-toggle:hover span:not(.is-on) { color: #141416; }
.site-header .hdr-cta { background: transparent; border: 1px solid #1b3fa0; color: #1b3fa0; border-radius: 999px; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.site-header .hdr-cta:hover { background: #1b3fa0; color: #fff; }
.site-header .nav-toggle { color: #141416; }
@media (min-width: 1061px) {
  .site-header .nav-list > li > a, .site-header .sub-toggle { color: #333; font: 500 12px/1 'Montserrat', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
  .site-header .nav-list > li > a:hover, .site-header .sub-toggle:hover, .site-header .has-sub.is-active > .sub-toggle { color: #1b3fa0; }
  .site-header .nav-list > li > a[aria-current="page"] { color: #141416; box-shadow: inset 0 -2px 0 #1b3fa0; }
  .site-header .sub { background: #fff; border: 1px solid #ecebe7; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
  .site-header .sub a { color: #333; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 14px; }
  .site-header .sub a:hover, .site-header .sub a[aria-current="page"] { background: #f4f3ef; color: #1b3fa0; }
  .site-header .sub-sep { border-top-color: #ecebe7; }
}
@media (max-width: 1060px) { .site-header .nav-list > li > a, .site-header .sub-toggle { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 20px; letter-spacing: .04em; } }
@media (max-width: 640px) { .wm-sub { display: none; } .site-header .wordmark { font-size: 16px; letter-spacing: .08em; padding-left: 9px; } }
@media (max-width: 374px) { .site-header .wordmark { font-size: 14px; } }
/* ---------- Títulos en Montserrat (en lugar de Nova Square) */
:root { --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif; }
h1, h2 { font-weight: 600; letter-spacing: -.01em; }
.split-body h3, .atile-title, .stat-value, .type h3, .quote-block, .partners li { font-weight: 600; letter-spacing: -.01em; }
.pstep-num, .type-n, .steps-n, .sheet { font-weight: 600; }