/* =========================================================
   Reformas integrales Lanzarote — hoja de estilos
   Paleta: cal blanca, piedra volcánica, verde de carpintería
   ========================================================= */

:root {
  --cal:        #f6f3ee;   /* blanco cal */
  --cal-2:      #ece6dc;   /* arena */
  --paper:      #ffffff;
  --basalto:    #1b1a18;   /* piedra volcánica */
  --basalto-2:  #2a2825;
  --ink:        #1b1a18;
  --ink-soft:   #3b3934;
  --ink-mute:   #6e6a62;
  --verde:      #24493d;   /* verde carpintería canaria */
  --verde-2:    #2f5d4e;
  --ocre:       #b7893f;   /* acento cálido, uso mínimo */
  --line:       rgba(27, 26, 24, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cal);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--verde-2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--verde);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--bg);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --bg: var(--basalto); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --bg: transparent;
  --fg: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover { --bg: #fff; --fg: var(--basalto); border-color: #fff; }

.btn--light { --bg: #fff; --fg: var(--basalto); }
.btn--light:hover { --bg: var(--ocre); --fg: #fff; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--basalto);
  color: rgba(255,255,255,.78);
  font-size: .82rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 28px; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; opacity: .7; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
@supports (backdrop-filter: blur(10px)) {
  .nav { background: rgba(246, 243, 238, .86); backdrop-filter: blur(14px) saturate(1.2); }
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(0,0,0,.25); }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 40px; height: 40px;
  flex: none;
}
.brand__name {
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand__name strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .01em;
}
.brand__name small {
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 3px;
}

.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  white-space: nowrap;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 13px 22px; white-space: nowrap; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  min-height: calc(100vh - 118px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--basalto);
}
@supports (min-height: 100svh) {
  .hero { min-height: calc(100svh - 118px); }
}
.hero__media {
  position: absolute; inset: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 2.4s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,19,17,.82) 0%, rgba(20,19,17,.55) 45%, rgba(20,19,17,.1) 100%),
    linear-gradient(0deg, rgba(20,19,17,.65) 0%, rgba(20,19,17,0) 45%);
}
.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 72px;
  width: 100%;
}
.hero .eyebrow { color: #d9c49c; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  max-width: 14ch;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: #e6d6b5; }
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 50ch;
  color: rgba(255,255,255,.86);
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero__proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  max-width: 980px;
}
.hero__proof li {
  list-style: none;
  padding: 22px 24px 0 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.45;
  color: rgba(255,255,255,.85);
}
.hero__proof svg { width: 20px; height: 20px; flex: none; color: #d9c49c; margin-top: 1px; }
.hero__proof strong { display: block; color: #fff; font-weight: 700; }
.hero__proof { padding: 0; margin: 0; }

/* Animación de entrada del hero (solo CSS → robusto) */
.hero-in {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1s var(--ease) forwards;
}
.hero-in:nth-child(2) { animation-delay: .12s; }
.hero-in:nth-child(3) { animation-delay: .24s; }
.hero-in:nth-child(4) { animation-delay: .36s; }
.hero-in:nth-child(5) { animation-delay: .5s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--sand { background: var(--cal-2); }
.section--dark { background: var(--basalto); color: #fff; }
.section--dark .eyebrow { color: #d9c49c; }
.section--dark .lead { color: rgba(255,255,255,.75); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lead { margin: 0; }

/* ---------- Intro / Compromiso ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.intro__figure {
  position: relative;
  margin: 0;
}
.intro__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.intro__badge {
  position: absolute;
  right: -28px; bottom: 40px;
  background: var(--verde);
  color: #fff;
  padding: 26px 28px;
  max-width: 250px;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
}
.intro__badge strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 6px;
}
.intro__badge span { font-size: .88rem; color: rgba(255,255,255,.82); line-height: 1.45; display: block; }

.intro h2 { margin-bottom: 26px; }

/* ---------- Diseño 3D ---------- */
.design3d {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.design3d h2 { margin-bottom: 26px; }
.design3d__visual {
  position: relative;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  box-shadow: 0 40px 70px -45px rgba(27,26,24,.45);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: #fbfaf7;
}
.design3d__badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--verde); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 100px;
}
.iso { width: 100%; height: auto; display: block; }
.iso .floor { fill: #f1ece3; stroke: var(--verde); stroke-width: 1.2; }
.iso .wall { stroke: var(--verde); stroke-width: 1.2; }
.iso .wall-b { fill: #fdfcfa; }
.iso .wall-l { fill: #f3efe8; }
.iso .grid { stroke: var(--verde); stroke-opacity: .12; stroke-width: 1; }
.iso .win { fill: #dbe7e2; stroke: var(--verde); stroke-width: 1.2; }
.iso .thin { stroke: var(--verde); stroke-width: 1; }
.iso .obj, .iso .top, .iso .stool { stroke: var(--verde); stroke-width: 1.2; stroke-linejoin: round; }
.iso .obj.f-l { fill: #fff; }
.iso .obj.f-r { fill: #f2efe9; }
.iso .obj.f-t { fill: #faf8f4; }
.iso .top.f-t { fill: #cfd8d3; }
.iso .top.f-l, .iso .top.f-r { fill: #b9c7c0; }
.iso .stool.f-t { fill: #d9b98a; }
.iso .stool.f-l { fill: #c9a676; }
.iso .stool.f-r { fill: #b8955f; }
.iso .dim { stroke: var(--ocre); stroke-width: 1.2; }
.iso .dim-t { fill: var(--ocre); font: 600 13px var(--f-body); }
/* Dibujo de líneas al aparecer */
.design3d__visual.reveal .iso polygon,
.design3d__visual.reveal .iso line { stroke-dasharray: 900; stroke-dashoffset: 0; }
.design3d__visual.reveal:not(.is-visible) .iso polygon,
.design3d__visual.reveal:not(.is-visible) .iso line { stroke-dashoffset: 900; }
.design3d__visual .iso polygon, .design3d__visual .iso line { transition: stroke-dashoffset 2.2s var(--ease); }
.design3d__legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 10px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.design3d__legend span { display: inline-flex; align-items: center; gap: 8px; }
.design3d__legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(36,73,61,.4); display: inline-block; }
.design3d__note { margin: 16px 0 0; font-size: .84rem; color: var(--ink-mute); }
.consent--3d { color: var(--ink-soft); }
.consent--3d strong { color: var(--verde); }
.checklist { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.checklist svg { width: 24px; height: 24px; color: var(--verde-2); margin-top: 2px; }
.checklist strong { display: block; font-weight: 700; color: var(--ink); }
.checklist span { color: var(--ink-mute); font-size: .95rem; }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  grid-column: span 4;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(27,26,24,.35); }
.service--wide { grid-column: span 6; }
.service__img { overflow: hidden; aspect-ratio: 16 / 11; background: var(--cal-2); }
.service--wide .service__img { aspect-ratio: 16 / 9; }
.service__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.service__num {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  color: var(--ocre);
  margin-bottom: 12px;
}
.service h3 { margin-bottom: 12px; }
.service p { color: var(--ink-mute); font-size: .97rem; }
.service ul {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service li {
  font-size: .78rem; font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
}
.service--icon .service__body { padding-top: 34px; }
.service__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cal);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--verde);
}
.service__icon svg { width: 26px; height: 26px; }

/* ---------- Franja de cifras / compromisos ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.pillar {
  padding: 44px 32px 44px 0;
  border-right: 1px solid var(--line-light);
}
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; }
.pillar__big {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  line-height: 1;
  color: #e6d6b5;
  margin-bottom: 14px;
}
.pillar h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: .01em; }
.pillar p { font-size: .92rem; color: rgba(255,255,255,.68); margin: 0; }

/* ---------- Método ---------- */
.method {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.method__aside { position: sticky; top: 120px; }
.method__aside img {
  margin-top: 40px;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius);
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 46px 86px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  width: 58px; height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 1.25rem;
  background: var(--cal);
  color: var(--verde);
  z-index: 1;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.step::after {
  content: "";
  position: absolute; left: 29px; top: 58px; bottom: 0;
  width: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step:last-child { padding-bottom: 0; }
.step.is-visible::before { background: var(--verde); color: #fff; border-color: var(--verde); }
.step h3 { margin-bottom: 10px; padding-top: 10px; }
.step p { color: var(--ink-mute); margin: 0; }
.step__tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .78rem; font-weight: 700;
  color: var(--verde-2);
  letter-spacing: .04em;
}

/* ---------- Antes / Después & galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cal-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 24px 20px;
  color: #fff;
  background: linear-gradient(0deg, rgba(20,19,17,.78), rgba(20,19,17,0));
  font-size: .9rem;
}
.gallery figcaption strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.g-1 { grid-column: span 7; grid-row: span 2; }
.g-2 { grid-column: span 5; grid-row: span 1; }
.g-3 { grid-column: span 5; grid-row: span 1; }
.g-4 { grid-column: span 12; grid-row: span 2; }
.gallery__note { margin-top: 22px; font-size: .82rem; color: var(--ink-mute); }

/* ---------- Zonas ---------- */
.zones {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.zones__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.zones__list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.zones__list li:nth-child(odd) { padding-right: 24px; }
.zones__list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.zones__list strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.zones__list span { font-size: .8rem; color: var(--ink-mute); text-align: right; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cal);
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  white-space: nowrap;
  padding: 0 28px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee__track span::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--ocre);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 110px);
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 50px 26px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--verde);
  transition: transform .35s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p { padding: 0 40px 26px 0; margin: 0; color: var(--ink-mute); }

/* ---------- Contacto / Presupuesto ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact h2 { margin-bottom: 24px; }
.contact__direct { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; }
.contact__direct a, .contact__direct div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  text-decoration: none;
}
.contact__direct a:hover strong { color: #e6d6b5; }
.contact__direct .ico {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid; place-items: center;
}
.contact__direct svg { width: 20px; height: 20px; color: #d9c49c; }
.contact__direct small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.contact__direct strong { font-weight: 600; font-size: 1.05rem; transition: color .2s; }

.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.form__title { font-family: var(--f-display); font-size: 1.8rem; line-height: 1.15; margin: 0 0 10px; font-weight: 400; }
.form__intro { color: var(--ink-mute); font-size: .95rem; margin-bottom: 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-soft); }
.field label .opt { font-weight: 500; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(27,26,24,.2);
  border-radius: var(--radius);
  background: var(--cal);
  font-size: .98rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b1a18' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--verde);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36,73,61,.12);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b3412c; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(27,26,24,.2);
  border-radius: 100px;
  font-size: .86rem; font-weight: 600;
  color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.chips input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--ocre); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; color: var(--ink-mute); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--verde); flex: none; }
.consent a { color: var(--verde); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__submit .btn { min-width: 240px; }
.form__submit small { color: var(--ink-mute); font-size: .82rem; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

.form__status {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: .94rem;
}
.form__status.is-ok { display: block; background: #e6efe9; color: var(--verde); }
.form__status.is-error { display: block; background: #f6e4df; color: #8c2f1f; }

/* ---------- Footer ---------- */
.footer {
  background: #121110;
  color: rgba(255,255,255,.62);
  padding: 80px 0 34px;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer .brand__name small { color: rgba(255,255,255,.5); }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin: 6px 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; font-size: .82rem;
}
.footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
/* Sin JS → todo visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--basalto);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,19,17,.85) 0%, rgba(20,19,17,.55) 55%, rgba(20,19,17,.25) 100%);
}
.page-hero .wrap { position: relative; padding-top: clamp(90px, 12vw, 150px); padding-bottom: clamp(70px, 9vw, 110px); }
.page-hero .eyebrow { color: #d9c49c; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 16ch; margin-bottom: 22px; }
.page-hero h1 em { font-style: italic; color: #e6d6b5; }
.page-hero p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 54ch; color: rgba(255,255,255,.85); margin: 0; }
.page-hero--plain { background: var(--basalto); }
.page-hero--plain .wrap { padding-top: clamp(70px, 9vw, 110px); padding-bottom: clamp(56px, 7vw, 80px); }

.page-hero .crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin: 0 0 30px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Quiénes somos ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.story img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); }
.story h2 { margin-bottom: 26px; }
.story p { color: var(--ink-soft); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.value__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cal); color: var(--verde);
  display: grid; place-items: center; margin-bottom: 22px;
}
.value__icon svg { width: 24px; height: 24px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink-mute); font-size: .95rem; margin: 0; }

.team { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.team li {
  display: grid;
  grid-template-columns: 70px 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-light);
}
.team__n { font-family: var(--f-display); font-size: 1.4rem; color: #e6d6b5; }
.team h3 { font-size: 1.45rem; }
.team p { margin: 0; color: rgba(255,255,255,.7); }

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.contact-card__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--verde); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.9rem;
}
.contact-card small { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--verde-2); margin-bottom: 6px; }
.contact-card h3 { font-size: 1.8rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--ink-mute); }
.contact-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { --bg: var(--basalto); --fg: #fff; border-color: var(--basalto); }

.cta-band { background: var(--verde); color: #fff; padding: clamp(60px, 8vw, 96px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { margin: 14px 0 0; color: rgba(255,255,255,.8); }

/* ---------- Páginas legales ---------- */
.legal-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 34px;
}
.legal-tabs a {
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,.8);
  transition: all .2s var(--ease);
}
.legal-tabs a:hover { border-color: #fff; color: #fff; }
.legal-tabs a[aria-current="page"] { background: #fff; color: var(--basalto); border-color: #fff; }

.legal { padding: 70px 0 120px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.7rem; margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .placeholder { background: #fff3cd; padding: 0 4px; }
.legal__updated { font-size: .85rem; color: var(--ink-mute); margin-top: 48px; }

/* =========================================================
   Responsive
   ========================================================= */
/* ---------- Proyectos: antes / después ---------- */
.gallery__foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.gallery__foot .gallery__note { margin: 0; }

.projects { display: grid; gap: clamp(70px, 10vw, 130px); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.project--rev .ba { order: 2; }
.project__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--verde); margin: 0 0 18px;
}
.project__meta span { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0; color: var(--ocre); text-transform: none; }
.project h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 20px; }
.project__body > p { color: var(--ink-soft); }
.project__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.project__list li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.project__list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 7px; border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde);
  transform: rotate(-45deg);
}
.projects__note { margin: 0; font-size: .85rem; color: var(--ink-mute); text-align: center; }

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cal-2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  box-shadow: 0 24px 50px -30px rgba(27, 26, 24, .45);
}
.ba--portrait { width: 100%; max-width: 470px; justify-self: center; }
.ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before img { height: 100%; object-fit: cover; }
.ba::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.25);
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2;
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: #fff; color: var(--verde);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.ba__handle svg { width: 22px; height: 22px; }
.ba__tag {
  position: absolute; top: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 2px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(27, 26, 24, .72); color: #fff;
}
.ba__tag--a { left: 14px; }
.ba__tag--d { right: 14px; background: var(--verde); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; pointer-events: none;
}
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--ocre); outline-offset: 4px; }

@media (max-width: 920px) {
  .project { grid-template-columns: 1fr; }
  .project--rev .ba { order: 0; }
}
@media (max-width: 640px) {
  .project__list { grid-template-columns: 1fr; }
  .ba__handle { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
}

@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .service, .service--wide { grid-column: span 6; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__proof { grid-template-columns: repeat(2, 1fr); row-gap: 4px; }
}

@media (max-width: 1100px) {
  .nav .wrap { height: 70px; }
  .nav__toggle { display: block; }
  .nav__menu {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cal);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    box-shadow: 0 30px 40px -30px rgba(0,0,0,.3);
  }
  .nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__menu .nav__cta { width: 100%; margin-top: 20px; }

}

@media (max-width: 920px) {
  .topbar__hide { display: none !important; }
  .hero { min-height: calc(100vh - 110px); }
  .section-head, .intro, .method, .zones, .faq, .contact, .design3d { grid-template-columns: 1fr; }
  .section-head { gap: 20px; margin-bottom: 44px; }
  .intro__badge { right: 16px; bottom: 16px; max-width: 220px; padding: 20px; }
  .method__aside { position: static; }
  .method__aside img { aspect-ratio: 16 / 10; }

  .story { grid-template-columns: 1fr; }
  .story img { aspect-ratio: 16 / 11; }
  .values { grid-template-columns: 1fr 1fr; }
  .team li { grid-template-columns: 50px 1fr; }
  .team li p { grid-column: 2; }
  .contact-card { grid-template-columns: auto 1fr; }
  .contact-card__actions { grid-column: 1 / -1; }

  .gallery { grid-auto-rows: 200px; }
  .g-1, .g-4 { grid-column: span 12; grid-row: span 2; }
  .g-2, .g-3 { grid-column: span 6; grid-row: span 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { font-size: .78rem; }
  .topbar .wrap { justify-content: center; }
  .topbar__info { gap: 18px; }
  .brand__name strong { font-size: 1.2rem; }
  .brand__mark { width: 34px; height: 34px; }

  .hero__content { padding-top: 90px; padding-bottom: 48px; }
  .hero__actions { margin-bottom: 44px; }
  .hero__actions .btn { width: 100%; }
  .hero__proof { grid-template-columns: 1fr; }
  .hero__proof li { padding-top: 16px; }

  .services { grid-template-columns: 1fr; }
  .service, .service--wide { grid-column: auto; }
  .service__body { padding: 24px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-right: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-light); }

  .step { padding-left: 72px; }
  .step::before { width: 50px; height: 50px; font-size: 1.1rem; }
  .step::after { left: 25px; top: 50px; }

  .gallery { grid-auto-rows: 180px; gap: 12px; }
  .g-2, .g-3 { grid-column: span 12; }

  .zones__list { grid-template-columns: 1fr; }
  .zones__list li:nth-child(odd), .zones__list li:nth-child(even) { padding: 18px 0; border-left: 0; }

  .values { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; text-align: left; }
  .contact-card__actions .btn { flex: 1 1 100%; }
  .legal-tabs a { flex: 1 1 auto; text-align: center; }

  .form__grid { grid-template-columns: 1fr; }
  .form__submit .btn { width: 100%; min-width: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* Solo se respeta reduced-motion en el efecto más intrusivo (marquee) */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 120s; }
}
