/* =====================================================================
   VETA REFORMAS
   Concepto: plano de obra. Piedra clara, grafito y nogal; cotas de plano
   (líneas de medida) como detalle propio del oficio.
   ===================================================================== */

:root {
  /* Color */
  --bg: #EEEBE5;          /* piedra caliza */
  --surface: #FBFAF7;     /* tarjetas y formularios */
  --ink: #172019;         /* texto, casi negro con sesgo verde */
  --muted: #5C635E;
  --line: #D9D4CA;
  --accent: #A6542A;      /* cobre-nogal: CTA y detalles */
  --accent-strong: #86401C;
  --on-accent: #FFFFFF;
  --dark: #15201C;        /* verde pizarra profundo */
  --dark-2: #24332D;
  --on-dark: #EFECE4;
  --on-dark-muted: #A9B4AD;
  --led: #E4B877;         /* latón / luz LED, solo sobre fondo oscuro */
  --ok: #2F7D5B;
  --error: #B3261E;
  --shadow: 0 1px 2px rgba(21, 32, 28, .06), 0 14px 34px -14px rgba(21, 32, 28, .22);

  /* Tipografía */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Escala */
  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-h3: 1.3rem;
  --t-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  --t-h1: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1513;
    --surface: #17201C;
    --ink: #ECE9E2;
    --muted: #A3ACA6;
    --line: #2A3631;
    --accent: #B4612F;
    --accent-strong: #C97340;
    --on-accent: #FFFFFF;
    --dark: #0A100E;
    --dark-2: #1B2723;
    --on-dark: #EFECE4;
    --on-dark-muted: #A9B4AD;
    --led: #E4B877;
    --ok: #5CC293;
    --error: #FF8A80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1513;
    --surface: #17201C;
    --ink: #ECE9E2;
    --muted: #A3ACA6;
    --line: #2A3631;
    --accent: #B4612F;
    --accent-strong: #C97340;
    --on-accent: #FFFFFF;
    --dark: #0A100E;
    --dark-2: #1B2723;
    --on-dark: #EFECE4;
    --on-dark-muted: #A9B4AD;
    --led: #E4B877;
    --ok: #5CC293;
    --error: #FF8A80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--led); }
.h2 { font-size: var(--t-h2); font-weight: 700; }
.h2--light { color: var(--on-dark); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), scale .16s ease-out, box-shadow .3s var(--ease);
}
.btn:active { scale: .97; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-strong); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--lg { padding: 16px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent::after { content: "→"; transition: transform .2s var(--ease); }
.btn--accent:hover::after { transform: translateX(3px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: var(--t-sm); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar a { color: var(--led); text-decoration: none; font-weight: 600; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4FC08D; margin-right: 6px; box-shadow: 0 0 0 0 rgba(79, 192, 141, .6); animation: pulse 2.4s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,192,141,.55); } 70% { box-shadow: 0 0 0 8px rgba(79,192,141,0); } 100% { box-shadow: 0 0 0 0 rgba(79,192,141,0); } }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo__mark { width: 40px; height: 40px; }
.logo__tile { fill: var(--dark); }
.logo__v { fill: none; stroke: var(--on-dark); stroke-width: 3.6; stroke-linecap: round; }
.logo__vein { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; }
.logo__sub { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .32em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); position: relative; padding-block: 6px; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none !important; }
.header__cta { padding: 11px 18px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 88px); position: relative; }
.hero::before {
  /* retícula de plano muy tenue */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title { font-size: var(--t-h1); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.hero__title em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .09em;
  background: currentColor; opacity: .35; transform-origin: left;
  animation: drawline 1.1s .4s var(--ease) both;
}
@keyframes drawline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lead { margin-top: 22px; font-size: var(--t-lg); color: var(--muted); max-width: 34em; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: var(--t-sm); color: var(--muted); }
.hero__trust li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.hero__trust strong { color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; }
.stars { color: var(--accent); letter-spacing: 2px; }

.hero__media { margin: 0; position: relative; min-width: 0; }
.hero__frame { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.04); animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.04); } }

/* Cotas de plano */
.cota { position: absolute; display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .72rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); animation: fadein .8s 1s var(--ease) both; }
.cota i { display: block; height: 1px; background: #fff; position: relative; box-shadow: 0 0 3px rgba(0,0,0,.4); }
.cota i::before, .cota i::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: #fff; }
.cota i::before { left: 0; } .cota i::after { right: 0; }
.cota b { font-weight: 500; background: rgba(20, 24, 26, .62); padding: 4px 8px; border-radius: 3px; backdrop-filter: blur(4px); white-space: nowrap; }
.cota--a { left: 6%; bottom: 36%; } .cota--a i { width: 64px; }
.cota--b { right: 6%; top: 46%; flex-direction: row-reverse; } .cota--b i { width: 48px; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero__card {
  position: absolute; left: -28px; bottom: 28px;
  background: var(--surface); color: var(--ink);
  padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 2px; min-width: 220px;
  animation: fadein .8s .7s var(--ease) both;
}
.hero__card-k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.hero__card-k::before { content: "✓"; font-weight: 700; }
.hero__card-v { font-weight: 700; }
.hero__card-m { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Cifras ---------- */
.stats { background: linear-gradient(90deg, var(--dark), color-mix(in srgb, var(--dark) 82%, var(--accent))); color: var(--on-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--dark-2); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { color: var(--led) !important; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--on-dark); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat__l { color: var(--on-dark-muted); font-size: var(--t-sm); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--surface); }
.section__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head > * { min-width: 0; }
.section__intro { color: var(--muted); max-width: 36em; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 22vw, 300px); gap: 14px; grid-auto-flow: dense; }
.work {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--line); text-align: left;
}
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .work:hover img { scale: 1.06; } }
.work__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(14, 17, 19, .82), rgba(14, 17, 19, 0));
  color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.work__t { font-weight: 700; font-size: 1.05rem; }
.work__m { font-family: var(--f-mono); font-size: .74rem; color: #E6E6E2; letter-spacing: .02em; }

.inline-cta {
  margin-top: 28px; padding: 22px 26px;
  border: 1px dashed var(--muted); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.inline-cta p { color: var(--muted); }
.inline-cta strong { color: var(--ink); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.service:hover { border-color: var(--accent); transform: translateY(-2px); }
.service h3 { font-size: var(--t-h3); font-weight: 700; }
.service p { color: var(--muted); font-size: .98rem; }
.service .price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.service .price strong { color: var(--accent); font-size: 1.05rem; }
.service--feature { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; background: var(--dark); border-color: var(--dark); }
.service--feature:hover { border-color: var(--accent); }
.service--feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service--feature .service__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service--feature h3 { color: var(--on-dark); font-size: 1.7rem; }
.service--feature p { color: var(--on-dark-muted); }
.service--feature .price { border-top-color: var(--dark-2); color: var(--on-dark-muted); }
.service--feature .price strong { color: var(--led); }

/* ---------- Calculadora ---------- */
.calc-section { background: radial-gradient(ellipse 60% 70% at 85% 40%, color-mix(in srgb, var(--led) 14%, transparent), transparent 70%), var(--dark); color: var(--on-dark); position: relative; overflow: clip; }
.calc-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--dark-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dark-2) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .55;
}
.calc { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.calc__intro { min-width: 0; }
.calc__intro > p { color: var(--on-dark-muted); margin-top: 18px; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.checks--light li { color: var(--on-dark); }
.checks--light li::before { color: var(--led); }

.calc__card { background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); display: grid; gap: 22px; min-width: 0; }
.calc__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__group legend { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; width: 100%; }
.calc__group output { font-family: var(--f-mono); color: var(--accent); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .95rem; transition: all .2s var(--ease); }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }
.calc__help { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.calc__result { background: var(--bg); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; border-left: 3px solid var(--accent); }
.calc__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc__price { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.calc__meta { font-size: var(--t-sm); color: var(--muted); }
.calc__fine { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Método ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { padding: 28px 26px 8px 0; position: relative; border-top: 1px solid var(--ink); }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 1px; height: 11px; background: var(--ink); }
.step:last-child::after { content: ""; position: absolute; top: -6px; right: 0; width: 1px; height: 11px; background: var(--ink); }
.step__n { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--accent); display: block; }
.step__when { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin: 14px 0 6px; }
.step h3 { font-size: var(--t-h3); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Compromiso ---------- */
.promise { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--dark); color: var(--on-dark); }
.promise__media { position: relative; min-height: 420px; overflow: hidden; }
.promise__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.promise__copy { padding: clamp(48px, 7vw, 104px) var(--gutter); max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.promise__list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 16px; }
.promise__list li { color: var(--on-dark-muted); padding-left: 20px; position: relative; }
.promise__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--led); }
.promise__list strong { color: var(--on-dark); }

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.review figcaption { display: flex; gap: 12px; align-items: center; font-size: var(--t-sm); color: var(--muted); }
.review figcaption strong { color: var(--ink); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--f-mono); font-size: .78rem; flex-shrink: 0; }
.note { margin-top: 48px; font-size: .8rem; color: var(--muted); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.faq .h2 { margin-bottom: 18px; }
.faq .section__intro { margin-bottom: 24px; }
.faq__list { border-top: 1px solid var(--line); min-width: 0; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.4rem; color: var(--accent); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { padding: 0 40px 22px 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { position: relative; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__copy { min-width: 0; }
.contact__copy .section__intro { margin-top: 18px; }
.contact__direct { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.contact__k { color: var(--muted); font-size: var(--t-sm); }
.contact__k a { color: var(--ink); font-weight: 600; }
.contact__phone { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.1; }
.contact__phone a { text-decoration: none; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow); position: relative; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field textarea { resize: vertical; min-height: 84px; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.consent.is-invalid { color: var(--error); }
.form__error { color: var(--error); font-weight: 600; font-size: .92rem; }
.form__fine { text-align: center; font-size: .82rem; color: var(--muted); }
.form__done { position: absolute; inset: 0; background: var(--surface); border-radius: inherit; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 14px; animation: fadein .4s var(--ease) both; }
.form__done-t { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.02em; }
.form__done p { color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px; }

/* ---------- Pie ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 64px 28px; font-size: .94rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--led); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .7fr; gap: 32px; }
.footer__grid > * { min-width: 0; }
.footer__h { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--led); margin-bottom: 12px; }
.footer__tag { margin-top: 16px; max-width: 26em; }
.logo--footer { color: var(--on-dark); }
.logo--footer .logo__tile { fill: var(--on-dark); }
.logo--footer .logo__v { stroke: var(--dark); }
.logo--footer .logo__sub { color: var(--on-dark-muted); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--dark-2); font-size: .82rem; }

/* ---------- WhatsApp y barra móvil ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.mbar { display: none; }

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 13, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px 24px; animation: fadein .25s var(--ease) both; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: var(--radius); }
.lightbox p { color: #EDEDEA; font-weight: 600; }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ---------- Animación de entrada (progresiva) ---------- */
.js .reveal-pending { opacity: 0; transform: translateY(40px) scale(.985); }
.js .reveal-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a { font-size: 1.15rem; color: var(--ink); padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
  .nav.is-open .nav__cta-mobile { display: inline-flex !important; margin-top: 14px; border-bottom: 0; color: var(--on-accent); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--feature { grid-row: auto; }
}

@media (max-width: 900px) {
  .hero__grid, .calc, .faq, .contact__grid, .promise { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__card { left: 12px; bottom: 12px; }
  .section__head { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--dark-2); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .reviews { grid-template-columns: 1fr; }
  .promise__media { min-height: 0; aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .topbar__right { display: none; }
  .topbar__in { justify-content: center; text-align: center; font-size: .82rem; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .logo__mark { width: 36px; height: 36px; }
  .hero__ctas .btn { width: 100%; }
  .hero__frame { aspect-ratio: 4 / 4.4; }
  .cota--b { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: 10px; }
  .work--tall { grid-row: span 2; }
  .work--wide { grid-column: span 2; }
  .work__info { padding: 28px 12px 10px; }
  .work__t { font-size: .92rem; }
  .work__m { font-size: .66rem; }
  .services { grid-template-columns: 1fr; }
  .service--feature { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .inline-cta .btn { width: 100%; }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 14px; width: 52px; height: 52px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mbar a { display: grid; place-items: center; padding: 13px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
  .mbar__call { border: 1.5px solid var(--ink); color: var(--ink); }
  .mbar__cta { background: var(--accent); color: var(--on-accent); }
}

/* Solo se desactiva lo intrusivo */
@media (prefers-reduced-motion: reduce) {
  .topbar .dot { animation: none; }
  .hero__frame img { animation: none; }
}

@media (max-width: 640px) {
  .work:not(.work--wide):not(.work--tall) .work__m { display: none; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; }
}

/* ---------- Hero 3D: casa en construcción ---------- */
.hero__frame {
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, color-mix(in srgb, var(--surface) 90%, var(--led)), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, var(--surface)), color-mix(in srgb, var(--bg) 85%, var(--dark)));
}
.hero__frame canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .6s ease;
  cursor: grab; touch-action: pan-y;
}
.hero__frame.is-grabbing canvas { cursor: grabbing; }
.hero__frame.is-3d canvas { opacity: 1; }
.hero__frame.is-3d > img { opacity: 0; transition: opacity .6s ease; }
.phase, .replay, .drag-hint { position: absolute; z-index: 2; opacity: 0; transition: opacity .5s ease .3s; }
.hero__frame.is-3d .phase, .hero__frame.is-3d .replay, .hero__frame.is-3d .drag-hint { opacity: 1; }
.phase {
  top: 16px; left: 16px; display: grid; gap: 4px; min-width: 168px;
  padding: 10px 14px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent);
  box-shadow: 0 8px 24px -14px rgba(0,0,0,.35);
}
.phase__n { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.phase__t { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.phase.is-done .phase__n { color: var(--ok); }
.phase__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.phase__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.replay {
  top: 16px; right: 16px; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  transition: opacity .5s ease .3s, transform .1s ease-out;
}
.replay:active { transform: scale(.96); }
.drag-hint {
  right: 16px; bottom: 16px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
}
@media (prefers-reduced-transparency: reduce) {
  .phase, .replay { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 640px) {
  .drag-hint { display: none; }
  .phase { top: 12px; left: 12px; min-width: 150px; }
  .replay { top: 12px; right: 12px; }
}


/* =====================================================================
   MOTION PREMIUM
   Intro, títulos por palabras, cinta, galería horizontal, cursor, focos.
   Todo lo que oculta algo depende de .js y tiene red de seguridad.
   ===================================================================== */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Intro ---------- */
.intro { display: none; }
html.is-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--dark); color: var(--on-dark);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out);
  animation: introSafety 0s 4.6s forwards;
}
html.is-intro .intro.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes introSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.intro__in { display: flex; align-items: center; gap: 18px; transition: transform 1s var(--ease-in-out), opacity .6s ease; }
.intro.is-out .intro__in { transform: translateY(-40px); opacity: 0; }
.intro__mark { width: 64px; height: 64px; }
.intro__mark path { fill: none; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 90; }
.intro__v { stroke: var(--on-dark); stroke-width: 3.6; animation: draw .9s .05s var(--ease-out) forwards; }
.intro__vein { stroke: var(--accent); stroke-width: 2.4; animation: draw .7s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__word {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 3vw, 4rem); letter-spacing: -.045em; line-height: 1;
  display: flex; flex-direction: column;
  clip-path: inset(0 100% 0 0); animation: wipe .8s .35s var(--ease-out) forwards;
}
.intro__word span { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .42em; color: var(--on-dark-muted); text-transform: uppercase; margin-top: 6px; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.intro__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - .1em);
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 3rem + 8vw, 10rem); line-height: .8; letter-spacing: -.05em;
  color: var(--led); font-variant-numeric: tabular-nums;
}
.intro__tag { position: absolute; left: var(--gutter); bottom: var(--gutter); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ---------- Títulos por palabras ---------- */
.is-split .w { display: inline-block; vertical-align: top; overflow: hidden; padding: .08em .02em .14em; margin: -.08em -.02em -.14em; }
.is-split .w__i { display: inline-block; transition: transform 1.1s var(--ease-out), opacity .6s ease; transition-delay: calc(var(--i) * 42ms); }
.js .h2.is-split:not(.is-in) .w__i { transform: translateY(105%) rotate(4deg); opacity: 0; }
html.is-intro:not(.is-ready) .hero__title .w__i { transform: translateY(105%) rotate(4deg); opacity: 0; }
.hero__title.is-split .w__i { transition-delay: calc(80ms + var(--i) * 55ms); }
.hero__title em::after { animation: none; transform: scaleX(0); transition: transform 1.1s var(--ease-out) .9s; }
html:not(.is-intro) .hero__title em::after, html.is-ready .hero__title em::after { transform: scaleX(1); }

/* Resto del hero entra tras la intro */
html.is-intro .hero__copy .eyebrow, html.is-intro .hero__lead, html.is-intro .hero__ctas, html.is-intro .hero__trust, html.is-intro .hero__media { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), clip-path 1.4s var(--ease-out); }
html.is-intro:not(.is-ready) .hero__copy .eyebrow,
html.is-intro:not(.is-ready) .hero__lead,
html.is-intro:not(.is-ready) .hero__ctas,
html.is-intro:not(.is-ready) .hero__trust { opacity: 0; transform: translateY(28px); }
html.is-intro:not(.is-ready) .hero__media { clip-path: inset(14% 10% 14% 10% round 24px); transform: scale(1.04); }
html.is-intro .hero__lead { transition-delay: .45s; }
html.is-intro .hero__ctas { transition-delay: .58s; }
html.is-intro .hero__trust { transition-delay: .7s; }
html.is-intro .hero__media { transition-delay: .15s; }
html.is-intro .hero__card { animation-delay: 1.5s; }

/* Brillo del hero que sigue al ratón */
.hero.has-spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 30%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
}

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--led)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0; transition: opacity .3s ease; }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor__dot::before { content: ""; position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); transition: scale .2s var(--ease-out), opacity .2s; }
.cursor__ring::before {
  content: ""; position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, border-color .3s;
}
.cursor__ring b {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.4); opacity: 0;
  font: 600 .78rem var(--f-body); color: var(--on-accent); letter-spacing: .02em; white-space: nowrap;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.cursor.is-link .cursor__ring::before { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cursor.is-link .cursor__dot::before { scale: 0; }
.cursor.is-view .cursor__ring::before { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__ring b { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-view .cursor__dot::before, .cursor.is-text .cursor__dot::before { opacity: 0; }
.cursor.is-text .cursor__ring::before { opacity: 0; }
.cursor.is-down .cursor__ring::before { scale: .85; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor summary, html.has-cursor .work, html.has-cursor canvas { cursor: none; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Botones: brillo al pasar ---------- */
.btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover::before { transform: translateX(120%); }
  .btn--accent:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
}

/* ---------- Foco de luz en tarjetas ---------- */
.has-spot.service, .has-spot.review, .has-spot.calc__card { position: relative; isolation: isolate; }
.has-spot.service::after, .has-spot.review::after, .has-spot.calc__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.has-spot.service--feature::after { z-index: 1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--led) 18%, transparent), transparent 70%); }
.has-spot:hover::after { opacity: 1; }
.service--feature .service__body { position: relative; z-index: 2; }

/* ---------- Cinta ---------- */
.ticker { overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__set { display: flex; align-items: center; flex-shrink: 0; }
.ticker span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 4vw, 5.2rem); letter-spacing: -.04em; line-height: 1;
  color: var(--ink); padding-inline: clamp(16px, 2vw, 32px); white-space: nowrap;
}
.ticker span.o { color: transparent; -webkit-text-stroke: 1.3px var(--ink); }
.ticker i { width: clamp(12px, 1.2vw, 18px); height: clamp(12px, 1.2vw, 18px); background: var(--accent); transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 90s; } }

/* ---------- Galería horizontal fijada (escritorio) ---------- */
.gal-meta { display: none; }
.gallery-h { padding-top: clamp(40px, 5vw, 64px); }
.gallery-h .pin { padding-top: 24px; overflow: visible; }
.gallery-h .section__head { margin-bottom: 28px; }
.gallery-h .gallery {
  display: flex; gap: 18px; width: max-content;
  height: clamp(300px, calc(100vh - 400px), 600px);
  will-change: transform;
}
.gallery-h .work { flex: 0 0 auto; height: 100%; aspect-ratio: 3 / 4; }
.gallery-h .work--wide { aspect-ratio: 4 / 3; }
.gallery-h .work--tall { aspect-ratio: 3 / 4.2; }
.gallery-h .work img { width: 116%; max-width: none; margin-left: -8%; }
.gallery-h .work__info { padding: 60px 24px 22px; }
.gallery-h .work__t { font-size: 1.2rem; }
.gallery-h .gal-meta {
  display: flex; align-items: center; gap: 18px; margin-top: 22px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.gal-meta__n b { color: var(--ink); font-weight: 500; }
.gal-meta__bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.gal-meta__bar i { position: absolute; inset: -0.5px 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.gallery-h .inline-cta { margin-top: 40px; }

/* ---------- Método: línea de obra ---------- */
.step {
  border-top-color: var(--line);
  background: linear-gradient(var(--accent), var(--accent)) 0 -1px / var(--fill, 0%) 2px no-repeat;
}
.step__n { transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s; }
.step.is-on .step__n { color: var(--accent); }
.step::before, .step:last-child::after { background: var(--muted); }
.step.is-on::before { background: var(--accent); }

/* ---------- Calculadora: precio ---------- */
.calc__price.is-bump { animation: bump .38s var(--ease-out); }
@keyframes bump { 0% { color: var(--accent); } 100% { color: var(--ink); } }

/* ---------- Pie: palabra gigante ---------- */
.footer__word {
  margin: 56px 0 -0.04em; display: flex; overflow: hidden; padding-top: .04em;
  font-family: var(--f-display); font-weight: 800; font-size: min(33vw, 30rem); line-height: .8; letter-spacing: -.065em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--on-dark) 26%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--led) 55%, transparent), color-mix(in srgb, var(--accent) 10%, transparent) 90%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__word span { display: inline-block; }
.footer__bottom { margin-top: 24px; }

/* Secciones oscuras: preparadas para expandirse */
.calc-section, .promise { will-change: clip-path; }

@media (max-width: 640px) {
  .intro__mark { width: 52px; height: 52px; }
  .intro__tag { display: none; }
  .ticker span.o { -webkit-text-stroke-width: 1px; }
  .footer__word { margin-top: 40px; }
}

/* =====================================================================
   TEMA CÁLIDO (hero "La cocina para vivirla")
   Serif de alto contraste + Jost espaciada, tonos nogal, mármol y latón.
   ===================================================================== */
:root {
  --bg: #F3EDE4;
  --surface: #FBF8F3;
  --ink: #1F1914;
  --muted: #6E6358;
  --line: #E1D6C8;
  --accent: #A4683C;
  --accent-strong: #87522C;
  --dark: #16110D;
  --dark-2: #2A2119;
  --on-dark: #F3ECE2;
  --on-dark-muted: #B5A898;
  --led: #E5B57A;
  --ok: #4F7A55;
  --shadow: 0 1px 2px rgba(31, 25, 20, .05), 0 18px 40px -18px rgba(31, 25, 20, .22);
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Jost", "Futura", system-ui, sans-serif;
  --t-h2: clamp(2.3rem, 1.3rem + 3.2vw, 3.9rem);
  --t-h3: 1.55rem;
  --radius: 4px;
  --header-h: 84px;
  --cream: #F6EFE6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120E0B; --surface: #1B1511; --ink: #F0E9DF; --muted: #ADA192; --line: #31271F;
    --accent: #C0814F; --accent-strong: #D49562; --dark: #0C0907; --dark-2: #241B15;
    --on-dark: #F3ECE2; --on-dark-muted: #B5A898; --led: #E5B57A; --ok: #7FB287;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #120E0B; --surface: #1B1511; --ink: #F0E9DF; --muted: #ADA192; --line: #31271F;
  --accent: #C0814F; --accent-strong: #D49562; --dark: #0C0907; --dark-2: #241B15;
  --on-dark: #F3ECE2; --on-dark-muted: #B5A898; --led: #E5B57A; --ok: #7FB287;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.7);
}

body { font-weight: 400; font-variant-numeric: lining-nums; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.005em; line-height: 1.02; font-variant-numeric: lining-nums; }
.h2 { font-weight: 500; }
.h2 em, .hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.h2--light em { color: var(--led); }
h3, .service h3, .step h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: 0; }
.eyebrow { font-family: var(--f-body); font-weight: 500; font-size: .72rem; letter-spacing: .3em; }
.eyebrow::before { width: 28px; }
.section__intro { font-weight: 300; font-size: 1.1rem; }

/* Botones en píldora, como el hero */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: .02em; padding: 14px 28px; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--ghost { border-width: 1px; }
.btn--line { border: 1px solid rgba(246, 239, 230, .8); color: var(--cream); background: transparent; gap: 14px; }
.btn--line::after { content: "→"; font-size: 1.15em; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--line:hover { background: var(--cream); color: var(--dark); border-color: var(--cream); }
  .btn--line:hover::after { transform: translateX(4px); }
}

/* ---------- Logotipo tipográfico ---------- */
.logo__name { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.logo__sub { font-family: var(--f-body); font-size: .56rem; letter-spacing: .5em; margin-top: 5px; color: var(--muted); }
.logo__text { align-items: center; }

/* ---------- Cabecera sobre el hero ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.header__in { position: relative; }
.header:not(.is-scrolled) { color: var(--cream); }
.header:not(.is-scrolled) .header__in::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(246,239,230,.35), rgba(246,239,230,.12));
}
.header:not(.is-scrolled) .logo { color: var(--cream); }
.header:not(.is-scrolled) .logo__sub { color: rgba(246, 239, 230, .75); }
.header:not(.is-scrolled) .nav a:not(.btn) { color: rgba(246, 239, 230, .86); }
.header:not(.is-scrolled) .nav a:not(.btn):hover { color: #fff; }
.header:not(.is-scrolled) .nav a:not(.btn)::after { background: var(--cream); }
.header:not(.is-scrolled) .header__cta { background: transparent; border: 1px solid rgba(246, 239, 230, .8); color: var(--cream); box-shadow: none; }
.header:not(.is-scrolled) .header__cta:hover { background: var(--cream); color: var(--dark); }
.header:not(.is-scrolled) .burger span { background: var(--cream); }
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: var(--line);
}
.header:has(.nav.is-open) { background: var(--bg); color: var(--ink); }
.header:has(.nav.is-open) .logo { color: var(--ink); }
.header:has(.nav.is-open) .burger span { background: var(--ink); }
.header:has(.nav.is-open) .header__in::after { display: none; }
.nav a { font-size: .95rem; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 40px;
  display: flex; color: var(--cream); background: var(--dark);
}
.hero::before { display: none; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%;
  transform-origin: 60% 45%; animation: heroZoom 2.6s var(--ease-out) both;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 11, 8, .8) 0%, rgba(16, 11, 8, .52) 30%, rgba(16, 11, 8, .1) 56%, rgba(16, 11, 8, 0) 72%),
    linear-gradient(180deg, rgba(16, 11, 8, .5) 0%, rgba(16, 11, 8, 0) 20%, rgba(16, 11, 8, 0) 72%, rgba(16, 11, 8, .45) 100%);
}
.hero__in { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; flex: 1; }
.hero__copy { margin-block: auto; max-width: 720px; }
.hero__title {
  font-family: var(--f-display); font-weight: 400; color: #FBF6EE;
  font-size: clamp(3.4rem, 1.4rem + 6.6vw, 7.6rem); line-height: .92; letter-spacing: -.012em;
}
.hero__title em { color: #EADBC6; white-space: nowrap; padding-right: .06em; }
.hero__title em::after { content: none; }
.hero__sub {
  margin-top: 30px; font-family: var(--f-body); font-weight: 400; text-transform: uppercase;
  font-size: clamp(.74rem, .68rem + .25vw, .9rem); letter-spacing: .26em; line-height: 2.05;
  color: rgba(246, 239, 230, .88);
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 40px; }
.hero__link { color: var(--cream); font-size: .95rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: rgba(246,239,230,.45); transition: text-decoration-color .3s; }
.hero__link:hover { text-decoration-color: var(--cream); }
.hero__trust { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; padding: 0; color: rgba(246, 239, 230, .72); font-size: .86rem; }
.hero__trust li { border-left-color: rgba(246, 239, 230, .28); }
.hero__trust strong { color: var(--cream); font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; }
.hero__trust .stars { color: var(--led); font-family: var(--f-body); font-size: .9rem; letter-spacing: 3px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 40px; width: 1px; height: 64px; background: rgba(246, 239, 230, .25); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: var(--cream); animation: scrollCue 2.2s var(--ease-in-out) infinite; }
@keyframes scrollCue { from { transform: translateY(-24px); } to { transform: translateY(66px); } }

/* Entrada del hero tras la intro */
html.is-intro .hero__sub, html.is-intro .hero__ctas, html.is-intro .hero__trust { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
html.is-intro:not(.is-ready) .hero__sub,
html.is-intro:not(.is-ready) .hero__ctas,
html.is-intro:not(.is-ready) .hero__trust { opacity: 0; transform: translateY(24px); }
html.is-intro .hero__sub { transition-delay: .5s; }
html.is-intro .hero__ctas { transition-delay: .65s; }
html.is-intro .hero__trust { transition-delay: .8s; }
html.is-intro:not(.is-ready) .hero__bg img { animation-play-state: paused; }

/* ---------- Casa 3D en su sección ---------- */
.obra { overflow: clip; }
.obra__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.obra__copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.obra__copy .section__intro { margin-top: 22px; }
.obra__copy .checks { margin: 26px 0 34px; }
.obra .hero__media { max-width: 620px; justify-self: end; width: 100%; }

/* ---------- Ajustes de piezas con la nueva tipografía ---------- */
.stat__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.stats { background: linear-gradient(90deg, var(--dark), color-mix(in srgb, var(--dark) 78%, var(--accent))); }
.ticker span { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6rem); }
.ticker span.o { color: var(--accent); -webkit-text-stroke: 0; font-style: italic; font-weight: 400; }
.ticker i { border-radius: 50%; width: 10px; height: 10px; transform: none; }
.step__n { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 3.6rem; color: var(--line); -webkit-text-stroke: 0; }
.step.is-on .step__n { color: var(--accent); }
.calc__price { font-family: var(--f-display); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.contact__phone { font-family: var(--f-display); font-weight: 600; font-size: 2.6rem; letter-spacing: 0; font-variant-numeric: lining-nums; }
.form__done-t { font-family: var(--f-display); font-weight: 500; font-size: 2.1rem; }
.service--feature h3 { font-size: 2.1rem; font-weight: 500; }
.work__t { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; }
.gallery-h .work__t { font-size: 1.6rem; }
.review blockquote { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.38; font-weight: 500; }
.avatar { font-family: var(--f-body); background: var(--accent); color: #fff; }
.faq__list summary { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; }
.faq__list summary::after { font-family: var(--f-body); font-weight: 300; }
.chip span { border-radius: 999px; }
.calc__result { border-left-color: var(--accent); }
.field input, .field select, .field textarea { border-width: 1px; }
.inline-cta { border-style: solid; border-color: var(--line); background: var(--surface); }
.footer__word { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; font-size: min(34vw, 30rem); -webkit-text-stroke: 0; line-height: .78; }
.intro__word { font-family: var(--f-display); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.intro__word span { letter-spacing: .5em; }
.intro__count { font-family: var(--f-display); font-weight: 400; font-style: italic; font-variant-numeric: lining-nums tabular-nums; }
.logo--footer .logo__name { color: var(--on-dark); }

@media (max-width: 900px) {
  .obra__grid { grid-template-columns: 1fr; }
  .obra .hero__media { justify-self: stretch; max-width: 560px; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .logo__name { font-size: 1.45rem; }
  .hero { padding-bottom: 28px; }
  .hero__bg img { object-position: 64% 50%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(16,11,8,.55) 0%, rgba(16,11,8,.15) 26%, rgba(16,11,8,.35) 48%, rgba(16,11,8,.9) 80%, rgba(16,11,8,.95) 100%);
  }
  .hero__copy { margin-top: auto; margin-bottom: 0; }
  .hero__title { font-size: clamp(3.1rem, 2rem + 6vw, 4.2rem); }
  .hero__sub { letter-spacing: .18em; margin-top: 22px; }
  .hero__sub br { display: none; }
  .hero__ctas { margin-top: 28px; gap: 16px; }
  .hero__ctas .btn { width: 100%; }
  .hero__link { margin-inline: auto; }
  .hero__trust { gap: 10px 22px; font-size: .78rem; }
  .hero__trust { display: none; }
  .hero { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .hero__scroll { display: none; }
  .step__n { font-size: 3rem; }
}
.hero__title.is-split .w { padding-right: .1em; margin-right: -.1em; }
