/* =========================================================
   Carpintería Jade · estilos
   Paleta del logo: verde jade, nogal, encino y crema.
   ========================================================= */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --jade-950: #07241a;
  --jade-900: #0b3324;
  --jade-800: #0f4430;
  --jade-700: #155a3d;
  --jade-600: #1c6e4b;
  --jade-500: #2a8a5d;
  --jade-400: #4fa77b;
  --jade-300: #8cc6a5;
  --jade-100: #dcefe2;

  --walnut-950: #140c07;
  --walnut-900: #1d130b;
  --walnut-800: #2a1b10;
  --walnut-700: #3d2717;
  --walnut-600: #5a3a21;
  --oak-600: #8a5a2c;
  --oak-500: #a7733f;
  --maple-300: #dcb985;
  --maple-200: #ead3a8;
  --maple-100: #f5e8cc;

  --cream: #f8f2e7;
  --paper: #fffaf2;
  --sand: #efe5d2;
  --ink: #22170f;
  --ink-2: #5e4c3c;
  --line: rgba(34, 23, 15, .13);
  --tape: #f4c82b;
  --tape-2: #e2b20f;
  --red: #c8322b;
  --wa: #25d366;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: calc(100% - 40px);
  --header-h: 66px;
  --tape-h: 12px;
  --radius: 22px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-door: cubic-bezier(.72, 0, .18, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --wood: url("../img/textura-nogal.webp");
  --moulding: inset 3px 3px 0 rgba(0, 0, 0, .34), inset -2px -2px 0 rgba(255, 222, 172, .13), 2px 2px 0 rgba(255, 222, 172, .1), -3px -3px 0 rgba(0, 0, 0, .26);
}
@media (min-width: 768px) { :root { --wrap: calc(100% - 64px); --header-h: 76px; } }
@media (min-width: 1024px) { :root { --wrap: 90%; --tape-h: 14px; --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--tape-h));
}
html.is-locked, html.is-intro { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--jade-700); color: var(--paper); }
:focus-visible { outline: 3px solid var(--jade-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: fixed; left: 16px; top: -90px; z-index: 300;
  padding: .8em 1.2em; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 24px; }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 1.2rem + 3.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2 em, .h3 em, .hero__title em { font-style: italic; font-weight: 500; color: var(--jade-700); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase; color: var(--oak-600);
}
.eyebrow__num { color: var(--jade-600); }
.eyebrow__rule { position: relative; width: 46px; height: 10px; border-inline: 1.5px solid currentColor; opacity: .7; }
.eyebrow__rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; }

.sec-head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(48px, 6vw, 92px); }
.sec-head__lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.24rem); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.section { position: relative; padding-block: clamp(88px, 11vw, 170px); }

.nobr { white-space: nowrap; }
/* Subrayado a lápiz (el SVG lo agrega main.js) */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark__line { position: absolute; left: -3%; bottom: -.1em; width: 106%; height: .38em; overflow: visible; pointer-events: none; }
.mark__line path { fill: none; stroke: var(--jade-500); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .9; }
.mark__line path + path { stroke-width: 2.4; opacity: .5; }
.mark.is-in .mark__line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s .3s var(--ease-out); }
.mark.is-in .mark__line path + path { transition-delay: .6s; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--jade-700); --fg: #fffaf2; --edge: rgba(0, 0, 0, .24);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .85em 1.35em;
  border: 0; border-radius: 14px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 var(--edge), 0 12px 24px -14px rgba(15, 68, 48, .9);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s, color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 var(--edge), 0 18px 30px -14px rgba(15, 68, 48, .95); }
.btn:hover::before { transform: translateX(110%); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 var(--edge), 0 6px 14px -10px rgba(15, 68, 48, .9); }
.btn--wa:hover { --bg: var(--jade-600); }
.btn--line { --bg: transparent; --fg: var(--ink); --edge: transparent; box-shadow: inset 0 0 0 1.5px rgba(34, 23, 15, .32); }
.btn--line:hover { --bg: var(--ink); --fg: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), 0 16px 28px -16px rgba(34, 23, 15, .8); }
.btn--maple { --bg: var(--maple-200); --fg: var(--walnut-900); --edge: rgba(90, 58, 33, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 var(--edge), 0 12px 24px -14px rgba(0, 0, 0, .6); }
.btn--maple:hover { --bg: var(--maple-100); }
.btn--lg { min-height: 56px; padding: 1em 1.5em; font-size: 1.04rem; }
.btn--sm { min-height: 44px; padding: .6em 1em; font-size: .95rem; border-radius: 12px; }

/* Virutas que salen al presionar un botón */
.shaving { position: fixed; z-index: 400; width: 22px; height: 22px; pointer-events: none; fill: none; stroke: var(--oak-500); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Cinta métrica (progreso) ---------- */
.tape { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: var(--tape-h); pointer-events: none; --p: 0; --w: 1400; }
.tape__band {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(27, 17, 8, .92) 0 1px, transparent 1px 50px) 0 0 / 100% 52% no-repeat,
    repeating-linear-gradient(90deg, rgba(27, 17, 8, .7) 0 1px, transparent 1px 25px) 0 0 / 100% 36% no-repeat,
    repeating-linear-gradient(90deg, rgba(27, 17, 8, .5) 0 1px, transparent 1px 5px) 0 0 / 100% 22% no-repeat,
    linear-gradient(180deg, #f9da50, var(--tape) 45%, var(--tape-2));
  clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0);
}
.tape__nums, .steps__nums { position: absolute; inset: 0; overflow: hidden; }
.tape__nums b {
  position: absolute; bottom: 1px;
  font: 600 7px/1 var(--font-mono); color: #24170a; letter-spacing: 0;
}
.tape__nums b.is-ten { color: var(--red); }
@media (min-width: 1024px) { .tape__nums b { font-size: 8px; } }
.tape__hook {
  position: absolute; top: -1px; left: 0;
  width: 7px; height: calc(var(--tape-h) + 5px);
  border-radius: 0 2px 3px 0;
  background: linear-gradient(90deg, #7d8186, #dfe2e5 45%, #6f7378);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, .45);
  transform: translateX(calc(var(--p) * var(--w) * 1px - 100%));
}

/* ---------- Encabezado ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--header-h) + var(--tape-h)); padding-top: var(--tape-h);
  transition: transform .5s var(--ease-out), background-color .35s, box-shadow .35s;
}
.header.is-scrolled {
  background: rgba(248, 242, 231, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(34, 23, 15, .45);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: block; flex: none; border-radius: 10px; }
.brand img { height: calc(var(--header-h) - 10px); width: auto; transition: height .4s var(--ease-out); }
.header.is-scrolled .brand img { height: calc(var(--header-h) - 18px); }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; align-items: center; gap: .5em; padding: .5em .6em; border-radius: 10px; font-weight: 700; font-size: .98rem; text-decoration: none; }
.header__phone .ico { color: var(--jade-600); }
.header__phone:hover { color: var(--jade-700); }
.header__wa { width: 44px; padding: 0; }
.header__wa span { display: none; }

.burger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px 0 13px;
  border: 0; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: .92rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-out), background-color .3s;
}
.burger:hover { background: var(--walnut-700); }
.burger:active { transform: scale(.96); }
.burger__lines { position: relative; display: block; width: 20px; height: 14px; }
.burger__lines i { position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: width .45s var(--ease-out); }
.burger__lines i:nth-child(1) { top: 0; width: 100%; }
.burger__lines i:nth-child(2) { top: 6px; width: 65%; }
.burger__lines i:nth-child(3) { top: 12px; width: 85%; }
.burger:hover .burger__lines i { width: 100%; }

@media (min-width: 600px) {
  .header__wa { width: auto; padding: .6em 1em; }
  .header__wa span { display: inline; }
}
@media (min-width: 1180px) {
  .burger { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; gap: clamp(2px, .6vw, 10px); }
  .nav a {
    position: relative; display: inline-flex; align-items: center; gap: .5em;
    padding: .6em .75em; border-radius: 10px;
    font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink);
    transition: color .25s;
  }
  .nav a .ico { width: 1.15em; height: 1.15em; color: var(--oak-500); transition: color .25s, transform .45s var(--ease-spring); }
  .nav a::after {
    content: ""; position: absolute; left: .75em; right: .75em; bottom: .25em; height: 2px; border-radius: 2px;
    background: var(--jade-600); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
  }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
  .nav a:hover .ico { color: var(--jade-600); transform: rotate(-10deg) scale(1.12); }
  .nav a.is-active { color: var(--jade-700); }
  .nav a.is-active .ico { color: var(--jade-600); }
}
@media (min-width: 1360px) { .header__phone { display: inline-flex; } }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + var(--tape-h) + clamp(22px, 4vh, 52px));
  padding-bottom: clamp(64px, 9vh, 112px);
}
.hero__paper {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(138, 90, 44, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 90, 44, .1) 1px, transparent 1px),
    linear-gradient(rgba(138, 90, 44, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 90, 44, .055) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(120% 95% at 72% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 95% at 72% 30%, #000 20%, transparent 75%);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 80vmax; height: 80vmax; right: -30vmax; top: -40vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(234, 211, 168, .7), transparent);
}
.hero__shavings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sh { position: absolute; width: 46px; height: 46px; fill: none; stroke: var(--maple-300); stroke-width: 2; stroke-linecap: round; opacity: .75; animation: drift 13s ease-in-out infinite; }
.sh--1 { left: 1.5%; top: 64%; width: 58px; height: 58px; transform: rotate(18deg); }
.sh--2 { left: 40%; top: 12%; width: 34px; height: 34px; transform: rotate(-30deg); animation-delay: -4s; animation-duration: 16s; }
.sh--3 { left: 46%; bottom: 10%; width: 40px; height: 40px; transform: rotate(80deg); animation-delay: -7s; }
.sh--4 { right: 3%; top: 16%; width: 30px; height: 30px; transform: rotate(140deg); animation-delay: -2s; animation-duration: 18s; stroke: var(--oak-500); opacity: .45; }
.sh--5 { left: 12%; bottom: 8%; width: 30px; height: 30px; transform: rotate(-120deg); animation-delay: -9s; stroke: var(--oak-500); opacity: .4; }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 12px -20px; rotate: 26deg; } }
@media (max-width: 1023px) { .sh--1, .sh--2, .sh--3 { display: none; } .sh--5 { left: auto; right: 6%; bottom: 30%; } }
@media (max-width: 419px) { .hero__eyebrow { letter-spacing: .09em; gap: 10px; } }

.hero__grid { display: grid; gap: clamp(40px, 5vw, 88px); align-items: center; }
.hero__eyebrow { margin-bottom: clamp(18px, 2.4vw, 28px); }
.eyebrow__saw { width: 1.6em; height: 1.6em; color: var(--jade-600); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__title {
  font-family: var(--font-display); font-weight: 620;
  font-size: clamp(2.3rem, 9.6vw, 5.4rem);
  line-height: .98; letter-spacing: -.032em; color: var(--ink);
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.08em; }
.hero__title .ln > span { display: inline-block; }
.hero__lead { margin-top: clamp(20px, 2.4vw, 30px); max-width: 44ch; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: clamp(24px, 3vw, 40px); font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.hero__facts li { display: inline-flex; align-items: center; gap: .5em; }
.hero__facts .ico { width: 1.4em; height: 1.4em; color: var(--jade-600); }
@media (max-width: 599px) { .hero__ctas .btn { flex: 1 1 100%; } }

.hero__media { position: relative; padding: 30px 30px 0 0; }
.hero__frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--maple-200);
  box-shadow: 0 50px 90px -50px rgba(34, 23, 15, .7), 0 0 0 1px rgba(34, 23, 15, .06);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.dim { position: absolute; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; color: var(--oak-600); }
.dim::before { content: ""; position: absolute; }
.dim--x { top: 8px; left: 0; right: 30px; height: 11px; border-inline: 1.5px solid; }
.dim--x::before { left: 0; right: 0; top: 50%; border-top: 1.5px solid; }
.dim--y { top: 30px; bottom: 0; right: 8px; width: 11px; border-block: 1.5px solid; }
.dim--y::before { top: 0; bottom: 0; left: 50%; border-left: 1.5px solid; }
.dim span { position: absolute; top: 50%; left: 50%; padding: 0 .7em; background: var(--cream); white-space: nowrap; transform: translate(-50%, -50%); }
.dim--y span { transform: translate(-50%, -50%) rotate(90deg); }
.hero__note {
  position: absolute; left: -14px; bottom: -20px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: var(--paper); color: var(--ink-2);
  font-size: .86rem; line-height: 1.25;
  box-shadow: 0 22px 40px -22px rgba(34, 23, 15, .6), 0 0 0 1px var(--line);
  transform: rotate(-2.5deg);
}
.hero__note .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--jade-100); color: var(--jade-700); }
.hero__note b { color: var(--ink); font-weight: 700; }
@media (max-width: 599px) { .hero__note { left: 10px; bottom: -24px; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.hero__scroll .ico { width: 22px; height: 22px; color: var(--oak-500); animation: spin 6s linear infinite; }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .hero__title { font-size: clamp(2.95rem, 4.6vw, 6.6rem); }
  .hero__frame { aspect-ratio: auto; height: min(70vh, 780px); min-height: 430px; }
}
@media (min-width: 1024px) and (min-height: 780px) { .hero__scroll { display: inline-flex; } }

/* Animación de entrada de la portada (solo con JS) */
.js .hero__eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__facts { opacity: 0; translate: 0 18px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
.js .hero__title .ln > span { transform: translateY(110%); transition: transform 1.15s var(--ease-out); }
.js .hero__frame { clip-path: inset(0 50% 0 50% round var(--radius)); transition: clip-path 1.35s var(--ease-door) .1s; }
.js .hero__frame img { transform: scale(1.16); transition: transform 2s var(--ease-out) .1s; }
.js .dim--x { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out) 1s; }
.js .dim--y { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out) 1.15s; }
.js .hero__note { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease-out) 1.25s, translate .9s var(--ease-spring) 1.25s; }
.is-ready .hero__eyebrow, .is-ready .hero__lead, .is-ready .hero__ctas, .is-ready .hero__facts, .is-ready .hero__note { opacity: 1; translate: 0 0; }
.is-ready .hero__title .ln > span { transform: none; }
.is-ready .hero__frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.is-ready .hero__frame img { transform: none; }
.is-ready .dim--x, .is-ready .dim--y { clip-path: inset(0 0 0 0); }
.hero__eyebrow { transition-delay: .05s !important; }
.hero__title .ln:nth-child(1) > span { transition-delay: .1s; }
.hero__title .ln:nth-child(2) > span { transition-delay: .19s; }
.hero__title .ln:nth-child(3) > span { transition-delay: .28s; }
.hero__lead { transition-delay: .42s !important; }
.hero__ctas { transition-delay: .52s !important; }
.hero__facts { transition-delay: .62s !important; }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out), translate 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- 01 · Closets y puertas ---------- */
.feature { display: grid; gap: clamp(30px, 4.5vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(84px, 10vw, 170px); }
.feature__media {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--walnut-800);
  box-shadow: 0 50px 90px -55px rgba(34, 23, 15, .8);
}
.feature__img, .feature__img img { width: 100%; height: 100%; }
.feature__img img { object-fit: cover; }
.feature__badge {
  position: absolute; left: 16px; top: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px; border-radius: 12px;
  background: rgba(255, 250, 242, .92); color: var(--ink);
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .12em;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.feature__badge .ico { width: 1.35em; height: 1.35em; color: var(--jade-700); }

.feature__body { display: grid; gap: 22px; align-content: center; }
.feature__body > p { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; }
.feature__kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--jade-700);
}
.feature__kicker .ico { width: 1.55em; height: 1.55em; }

.checks { display: grid; gap: 10px; margin-top: 2px; }
.checks li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px 11px 11px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: .98rem; line-height: 1.3;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.checks li:hover { transform: translateY(-2px); border-color: rgba(28, 110, 75, .35); box-shadow: 0 14px 26px -18px rgba(34, 23, 15, .5); }
.checks__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--jade-100); color: var(--jade-700); }
.checks__ico .ico { width: 22px; height: 22px; }

@media (min-width: 600px) and (max-width: 899px), (min-width: 1240px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .feature--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .feature--rev .feature__media { order: 2; }
  .feature__media { aspect-ratio: auto; height: min(84vh, 860px); min-height: 560px; }
}

/* Puertas que se abren sobre las fotos */
.slide-door, .swing-door { position: absolute; z-index: 2; pointer-events: none; }
.slide-door { top: 0; bottom: 0; width: 50.4%; overflow: hidden; background: var(--walnut-700); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 70px rgba(0, 0, 0, .35); }
.slide-door::before { content: ""; position: absolute; inset: 0; background: var(--wood) center / cover; }
.slide-door--r::before { transform: scaleX(-1); }
.slide-door::after { content: ""; position: absolute; inset: 6% 13%; border-radius: 3px; box-shadow: var(--moulding); }
.slide-door--l { left: 0; }
.slide-door--r { right: 0; }
.slide-door i {
  position: absolute; top: 50%; z-index: 1; width: 9px; height: 22%; transform: translateY(-50%); border-radius: 5px;
  background: linear-gradient(90deg, #0b3324, #44a878 45%, #0b3324);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.slide-door--l i { right: 6%; }
.slide-door--r i { left: 6%; }

.swing-door { inset: 0; transform-origin: 0 50%; background: var(--walnut-700); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 80px rgba(0, 0, 0, .4); backface-visibility: hidden; }
.swing-door::before { content: ""; position: absolute; inset: 0; background: var(--wood) center / cover; }
.swing-door__panel { position: absolute; left: 13%; right: 13%; border-radius: 3px; box-shadow: var(--moulding); }
.swing-door__panel:nth-child(1) { top: 6%; height: 50%; }
.swing-door__panel:nth-child(2) { top: 61%; height: 33%; }
.swing-door__knob {
  position: absolute; right: 6.5%; top: 54%; width: 10px; height: 26%; transform: translateY(-50%); border-radius: 5px;
  background: linear-gradient(90deg, #0b3324, #44a878 45%, #0b3324);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.js .slide-door { transition: transform 1.45s var(--ease-door); }
.js .feature__media.is-open .slide-door--l { transform: translateX(-101%); }
.js .feature__media.is-open .slide-door--r { transform: translateX(101%); transition-delay: .08s; }
.js .swing-door { transition: transform 1.7s var(--ease-door), opacity .6s 1.25s; }
.js .feature__media.is-open .swing-door { transform: perspective(1500px) rotateY(84deg); opacity: 0; }
.js .feature__img img { transform: scale(1.14); transition: transform 2.2s var(--ease-out) .2s; }
.js .feature__media.is-open .feature__img img { transform: none; }
.no-js .slide-door, .no-js .swing-door { display: none; }

/* También hacemos */
.also {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  margin-top: clamp(72px, 9vw, 140px);
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  border-radius: var(--radius); background: var(--paper);
  border: 1.5px dashed rgba(138, 90, 44, .42);
}
.also__title { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.also__title .ico { width: 1.2em; height: 1.2em; color: var(--oak-500); }
.also__list { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 420px; }
.also__list li { display: inline-flex; align-items: center; gap: .55em; padding: .6em 1em; border-radius: 12px; background: var(--sand); font-weight: 600; font-size: .95rem; }
.also__list .ico { color: var(--oak-600); }
.also__link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--jade-700); text-decoration: none; }
.also__link .ico { transition: transform .3s var(--ease-out); }
.also__link:hover .ico { transform: translateX(4px); }

/* ---------- 02 · Cómo trabajamos ---------- */
.process { overflow: hidden; isolation: isolate; background: var(--walnut-900); color: var(--maple-100); }
.process::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--wood) center / cover; opacity: .1; }
.process::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 60% at 10% 0%, rgba(42, 138, 93, .2), transparent 60%), radial-gradient(60% 50% at 100% 100%, rgba(220, 185, 133, .1), transparent 60%);
}
.process .eyebrow { color: var(--maple-300); }
.process .eyebrow__num { color: var(--jade-300); }
.process .h2 { color: var(--paper); }
.process .sec-head__lead { color: rgba(245, 232, 204, .76); }
.process .mark__line path { stroke: var(--tape); }
.process__blade {
  position: absolute; z-index: -1; width: min(78vw, 860px); height: min(78vw, 860px);
  right: -20vw; top: -8vw; color: rgba(220, 185, 133, .14);
  transform: rotate(calc(var(--rot, 0) * 1deg));
}

.steps { position: relative; --p: 0; }
.steps__tape { position: absolute; left: 8px; top: 0; bottom: 0; width: 30px; }
.steps__band {
  position: absolute; inset: 0; border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, rgba(27, 17, 8, .92) 0 1.5px, transparent 1.5px 40px) 0 0 / 52% 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(27, 17, 8, .66) 0 1px, transparent 1px 20px) 0 0 / 36% 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(27, 17, 8, .45) 0 1px, transparent 1px 4px) 0 0 / 22% 100% no-repeat,
    linear-gradient(90deg, #f9da50, var(--tape) 50%, var(--tape-2));
  clip-path: inset(0 0 calc(100% - var(--p) * 100%) 0);
}
.steps__nums b { position: absolute; right: 2px; font: 600 9px/1 var(--font-mono); color: #24170a; transform: translateY(-50%) rotate(90deg); }
.steps__nums b.is-ten { color: var(--red); }
.steps__hook {
  position: absolute; left: -4px; right: -4px; top: 0; height: 8px; border-radius: 2px;
  background: linear-gradient(180deg, #7d8186, #dfe2e5 45%, #6f7378); box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  transform: translateY(calc(var(--p) * var(--len, 0) * 1px - 50%));
}
.steps__list { display: grid; gap: 18px; padding-left: 62px; }
.step {
  position: relative; padding: 24px 22px; border-radius: 18px;
  background: rgba(255, 250, 242, .045); border: 1px solid rgba(255, 250, 242, .1);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), border-color .6s, background-color .6s;
}
.js .step { opacity: .3; transform: translateX(14px); }
.js .step.is-on { opacity: 1; transform: none; border-color: rgba(244, 200, 43, .38); background: rgba(255, 250, 242, .07); }
.step__mark {
  position: absolute; left: -64px; top: 22px; z-index: 1;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--walnut-800); border: 2px solid rgba(255, 250, 242, .25);
  font: 600 1rem/1 var(--font-mono); color: var(--maple-200);
  transition: background-color .5s, color .5s, border-color .5s, transform .6s var(--ease-spring);
}
.step.is-on .step__mark { background: var(--tape); border-color: #fff3c4; color: #1d1208; transform: scale(1.08); }
.step__ico { width: 36px; height: 36px; margin-bottom: 14px; color: var(--jade-300); stroke-width: 1.5; }
.step h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--paper); }
.step p { color: rgba(245, 232, 204, .72); font-size: 1rem; line-height: 1.6; }

@media (min-width: 900px) {
  .steps__tape { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 34px; }
  .steps__band {
    background:
      repeating-linear-gradient(90deg, rgba(27, 17, 8, .92) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 52% no-repeat,
      repeating-linear-gradient(90deg, rgba(27, 17, 8, .66) 0 1px, transparent 1px 20px) 0 0 / 100% 36% no-repeat,
      repeating-linear-gradient(90deg, rgba(27, 17, 8, .45) 0 1px, transparent 1px 4px) 0 0 / 100% 22% no-repeat,
      linear-gradient(180deg, #f9da50, var(--tape) 50%, var(--tape-2));
    clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55);
  }
  .steps__nums b { top: auto; bottom: 3px; right: auto; transform: translateX(-50%); font-size: 10px; }
  .steps__hook { left: 0; right: auto; top: -4px; bottom: -4px; width: 8px; height: auto; transform: translateX(calc(var(--p) * var(--len, 0) * 1px - 50%)); }
  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); padding-left: 0; padding-top: 84px; }
  .js .step { transform: translateY(18px); }
  .step__mark { left: 50%; top: -81px; margin-left: -21px; }
  .step::before { content: ""; position: absolute; left: 50%; top: -40px; height: 40px; border-left: 1.5px dashed rgba(255, 250, 242, .22); }
}

/* Nosotros */
.about { display: grid; gap: clamp(48px, 6vw, 100px); align-items: center; margin-top: clamp(96px, 11vw, 176px); }
.about__media { position: relative; padding: 0 8% 13% 0; }
.about__main { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85); }
.about__main img, .about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__inset { position: absolute; right: 0; bottom: 0; width: 50%; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; border: 6px solid var(--walnut-900); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.about__stamp { position: absolute; left: -8px; bottom: 0; width: clamp(96px, 12vw, 158px); filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .55)); transform: rotate(-8deg); }
.about__body { display: grid; gap: 20px; }
.about__body .h3 { color: var(--paper); }
.about__body .h3 em { color: var(--jade-300); }
.about__body > p { color: rgba(245, 232, 204, .78); font-size: 1.08rem; max-width: 58ch; }
.values { display: grid; gap: 12px; margin-top: 6px; }
.values li { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 250, 242, .045); border: 1px solid rgba(255, 250, 242, .09); }
.values__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(42, 138, 93, .24); box-shadow: inset 0 0 0 1px rgba(140, 198, 165, .18); color: var(--jade-300); }
.values__ico .ico { width: 22px; height: 22px; }
.values div strong { display: block; margin-bottom: 3px; color: var(--paper); font-weight: 700; }
.values div span { display: block; color: rgba(245, 232, 204, .7); font-size: .95rem; line-height: 1.5; }
@media (min-width: 600px) and (max-width: 899px), (min-width: 1280px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* ---------- 03 · Galería ---------- */
.sec-head--split { max-width: none; }
.sec-head--split > div:not(.filters) { display: grid; gap: 18px; }
@media (min-width: 1280px) { .sec-head--split { grid-template-columns: minmax(0, 1fr) max-content; align-items: end; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: .55em 1.05em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 600; font-size: .95rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.chip .ico { color: var(--oak-500); transition: color .3s; }
.chip:hover { border-color: rgba(28, 110, 75, .4); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active .ico { color: var(--maple-300); }
@media (max-width: 419px) { .filters { gap: 6px; } .chip { padding: .5em .8em; font-size: .92rem; gap: .4em; } }

.grid { columns: 2; column-gap: 12px; }
.tile { position: relative; break-inside: avoid; margin-bottom: 12px; }
.tile[hidden] { display: none; }
.tile__btn {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 0; border-radius: 16px; background: var(--sand);
  cursor: zoom-in; text-align: left; -webkit-tap-highlight-color: transparent;
}
.tile__btn img { width: 100%; transition: transform .9s var(--ease-out); }
.tile__btn:hover img { transform: scale(1.06); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 4px; padding: 38px 14px 13px;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 7, .86));
  color: var(--paper); font-weight: 700; font-size: .93rem; line-height: 1.25;
}
.tile__tag { font-family: var(--font-mono); font-weight: 500; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--maple-300); }
.tile__zoom {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; padding: 9px; border-radius: 50%;
  background: rgba(255, 250, 242, .92); color: var(--ink);
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .45s var(--ease-spring);
}
.tile__btn:hover .tile__zoom, .tile__btn:focus-visible .tile__zoom { opacity: 1; transform: none; }
/* Corte de sierra al aparecer (el recorte va en el botón para que el observador vea el .tile completo) */
.js .tile .tile__btn { clip-path: inset(0 100% 0 0 round 16px); transition: clip-path 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .tile.is-in .tile__btn { clip-path: inset(0 0 0 0 round 16px); }
.js .tile::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 2px;
  background: #fff6e2; box-shadow: 0 0 14px 3px rgba(255, 214, 150, .85); opacity: 0; pointer-events: none;
}
.js .tile.is-in::after { animation: kerf 1.1s var(--ease-out) var(--d, 0s) both; }
@keyframes kerf { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 3px); opacity: 0; } }
@media (max-width: 599px) {
  .tile__cap { padding: 30px 10px 9px; font-size: .8rem; }
  .tile__tag { font-size: .58rem; }
}
@media (min-width: 768px) { .grid { columns: 3; column-gap: 18px; } .tile { margin-bottom: 18px; } }
@media (min-width: 1280px) { .grid { columns: 4; column-gap: 20px; } .tile { margin-bottom: 20px; } }

.gallery__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  border-radius: var(--radius); background: var(--jade-900); color: var(--maple-100);
}
.gallery__cta p { display: flex; align-items: center; gap: .7em; max-width: 54ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.3; }
.gallery__cta p .ico { width: 1.4em; height: 1.4em; color: var(--tape); }

/* ---------- 04 · Contacto ---------- */
.contact { overflow: hidden; isolation: isolate; background: var(--jade-800); color: var(--maple-100); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(140, 198, 165, .2), transparent 60%),
    radial-gradient(55% 55% at 100% 100%, rgba(7, 36, 26, .65), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 80px);
}
.contact .eyebrow { color: var(--maple-300); }
.contact .eyebrow__num { color: var(--tape); }
.contact .h2 { color: var(--paper); }
.contact .mark__line path { stroke: var(--tape); }
.contact .sec-head__lead { color: rgba(245, 232, 204, .82); }
.contact__grid { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
.contact__body { display: grid; gap: 20px; }
.ccards { display: grid; gap: 12px; margin-top: 10px; }
.ccard {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 250, 242, .07); border: 1px solid rgba(255, 250, 242, .15);
  color: var(--paper); text-decoration: none;
  transition: transform .35s var(--ease-out), background-color .3s, border-color .3s;
}
.ccard:hover { transform: translateY(-3px); background: rgba(255, 250, 242, .12); border-color: rgba(255, 250, 242, .3); }
.ccard__ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 250, 242, .1); color: var(--maple-200); }
.ccard__ico .ico { width: 26px; height: 26px; }
.ccard--wa { background: var(--paper); border-color: transparent; color: var(--ink); }
.ccard--wa:hover { background: #fff; border-color: transparent; }
.ccard--wa .ccard__ico { background: var(--wa); color: #fff; }
.ccard__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ccard small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.ccard strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + .55vw, 1.55rem); line-height: 1.15; }
.ccard em { font-style: normal; font-size: .92rem; opacity: .75; }
.ccard__go { width: 24px; height: 24px; opacity: .7; transition: transform .3s var(--ease-out), opacity .3s; }
.ccard:hover .ccard__go { transform: translateX(4px); opacity: 1; }

.contact__map { display: grid; gap: 14px; }
.map { position: relative; padding: 12px; border-radius: 26px; background: var(--walnut-700); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.map::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wood) center / cover; }
.map iframe { position: relative; width: 100%; height: clamp(340px, 54vh, 540px); border: 0; border-radius: 16px; background: var(--sand); }
.map__tag {
  position: absolute; right: 26px; top: 26px;
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .85em; border-radius: 10px;
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: .88rem;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); pointer-events: none;
}
.map__tag .ico { color: var(--red); }
.map__open { justify-self: start; display: inline-flex; align-items: center; gap: .5em; padding: .3em 0; color: var(--maple-200); font-weight: 700; text-decoration: none; }
.map__open:hover { color: var(--paper); text-decoration: underline; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

/* ---------- Pie ---------- */
.footer { position: relative; background: var(--walnut-950); color: rgba(245, 232, 204, .72); padding-top: clamp(76px, 8vw, 124px); }
.footer__teeth {
  position: absolute; left: 0; right: 0; top: -1px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='13'%3E%3Cpath d='M0 0h26L19 13z' fill='%230f4430'/%3E%3C/svg%3E") 0 0 / 26px 13px repeat-x;
}
.footer__grid { display: grid; gap: 40px 32px; }
.footer__brand { display: flex; align-items: center; gap: 22px; }
.footer__brand img { width: clamp(108px, 12vw, 150px); flex: none; }
.footer__brand p { max-width: 24ch; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.35; color: var(--maple-100); }
.footer__col h3 { margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--maple-300); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; transition: color .25s; }
.footer__col a:hover { color: var(--paper); }
.footer__col .ico { color: var(--jade-300); }
.footer__ruler {
  height: 26px; margin-top: clamp(52px, 6vw, 84px); border-top: 1px solid rgba(245, 232, 204, .16);
  background:
    repeating-linear-gradient(90deg, rgba(245, 232, 204, .45) 0 1px, transparent 1px 50px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(245, 232, 204, .3) 0 1px, transparent 1px 25px) 0 0 / 100% 60% no-repeat,
    repeating-linear-gradient(90deg, rgba(245, 232, 204, .16) 0 1px, transparent 1px 5px) 0 0 / 100% 32% no-repeat;
}
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; font-size: .9rem; }
.totop { display: inline-flex; align-items: center; gap: .5em; color: var(--maple-200); font-weight: 700; text-decoration: none; }
.totop:hover { color: var(--paper); }
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}
@media (max-width: 899px) { .footer__bottom { padding-bottom: calc(108px + env(safe-area-inset-bottom)); } }

/* ---------- Contacto rápido ---------- */
.dock {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding: 8px;
  border-radius: 20px; background: rgba(29, 19, 11, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  transform: translateY(calc(100% + 40px)); transition: transform .55s var(--ease-out);
}
.dock.is-shown { transform: none; }
.dock a { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; border-radius: 14px; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.dock__call { background: rgba(255, 250, 242, .1); color: var(--paper); }
.dock__wa { background: var(--wa); color: #072a14; }
.dock .ico { width: 1.35em; height: 1.35em; }
@media (min-width: 900px) {
  .dock { left: auto; right: 28px; bottom: 28px; display: block; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .dock__call { display: none !important; }
  .dock__wa { position: relative; width: 62px; height: 62px; min-height: 0; padding: 0; border-radius: 50%; box-shadow: 0 16px 30px -10px rgba(10, 60, 30, .65); }
  .dock__wa .ico { width: 30px; height: 30px; }
  .dock__wa span {
    position: absolute; right: calc(100% + 12px); top: 50%; padding: .55em .9em; border-radius: 10px;
    background: var(--ink); color: var(--paper); font-size: .9rem; white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translate(8px, -50%); transition: opacity .3s, transform .35s var(--ease-out);
  }
  .dock__wa:hover span { opacity: 1; transform: translate(0, -50%); }
  .dock__wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.6s infinite; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Menú: un closet que se abre ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; perspective: 1600px;
  clip-path: circle(0 at var(--cx, 90%) var(--cy, 40px));
  transition: clip-path .55s var(--ease-door);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150% at var(--cx, 90%) var(--cy, 40px)); }
.menu__inside {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(20, 12, 7, .5), rgba(20, 12, 7, .86)), var(--wood) center / cover, var(--walnut-900);
  color: var(--maple-100);
}
.menu__inside::before { content: ""; position: fixed; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(0, 0, 0, .7), inset 0 40px 60px -30px rgba(0, 0, 0, .7); }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: var(--wrap); margin-inline: auto; padding-top: calc(var(--tape-h) + 8px); }
.menu__logo { height: 54px; width: auto; }
.menu__close {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 250, 242, .25); border-radius: 12px; background: rgba(255, 250, 242, .08);
  color: var(--paper); font-weight: 700; cursor: pointer;
}
.menu__close:hover { background: rgba(255, 250, 242, .16); }
.menu__rod {
  width: var(--wrap); height: 10px; margin: 16px auto 0; border-radius: 6px;
  background: linear-gradient(180deg, #f0ede7, #a29c92 55%, #6f6a62);
  box-shadow: 0 8px 12px -4px rgba(0, 0, 0, .55);
}
.menu__nav { display: grid; width: var(--wrap); margin: 4px auto 0; }
.menu__nav a {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 20px 2px 17px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 7.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em;
  color: var(--paper); text-decoration: none;
}
.menu__nav a::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, #b8834c 0, #8a5a2c 30%, #5a3a21 100%);
  box-shadow: 0 10px 14px -4px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 230, 190, .4);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.menu__num { align-self: flex-start; margin-top: .45em; font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .1em; color: var(--maple-300); }
.menu__lbl { flex: 1; }
.menu__nav .ico { width: 30px; height: 30px; color: var(--jade-300); stroke-width: 1.5; }
.menu__nav a > * { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease-out), transform .6s var(--ease-out); }
.menu__nav a.is-active .menu__lbl { color: var(--maple-200); }
.menu__nav a.is-active .menu__num { color: var(--tape); }
.menu.is-doors .menu__nav a > * { opacity: 1; transform: none; transition-delay: calc(.42s + var(--i) * .06s); }
.menu.is-doors .menu__nav a::after { transform: none; transition-delay: calc(.34s + var(--i) * .06s); }
.menu__foot { display: grid; gap: 16px; width: var(--wrap); margin: auto auto 0; padding-top: 30px; opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .6s var(--ease-out); }
.menu.is-doors .menu__foot { opacity: 1; transform: none; transition-delay: .72s; }
.menu__ctas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.menu__ctas .btn { min-height: 54px; }
.menu__addr { display: flex; align-items: center; gap: .5em; font-size: .92rem; color: rgba(245, 232, 204, .78); }
.menu__addr .ico { color: var(--jade-300); }

.menu__door {
  position: absolute; top: 0; bottom: 0; z-index: 3; width: 50%;
  background: var(--walnut-700); backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 0 90px rgba(0, 0, 0, .35);
  transition: transform .85s var(--ease-door);
}
.menu__door::before { content: ""; position: absolute; inset: 0; background: var(--wood) center / cover; }
.menu__door--r::before { transform: scaleX(-1); }
.menu__door::after { content: ""; position: absolute; inset: 5% 13%; border-radius: 3px; box-shadow: var(--moulding); }
.menu__door--l { left: 0; transform-origin: left center; }
.menu__door--r { right: 0; transform-origin: right center; }
.menu__knob {
  position: absolute; top: 50%; z-index: 1; width: 11px; height: 72px; margin-top: -36px; border-radius: 6px;
  background: linear-gradient(90deg, #0b3324, #44a878 45%, #0b3324);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.menu__door--l .menu__knob { right: 14px; }
.menu__door--r .menu__knob { left: 14px; }
.menu.is-doors .menu__door--l { transform: rotateY(-112deg); }
.menu.is-doors .menu__door--r { transform: rotateY(112deg); }
@media (min-width: 700px) { .menu__ctas { max-width: 520px; } }

/* ---------- Entrada: puertas corredizas ---------- */
.intro { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.no-intro .intro, .no-js .intro { display: none; }
.intro__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--walnut-700);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 0 110px rgba(0, 0, 0, .42);
  transition: transform 1.15s var(--ease-door);
}
.intro__door::before { content: ""; position: absolute; inset: 0; background: var(--wood) center / cover; }
.intro__door--r::before { transform: scaleX(-1); }
.intro__door::after { content: ""; position: absolute; inset: 8% 11% 6%; border-radius: 4px; box-shadow: var(--moulding); }
.intro__door--l { left: 0; }
.intro__door--r { right: 0; }
.intro__pull {
  position: absolute; top: 50%; z-index: 1; width: 12px; height: min(26vh, 200px); transform: translateY(-50%); border-radius: 7px;
  background: linear-gradient(90deg, #0b3324, #44a878 42%, #0b3324);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.intro__door--l .intro__pull { right: clamp(14px, 2.4vw, 34px); }
.intro__door--r .intro__pull { left: clamp(14px, 2.4vw, 34px); }
.intro__rail {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 16px;
  background: linear-gradient(180deg, #f1eee8, #b9b3a9 55%, #8b857b); box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease-door) .55s;
}
.intro__badge { position: relative; z-index: 3; display: grid; justify-items: center; gap: 16px; padding: 20px; transition: opacity .4s var(--ease-out), transform .6s var(--ease-out); }
.intro__badge img { width: clamp(170px, 21vw, 270px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); animation: badgeIn .9s var(--ease-spring) both; }
.intro__tag { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--maple-100); animation: tagIn .8s .35s var(--ease-out) both; }
@keyframes badgeIn { from { opacity: 0; transform: scale(.82) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes tagIn { from { opacity: 0; transform: translateY(10px); } to { opacity: .9; transform: none; } }
.intro.is-open { pointer-events: none; }
.intro.is-open .intro__badge { opacity: 0; transform: scale(1.06); }
.intro.is-open .intro__door--l { transform: translateX(-101%); transition-delay: .18s; }
.intro.is-open .intro__door--r { transform: translateX(101%); transition-delay: .25s; }
.intro.is-open .intro__rail { transform: translateY(-110%); }
.intro.is-done { display: none; }

/* ---------- Visor de imágenes ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(15, 9, 5, .95); color: var(--paper); overflow: hidden;
}
.lightbox::backdrop { background: rgba(15, 9, 5, .6); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .35s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: grid; justify-items: center; gap: 14px; max-width: 100%; padding: 72px 16px 96px; }
.lightbox__img { width: auto; max-width: min(92vw, 1400px); max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__img.is-swap { animation: lbSwap .45s var(--ease-out); }
@keyframes lbSwap { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__cap { text-align: center; font-family: var(--font-display); font-size: 1.15rem; color: var(--maple-100); }
.lightbox__count { position: absolute; top: 26px; left: 22px; font: 500 .8rem/1 var(--font-mono); letter-spacing: .14em; color: var(--maple-300); }
.lightbox__btn, .lightbox__close {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid rgba(255, 250, 242, .22); border-radius: 50%; background: rgba(255, 250, 242, .08);
  color: var(--paper); cursor: pointer; transition: background-color .25s;
}
.lightbox__btn:hover, .lightbox__close:hover { background: rgba(255, 250, 242, .18); }
.lightbox__btn .ico, .lightbox__close .ico { width: 24px; height: 24px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -26px; }
.lightbox__close { top: 12px; right: 12px; }
@media (max-width: 767px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); margin: 0; }
  .lightbox__prev { left: calc(50% - 66px); }
  .lightbox__next { right: calc(50% - 66px); }
}

/* ---------- Movimiento reducido y modo captura ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
.captura *, .captura *::before, .captura *::after { animation: none !important; transition: none !important; }
.captura .slide-door, .captura .swing-door, .captura .dock, .captura .tape { display: none; }
