:root {
  --bg: #0E0D0B;
  --bg-2: #161411;
  --ink: #F2EDE4;
  --ink-soft: rgba(242, 237, 228, 0.62);
  --gold: #C8A96A;
  --line: rgba(242, 237, 228, 0.16);
  --serif: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.display { font-size: clamp(40px, 6vw, 88px); }
.display--xl { font-size: clamp(52px, 9vw, 150px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: background 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn--line { color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--xl { min-height: 64px; padding: 0 44px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Precarga */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--bg);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 300; text-align: center; padding: 0 20px; }
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s var(--ease); }
.loader__pct { font-size: 11px; letter-spacing: 0.3em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Navegación */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--gutter);
  transition: background 0.8s var(--ease), padding 0.8s var(--ease);
}
.nav.is-solid { background: rgba(14, 13, 11, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 16px; padding-bottom: 16px; }
.nav__logo { font-family: var(--serif); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__cta { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color 0.5s; }
.nav__cta:hover { border-color: var(--gold); }

/* Portada */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 3.2s var(--ease); }
body:not(.is-loading) .hero__img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0.05) 35%, rgba(14,13,11,0.35) 62%, rgba(14,13,11,0.92) 100%); }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 13vh, 130px); }
.hero__title { font-size: clamp(64px, 13vw, 210px); line-height: 0.9; margin-bottom: 18px; }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--ink-soft); margin: 0 0 38px; }
.hero__in { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
body:not(.is-loading) .hero__in { opacity: 1; transform: none; }
body:not(.is-loading) .hero__in:nth-child(2) { transition-delay: 0.12s; }
body:not(.is-loading) .hero__in:nth-child(3) { transition-delay: 0.24s; }
body:not(.is-loading) .hero__in:nth-child(4) { transition-delay: 0.36s; }

.scroll-line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-line span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: drop 2.4s var(--ease) infinite; }
@keyframes drop { 0% { top: -40%; } 100% { top: 100%; } }

/* Secuencias con scroll */
.seq { position: relative; height: calc(var(--len) * 1vh); }
.seq__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(14,13,11,0) 40%, rgba(14,13,11,0.55) 100%), linear-gradient(180deg, rgba(14,13,11,0.35), rgba(14,13,11,0) 30%, rgba(14,13,11,0) 60%, rgba(14,13,11,0.6)); }
.seq__text { position: absolute; bottom: clamp(70px, 14vh, 140px); max-width: min(620px, 86vw); opacity: 0; will-change: opacity, transform; }
.seq__text h2 { font-size: clamp(44px, 7vw, 112px); text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.seq__text--left { left: var(--gutter); }
.seq__text--right { right: var(--gutter); text-align: right; }
.seq__text--center { left: 50%; transform: translateX(-50%); text-align: center; }

/* Secciones */
.section-head { padding: 0 var(--gutter); margin-bottom: clamp(48px, 8vw, 96px); }
.services, .sheet, .homes { padding: clamp(110px, 16vw, 200px) 0; }

/* Servicios */
.services__map { position: relative; margin: 0 var(--gutter); aspect-ratio: 16 / 9; }
.services__map img { width: 100%; height: 100%; object-fit: cover; }
.spot { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 1; }
.spot:hover, .spot:focus-visible, .spot[aria-expanded="true"] { z-index: 3; }
.spot__dot { position: absolute; inset: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgba(242,237,228,0.6); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,237,228,0.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(242,237,228,0); } }
.spot__card {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: 220px;
  display: grid; gap: 4px; padding: 18px 20px;
  background: rgba(14,13,11,0.9); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-align: left; font-size: 14px; color: var(--ink-soft);
  opacity: 0; pointer-events: none; transform: translate(-50%, 8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.spot__card strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }
.spot__card svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.spot:hover .spot__card, .spot:focus-visible .spot__card, .spot[aria-expanded="true"] .spot__card { opacity: 1; transform: translate(-50%, 0); }
.spot--b .spot__card { bottom: auto; top: calc(100% + 10px); }
.spot--r .spot__card { left: auto; right: -8px; transform: translate(0, 8px); }
.spot--l .spot__card { left: -8px; transform: translate(0, 8px); }
.spot--r:hover .spot__card, .spot--r:focus-visible .spot__card, .spot--r[aria-expanded="true"] .spot__card,
.spot--l:hover .spot__card, .spot--l:focus-visible .spot__card, .spot--l[aria-expanded="true"] .spot__card { transform: translate(0, 0); }

/* Ficha */
.sheet__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--gutter) 64px; border-top: 1px solid var(--line); }
.sheet__grid div { padding: 34px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.sheet__grid div:first-child { padding-left: 0; }
.sheet__grid div:last-child { border-right: 0; }
.sheet__grid dt { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.sheet__grid dd { margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 92px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.sheet .actions { padding: 0 var(--gutter); }

/* Carrusel */
.carousel { margin: 0 var(--gutter); }
.carousel__track { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.slide.is-active img { transform: scale(1); }
.slide__info h3 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 12px; }
.slide__info p { color: var(--ink-soft); margin: 0 0 32px; }
.slide__info .actions { flex-direction: column; align-items: flex-start; }
.carousel__nav { display: flex; align-items: center; gap: 22px; margin-top: 40px; }
.arrow { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color 0.5s; }
.arrow:hover { border-color: var(--gold); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.carousel__dots { display: flex; gap: 10px; }
.carousel__dots i { width: 26px; height: 1px; background: var(--line); transition: background 0.6s, width 0.6s var(--ease); }
.carousel__dots i.is-active { background: var(--gold); width: 46px; }

/* Contacto */
.contact { min-height: 90vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 0; padding: 120px var(--gutter); background: radial-gradient(ellipse at 50% 120%, rgba(200,169,106,0.14), transparent 60%); }
.contact .display { margin-bottom: 52px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 30px calc(var(--gutter) + 64px) 30px var(--gutter); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.footer a:hover { color: var(--gold); }

/* Botón flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14,13,11,0.75); border: 1px solid var(--gold);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.5s;
}
.wa-float.is-visible { opacity: 1; transform: none; }
.wa-float:hover { background: var(--gold); }
.wa-float svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s; }
.wa-float:hover svg { stroke: var(--bg); }

/* Aparición al bajar */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Celular */
@media (max-width: 820px) {
  .slide { grid-template-columns: 1fr; align-items: start; }
  .slide__info .actions { flex-direction: row; }
  .sheet__grid { grid-template-columns: 1fr 1fr; }
  .sheet__grid div { padding: 26px 0 26px 20px; border-bottom: 1px solid var(--line); }
  .sheet__grid div:nth-child(odd) { padding-left: 0; }
  .sheet__grid div:nth-child(2) { border-right: 0; }
  .seq__text--right { right: auto; left: var(--gutter); text-align: left; }
  .services__map { margin: 0; }
  .spot { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .spot__dot { inset: 11px; }
  .spot__card { width: 190px; }
  .nav__cta { display: none; }
  .btn { padding: 0 22px; }
}

/* Movimiento reducido: imágenes fijas y sin animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal], .hero__in { opacity: 1; transform: none; }
  .hero__img { transform: none; }
}
.seq.is-static { height: auto; }
.seq.is-static .seq__sticky { position: relative; height: 100vh; height: 100svh; }
.seq.is-static .seq__text { position: relative; opacity: 1; bottom: auto; left: auto; right: auto; transform: none; text-align: left; margin-bottom: 28px; }
.seq.is-static .seq__texts { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 60px; }
.seq.is-static .seq__text h2 { font-size: clamp(32px, 4.4vw, 60px); }
