/* =====================================================
   Reserva Irazú — landing
   Cinematic dark/gold premium real-estate aesthetic
   Next-gen interactions: Lenis smooth-scroll, split-text,
   clip-path reveals, parallax, magnetic CTA, cursor halo.
   ===================================================== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111;
  --bg-section: #0d0d0d;
  --ink: #f5f1ea;
  --ink-soft: rgba(245, 241, 234, 0.72);
  --ink-faint: rgba(245, 241, 234, 0.55);
  --gold: #b8956e;
  --gold-light: #dfc5a0;
  --gold-glow: rgba(184, 149, 110, 0.35);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1280px;
  --max-text: 760px;

  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  /* Lenis takes over scrolling — keep CSS smooth as fallback */
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ---------- shared atoms ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(16px, 2.5vw, 28px);
  position: relative;
  padding-left: 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s var(--easing-out) 0.05s, transform 0.9s var(--easing-out) 0.05s;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 1.1s var(--easing-out) 0.35s;
}
.is-visible .eyebrow,
.eyebrow.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.is-visible .eyebrow::before,
.eyebrow.is-visible::before {
  width: 22px;
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light::before { background: var(--gold-light); }

.section__head {
  max-width: var(--max-text);
  margin: 0 auto clamp(48px, 6vw, 96px);
  text-align: center;
  padding: 0 24px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section__lead {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--easing-out) 0.5s, transform 1s var(--easing-out) 0.5s;
}
.is-visible .section__lead { opacity: 1; transform: translateY(0); }

/* =====================================================
   SCROLL PROGRESS
   ===================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: rgba(255,255,255,0.04);
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  box-shadow: 0 0 14px var(--gold-glow);
  animation: progressShine 3.5s linear infinite;
  transform-origin: left;
}
@keyframes progressShine {
  to { background-position: -200% 0; }
}

/* =====================================================
   CURSOR HALO (desktop)
   ===================================================== */
.cursor-halo {
  position: fixed;
  top: 0; left: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.5s var(--easing-out);
  background: radial-gradient(
    circle at center,
    rgba(184, 149, 110, 0.18) 0%,
    rgba(184, 149, 110, 0.08) 28%,
    transparent 60%
  );
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-halo.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-halo { display: none; }
}

/* =====================================================
   SPLIT TEXT (word / char)
   ===================================================== */
.split-line { display: inline-block; overflow: hidden; }
.split-word,
.split-char {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  opacity: 0;
  transition:
    transform 0.95s var(--easing-out),
    opacity 0.95s var(--easing-out);
  will-change: transform, opacity;
}
.is-visible .split-word,
.is-visible .split-char {
  transform: translateY(0) rotate(0);
  opacity: 1;
}
/* whitespace between words must stay visible */
.split-space { display: inline-block; width: 0.28em; }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 4vw, 56px);
  transition: background 0.4s var(--easing), backdrop-filter 0.4s var(--easing), padding 0.4s var(--easing);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
}
.nav.is-scrolled .nav__brand { opacity: 1; transform: translateY(0); }
.nav__logo { width: 26px; height: auto; }
.nav__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav__links a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--easing);
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--easing-out);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  border: 1px solid var(--gold);
  padding: 10px 22px !important;
  border-radius: 2px;
  color: var(--gold-light) !important;
  transition: background 0.4s var(--easing), color 0.4s var(--easing), letter-spacing 0.4s var(--easing) !important;
  overflow: hidden;
  position: relative;
}
.nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--easing-out);
  z-index: -1;
}
.nav__cta:hover::before { transform: scaleX(1); transform-origin: left; }
.nav__cta:hover {
  color: var(--bg) !important;
  letter-spacing: 0.22em;
}

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta):not([href="#contacto"]) { display: none; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  transform: scale(1.12);
  animation: heroZoom 22s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom {
  to { transform: scale(1.02); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.15) 35%,
    rgba(10,10,10,0.20) 55%,
    rgba(10,10,10,0.65) 88%,
    rgba(10,10,10,0.92) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: clamp(54px, 7vw, 96px);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
  margin-bottom: clamp(14px, 1.8vw, 24px);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: heroLogoIn 1.1s var(--easing-out) 0.2s forwards;
}
@keyframes heroLogoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 4px 32px rgba(0,0,0,0.55);
}
.hero__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(11px, 1.5vw, 15px);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: clamp(10px, 1.4vw, 18px);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  opacity: 0;
  animation: subFadeIn 1s var(--easing-out) 1.4s forwards;
}
@keyframes subFadeIn {
  to { opacity: 1; }
}
.hero__tag {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 2.6vw, 32px);
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: clamp(28px, 4vw, 56px);
  max-width: 720px;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero__tag em { font-style: italic; font-weight: 400; color: var(--gold-light); }

.hero__scroll {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: subFadeIn 1s var(--easing-out) 2s forwards;
}
.hero__scroll span {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1) translateY(0); }
  50%      { opacity: 1;   transform: scaleY(1.15) translateY(6px); }
}

.hero__rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.55;
  z-index: 2;
}

/* =====================================================
   VISION
   ===================================================== */
.vision {
  background: var(--bg-section);
  padding: clamp(96px, 14vw, 180px) 24px;
  position: relative;
}
.vision::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 6vw, 80px);
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}
.vision__inner {
  max-width: var(--max-text);
  margin: 0 auto;
  text-align: center;
}
.vision__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.15;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  letter-spacing: 0.01em;
}
.vision__lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--easing-out) 0.5s, transform 1s var(--easing-out) 0.5s;
}
.is-visible .vision__lead { opacity: 1; transform: translateY(0); }

.vision__pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  max-width: 720px;
  margin: 0 auto;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.vision__pillars li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out);
}
.vision__pillars li:nth-child(1) { transition-delay: 0.6s; }
.vision__pillars li:nth-child(2) { transition-delay: 0.75s; }
.vision__pillars li:nth-child(3) { transition-delay: 0.9s; }
.is-visible .vision__pillars li { opacity: 1; transform: translateY(0); }

.vision__pillars strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold-light);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.vision__pillars span {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
@media (max-width: 600px) {
  .vision__pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .vision__pillars li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 28px;
  }
  .vision__pillars li:last-child { border-bottom: none; padding-bottom: 0; }
}

/* =====================================================
   GALLERY (place)
   ===================================================== */
.place {
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
  background: var(--bg);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(6px, 0.7vw, 12px);
  padding: 0 clamp(12px, 1.5vw, 24px);
  max-width: 1500px;
  margin: 0 auto;
}
.gallery__item {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: #1a1a1a;
}
.gallery__item--wide {
  grid-column: span 8;
  aspect-ratio: 16 / 7;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.05);
  /* opacity stays at 1 so images always render even if IntersectionObserver
     fails or is delayed on mobile; reveal effect lives in transform/filter */
  opacity: 1;
  transform: scale(1.04);
  transition: transform 1.2s var(--easing-out),
              filter 0.6s var(--easing);
}
.gallery__item.is-visible img {
  transform: scale(1);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--easing);
  pointer-events: none;
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.1);
}
.gallery__item:hover::after { opacity: 1; }

@media (max-width: 1100px) {
  .gallery__item { grid-column: span 6; }
  .gallery__item--wide { grid-column: span 12; aspect-ratio: 16 / 8; }
  /* avoid orphan last item leaving a black void next to it */
  .gallery__item:last-child { grid-column: span 12; aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .gallery { gap: 6px; padding: 0 12px; }
  .gallery__item { grid-column: span 6; aspect-ratio: 1 / 1; }
  .gallery__item--wide { grid-column: span 12; aspect-ratio: 16 / 9; }
  .gallery__item:last-child { grid-column: span 12; aspect-ratio: 16 / 9; }
}

/* stagger for gallery */
.gallery__item:nth-child(1) { transition-delay: 0.05s; }
.gallery__item:nth-child(2) { transition-delay: 0.10s; }
.gallery__item:nth-child(3) { transition-delay: 0.15s; }
.gallery__item:nth-child(4) { transition-delay: 0.20s; }
.gallery__item:nth-child(5) { transition-delay: 0.25s; }
.gallery__item:nth-child(6) { transition-delay: 0.30s; }
.gallery__item:nth-child(7) { transition-delay: 0.35s; }
.gallery__item:nth-child(8) { transition-delay: 0.40s; }

/* =====================================================
   QUOTE PARALLAX
   ===================================================== */
.quote {
  position: relative;
  min-height: clamp(280px, 48vh, 420px);
  padding: clamp(56px, 9vw, 120px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.quote__bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.quote__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.6), rgba(10,10,10,0.75));
}
.quote__text {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}
.quote__text em {
  font-style: italic;
  color: var(--gold-light);
}

/* =====================================================
   LIFE (lifestyle v2 cards)
   ===================================================== */
.life {
  padding: clamp(96px, 14vw, 180px) clamp(16px, 3vw, 48px);
  background: var(--bg-section);
}
.life__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 120px);
}
.life__card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.life__card--reverse { grid-template-columns: 1fr 1.25fr; }
.life__card--reverse .life__media { order: 2; }
.life__card--reverse .life__copy  { order: 1; }

.life__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--easing-out);
}
.life__card--reverse .life__media {
  clip-path: inset(0 0 0 100%);
}
.life__card.is-visible .life__media {
  clip-path: inset(0 0% 0 0);
}
.life__card.is-visible.life__card--reverse .life__media {
  clip-path: inset(0 0 0 0%);
}
.life__media img {
  width: 100%; height: 110%;
  object-fit: cover;
  transform: translate3d(0, -3%, 0) scale(1.06);
  transition: transform 1.6s var(--easing-out);
  will-change: transform;
}
.life__card.is-visible .life__media img {
  transform: translate3d(0, 0, 0) scale(1);
}
.life__media:hover img { transform: translate3d(0, 0, 0) scale(1.04); }
.life__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
  z-index: 1;
}

.life__copy h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  color: var(--ink);
}
.life__copy p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 480px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--easing-out) 0.5s, transform 0.9s var(--easing-out) 0.5s;
}
.life__card.is-visible .life__copy p { opacity: 1; transform: translateY(0); }
.life__copy::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-bottom: 24px;
  transition: width 1s var(--easing-out) 0.3s;
}
.life__card.is-visible .life__copy::before { width: 32px; }

.life__note {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: clamp(64px, 8vw, 96px);
}

@media (max-width: 820px) {
  .life__card,
  .life__card--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .life__card--reverse .life__media { order: 0; }
  .life__card--reverse .life__copy  { order: 1; }
}

/* =====================================================
   LOC (location)
   ===================================================== */
.loc {
  padding: clamp(96px, 14vw, 180px) 24px;
  background: var(--bg);
}
.loc__grid {
  max-width: 980px;
  margin: 0 auto clamp(64px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.loc__item {
  padding: clamp(28px, 4vw, 44px) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s var(--easing);
  opacity: 0;
  transform: translateY(20px);
}
.loc__grid.is-visible .loc__item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out), background 0.4s var(--easing);
}
.loc__grid.is-visible .loc__item:nth-child(1) { transition-delay: 0.10s, 0.10s, 0s; }
.loc__grid.is-visible .loc__item:nth-child(2) { transition-delay: 0.22s, 0.22s, 0s; }
.loc__grid.is-visible .loc__item:nth-child(3) { transition-delay: 0.34s, 0.34s, 0s; }
.loc__grid.is-visible .loc__item:nth-child(4) { transition-delay: 0.46s, 0.46s, 0s; }
.loc__item:last-child { border-right: none; }
.loc__item:hover { background: rgba(184, 149, 110, 0.06); }
.loc__item strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 42px);
  color: var(--gold-light);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.loc__item span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 720px) {
  .loc__grid { grid-template-columns: repeat(2, 1fr); }
  .loc__item:nth-child(2n) { border-right: none; }
  .loc__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

.loc__features {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.loc__features-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: clamp(24px, 3vw, 36px);
  color: var(--ink);
}
.loc__features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loc__features-list li {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  padding-left: 28px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.7s var(--easing-out), transform 0.7s var(--easing-out);
}
.loc__features.is-visible .loc__features-list li {
  opacity: 1;
  transform: translateX(0);
}
.loc__features.is-visible .loc__features-list li:nth-child(1) { transition-delay: 0.10s; }
.loc__features.is-visible .loc__features-list li:nth-child(2) { transition-delay: 0.20s; }
.loc__features.is-visible .loc__features-list li:nth-child(3) { transition-delay: 0.30s; }
.loc__features.is-visible .loc__features-list li:nth-child(4) { transition-delay: 0.40s; }
.loc__features.is-visible .loc__features-list li:nth-child(5) { transition-delay: 0.50s; }
.loc__features-list li:last-child { border-bottom: none; }
.loc__features-list li::before {
  content: "·";
  position: absolute;
  left: 8px;
  color: var(--gold);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
}

/* =====================================================
   CTA (contacto)
   ===================================================== */
.cta {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 24px;
}
.cta__bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.7);
  will-change: transform;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.85) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.5) 100%);
}

.cta__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 2;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: clamp(20px, 2.6vw, 28px);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.cta__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--easing-out) 0.5s, transform 1s var(--easing-out) 0.5s;
}
.is-visible .cta__lead { opacity: 1; transform: translateY(0); }

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.45s var(--easing-spring), box-shadow 0.45s var(--easing);
  position: relative;
  will-change: transform;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}
.is-visible .cta__button {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.9s var(--easing-out) 0.7s,
    transform 0.9s var(--easing-spring) 0.7s,
    box-shadow 0.45s var(--easing);
}
.cta__button-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  position: relative;
  z-index: 1;
  transition: transform 0.45s var(--easing-spring);
}
.cta__button::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--easing-out), height 0.6s var(--easing-out);
}
.cta__button::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  pointer-events: none;
}
.cta__button:hover::before {
  width: 460px; height: 460px;
}
.cta__button:hover {
  box-shadow: 0 18px 56px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0,0,0,0.5);
}
.cta__wa { width: 22px; height: 22px; flex: none; }

.cta__note {
  margin-top: clamp(28px, 3.5vw, 40px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

/* =====================================================
   FOOTER
   ===================================================== */
.foot {
  background: var(--bg-soft);
  padding: 0;
}
.foot__rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.foot__inner {
  padding: clamp(48px, 7vw, 80px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot__brand span {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot__logo { width: 28px; }
.foot__legal {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  line-height: 1.85;
}
.foot__legal small {
  display: inline-block;
  margin-top: 6px;
  opacity: 0.7;
  font-size: 11px;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--easing);
  padding: 32px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  animation: lbZoom 0.55s var(--easing-out);
}
@keyframes lbZoom {
  from { transform: scale(0.94); opacity: 0; filter: blur(6px); }
  to   { transform: scale(1);    opacity: 1; filter: blur(0); }
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s var(--easing), transform 0.3s var(--easing-spring), border-color 0.3s var(--easing);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(184, 149, 110, 0.4);
  border-color: var(--gold-light);
}
.lightbox__close:hover { transform: scale(1.08) rotate(90deg); }
.lightbox__nav--prev:hover,
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.08); }

/* =====================================================
   REVEAL ON SCROLL — generic fallback
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--easing-out), transform 1s var(--easing-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { transform: none; }
  .gallery__item img { opacity: 1 !important; transform: none !important; }
  .life__media { clip-path: none !important; }
  .life__media img { transform: none !important; }
  .split-word, .split-char { transform: none !important; opacity: 1 !important; }
  .cursor-halo { display: none; }
}
