/* KZ1 Construcción — site styles (clean, Apple-like) */

/* Apple devices render the system font (SF Pro). Everyone else gets Inter,
   which is only downloaded when the system font isn't available. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light page (Apple-style): white and light grey, near-black text, one blue for actions. */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --surface: #F5F5F7;
  --surface-2: #E8E8ED;
  --field: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --accent: #0071E3;
  --accent-hover: #0077ED;
  --on-accent: #FFFFFF;
  --link: #0066CC;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --red: #D70015;
  --red-soft: rgba(255, 59, 48, 0.08);
  --red-line: rgba(215, 0, 21, 0.28);
  --sample-ink: #8A5A00;
  --sample-line: rgba(138, 90, 0, 0.45);
  --sample-bg: rgba(255, 204, 0, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 48px);
  --maxw: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --toolbar: 0px;
  color-scheme: light;
}
/* Dark scope: the film, the roof layers (shown like a product on black) and the header over them. */
.film, .layers, .site-header {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #1D1D1F;
  --surface-2: #2C2C2E;
  --field: #000000;
  --text: #F5F5F7;
  --muted: #86868B;
  --link: #2997FF;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.2);
  --red: #FF6961;
  --red-soft: rgba(255, 69, 58, 0.14);
  --red-line: rgba(255, 69, 58, 0.45);
  --sample-ink: #FFD60A;
  --sample-line: rgba(255, 214, 10, 0.5);
  --sample-bg: rgba(255, 214, 10, 0.06);
  color: var(--text);
}
@supports (height: 100lvh) {
  :root { --toolbar: calc(100lvh - 100svh); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Shared pieces ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block; margin: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--muted);
}
.h2 {
  font-weight: 600; font-size: clamp(2.25rem, 5.6vw, 4rem); line-height: 1.06; letter-spacing: -0.035em;
  margin: 10px 0 0; text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--muted); }
.lede { color: var(--muted); font-size: clamp(1.06rem, 1.7vw, 1.3rem); line-height: 1.42; letter-spacing: -0.015em; max-width: 52ch; margin: 18px 0 0; font-weight: 400; }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
/* Light-grey band; cards inside it turn white. */
.section--alt { background: var(--bg-alt); --surface: #FFFFFF; --surface-2: #F5F5F7; }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(36px, 6vw, 64px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; }
  .section-head--split .lede { margin: 0; justify-self: end; }
}

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border-radius: 980px;
  font-weight: 500; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn svg { width: 17px; height: 17px; }

.sample {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  color: var(--sample-ink); border: 1px dashed var(--sample-line); background: var(--sample-bg);
  vertical-align: middle; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s var(--ease), border-color 0.4s, color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(22, 22, 23, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.site-header.is-light {
  --text: #1D1D1F; --muted: #6E6E73; --line: rgba(0, 0, 0, 0.1);
  --red: #D70015; --red-soft: rgba(255, 59, 48, 0.08); --red-line: rgba(215, 0, 21, 0.28);
}
.site-header.is-light.is-solid { background: rgba(255, 255, 255, 0.76); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 22px; height: 22px; flex: none; }
.logo__word { font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.logo__name { font-weight: 600; }
.logo__sub { font-weight: 400; color: var(--muted); }
.nav { display: none; gap: 32px; }
.nav a { text-decoration: none; font-size: 12.5px; letter-spacing: -0.01em; color: var(--text); opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.header-cta { --h: 30px; padding: 0 14px; font-size: 13px; font-weight: 400; }
.header-cta .full { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta .full { display: inline; }
  .header-cta .short { display: none; }
}

/* ---------- Scroll film ---------- */
.film { position: relative; height: calc(var(--screens, 5) * 100vh); background: #000; }
.film__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: #000 center / cover no-repeat;
  background-image: var(--poster-desktop);
}
@supports (height: 100lvh) { .film__stage { height: 100lvh; } }
@media (max-aspect-ratio: 9/10) { .film__stage { background-image: var(--poster-mobile); } }
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Native-resolution frame shown when the scroll rests (same cover crop as the canvas). */
.film__hd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.film__hd.is-on { opacity: 1; transition: opacity 0.18s ease; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 26%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0) 40%);
}
@media (min-width: 900px) {
  .film__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 12%),
      linear-gradient(100deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0) 48%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 30%);
  }
}

/* Phone: title at the top, buttons at the bottom, the hole framed in between. */
.film__hero {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 86px) 0 calc(var(--safe-b) + var(--toolbar) + 26px);
  transform: translateY(var(--lift, 0px));
  will-change: opacity, transform;
}
.film__hero > .wrap { flex: 1; display: flex; flex-direction: column; }
/* Phone: extra shade behind the title while it is on screen (it fades out with the hero). */
@media (max-width: 899px) {
  .film__hero { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.44) 46%, rgba(0, 0, 0, 0) 68%); }
}
/* Desktop: a soft pool of shade behind the bottom-left title; it fades out with the hero. */
@media (min-width: 900px) {
  .film__hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: 0; bottom: calc(-1 * (var(--safe-b) + 44px)); width: 78%; height: 175%;
    background: radial-gradient(ellipse 75% 62% at 24% 62%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0) 78%);
  }
}
.film__hero .film__ctas { margin-top: auto; }
.film__hero .eyebrow { font-size: 15px; color: rgba(245, 245, 247, 0.72); font-weight: 500; }
.film__title {
  font-weight: 600; font-size: clamp(3rem, 13vw, 7rem); line-height: 1.02; letter-spacing: -0.04em;
  margin: 10px 0 0;
}
.film__title em { display: block; font-style: normal; color: #F5F5F7; }
.film__title, .film__sub, .film__hero .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 2px 28px rgba(0, 0, 0, 0.35); }
.film__sub { margin: 14px 0 0; font-size: clamp(1.06rem, 2.2vw, 1.3rem); color: rgba(245, 245, 247, 0.86); display: flex; align-items: center; gap: 10px; letter-spacing: -0.015em; }
.film__sub .pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.film__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 899px) {
  .film__ctas .btn { flex: 1 1 100%; --h: 50px; }
}
@media (min-width: 900px) {
  /* Desktop: bottom-left over the dark foreground, so the sky and the house stay clear. */
  .film__hero { inset: auto 0 calc(var(--safe-b) + 44px) 0; display: block; padding: 0; }
  .film__hero > .wrap { display: block; }
  .film__hero .film__ctas { margin-top: 26px; }
  .film__title { font-size: clamp(3.4rem, 4.8vw, 5.2rem); }
}

.film__chapter {
  position: absolute; left: 0; right: 0;
  bottom: calc(var(--safe-b) + var(--toolbar) + 26px);
}
.film__when { color: rgba(242, 243, 244, 0.7); font-weight: 500; }
.film__note { margin: 10px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--sample-ink); opacity: 0.8; }
.film__chapter-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: rgba(245, 245, 247, 0.72); }
.film__chapter-text {
  font-weight: 600; font-size: clamp(1.4rem, 3.6vw, 2.1rem); line-height: 1.14; letter-spacing: -0.03em;
  margin: 8px 0 0; max-width: 22ch; min-height: 2.3em; text-wrap: balance;
}
@media (min-width: 900px) { .film__chapter-text { max-width: 26ch; } }
.film__chapter-text, .film__chapter-meta { transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.film__chapter.is-switching .film__chapter-text,
.film__chapter.is-switching .film__chapter-meta { opacity: 0; transform: translateY(8px); }
.film__progress { display: flex; gap: 6px; margin-top: 18px; max-width: 420px; }
.film__progress span { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; position: relative; }
.film__progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }

.film__hint {
  position: absolute; right: var(--gutter); bottom: calc(var(--safe-b) + var(--toolbar) + 30px);
  display: grid; justify-items: center; gap: 8px;
  font-size: 12px; color: rgba(245, 245, 247, 0.7);
  transition: opacity 0.4s;
}
.film__hint::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--text), transparent); animation: drip 1.8s var(--ease-out) infinite; transform-origin: top; }
@media (max-width: 899px) { .film__hint { display: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.film__loader {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: #fff;
  transform-origin: left; transform: scaleX(0); transition: transform 0.3s, opacity 0.6s;
}
.film__loader.is-done { opacity: 0; }

/* ---------- Statement + stats ---------- */
.statement { text-align: center; padding-top: clamp(100px, 13vw, 170px); }
.statement__title { font-weight: 600; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1.06; letter-spacing: -0.04em; margin: 12px auto 0; max-width: 17ch; text-wrap: balance; }
.statement__title em { display: block; font-style: normal; color: var(--muted); }
.statement__body { color: var(--muted); max-width: 56ch; margin: 24px auto 0; font-size: clamp(1.06rem, 1.7vw, 1.3rem); line-height: 1.42; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(56px, 8vw, 88px); }
.stat { background: var(--surface); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px) 16px; display: grid; gap: 6px; justify-items: center; }
.stat__value { font-weight: 600; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 15px; }
.stats-note { margin-top: 14px; display: flex; justify-content: center; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Services ---------- */
.services { display: grid; gap: 12px; }
.service { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 40px); display: grid; gap: 12px; align-content: start; transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.service:hover { background: var(--surface-2); transform: translateY(-2px); }
.service__icon { color: var(--text); }
.service__icon svg { width: 34px; height: 34px; }
.service h3 { font-weight: 600; font-size: 1.32rem; letter-spacing: -0.025em; margin: 8px 0 0; }
.service p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.47; }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Process ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 26px 24px 26px 74px; border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  background: var(--text); color: var(--bg); letter-spacing: 0;
}
.step h3 { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.step__when { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps--5 { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 80px 24px 30px; min-height: 250px; }
  .step::before { top: 28px; width: 34px; height: 34px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(1.06rem, 2vw, 1.2rem); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); position: relative; transition: background-color 0.3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; border-radius: 2px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq details[open] summary .plus { background: var(--text); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--bg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { margin: -4px 0 24px; color: var(--muted); max-width: 66ch; }
@media (min-width: 900px) { .faq-layout .h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); } .faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .faq-layout .section-head { position: sticky; top: 100px; } }

/* ---------- Service area ---------- */
.area { display: grid; gap: 40px; align-items: center; }
.area__map { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.area__map svg { width: 100%; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 980px; background: var(--surface); font-size: 15px; }
@media (min-width: 900px) { .area { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ---------- Quote form ---------- */
.quote__grid { display: grid; gap: 40px; }
.quote__contact { display: grid; gap: 14px; margin-top: 30px; }
.quote__contact a, .quote__contact div { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.quote__contact a:hover { color: var(--link); }
.quote__contact svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.form { border-radius: 28px; padding: clamp(22px, 4vw, 40px); background: var(--surface); display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line-strong);
  font-size: 17px; /* 16px+ stops iOS zoom-on-focus */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.22); }
.field input:user-invalid, .field select:user-invalid { border-color: #FF453A; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.form__foot small { color: var(--muted); font-size: 13px; max-width: 36ch; letter-spacing: -0.01em; }
.form__error { color: #FF453A; margin: 0; }
.form__success { display: none; text-align: center; padding: 30px 10px; }
.form__success h3 { font-weight: 600; font-size: 1.9rem; letter-spacing: -0.035em; margin: 16px 0 6px; }
.form__success p { color: var(--muted); margin: 0; }
.form.is-sent { align-content: center; }
.form.is-sent > :not(.form__success) { display: none; }
.form.is-sent .form__success { display: block; }
.check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(110px + var(--safe-b)); background: var(--bg-alt); font-size: 13px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }
.footer__top { display: grid; gap: 32px; }
.footer__tag { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; font-size: 13px; }
.footer__cols h4 { margin: 0 0 10px; font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.footer__cols a, .footer__cols p { display: block; margin: 0 0 8px; text-decoration: none; color: var(--muted); }
.footer__cols a:hover { color: var(--text); text-decoration: underline; }
.footer__demo { margin-top: 40px; padding: 16px 18px; border: 1px dashed var(--sample-line); border-radius: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.6; background: var(--sample-bg); }
.footer__demo strong { color: var(--sample-ink); }
.footer__legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr 1.4fr; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
  border-radius: 980px; background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  /* Hidden: pushed fully below the screen (safe area + Safari toolbar included) and made
     invisible once it has slid away, so no sliver of it ever peeks over the film. */
  transform: translateY(calc(100% + 24px + var(--safe-b) + var(--toolbar)));
  visibility: hidden; pointer-events: none;
  transition: transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.action-bar.is-visible { transform: none; visibility: visible; pointer-events: auto; transition: transform 0.5s var(--ease-out), visibility 0s; }
.action-bar .btn { --h: 46px; padding: 0 14px; font-size: 16px; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .film__hint::after, .film__sub .pulse { animation: none; }
}
@media (max-width: 429px) { .site-header .logo__sub { display: none; } }

/* ---------- Header extras ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn--leak { --h: 30px; padding: 0 14px; font-size: 13px; font-weight: 400; background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.btn--leak:hover { background: var(--red-soft); filter: brightness(0.97); }
.header-leak { display: none; }
@media (min-width: 900px) { .header-leak { display: inline-flex; } }
.leak-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF453A; flex: none; box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.7); animation: leakPulse 1.8s infinite; }
@keyframes leakPulse { 70% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); } }
.btn--leak-ghost { background: rgba(255, 255, 255, 0.14); color: var(--text); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.btn--leak-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.action-bar .btn--leak-ghost { background: rgba(0, 0, 0, 0.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- Film: infrared scan, markers, read-outs ---------- */
.film__thermal { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; }
.film__thermal picture, .film__thermal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__thermal img { object-fit: cover; }
.film__scanline {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; opacity: 0;
  background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.55), 0 0 48px 14px rgba(255, 255, 255, 0.18);
}
.film__markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; gap: 10px; transition: opacity 0.2s; }
.marker__dot { position: relative; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0, 0, 0, 0.45); flex: none; }
.marker__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #fff; animation: markerPing 1.8s var(--ease-out) infinite; }
@keyframes markerPing { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.marker__label {
  margin-top: -7px; padding: 6px 12px; border-radius: 980px; white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  background: rgba(16, 17, 19, 0.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.marker.is-left { flex-direction: row-reverse; }
.marker.is-left .marker__dot { margin: -7px -7px 0 0; }
@media (max-width: 899px) { .marker__label { font-size: 13px; padding: 5px 10px; } }
.film__readout { position: absolute; right: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 74px); display: grid; justify-items: end; pointer-events: none; }
.readout {
  grid-area: 1 / 1; visibility: hidden; opacity: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 16px; font-size: 14px; color: rgba(242, 243, 244, 0.8);
  background: rgba(16, 17, 19, 0.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.readout strong { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 899px) { .film__readout { left: var(--gutter); right: var(--gutter); justify-items: start; top: calc(env(safe-area-inset-top, 0px) + 66px); } }

/* ---------- Quote extras ---------- */
.leak-card { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; text-decoration: none; background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-line); }
.leak-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--red); }
.leak-card span:last-child { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 760px) { .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.form__row--3 { display: grid; gap: 16px; }
.tick--wide { font-size: 15px; color: var(--text); }
.tick--wide input { width: 20px; height: 20px; accent-color: var(--accent); }
.action-bar { grid-template-columns: 1fr 1.5fr; }
@media (prefers-reduced-motion: reduce) { .leak-dot, .marker__dot::after { animation: none; } }

/* ======================================================================
   Shared additions (type scale, buttons, picks)
   ====================================================================== */

/* ---------- Apple type scale ----------
   SF Pro tracking: large display text near -0.005em, 21px headings +0.011em,
   body copy 17px / 1.47059 / -0.022em. */
body { line-height: 1.47059; letter-spacing: -0.022em; text-rendering: optimizeLegibility; }
.h2, .statement__title, .film__title, .film__chapter-text, .service h3, .step h3, .layers__name, .faq summary, .form__success h3 {
  letter-spacing: -0.005em; line-height: 1.07;
}
.h2 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); }
.statement__title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -0.012em; max-width: 22ch; }
.film__title { line-height: 1.05; letter-spacing: -0.015em; }
.film__chapter-text { line-height: 1.14; letter-spacing: 0.004em; }
.lede, .statement__body, .layers__text { letter-spacing: 0.011em; line-height: 1.381; }
.service h3, .step h3 { font-size: 21px; line-height: 1.19; letter-spacing: 0.011em; }
.faq summary { font-size: clamp(1.1rem, 1.8vw, 1.3125rem); line-height: 1.3; letter-spacing: 0.011em; }
.service p, .step p, .chips li { letter-spacing: -0.016em; }
.btn { font-weight: 400; letter-spacing: -0.022em; }
.nav a { font-size: 12px; letter-spacing: -0.01em; }
small, .footer__legal, .footer__note { letter-spacing: -0.01em; }

/* ---------- Header + hero buttons ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn--call { --h: 30px; padding: 0 14px; font-size: 13px; background: rgba(255, 255, 255, 0.12); color: var(--text); }
.btn--call svg { width: 14px; height: 14px; }
.site-header.is-light .btn--call { background: rgba(0, 0, 0, 0.05); }
.header-call { display: none; }
@media (min-width: 900px) { .header-call { display: inline-flex; } }
.site-header .header-cta { background: #F5F5F7; color: #0B1331; }
.site-header.is-light .header-cta { background: var(--accent); color: var(--on-accent); }
.header-cta:hover { filter: brightness(0.96); }
.btn--light { background: #F5F5F7; color: #0B1331; }
.btn--light:hover { background: #FFFFFF; }
.btn--glass { background: rgba(255, 255, 255, 0.14); color: #F5F5F7; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn--call-bar { background: rgba(0, 0, 0, 0.06); color: var(--text); }
.action-bar { grid-template-columns: 1fr 1.9fr; }

/* ---------- Facts ---------- */
.stat__value { letter-spacing: -0.01em; }

/* ---------- Bid form: system picks ---------- */
.picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks legend { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; padding: 0; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 980px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; transition: box-shadow 0.2s, background-color 0.2s; }
.pick input:checked + span { background: rgba(11, 19, 49, 0.06); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(11, 19, 49, 0.16); }

/* ---------- Rhythm: tighter section spacing (about 25% less on desktop) ---------- */
.section { padding: clamp(80px, 9vw, 120px) 0; }
.statement { padding-top: clamp(96px, 10vw, 136px); padding-bottom: clamp(56px, 6vw, 84px); }
.gcs { padding-bottom: clamp(64px, 7vw, 96px); }


/* ======================================================================
   KZ1 Construcción
   ====================================================================== */
:root { --violet: #9B4DFF; --violet-deep: #3B1F5C; }

/* ---------- Client logo (vector): white over the film, purple on light ---------- */
.logo img { display: block; height: 44px; width: auto; }
@media (min-width: 900px) { .site-header .logo img { height: 48px; } }
.logo__on-light { display: none; }
.site-header.is-light .logo__on-dark { display: none; }
.site-header.is-light .logo__on-light { display: block; }
.footer__logo img { height: 56px; }

/* ---------- Progress: one labeled bar per stage ---------- */
.film__progress span { height: auto; background: none; overflow: visible; display: grid; gap: 6px; }
.film__progress span::before { content: ""; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); grid-area: 1 / 1; }
.film__progress i { position: static; grid-area: 1 / 1; height: 3px; border-radius: 3px; background: #fff; }
.film__progress b { font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; color: rgba(245, 245, 247, 0.45); }
.film__progress .is-on b { color: #fff; }

/* ---------- Loupe (detail magnifier at rest) ---------- */
.loupe { position: absolute; left: 0; top: 0; width: 180px; height: 180px; pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease-out); z-index: 2; }
.loupe.is-on { opacity: 1; }
.loupe__lens {
  position: absolute; inset: 0; border-radius: 50%; background-repeat: no-repeat; background-color: #000;
  box-shadow: 0 0 0 3px #fff, 0 18px 50px rgba(0, 0, 0, 0.55);
}
.loupe__label {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(16, 17, 19, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.loupe__dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px #fff; }
@media (max-width: 899px) { .loupe__label { font-size: 12px; } }

/* ---------- Services (6 cards, last one links to the epoxy page) ---------- */
@media (min-width: 760px) { .services--6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services--6 { grid-template-columns: repeat(3, 1fr); } }
.service--link { text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1.5px var(--violet); }
.service__tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 600; color: var(--violet); }
.service__tag svg { width: 15px; height: 15px; }

/* ---------- Inside: before / after ---------- */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; }
.compare__handle i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.compare__handle i::before, .compare__handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare__handle i::before { left: 6px; border-right-color: #1D1D1F; }
.compare__handle i::after { right: 6px; border-left-color: #1D1D1F; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(16, 17, 19, 0.7); pointer-events: none; }
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
@media (max-width: 599px) { .compare { aspect-ratio: 3 / 4; } }

/* ---------- Projects gallery (client photos, portrait) ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; display: grid; gap: 2px; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0)); font-size: 13px; letter-spacing: -0.01em; }
.shot figcaption strong { font-size: 15px; font-weight: 600; }
.shot figcaption span { opacity: 0.85; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 599px) { .gallery .shot:last-child { grid-column: span 2; aspect-ratio: 4 / 3; } }

/* ---------- Epoxy teaser ---------- */
.epoxy-card { position: relative; display: grid; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #F5F5F7; background: #0B0B0F; min-height: 440px; }
.epoxy-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transition: transform 1s var(--ease-out); }
.epoxy-card:hover img { transform: scale(1.03); }
.epoxy-card__body { position: relative; align-self: end; padding: clamp(24px, 4vw, 48px); --muted: rgba(245, 245, 247, 0.78);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.epoxy-card .eyebrow { color: #C4B5FD; }
.epoxy-card .btn { margin-top: 22px; }
.epoxy-card .btn svg { width: 16px; height: 16px; }

/* ======================================================================
   Home film: text placed around the house (positions set by app.js fitText)
   ====================================================================== */
/* The sub-line rides with the buttons, so only the title sits above the house. */
.film--house .film__hero .film__sub { margin-top: auto; }
.film--house .film__hero .film__ctas { margin-top: 18px; }
@media (max-width: 899px) {
  /* Captions below the house, over the foreground; the note stays at the very bottom. */
  .film--house .film__chapter { top: calc(var(--house-bottom, 62%) + 12px); bottom: calc(var(--vis-bottom, 14px) + var(--safe-b)); }
  .film--house .film__chapter > .wrap { height: 100%; display: flex; flex-direction: column; }
  .film--house .film__chapter > .wrap > * { flex-shrink: 0; }
  .film--house .film__chapter .film__note { margin-top: auto; }
  .film--house .film__chapter-text { min-height: 0; }
  .film--house .film__title { text-wrap: balance; }
}
@media (min-width: 900px) {
  /* Desktop: title and captions top-left over the sky, left of the roof line;
     the sub-line and buttons at the bottom-left over the foreground. */
  .film--house .film__hero { inset: 0; display: flex; padding: calc(env(safe-area-inset-top, 0px) + 100px) 0 calc(var(--safe-b) + 44px); }
  .film--house .film__hero > .wrap { display: flex; flex-direction: column; }
  .film--house .film__title { max-width: 12ch; }
  .film--house .film__hero::before { top: 0; bottom: auto; height: 100%; width: 70%;
    background: radial-gradient(ellipse 60% 48% at 14% 26%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 80%),
                radial-gradient(ellipse 60% 30% at 18% 92%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 80%); }
  .film--house .film__chapter { top: calc(env(safe-area-inset-top, 0px) + 100px); bottom: auto; }
  .film--house .film__chapter-text { max-width: 18ch; min-height: 0; }
  .film--house .film__progress { max-width: 340px; }
  .film--house .film__shade { background:
      radial-gradient(ellipse 48% 42% at 12% 22%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.26) 50%, rgba(0, 0, 0, 0) 85%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 18%); }
}
