/* =========================================================
   MUCHAOBRA — Reformas y construcción · Barcelona
   ========================================================= */
:root {
  --red: #E63612;
  --red-deep: #C42A0B;
  --cream: #EDE6DA;
  --cream-2: #F5F0E7;
  --paper: #FBF8F3;
  --ink: #171412;
  --ink-2: #221E1B;
  --ink-3: #2E2925;
  --muted: #7A716A;
  --line: rgba(23, 20, 18, .12);
  --line-light: rgba(237, 230, 218, .16);
  --wa: #25D366;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --nav-h: 72px;
  --pad: clamp(16px, 4vw, 56px);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.025em; line-height: 1.02; font-weight: 700; }
p { margin: 0; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-cream { background: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow-light { color: rgba(237, 230, 218, .72); }
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 2px; display: inline-block; }
.dot-light { background: var(--cream); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.section-title { font-size: clamp(36px, 5.4vw, 76px); max-width: 15ch; }
.section-lead { max-width: 38ch; font-size: 17px; color: rgba(237, 230, 218, .7); }
.section-cream .section-lead, .services .section-lead { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .4s;
}
.btn svg { font-size: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(230, 54, 18, .7); }
.btn-wa:hover { background: var(--red-deep); box-shadow: 0 16px 40px -12px rgba(230, 54, 18, .8); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--red); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-ghost-light { border: 1px solid rgba(237, 230, 218, .45); color: var(--cream); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(23, 20, 18, .18); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--red);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease), opacity .3s 1s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-logo { width: 96px; height: auto; fill: var(--cream); animation: splashIn 1s var(--ease) both; }
.splash.is-out { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
@keyframes splashIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); color: var(--cream);
  transition: background-color .4s, color .4s, height .4s var(--ease), box-shadow .4s;
}
.nav.is-solid { background: rgba(251, 248, 243, .88); color: var(--ink); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; font-size: 17px; }
.nav-brand svg { width: 34px; height: auto; fill: var(--red); }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; opacity: .85; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; width: 44px; height: 44px; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a { font-family: var(--font-head); font-size: clamp(32px, 9vw, 52px); font-weight: 700; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--line-light); }

/* ---------- HERO (pinned plano → realidad) ---------- */
.hero { position: relative; height: 260vh; background: var(--ink); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-plano { transform: scale(calc(1.08 - var(--p, 0) * .08)); }
.hero-real {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 calc(var(--wipe, 100) * 1%));
  will-change: clip-path;
}
.hero-real .hero-img { transform: scale(calc(1.08 - var(--p, 0) * .08)); }
.hero-line { position: absolute; top: 0; bottom: 0; left: calc(var(--wipe, 100) * 1%); width: 3px; margin-left: -1.5px; background: var(--red); opacity: var(--line-o, 0); box-shadow: 0 0 30px rgba(230, 54, 18, .7); }
.hero-line span { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 6px rgba(230, 54, 18, .25); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23, 20, 18, .55) 0%, rgba(23, 20, 18, 0) 26%),
    linear-gradient(90deg, rgba(23, 20, 18, .82) 0%, rgba(23, 20, 18, .5) 38%, rgba(23, 20, 18, 0) 72%),
    linear-gradient(0deg, rgba(23, 20, 18, .55) 0%, rgba(23, 20, 18, 0) 30%);
}
.hero-content {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(96px, 14vh, 150px);
  max-width: 760px; color: var(--cream);
}
.hero-title { font-size: clamp(42px, 7.2vw, 104px); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; animation: lineUp 1.2s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title em { color: var(--red); }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(237, 230, 218, .86); animation: fadeUp 1.1s .35s var(--ease) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: fadeUp 1.1s .5s var(--ease) both; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
body.is-loading .hero-title .line > span, body.is-loading .hero-sub, body.is-loading .hero-ctas { animation-play-state: paused; }

.hero-stages {
  position: absolute; right: var(--pad); bottom: clamp(96px, 14vh, 150px);
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px;
  color: rgba(237, 230, 218, .45); font-size: 14px; font-weight: 500;
}
.hero-stages li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px; transition: color .4s, background-color .4s; }
.hero-stages li b { font-family: var(--font-head); font-size: 12px; letter-spacing: .08em; }
.hero-stages li.is-active { color: var(--ink); background: var(--cream); }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(237, 230, 218, .7); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: calc(1 - var(--p, 0) * 4); }
.hero-scroll i { width: 1px; height: 38px; background: linear-gradient(var(--cream), transparent); animation: scrollCue 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: var(--cream); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3vw, 38px); letter-spacing: -.02em; white-space: nowrap; }
.marquee i { width: 14px; height: 14px; background: var(--cream); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Intro / Stats ---------- */
.intro-title { font-size: clamp(28px, 3.8vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; max-width: 24ch; }
.intro-title .muted { color: #A39A92; }
.intro-title strong { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 100px); }
.stat { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; display: flex; flex-direction: column; min-height: 300px; transition: transform .6s var(--ease), background-color .4s; }
.stat:hover { transform: translateY(-6px); }
.stat:nth-child(2) { transition-delay: .06s; } .stat:nth-child(3) { transition-delay: .12s; } .stat:nth-child(4) { transition-delay: .18s; }
.stat-num { font-family: var(--font-head); font-size: clamp(64px, 7vw, 104px); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--red); margin-bottom: auto; }
.stat-num sup { font-size: .45em; vertical-align: top; position: relative; top: .1em; }
.stat h3 { font-size: 20px; letter-spacing: -.02em; margin: 30px 0 8px; }
.stat p:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.stat-accent { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.stat-accent .stat-num { color: var(--cream); }
.stat-accent p:last-child { color: rgba(237, 230, 218, .62); }

/* ---------- Antes / Después ---------- */
.ba-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ba-tabs button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 14px; color: rgba(237, 230, 218, .75); transition: all .35s var(--ease); }
.ba-tabs button:hover { color: var(--cream); border-color: rgba(237, 230, 218, .4); }
.ba-tabs button.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.ba-stage {
  position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .5s var(--ease); }
.ba-stage.is-swapping img { opacity: 0; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .4s var(--ease); }
.ba-handle svg { width: 26px; height: 26px; fill: none; }
.ba-stage:hover .ba-handle span, .ba-stage.is-dragging .ba-handle span { transform: scale(1.1); }
.ba-tag { position: absolute; top: 18px; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba-tag-l { left: 18px; background: var(--ink); color: var(--cream); }
.ba-tag-r { right: 18px; background: var(--red); color: #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-caption { margin-top: 18px; color: rgba(237, 230, 218, .6); font-size: 14.5px; }

/* ---------- Servicios ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head { width: 100%; display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 20px; padding: 28px 0; text-align: left; }
.svc-n { font-family: var(--font-head); font-size: 14px; color: var(--muted); font-weight: 600; }
.svc-head h3 { font-size: clamp(22px, 2.8vw, 38px); font-weight: 600; transition: color .3s, transform .6s var(--ease); }
.svc-head:hover h3 { color: var(--red); transform: translateX(8px); }
.svc-tag { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.svc-plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .3s, transform .5s var(--ease); }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; margin: -.75px -7px; background: currentColor; transition: transform .5s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc.is-open .svc-plus { background: var(--red); color: #fff; border-color: var(--red); }
.svc.is-open .svc-plus::after { transform: rotate(0); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc.is-open .svc-body { grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding-left: 90px; }
.svc-inner > * { margin-bottom: 36px; }
.svc-inner img { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.svc-inner p { font-size: 17px; color: #4A433D; max-width: 44ch; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Método ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.method-media { position: sticky; top: calc(var(--nav-h) + 24px); }
.method-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.method-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.method-frame img.is-active { opacity: 1; transform: none; }
.method-count { position: absolute; left: 18px; bottom: 18px; background: var(--ink); color: var(--cream); font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; padding: 8px 14px; border-radius: 999px; }
.steps { list-style: none; padding: 0; margin: 48px 0 40px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .6s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step-n { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 15px; padding-top: 4px; }
.step h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 8px; letter-spacing: -.02em; }
.step p { color: #5A524B; max-width: 42ch; }

/* ---------- Proyectos ---------- */
.proj-nav { display: flex; gap: 10px; }
.round { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .4s var(--ease); }
.round svg { font-size: 20px; }
.round:hover { background: var(--ink); color: var(--cream); }
.proj-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--pad) 10px; scrollbar-width: none; cursor: grab;
  scroll-padding-left: var(--pad);
}
.proj-track::-webkit-scrollbar { display: none; }
.proj-track.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.proj { flex: 0 0 clamp(280px, 42vw, 620px); margin: 0; scroll-snap-align: start; }
.proj-tall { flex-basis: clamp(220px, 24vw, 360px); }
.proj img { width: 100%; height: clamp(360px, 46vw, 560px); object-fit: cover; border-radius: var(--radius); transition: transform 1.2s var(--ease), filter .6s; pointer-events: none; }
.proj:hover img { transform: scale(.985); }
.proj figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px 0; font-size: 15px; }
.proj figcaption span { color: var(--muted); }

/* ---------- Big CTA ---------- */
.bigcta { position: relative; background: var(--red); color: var(--cream); overflow: hidden; padding: clamp(100px, 14vw, 180px) 0; }
.bigcta-m { position: absolute; right: -8%; bottom: -18%; width: min(70vw, 900px); height: auto; fill: rgba(0, 0, 0, .1); transform: translateY(calc(var(--py, 0) * 1px)); }
.bigcta h2 { font-size: clamp(56px, 10vw, 150px); font-weight: 800; letter-spacing: -.05em; line-height: .92; }
.bigcta p:not(.eyebrow) { margin-top: 28px; max-width: 44ch; font-size: 18px; color: rgba(255, 255, 255, .88); }
.bigcta .btn-ghost-light { background: transparent; }

/* ---------- Zonas ---------- */
.zones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.zones-text { margin-top: 26px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.zones-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zones-list li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.zones-list li:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--red); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 26px; color: #5A524B; max-width: 58ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.contact .section-lead { margin-top: 24px; }
.contact-data { list-style: none; padding: 0; margin: 44px 0 0; }
.contact-data li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.contact-data span { color: rgba(237, 230, 218, .5); font-size: 14px; }
.contact-data a { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--cream); }
.form { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(237, 230, 218, .7); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--cream); background: var(--ink-3);
  border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; transition: border-color .3s, background-color .3s; resize: vertical;
}
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23EDE6DA' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form ::placeholder { color: rgba(237, 230, 218, .32); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); background: #36302B; }
.form .is-invalid { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: rgba(237, 230, 218, .45); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(237, 230, 218, .7); padding: 80px 0 30px; border-top: 1px solid var(--line-light); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid > div, .footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { flex-direction: row !important; gap: 18px !important; align-items: flex-start; }
.footer-brand svg { width: 64px; height: auto; fill: var(--red); }
.footer-brand b { color: var(--cream); font-family: var(--font-head); letter-spacing: .04em; }
.footer a:hover { color: var(--cream); }
.footer-legal { margin-top: 60px; font-size: 13px; color: rgba(237, 230, 218, .4); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-btn { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65); transition: transform .5s var(--ease); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-bubble {
  position: relative; width: min(320px, calc(100vw - 40px)); background: #fff; color: var(--ink);
  border-radius: 20px 20px 6px 20px; padding: 18px 18px 16px; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .4);
  transform-origin: bottom right; transform: translateY(16px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s;
}
.wa-bubble.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.wa-bubble-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wa-bubble-head svg { width: 36px; height: 36px; padding: 8px; background: var(--red); fill: var(--cream); border-radius: 50%; }
.wa-bubble-head b { display: block; font-family: var(--font-head); font-size: 14px; letter-spacing: .03em; }
.wa-bubble-head span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.wa-bubble-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.wa-bubble p { font-size: 14.5px; line-height: 1.5; }
.wa-bubble a { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; font-size: 14px; }
.wa-bubble a svg { font-size: 18px; }
.wa-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; font-size: 22px; line-height: 1; color: var(--muted); border-radius: 50%; }
.wa-close:hover { background: var(--cream-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav .btn-sm span { display: none; }
  .nav .btn-sm { width: 44px; padding: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 250px; }
}
@media (max-width: 860px) {
  .hero { height: 220vh; }
  .hero-content { bottom: 120px; }
  .hero-stages { flex-direction: row; left: var(--pad); right: auto; bottom: 64px; gap: 4px; font-size: 12px; }
  .hero-stages li { padding: 7px 12px 7px 10px; gap: 6px; }
  .hero-scroll { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(23,20,18,.5) 0%, rgba(23,20,18,.1) 30%, rgba(23,20,18,.55) 55%, rgba(23,20,18,.92) 100%); }
  .svc-head { grid-template-columns: 40px 1fr 40px; gap: 12px; padding: 22px 0; }
  .svc-tag { display: none; }
  .svc-inner { grid-template-columns: 1fr; padding-left: 0; gap: 18px; }
  .svc-inner > * { margin-bottom: 0; }
  .svc-inner > div { padding-bottom: 30px; }
  .method-grid, .zones-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .method-media { position: relative; top: 0; }
  .method-frame { aspect-ratio: 4 / 3; }
  .steps { margin-top: 32px; }
  .step { opacity: 1; }
  .ba-stage { aspect-ratio: 4 / 5; }
  .ba-tag { top: 12px; font-size: 10.5px; padding: 6px 10px; }
  .ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }
  .ba-handle span { width: 50px; height: 50px; margin: -25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-data li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { min-height: 220px; padding: 20px 18px; }
  .stat h3 { font-size: 17px; margin-top: 20px; }
  .stat p:last-child { font-size: 13px; }
  .hero-ctas .btn { width: 100%; }
  .section-head .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-btn { width: 58px; height: 58px; }
  .proj { flex-basis: 82vw; }
  .proj-tall { flex-basis: 62vw; }
  .proj img { height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-ping, .hero-scroll i { animation: none; }
  .marquee-track { animation-duration: 80s; }
}

/* ---------- Ajustes móvil ---------- */
.nav > .btn-sm { margin-left: auto; }
@media (max-width: 1080px) { .nav { gap: 10px; } }
@media (max-width: 560px) {
  .hero-content { bottom: 112px; }
  .hero-title { font-size: clamp(38px, 11vw, 48px); }
  .hero-sub { font-size: 15.5px; margin-top: 16px; }
  .hero-ctas { margin-top: 22px; gap: 10px; }
  .hero .hero-ctas .btn-ghost-light { display: none; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .1em; margin-bottom: 14px; }
  .hero-stages { bottom: 52px; }
  .hero-shade { background: linear-gradient(180deg, rgba(23,20,18,.55) 0%, rgba(23,20,18,.15) 22%, rgba(23,20,18,.7) 48%, rgba(23,20,18,.95) 100%); }
  .wa-bubble { width: calc(100vw - 100px); padding: 14px 14px 12px; margin-right: 0; }
  .wa-bubble p { font-size: 13.5px; }
  .wa-bubble a { height: 40px; margin-top: 10px; }
  .wa-bubble-head { margin-bottom: 6px; }
}
@media (min-width: 861px) { .hero-stages { top: calc(var(--nav-h) + 48px); bottom: auto; } }

/* ---------- Instagram / formulario con email ---------- */
.nav-ig { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; opacity: .85; transition: background-color .3s, color .3s, opacity .3s; margin-left: auto; }
.nav-ig svg { font-size: 20px; }
.nav-ig:hover { opacity: 1; background: var(--red); border-color: var(--red); color: #fff; }
.nav > .nav-ig + .btn-sm { margin-left: 0; }
.contact-data a.contact-small { font-size: 17px; }
.form small { font-weight: 400; opacity: .6; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form .form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.form .form-check input { width: 18px; height: 18px; padding: 0; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--red); }
.form .form-check input.is-invalid { outline: 2px solid var(--red); outline-offset: 2px; }
.form-status { font-size: 14px; text-align: center; min-height: 1.4em; color: rgba(237, 230, 218, .7); }
.form-status:empty { display: none; }
.form-status.is-ok { color: #7EE2A8; }
.form-status.is-error { color: #FF9A84; }
.form.is-sending [data-form-btn] { opacity: .6; pointer-events: none; }

/* comparador: proyecto en vertical */
.ba-stage.is-portrait { aspect-ratio: 3 / 4; max-width: 640px; margin: 0 auto; }
.ba-stage.is-portrait + .ba-caption { text-align: center; }
