/* ============================================================
   Noya Arboricultura · Lujo discreto
   ============================================================ */

:root {
  --bg: #f3eee2;
  --paper: #ffffff;
  --ink: #14201a;
  --ink-soft: #5c665f;
  --ink-faint: #8a918b;
  --line: #e7e3da;
  --line-soft: #efede6;
  --green: #24453a;
  --green-soft: #3a6b57;
  --wa: #128c4b;
  --wa-hover: #0e7a41;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1180px;
  --pad: clamp(22px, 5vw, 40px);
  --sec-y: clamp(72px, 10vw, 128px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
  touch-action: pan-y; /* Bloquea estrictamente el movimiento lateral en móvil; solo permite subir y bajar */
}

/* Evita que cualquier bloque o sección desborde horizontalmente */
.header, .hero, .page-hero, .section, .cta, .footer, main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Bloquea el scroll de fondo con el menú móvil abierto */
body.no-scroll { overflow: hidden; }

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

/* Compensa el header fijo en los enlaces a anclas */
[id] { scroll-margin-top: 88px; }

/* Enlace para saltar al contenido (solo visible con teclado) */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

::selection { background: var(--green); color: #fff; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: 860px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- Etiquetas de sección ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.label::after {
  content: '';
  flex: 0 0 44px;
  height: 1px;
  background: var(--line);
}
.label--center { justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--ink { background: var(--ink); color: #fff; gap: 0; }
.btn--ink:hover { background: var(--green); }
.btn--ink::after {
  content: '\2192';
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  transition: max-width .3s ease, margin-left .3s ease;
}
.btn--ink:hover::after { max-width: 26px; margin-left: 10px; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color .25s ease, color .25s ease;
}
.link-arrow::after { content: '\2192'; transition: transform .25s ease; }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(243, 238, 226, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 238, 226, 0.96);
  box-shadow: 0 12px 30px -20px rgba(20, 32, 26, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand__name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand__tag {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 500; }

.header__wa {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--wa);
  padding: 11px 20px;
  border-radius: 2px;
  transition: background .2s ease;
  white-space: nowrap;
}
.header__wa:hover { background: var(--wa-hover); }

/* WhatsApp dentro del menú móvil (el botón del header se oculta en móvil) */
.nav__wa { display: none; }
.nav__foot { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative;
  padding: calc(74px + clamp(48px, 8vw, 88px)) 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__text { max-width: 560px; }
.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  max-width: 18ch;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__figure {
  position: relative;
  margin: 0;
}
.hero__figure::before {
  content: '';
  position: absolute;
  inset: 16px -14px -14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  z-index: -1;
}
.hero__figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(20, 32, 26, 0.45);
}
.hero__figure figcaption {
  position: absolute;
  right: -6px;
  bottom: -22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg);
  padding: 4px 10px;
}

/* ---------- Hero interior (páginas de servicio) ---------- */
.page-hero {
  padding: calc(74px + clamp(56px, 9vw, 96px)) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.breadcrumb a { text-decoration: none; color: var(--ink-faint); transition: color .2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--line); }
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  max-width: 18ch;
  margin-bottom: 20px;
}
.page-hero__lead {
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Versión compacta (contacto): deja el formulario a la vista */
.page-hero--compact {
  padding: calc(74px + clamp(26px, 5vw, 48px)) 0 clamp(22px, 4vw, 36px);
}
.page-hero--compact .breadcrumb { margin-bottom: 16px; }
.page-hero--compact h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 12px;
}
.page-hero--compact .page-hero__lead { font-size: clamp(15px, 1.2vw, 16.5px); }

/* ---------- Secciones ---------- */
.section { padding: var(--sec-y) 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.section__head p { color: var(--ink-soft); }

/* ---------- Servicios destacados (inicio) ---------- */
.services-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.service-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .3s ease;
}
.service-card:hover { border-color: var(--ink); }
.service-card__img { overflow: hidden; aspect-ratio: 4 / 3; }
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { padding: clamp(24px, 3vw, 34px); }
.service-card__body h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.service-card__body p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }

.services-more {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 34px;
}
.services-more__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.services-more ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; }
.services-more li { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink-soft); }
.services-more a { text-decoration: none; transition: color .2s; }
.services-more a:hover { color: var(--ink); }

/* ---------- Motivos / USP ---------- */
.usp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(40px, 6vw, 80px);
}
.usp__item {
  padding: clamp(26px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.usp__num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 14px;
}
.usp__item h3 { font-size: clamp(21px, 2.1vw, 25px); margin-bottom: 10px; }
.usp__item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Sobre mí ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.about__body h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 22px; }
.about__body p { color: var(--ink-soft); margin-bottom: 16px; }
.about__body p strong { color: var(--ink); font-weight: 500; }
.about__sign {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 26px;
}

/* ---------- Galería ---------- */
.gallery {
  columns: 3;
  column-gap: clamp(10px, 1.4vw, 16px);
}
.gallery--6 { columns: 3; }
.g {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
  background: var(--line-soft);
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.4vw, 16px);
}
.g img {
  width: 100%;
  height: auto;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.g:hover img { transform: scale(1.05); }
.g figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10,22,16,.72));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.g:hover figcaption { opacity: 1; transform: translateY(0); }

.gallery__note { margin-top: 22px; text-align: center; }

/* ---------- Zona ---------- */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.towns li {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 14px 26px 14px 0;
  margin-right: 26px;
  border-bottom: 1px solid var(--line);
  flex: 1 1 auto;
}
.towns li::after { content: '\00b7'; margin-left: 26px; color: var(--line); }
.towns li:last-child::after { content: ''; }

.zone__map { margin-top: clamp(32px, 5vw, 52px); }
.zone__map iframe {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 2px;
  filter: grayscale(100%) contrast(1.05);
}

/* ---------- Pasos (cómo trabajo) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 36px);
}
.step { padding-top: 22px; border-top: 1px solid var(--ink); }
.step__num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Listas de contenido ---------- */
.prose { max-width: 680px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 18px; }
.prose h3 { font-size: 23px; margin: 34px 0 12px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose ul { list-style: none; margin: 8px 0 20px; }
.prose li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.prose li::before {
  content: '';
  position: absolute;
  left: 2px; top: 22px;
  width: 7px; height: 7px;
  border: 1px solid var(--green-soft);
  transform: rotate(45deg);
}
.prose strong { color: var(--ink); font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  position: sticky;
  top: 100px;
}

/* ---------- FAQ ---------- */
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -6.5px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/13px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1px 13px no-repeat;
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 40px 24px 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- CTA final ---------- */
.cta {
  background: var(--green);
  color: #fff;
  padding: clamp(64px, 9vw, 104px) 0;
  text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 32px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn--ink { background: #fff; color: var(--ink); }
.cta .btn--ink:hover { background: var(--bg); }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(26px, 3.4vw, 40px);
}
.contact__form-head { grid-column: 1 / -1; margin-bottom: 4px; }
.contact__form-head h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.contact__form-head p { color: var(--ink-soft); font-size: 15.5px; }
.contact__eta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.contact__eta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
}
.contact__trust {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}
/* Trampa anti-spam: invisible para personas */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.btn[disabled] { opacity: 0.6; cursor: wait; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px; /* 16px mínimo para evitar zoom automático en iOS Safari */
  font-weight: 300;
  color: var(--ink);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(36, 69, 58, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--full, .contact__form .btn, .contact__form-note { grid-column: 1 / -1; }
.contact__form-note { font-size: 14.5px; text-align: center; min-height: 20px; color: var(--green-soft); }
.contact__form-note.is-error { color: #9c2f2f; }

.contact__aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(26px, 3vw, 36px);
}
.contact__aside h3 { font-size: 24px; margin-bottom: 18px; }
.contact__block { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.contact__block:first-of-type { border-top: none; padding-top: 0; }
.contact__block .k {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.contact__block a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__block a:hover { border-color: var(--ink); }
.contact__block p { color: var(--ink-soft); font-size: 15px; }
.contact__aside .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  margin-top: auto;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(52px, 7vw, 76px);
  padding-bottom: clamp(36px, 5vw, 52px);
}
.footer__brand .brand__name { color: #fff; display: block; margin-bottom: 4px; }
.footer__brand .brand__tag { color: rgba(255,255,255,.5); }
.footer__brand p { font-size: 15px; margin-top: 16px; max-width: 40ch; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer__nav a {
  display: inline-block;
  padding: 10px 0;
  font-size: 14.5px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.footer__nav a:hover { color: #fff; }
.footer__areas {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.42);
}
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 20, 16, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__img {
  max-width: min(1080px, 92vw);
  max-height: 86vh;
  border-radius: 2px;
  cursor: zoom-in;
  transition: transform .3s ease;
}
.lightbox.is-zoom { overflow: auto; }
.lightbox.is-zoom .lightbox__img { transform: scale(1.7); cursor: zoom-out; }
.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.14); }
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.14); }

/* ---------- Banda de confianza ---------- */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.trust__item svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--green);
}
.trust__item span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Testimonios ---------- */
.testis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.testi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s ease, transform .3s ease;
}
.testi:hover { border-color: var(--ink); transform: translateY(-3px); }
.testi__stars { color: var(--green); letter-spacing: 4px; font-size: 15px; }
.testi blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.testi__who {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: auto;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 18px));
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  z-index: 150;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 10px 25px -8px rgba(18, 140, 75, 0.5);
  transition: transform .25s ease, background .25s ease;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { transform: scale(1.07); background: var(--wa-hover); }
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  opacity: 0;
  animation: wa-ping 2.6s ease-out infinite;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

/* ---------- Comparador antes / después ---------- */
.ba-case {
  margin-bottom: clamp(28px, 5vw, 52px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.ba-case h3 {
  text-align: center;
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 18px;
}
.ba {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  height: auto;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--line-soft);
  touch-action: none; /* Control táctil exclusivo del deslizador, no mueve la página */
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 10px 25px -12px rgba(20, 32, 26, 0.2);
  box-sizing: border-box;
}
.ba--alto {
  aspect-ratio: 924 / 1500;
  max-width: 340px;
}
.ba img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  pointer-events: none;
}
.ba__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  overflow: hidden;
}
.ba__tag {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 22, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 2px;
  pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.ba__handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px -8px rgba(10, 22, 16, 0.5);
}
.ba__hint {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- Animación de aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .8s cubic-bezier(.22,.61,.21,1), transform .8s cubic-bezier(.22,.61,.21,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* ---------- Entrada del hero al cargar ---------- */
.hero__text > * { animation: heroIn .9s cubic-bezier(.22,.61,.21,1) both; }
.hero__text > *:nth-child(2) { animation-delay: .08s; }
.hero__text > *:nth-child(3) { animation-delay: .16s; }
.hero__text > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero__figure img { animation: heroSettle 1.6s cubic-bezier(.22,.61,.21,1) both; }
@keyframes heroSettle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* ---------- Showcase apilado de trabajos (efecto al deslizar) ---------- */
.stack {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
}
.feat {
  position: sticky;
  top: calc(74px + 14px);
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(20, 32, 26, 0.45);
  cursor: zoom-in;
  margin: 0;
}
.feat img {
  width: 100%;
  height: min(72vh, 620px);
  object-fit: cover;
  transition: transform .18s ease-out, filter .18s ease-out;
}
.feat:hover img { transform: scale(1.04); }

/* ---------- Vídeo ---------- */
.video {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #000 url('../assets/img/timelapse-poster.jpg') center / cover no-repeat;
  box-shadow: 0 16px 40px -20px rgba(20, 32, 26, 0.35);
}
.video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

/* ---------- Responsive ---------- */
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .usp { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media img { position: static; aspect-ratio: 4 / 3; width: 100%; border-radius: 4px; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 4 / 3; width: 100%; border-radius: 4px; }
}

@media (max-width: 860px) {
  .header {
    height: 70px;
  }
  .header__inner {
    height: 70px;
  }
  .nav {
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    width: 100%;
    min-height: calc(100svh - 70px);
    height: calc(100svh - 70px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    background: rgba(243, 238, 226, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 4vh 8vw 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 99;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a {
    font-family: var(--serif);
    font-size: clamp(28px, 7.5vw, 40px);
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
    border: none;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s ease, transform .4s ease, color .2s ease;
  }
  .nav.is-open a { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(1) { transition-delay: .06s; }
  .nav.is-open a:nth-child(2) { transition-delay: .12s; }
  .nav.is-open a:nth-child(3) { transition-delay: .18s; }
  .nav.is-open a:nth-child(4) { transition-delay: .24s; }
  .nav.is-open a:nth-child(5) { transition-delay: .30s; }
  .nav a.nav__wa {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    display: block;
    padding: 12px 0;
    color: var(--wa);
  }
  .nav .nav__foot { display: block; margin-top: 5vh; opacity: 0; transform: translateY(14px); transition: opacity .4s ease .36s, transform .4s ease .36s; }
  .nav.is-open .nav__foot { opacity: 1; transform: none; }
  .nav .nav__foot a { font-family: var(--sans); font-size: 15.5px; font-weight: 400; display: block; padding: 8px 0; color: var(--ink-soft); opacity: 1; transform: none; }
  .nav .nav__foot span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
  
  .trust__inner { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .trust__item { justify-content: flex-start; }
  .testis { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .header__wa { display: none; }
  .services-top { grid-template-columns: 1fr; }
  .hero--split { grid-template-columns: 1fr; gap: 36px; }
  .hero__figure { max-width: 100%; margin: 0 auto; }
  .hero__figure::before { display: none; }
  .hero__figure figcaption { display: none; }

  /* En pantallas móviles/tablets: carrusel swipe horizontal impecable */
  .stack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 6px var(--pad) 20px;
    margin-inline: calc(var(--pad) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stack::-webkit-scrollbar { display: none; }
  .feat {
    position: static;
    top: auto;
    flex: 0 0 min(84vw, 340px);
    max-width: 340px;
    scroll-snap-align: center;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 8px 22px -10px rgba(20, 32, 26, 0.16);
    cursor: zoom-in;
    margin: 0;
  }
  .feat img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
  }
  .gallery__note {
    margin-top: 24px;
    position: relative;
    z-index: 2;
    text-align: center;
  }
  .ba-case {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .ba {
    width: 100% !important;
    max-width: min(100%, 460px) !important;
    overflow: hidden !important;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }
  body { font-size: 15.5px; }
  .container { padding: 0 var(--pad); }
  
  /* Galerías regulares: cuadrícula proporcionada de fotos */
  .gallery, .gallery--6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .g {
    margin-bottom: 0;
    border-radius: 4px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--line-soft);
  }
  .g img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .g figcaption {
    font-size: 11px;
    padding: 24px 10px 10px;
  }

  /* Municipios: formato chips limpios sin desbordamiento */
  .towns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: none;
  }
  .towns li {
    font-size: 16px;
    padding: 7px 12px;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--paper);
    flex: 0 0 auto;
  }
  .towns li::after { display: none; }

  /* Banda de confianza */
  .trust__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .trust__item span {
    font-size: 12px;
  }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .contact__form {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  .contact__aside {
    padding: 20px 16px;
  }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; align-items: center; text-align: center; }
  .brand__tag { display: none; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  
  /* Comparador estrictamente ajustado a móvil */
  .ba-case {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
  }
  .ba-case h3 {
    margin-bottom: 12px;
    font-size: 19px;
  }
  .ba {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 430px !important;
    aspect-ratio: 3 / 4 !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .ba--alto {
    aspect-ratio: 924 / 1400 !important;
    max-width: min(100%, 280px) !important;
    max-height: 430px !important;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}