/* =============================================================================
   SERIART — rotulación, vinilo, serigrafía y gran formato · Dénia
   Visual system: clean, photographic and direct. Deep ink navy + the logo blue
   as the only accent. Barlow (a typeface drawn from road signs and number
   plates) for signage-like headlines. Motion: one idea, "vinyl being applied":
   images are wiped in left→right and key words get a blue strip underneath.
   ============================================================================= */

/* 1. Fonts (self-hosted, no third-party requests) ----------------------------- */
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* 2. Tokens -------------------------------------------------------------------- */
:root {
  --ink: #0d1822;
  --ink-2: #3a4957;
  --ink-3: #5b6976;
  --line: #dde3e8;
  --line-2: #c5cfd8;
  --bg: #ffffff;
  --bg-alt: #f2f5f7;
  --brand: #2b98d8;          /* logo blue: marks, strips, icons */
  --brand-600: #1a79b8;      /* buttons / links on white (AA) */
  --brand-700: #125f93;
  --brand-50: #e8f3fa;
  --dark: #0b141c;
  --dark-2: #15222d;
  --ok: #1d7a4e;
  --ok-bg: #e6f4ec;
  --err: #b3372b;
  --err-bg: #fbecea;

  --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 24, 34, .06), 0 2px 8px rgba(13, 24, 34, .05);
  --shadow: 0 10px 30px rgba(13, 24, 34, .10);
  --shadow-lg: 0 24px 60px rgba(13, 24, 34, .18);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 40px);

  --z-wa: 80;
  --z-mnav: 90;
  --z-header: 100;
  --z-lightbox: 200;
  --z-skip: 300;

  interpolate-size: allow-keywords;
}

/* 3. Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
h3 { font-weight: 600; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* 4. Typography helpers ---------------------------------------------------------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand-600);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--brand-700); }
.link-arrow:hover svg { transform: translateX(4px); }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
}

/* 5. Buttons -------------------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.1; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: .95rem; }
.btn-lg { --btn-h: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline svg { flex: none; }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* 6. Header --------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, box-shadow .3s, color .3s;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { height: 46px; width: auto; }
.brand-logo--white { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 12px; border-left: 1px solid var(--line-2); }
.brand-text strong { font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: .01em; }
.brand-text span { font-size: .8rem; color: var(--ink-3); }

.nav-primary { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; font-weight: 500; font-size: 1rem; color: var(--ink-2); border-radius: var(--r-sm);
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link[data-current="true"]::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .nav-link[data-current="true"] { color: var(--ink); }
.nav-link svg { transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; padding: 8px 10px; color: var(--ink); }
.header-phone svg { color: var(--brand-600); }
.nav-toggle {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 479px) {
  .brand-text { display: none; }
  .hide-sm { display: none; }
  .header-actions .btn-sm { padding: 0 14px; }
}
@media (min-width: 960px) {
  .nav-primary { display: flex; }
  .header-actions { margin-left: 8px; }
  .nav-toggle { display: none; }
}
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }

.show-sm { display: none; }
@media (max-width: 479px) { .show-sm { display: inline; } }
.site-header.is-over-hero.is-solid { background: #fff; }

/* Transparent header over the home hero */
.site-header.is-over-hero:not(.is-solid) {
  background: linear-gradient(180deg, rgba(11, 20, 28, .55), rgba(11, 20, 28, 0));
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-color: transparent; color: #fff;
}
.site-header.is-over-hero:not(.is-solid) .brand-logo--color { display: none; }
.site-header.is-over-hero:not(.is-solid) .brand-logo--white { display: block; }
.site-header.is-over-hero:not(.is-solid) .brand-text { border-color: rgba(255, 255, 255, .35); }
.site-header.is-over-hero:not(.is-solid) .brand-text span { color: rgba(255, 255, 255, .75); }
.site-header.is-over-hero:not(.is-solid) .nav-link,
.site-header.is-over-hero:not(.is-solid) .header-phone { color: #fff; }
.site-header.is-over-hero:not(.is-solid) .header-phone svg { color: #fff; }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.mega.is-open { opacity: 1; transform: none; }
.mega-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 36px var(--gutter) 40px;
  display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 32px;
}
.mega-title {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink);
}
.mega-title svg { color: var(--brand-600); transition: transform .25s var(--ease); }
.mega-title:hover svg { transform: translateX(4px); }
.mega-col ul { display: grid; gap: 2px; }
.mega-col a:not(.mega-title) {
  display: block; padding: 7px 10px; margin-inline: -10px; border-radius: var(--r-sm); color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.mega-col a:not(.mega-title):hover { background: var(--bg-alt); color: var(--ink); }
.mega-promo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate;
}
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.mega-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 20, 28, .1), rgba(11, 20, 28, .85)); }
.mega-promo:hover img { transform: scale(1.04); }
.mega-promo-body { padding: 20px; display: grid; gap: 4px; }
.mega-promo-body strong { font-family: var(--display); font-size: 1.3rem; }
.mega-promo-body span { font-size: .92rem; color: rgba(255, 255, 255, .85); }

/* Mobile menu */
.mnav {
  position: fixed; inset: var(--header-h) 0 0; z-index: var(--z-mnav);
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.mnav.is-open { opacity: 1; transform: none; }
.mnav-inner { padding: 12px var(--gutter) 40px; display: flex; flex-direction: column; }
.mnav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
}
.mnav-link svg { color: var(--ink-3); transition: transform .3s var(--ease); }
.mnav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav-sub { display: grid; padding: 6px 0 12px 14px; border-bottom: 1px solid var(--line); }
.mnav-sub a { padding: 10px 0; color: var(--ink-2); font-size: 1.05rem; }
.mnav-sub a:first-child { color: var(--brand-600); font-weight: 600; }
.mnav-actions { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) { .mnav { display: none !important; } }
body.nav-open { overflow: hidden; }

/* 7. Home hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, 96svh, 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--dark); color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { animation: settle 1.8s var(--ease) both; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 20, 28, .78) 0%, rgba(11, 20, 28, .45) 45%, rgba(11, 20, 28, .05) 80%),
    linear-gradient(0deg, rgba(11, 20, 28, .92) 0%, rgba(11, 20, 28, .2) 42%, rgba(11, 20, 28, 0) 60%, rgba(11, 20, 28, .35) 100%);
}
.hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 6vw, 64px);
}
.hero-copy { max-width: 780px; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
  animation: rise .7s var(--ease) both;
}
.hero-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); }
.hero-title { font-size: clamp(2.75rem, 7.2vw, 5.75rem); line-height: .95; letter-spacing: -.01em; margin-bottom: 24px; }
.hero-line { display: block; animation: rise .8s var(--ease) both; }
.hero-line + .hero-line { animation-delay: .1s; }
.hero-mark { position: relative; white-space: nowrap; }
.hero-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; z-index: -1;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; animation: strip .9s var(--ease-io) .75s forwards;
}
.hero-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 54ch; margin-bottom: 32px; animation: rise .8s var(--ease) .2s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .8s var(--ease) .3s both; }
.hero-video-ui { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: rgba(255, 255, 255, .8); flex: none; max-width: 260px; }
.hero-video-toggle {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; transition: background-color .2s, color .2s;
}
.hero-video-toggle:hover { background: #fff; color: var(--ink); }
.hero-video-toggle .i-play, .hero-video-toggle.is-paused .i-pause { display: none; }
.hero-video-toggle.is-paused .i-play { display: block; }

.hero-facts { border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(11, 20, 28, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts li { padding: 22px 20px 22px 0; display: grid; gap: 2px; }
.hero-facts li + li { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-facts strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.hero-facts span { font-size: .92rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 859px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-video-ui { max-width: none; }
  .hero-facts ul { grid-template-columns: 1fr 1fr; }
  .hero-facts li { padding: 16px 12px 16px 0; }
  .hero-facts li + li { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-facts strong { font-size: 1.05rem; }
  .hero-facts span { font-size: .85rem; }
}
@media (max-width: 479px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: calc(var(--header-h) + 120px); }
  .hero-actions .btn { flex: 1 1 100%; }
}

@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes strip { to { transform: scaleX(1); } }

/* 8. Sections ------------------------------------------------------------------ */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(32px, 4.5vw, 56px); display: grid; gap: 16px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 20ch; }
.section-lead { font-size: 1.125rem; color: var(--ink-2); max-width: 56ch; }
.section-head.is-center { text-align: center; justify-items: center; }
.section-head.is-center .kicker { justify-content: center; }
.section-head:has(.section-head-link) { grid-template-columns: 1fr auto; align-items: end; }
@media (min-width: 960px) {
  .section-head.is-split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head.is-split .section-lead { justify-self: end; }
}
@media (max-width: 639px) {
  .section-head:has(.section-head-link) { grid-template-columns: 1fr; }
}
.section-foot { margin-top: 32px; }

/* 9. Services bento (home) ------------------------------------------------------ */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--dark-2);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.tile-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px;
  background: linear-gradient(180deg, rgba(11, 20, 28, 0) 35%, rgba(11, 20, 28, .88) 100%);
}
.tile-body > * { max-width: 46ch; }
.tile-body strong { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.05; }
.tile-body span { font-size: .98rem; color: rgba(255, 255, 255, .85); }
.tile-arrow {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile-arrow { background: var(--brand-600); color: #fff; transform: rotate(-45deg); }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-xl .tile-body { padding: 32px; }
.tile-xl .tile-body strong { font-size: clamp(2rem, 3vw, 2.6rem); }
.tile-wide { grid-column: span 2; }
@media (max-width: 959px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile { min-height: 230px; }
  .tile-xl { grid-row: auto; min-height: 360px; }
  .tile-xl, .tile-wide { grid-column: span 2; }
}
@media (max-width: 559px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 210px; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .tile-xl { min-height: 320px; }
  .tile-body strong, .tile-xl .tile-body strong { font-size: 1.6rem; }
}

/* 10. Process steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before, .step::after { content: ""; position: absolute; top: 0; left: 0; right: -32px; height: 2px; background: var(--line-2); }
.step:last-child::before, .step:last-child::after { right: 0; }
.step::after { background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-io) calc(var(--d, 0ms) + .2s); }
.step.is-visible::after, html:not(.reveal-on) .step::after { transform: scaleX(1); }
.step-num { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--brand-600); letter-spacing: .06em; margin-bottom: 10px; }
.step h3 { font-size: 1.4rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 959px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step:nth-child(2n)::before, .step:nth-child(2n)::after { right: 0; } }
@media (max-width: 559px) { .steps { grid-template-columns: 1fr; } .step::before, .step::after { right: 0; } }

/* 11. Works (home + trabajos) --------------------------------------------------- */
.works { display: grid; gap: 28px 24px; grid-template-columns: 1.45fr 1fr 1fr; }
.work { display: flex; flex-direction: column; gap: 14px; }
.work-media { display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-meta { display: grid; gap: 4px; }
.work-meta strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; transition: color .2s; }
.work:hover .work-media img { transform: scale(1.04); }
.work:hover .work-meta strong { color: var(--brand-600); }
.work-lead { grid-row: span 2; }
.work-lead .work-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.work-lead .work-meta strong { font-size: 1.6rem; }
@media (max-width: 959px) {
  .works { grid-template-columns: 1fr 1fr; }
  .work-lead { grid-column: span 2; grid-row: auto; }
  .work-lead .work-media { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 559px) {
  .works { grid-template-columns: 1fr; }
  .work-lead { grid-column: auto; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2);
  font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.works-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(3, 1fr); }
.works-grid .work.is-hidden { display: none; }
.filter-empty { color: var(--ink-3); }
@media (max-width: 959px) { .works-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .works-grid { grid-template-columns: 1fr; } }

/* 12. About split (home) -------------------------------------------------------- */
.about-split { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1.05fr 1fr; align-items: center; }
.about-media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 5 / 4; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.about-copy > p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 24px; }
.sectors { font-size: .98rem; color: var(--ink-3) !important; margin-block: 24px !important; }
.sectors span { color: var(--ink); font-weight: 600; margin-right: 4px; }
@media (max-width: 859px) { .about-split { grid-template-columns: 1fr; } }

.checklist { display: grid; gap: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; color: var(--brand-600); margin-top: 2px; }
.checklist strong { display: block; font-weight: 600; }
.checklist span { display: block; color: var(--ink-3); font-size: .98rem; }
.checklist.is-compact { gap: 10px; }

/* 13. Contact CTA block --------------------------------------------------------- */
.section-cta { padding-top: 0; }
.section-alt + .section-cta, .section-cta:first-child { padding-top: clamp(64px, 9vw, 120px); }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5.5vw, 72px); border-radius: 20px; background: var(--dark); color: #fff;
}
.cta-box::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 152, 216, .35), rgba(43, 152, 216, 0));
}
.cta-copy .kicker { color: #8fcaee; }
.cta-copy h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 14px; }
.cta-copy p:not(.kicker) { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 42ch; }
.cta-actions { display: grid; gap: 12px; }
.cta-action {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s, border-color .2s;
}
.cta-action > svg:first-child { flex: none; color: #8fcaee; }
.cta-action > span { display: grid; flex: 1; }
.cta-action strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.cta-action small { font-size: .92rem; color: rgba(255, 255, 255, .7); }
.cta-action > svg:last-child { flex: none; opacity: .7; transition: transform .25s var(--ease); }
.cta-action:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); }
.cta-action:hover > svg:last-child { transform: translateX(4px); }
.cta-action.is-primary { background: var(--brand-600); border-color: var(--brand-600); }
.cta-action.is-primary > svg:first-child { color: #fff; }
.cta-action.is-primary small { color: rgba(255, 255, 255, .85); }
.cta-action.is-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
@media (max-width: 859px) { .cta-box { grid-template-columns: 1fr; } }

/* 14. Interior page hero -------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px));
  padding-bottom: clamp(48px, 6vw, 80px);
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
.page-hero.has-media .page-hero-grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.page-hero-text > * { animation: rise .7s var(--ease) both; }
.page-hero-text > :nth-child(2) { animation-delay: .04s; }
.page-hero-text > :nth-child(3) { animation-delay: .08s; }
.page-hero-text > :nth-child(4) { animation-delay: .14s; }
.page-hero-text > :nth-child(5) { animation-delay: .2s; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; max-width: 18ch; margin-bottom: 18px; }
.page-hero-lead { font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero-media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--line); animation: rise .9s var(--ease) .1s both; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) {
  .page-hero.has-media .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { aspect-ratio: 16 / 10; }
}

.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 500; }

/* 15. Service pages ------------------------------------------------------------- */
.intro-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 20px; }
.intro-copy p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }
.intro-copy p:not(.kicker) + p { margin-top: 16px; }
.intro-list { background: var(--bg-alt); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); }
.intro-list h3 { font-size: 1.35rem; margin-bottom: 20px; }
@media (max-width: 859px) { .intro-split { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.benefit-icon {
  width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 18px;
  background: #fff; color: var(--brand-600); border: 1px solid var(--line);
}
.benefit h3 { font-size: 1.3rem; margin-bottom: 6px; }
.benefit p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 959px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .benefits { grid-template-columns: 1fr; } }

.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--bg-alt); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-grid.is-four { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.is-four .gallery-item { aspect-ratio: 1; }
@media (max-width: 859px) { .gallery-grid, .gallery-grid.is-four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .gallery-grid { grid-template-columns: 1fr; } }

.faq-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.faq-aside p:not(.kicker) { color: var(--ink-2); margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { border-top: 1px solid var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-700); }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer p { color: var(--ink-2); padding-bottom: 24px; max-width: 64ch; }
.faq-item::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq-item[open]::details-content { height: auto; }
@media (max-width: 859px) { .faq-split { grid-template-columns: 1fr; } .faq-aside { position: static; } }

.related-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.related-card { display: grid; gap: 12px; }
.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); transition: opacity .2s; }
.related-card span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.related-card span svg { color: var(--brand-600); transition: transform .25s var(--ease); }
.related-card:hover img { opacity: .88; }
.related-card:hover span svg { transform: translateX(4px); }
@media (max-width: 959px) { .related-grid { grid-template-columns: 1fr 1fr; } }

.svc-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.svc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.svc-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.svc-card-body h3 { font-size: 1.5rem; }
.svc-card-body > span:not(.link-arrow) { color: var(--ink-2); }
.svc-card-body .link-arrow { margin-top: auto; padding-top: 8px; }
.svc-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.svc-card:hover img { transform: scale(1.04); }
.svc-card:hover .link-arrow svg { transform: translateX(4px); }

.cat-rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.cat-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cat-row.is-flipped .cat-row-media { order: 2; }
.cat-row-media { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
.cat-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-row-media:hover img { transform: scale(1.04); }
.cat-row-body h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 14px; }
.cat-row-body h2 a:hover { color: var(--brand-700); }
.cat-row-body > p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }
.cat-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; margin: 24px 0 28px; }
.cat-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.cat-links a svg { color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.cat-links a:hover { color: var(--brand-700); }
.cat-links a:hover svg { color: var(--brand-600); transform: translateX(3px); }
@media (max-width: 859px) {
  .cat-row { grid-template-columns: 1fr; }
  .cat-row.is-flipped .cat-row-media { order: 0; }
}
@media (max-width: 479px) { .cat-links { grid-template-columns: 1fr; } }

/* 16. Nosotros ----------------------------------------------------------------- */
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 20px; }
.story-copy p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }
.story-copy p:not(.kicker) + p { margin-top: 16px; }
.story-facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.story-facts div { padding: 22px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
.story-facts dt { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brand-600); }
.story-facts dd { color: var(--ink-2); }
@media (max-width: 859px) { .story { grid-template-columns: 1fr; } }
.areas { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.area-media { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; margin-bottom: 20px; }
.area-media img { width: 100%; height: 100%; object-fit: cover; }
.area h3 { font-size: 1.45rem; margin-bottom: 8px; }
.area p { color: var(--ink-2); }
@media (max-width: 859px) { .areas { grid-template-columns: 1fr; } .area { display: grid; grid-template-columns: 180px 1fr; column-gap: 20px; } .area-media { grid-row: span 2; margin: 0; } }
@media (max-width: 479px) { .area { display: block; } .area-media { margin-bottom: 16px; } }

/* 17. Contact + forms ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-methods { display: grid; gap: 12px; }
.method {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.method > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.method strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.method > span:nth-child(2) > span { color: var(--ink-2); overflow-wrap: anywhere; }
.method > svg { flex: none; color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.method-icon { flex: none; width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.method-icon.is-wa { background: #e5f6ec; color: #168a45; }
a.method:hover { border-color: var(--ink); }
a.method:hover > svg { color: var(--ink); transform: translateX(4px); }
.method.is-static { background: var(--bg-alt); border-color: transparent; }
@media (max-width: 959px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-card > h2 { font-size: 1.9rem; margin-bottom: 6px; }
.form-intro { color: var(--ink-2); margin-bottom: 24px; }
.form-intro a, .field-check a, .prose a, .status-note a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 20px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.form fieldset + fieldset { margin-top: 12px; }
.form legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.form legend span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: var(--brand-50); color: var(--brand-700); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.is-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 639px) { .form-row, .form-row.is-three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: .98rem; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: #fff; font-size: 1.0625rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1822' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #8a96a1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(43, 152, 216, .2); }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { font-size: .9rem; color: var(--err); font-weight: 500; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.radio:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.radio input, .field-check input { accent-color: var(--brand-600); width: 18px; height: 18px; margin: 0; }
.field-check { display: flex; align-items: flex-start; gap: 12px; }
.field-check label { font-weight: 400; color: var(--ink-2); }
.field-check input { margin-top: 3px; flex: none; }
.hp { display: none !important; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 500; }
.form-status.is-error { background: var(--err-bg); color: var(--err); }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status a { text-decoration: underline; }

.quote-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.quote-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; }
.aside-card h2 { font-size: 1.45rem; margin-bottom: 16px; }
.aside-card p { color: var(--ink-2); margin-bottom: 18px; }
.mini-steps { display: grid; gap: 16px; counter-reset: mini; }
.mini-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; counter-increment: mini; }
.mini-steps li::before { content: counter(mini); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; }
.mini-steps strong { font-weight: 600; }
.mini-steps span { color: var(--ink-3); font-size: .98rem; }
@media (max-width: 959px) { .quote-grid { grid-template-columns: 1fr; } .quote-aside { position: static; } }

.map-facade {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 420px; display: grid; place-items: center; text-align: center;
  background-color: #e4ecf1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .7) 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.map-facade-inner { padding: 32px; display: grid; justify-items: center; gap: 14px; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-600); color: #fff; box-shadow: 0 10px 30px rgba(26, 121, 184, .35); }
.map-facade-inner > p:not(.map-note) { font-size: 1.15rem; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map-note { font-size: .88rem; color: var(--ink-3); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 18. Status pages, prose ------------------------------------------------------ */
.status-page { min-height: 72svh; display: grid; align-items: center; text-align: center; padding: calc(var(--header-h) + 64px) 0 96px; background: var(--bg-alt); }
.status-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.status-page p { color: var(--ink-2); font-size: 1.15rem; max-width: 52ch; margin-inline: auto; }
.status-icon { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-600); color: #fff; }
.status-code { font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 18vw, 10rem) !important; line-height: 1; color: var(--brand) !important; margin-bottom: 8px !important; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.status-note { margin-top: 32px !important; font-size: 1rem !important; color: var(--ink-3) !important; }

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.9rem; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.credits-list { list-style: none !important; padding: 0 !important; margin-top: 24px; }
.credits-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.credits-list a { color: var(--brand-600); }

/* 19. Footer ------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: clamp(56px, 8vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 40px; }
.footer-logo { height: 58px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; font-size: 1rem; }
.footer-col h2 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a, .footer-hours { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact svg { flex: none; color: #8fcaee; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { padding: 6px 0; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* 20. WhatsApp float ------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-wa);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(18, 140, 70, .35);
  transition: transform .25s var(--ease), opacity .25s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
body.nav-open .wa-float, body.lb-open .wa-float { opacity: 0; pointer-events: none; }

/* 21. Lightbox ------------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: grid; place-items: center; padding: 72px 80px 32px;
  background: rgba(8, 14, 20, .95); color: #fff;
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lb-figure { display: grid; gap: 14px; max-width: min(1200px, 100%); }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; margin-inline: auto; border-radius: var(--r); object-fit: contain; transform: scale(.98); transition: transform .35s var(--ease), opacity .2s; }
.lightbox.is-open .lb-figure img { transform: none; }
.lb-figure img.is-loading { opacity: .3; }
.lb-figure figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 1rem; }
.lb-count { color: rgba(255, 255, 255, .6); flex: none; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) {
  .lightbox { padding: 64px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
body.lb-open { overflow: hidden; }

/* 22. Scroll reveals (only once main.js is running) ----------------------------- */
.reveal-on .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), border-color .2s, box-shadow .25s, background-color .2s;
}
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
/* "Vinyl applied" wipe: a sheet the colour of the section peels away right→left
   (like the backing paper of a vinyl), then a light sheen crosses the image */
.reveal-on .reveal-wipe::before {
  content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  background: var(--wipe-bg, #fff); transform-origin: right center;
  transition: transform 1s var(--ease-io) var(--d, 0ms);
}
.reveal-on .reveal-wipe.is-visible::before { transform: scaleX(0); }
.section-alt { --wipe-bg: var(--bg-alt); }
.reveal-wipe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-100%); opacity: 0;
}
.reveal-on .reveal-wipe.is-visible::after { animation: sheen 1.1s var(--ease-io) calc(var(--d, 0ms) + .15s); }
@keyframes sheen { 0% { transform: translateX(-100%); opacity: 1; } 100% { transform: translateX(100%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .reveal-on .reveal-wipe::before { display: none; }
  .hero-mark::after { transform: scaleX(1); }
}

@media print {
  .site-header, .wa-float, .mnav, .lightbox, .cta-actions, .map-facade { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .hero-media { display: none; }
}
