/* ═══════════════════════════════════════════════════════════
   ECO-FINCA LOS PINOS — Sistema de diseño
   Bosque de pino · crema · ámbar
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ancla verde — secciones oscuras */
  --pine-950: #0f1e15;
  --pine-900: #142619;
  --pine-800: #1a3023;
  --pine-700: #24422f;
  --pine-600: #2e5c40;
  --green-ink: #2e5c40;
  --moss: #4f7f63;
  --sage: #9dbcaa;
  /* lienzos claros — mezcla verde + ocre cereza */
  --cream-bg: #d6cda6;
  --cream-card: #e6dfc1;
  --cream: #f3ecdd;
  --cream-dim: rgba(243, 236, 221, 0.66);
  --cream-faint: rgba(243, 236, 221, 0.38);
  /* tintes del concepto: café, cereza, oro */
  --ink: #2c2317;
  --ink-dim: #64563f;
  --ink-faint: #93846a;
  --ink-line: rgba(44, 35, 23, 0.16);
  --gold: #c9a25e;
  --caramel: #9a6b3f;
  --cherry: #b0472e;
  --cherry-dark: #96381f;
  --amber: #dd9a4e;
  --amber-soft: #e8b276;
  --line: rgba(243, 236, 221, 0.14);
  --card: rgba(243, 236, 221, 0.045);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--pine-950);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--amber); color: var(--pine-950); }

/* ── utilidades ─────────────────────────────────────────── */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding-block: clamp(90px, 12vw, 160px); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber-soft); margin-bottom: 18px; font-weight: 400;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--amber); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic; color: var(--amber-soft); font-weight: 300;
}
.section-sub { max-width: 52ch; color: var(--cream-dim); margin-top: 18px; font-size: 1.05rem; }
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }

/* ── botones ────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--amber);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn--solid { background: var(--btn-bg); color: var(--pine-950); box-shadow: 0 10px 34px -12px rgba(221, 154, 78, 0.55); }
.btn--solid:hover { background: var(--amber-soft); }
.btn--cherry { background: var(--cherry); color: #fff7ec; box-shadow: 0 12px 34px -12px rgba(176, 71, 46, 0.6); }
.btn--cherry:hover { background: var(--cherry-dark); color: #fff7ec; }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cream-dim); background: rgba(243, 236, 221, 0.06); }
.btn--outline { border: 1px solid var(--line); color: var(--cream); }
.btn--outline:hover { border-color: var(--amber); color: var(--amber-soft); }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--lg { padding: 20px 38px; font-size: 1.05rem; }
.btn .wa { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--amber-soft); font-weight: 500; font-size: 0.95rem;
  border-bottom: 1px solid transparent; transition: border-color 0.3s, gap 0.3s;
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover { border-color: var(--amber-soft); }
.link-arrow:hover::after { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.78rem; letter-spacing: 0.04em; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--cream-dim);
  transition: border-color 0.3s, color 0.3s;
}
.chips li:hover { border-color: var(--amber); color: var(--amber-soft); }

/* ── grano de película ──────────────────────────────────── */
.grain {
  position: fixed; inset: -100%; z-index: 2000; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 4%); }
}

/* ── cursor personalizado ───────────────────────────────── */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor { width: 8px; height: 8px; background: var(--cream); transition: opacity 0.3s, scale 0.3s; }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(243, 236, 221, 0.6);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s, background 0.3s;
}
body.cursor-hover .cursor-ring { width: 64px; height: 64px; background: rgba(243, 236, 221, 0.12); }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ── preloader ──────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--cream-bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__badge {
  width: 96px; height: 96px; margin-inline: auto; margin-bottom: 18px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--green-ink);
  box-shadow: 0 0 0 6px rgba(201, 162, 94, 0.28), 0 14px 40px rgba(44, 35, 23, 0.25);
}
.preloader__badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preloader__brand {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.02em;
}
.preloader__brand em { font-style: italic; color: var(--green-ink); }
.preloader__count {
  margin-top: 10px; font-size: 0.8rem; letter-spacing: 0.3em; color: var(--ink-faint);
}
.preloader__bar {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: rgba(44, 35, 23, 0.12);
}
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
html:not(.js) .preloader { display: none; }

/* ── header ─────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 48px);
  transition: transform 0.5s var(--ease-out), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(15, 30, 21, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__logo { display: flex; align-items: center; gap: 11px; }
.header__badge {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--cream);
  transition: transform 0.4s var(--ease-out);
}
.header__logo:hover .header__badge { transform: rotate(-8deg) scale(1.06); }
.header__brand { display: flex; flex-direction: column; line-height: 1.12; }
.header__brand small {
  font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cream-faint); font-weight: 400;
}
.header__brand em { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--amber-soft); }

.header__nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.header__link {
  position: relative; font-size: 0.9rem; color: var(--cream-dim);
  transition: color 0.3s; letter-spacing: 0.02em;
}
.header__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.header__link:hover { color: var(--cream); }
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__burger {
  display: none; width: 44px; height: 44px; position: relative; z-index: 5;
  border: 1px solid var(--line); border-radius: 50%;
}
.header__burger span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--cream);
  transition: transform 0.4s var(--ease-out), top 0.4s;
}
.header__burger span:nth-child(1) { top: 17px; }
.header__burger span:nth-child(2) { top: 25px; }
.header__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header__burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 1001;
  background: var(--pine-900);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 6vw, 60px);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
.menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 38px);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-out);
}
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__link {
  font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.2; color: var(--cream);
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.menu__link i { font-family: var(--font-body); font-style: normal; font-size: 0.8rem; color: var(--gold); letter-spacing: 0.2em; }
.menu__link:hover { color: var(--gold); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.32s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.39s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.46s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.53s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: 0.6s; }
.menu__foot {
  margin-top: 40px; display: flex; flex-direction: column; gap: 6px;
  color: var(--cream-faint); font-size: 0.9rem;
}
.menu__foot a { color: var(--amber-soft); }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -6% 0; z-index: 0; will-change: transform; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s var(--ease-out) forwards;
  transform-origin: center 70%;
}
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1.02); } }

.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 30, 21, 0.62) 0%, rgba(15, 30, 21, 0.18) 34%, rgba(15, 30, 21, 0.82) 78%, var(--pine-950) 100%),
    radial-gradient(120% 90% at 50% 100%, rgba(15, 30, 21, 0.75) 0%, transparent 60%);
}
.hero__particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero__content {
  position: relative; z-index: 3;
  width: min(1200px, 92%); margin-inline: auto;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(84px, 10vh, 130px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cream); background: rgba(15, 30, 21, 0.35);
  border: 1px solid rgba(243, 236, 221, 0.22);
  padding: 10px 20px; border-radius: 999px;
  margin-bottom: 26px; backdrop-filter: blur(8px);
}
.hero__eyebrow svg { width: 15px; height: 15px; fill: var(--amber); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.2rem, 15.5vw, 13.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
  margin-left: -0.04em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber-soft);
  font-style: italic;
  margin-left: clamp(0px, 8vw, 130px);
}
.hero__line .char { display: inline-block; will-change: transform; }

.hero__sub {
  max-width: 46ch; margin-top: 28px;
  color: var(--cream-dim); font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__foot {
  position: relative; z-index: 3;
  width: min(1200px, 92%); margin-inline: auto;
  padding-bottom: 26px;
  display: flex; align-items: center; gap: clamp(18px, 4vw, 44px);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-faint);
}
.hero__meta { display: inline-flex; align-items: center; gap: 9px; }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(221, 154, 78, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(221, 154, 78, 0); } }
.hero__scrollcue { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hero__scrollcue i {
  width: 1px; height: 46px; background: linear-gradient(var(--cream-faint), transparent);
  position: relative; overflow: hidden;
}
.hero__scrollcue i::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--amber); animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue { to { top: 110%; } }

.hero__trees {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2;
  pointer-events: none; line-height: 0;
}
.hero__trees svg { width: 100%; height: clamp(48px, 9vw, 110px); fill: var(--pine-950); opacity: 0.9; }

/* ── marquee ────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--pine-900);
  overflow: hidden; padding-block: 18px;
  position: relative; z-index: 4;
}
.marquee__track {
  display: flex; align-items: center; gap: 42px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); color: var(--cream-dim);
  white-space: nowrap;
}
.marquee__track svg { width: 20px; height: 20px; fill: var(--amber); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── café banner ────────────────────────────────────────── */
.cafe { background: var(--pine-950); position: relative; }
.cafe__banner {
  position: relative; height: clamp(320px, 58vh, 600px); overflow: hidden;
  margin: 0 auto; width: min(1400px, 94%);
  border-radius: 28px;
  border: 1px solid var(--ink-line);
  box-shadow: 0 36px 90px -35px rgba(44, 35, 23, 0.45);
}
.cafe__banner img {
  position: absolute; inset: 0; width: 100%; height: 120%;
  object-fit: cover; object-position: center top;
  will-change: transform;
}
.cafe__banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 30, 21, 0.22) 0%, transparent 26%, transparent 74%, rgba(15, 30, 21, 0.3) 100%);
}
.cafe__wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 5vw, 72px) clamp(80px, 10vw, 130px);
}
.cafe__card {
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-top: clamp(-150px, -10vw, -60px);
  border: 8px solid #f6f0dd;
  box-shadow: 0 44px 90px -24px rgba(44, 35, 23, 0.5);
  animation: floatCard 7s ease-in-out infinite;
  position: relative; z-index: 3;
  background: var(--cream-card);
}
.cafe__card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floatCard {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1.2deg) translateY(-14px); }
}
.cafe__info .section-sub { margin-top: 16px; }
.cafe__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.cafe__hint { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-faint); }

/* ── about ──────────────────────────────────────────────── */
.about { background: var(--pine-950); }
.about__statement {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.28; letter-spacing: -0.005em;
  max-width: 22ch; max-width: 30ch;
}
.about__statement .word { display: inline-block; }
.about__grid {
  margin-top: clamp(48px, 7vw, 90px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about__copy p { color: var(--cream-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about__stats {
  margin-top: 34px; display: flex; gap: clamp(24px, 4vw, 54px); flex-wrap: wrap;
}
.about__stats li { display: flex; flex-direction: column; }
.about__stats strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem); color: var(--caramel); line-height: 1;
}
.about__stats span { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

.about__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.about__media img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.about__media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(15, 30, 21, 0.55); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(243, 236, 221, 0.16);
}

/* ── stays (stacked cards) ──────────────────────────────── */
.stays { background: var(--pine-950); padding-bottom: 0; }
.stack { position: relative; padding-bottom: 10vh; }
.stack__card {
  position: sticky; top: calc(var(--header-h) + 3vh);
  display: grid; grid-template-columns: 1.05fr 1fr;
  width: min(1160px, 92%); margin-inline: auto;
  background: var(--cream-card);
  border: 1px solid var(--ink-line); border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
.stack__card + .stack__card { margin-top: 5vh; }
.stack__media { position: relative; min-height: 440px; overflow: hidden; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.stack__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; }
.stack__num {
  position: absolute; top: 18px; right: 26px;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(3rem, 6vw, 4.6rem); color: transparent;
  -webkit-text-stroke: 1px rgba(44, 35, 23, 0.2); line-height: 1;
}
.stack__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--ink); }
.stack__tag { color: var(--green-ink); font-style: italic; font-family: var(--font-display); font-size: 1.1rem; }
.stack__body > p { color: var(--ink-dim); max-width: 44ch; }
.stack__body .chips li { border-color: rgba(44, 35, 23, 0.22); color: var(--ink-dim); }
.stack__body .chips li:hover { border-color: var(--green-ink); color: var(--green-ink); }
.stack__card .link-arrow { color: var(--cherry); }
.stack__body .chips { margin-top: 6px; }
.stack__body .link-arrow { margin-top: 14px; }

/* ── tours (horizontal scroll) ──────────────────────────── */
.tours {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(29, 80, 55, 0.28) 0%, transparent 70%),
    var(--pine-900);
  border-block: 1px solid var(--line);
}
.tours__head { padding-top: clamp(90px, 12vw, 150px); padding-bottom: 40px; }
.tours__viewport { overflow: hidden; }
.tours__track {
  display: flex; gap: clamp(20px, 3vw, 40px);
  width: max-content; padding-inline: 4vw;
  will-change: transform;
}
.tour {
  position: relative;
  display: grid; grid-template-columns: 0.92fr 1fr;
  width: min(880px, 86vw);
  background: linear-gradient(160deg, #b34a31 0%, #9c3a24 100%);
  border: 1px solid rgba(255, 247, 236, 0.18); border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 30px 60px -28px rgba(150, 56, 31, 0.55);
}
.tour__media { position: relative; min-height: 430px; overflow: hidden; }
.tour__media img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.tour__body { padding: clamp(26px, 3.6vw, 50px); display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.tour__num {
  font-family: var(--font-display); font-style: italic; font-size: 1rem;
  color: #f2cf9f; letter-spacing: 0.1em;
}
.tour__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff7ec; }
.tour__tag { font-family: var(--font-display); font-style: italic; color: #ffd9bd; }
.tour__body > p { color: rgba(255, 247, 236, 0.85); font-size: 0.98rem; }
.tour__facts { display: flex; gap: 26px; margin-block: 8px; padding-block: 14px; border-block: 1px solid rgba(255, 247, 236, 0.25); }
.tour__facts li { display: flex; flex-direction: column; }
.tour__facts strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: #fff7ec; }
.tour__facts span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 247, 236, 0.65); }
.tour__body .btn { align-self: flex-start; margin-top: 4px; }
.tours__progress {
  width: min(1200px, 92%); margin: 44px auto clamp(90px, 10vw, 130px);
  height: 2px; background: rgba(44, 35, 23, 0.14); border-radius: 2px; overflow: hidden;
}
.tours__progress i { display: block; height: 100%; width: 0%; background: var(--cherry); }

/* ── galería ────────────────────────────────────────────── */
.gallery { background: var(--pine-950); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 240px);
  grid-auto-flow: row dense;
  gap: clamp(12px, 1.6vw, 20px);
}
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 30, 21, 0.65));
  opacity: 0; transition: opacity 0.5s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(15, 30, 21, 0.94);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
  padding: 5vh 4vw;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.lightbox__figure { max-width: min(1100px, 86vw); text-align: center; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh; border-radius: var(--radius);
  transform: scale(0.94); transition: transform 0.5s var(--ease-out);
  object-fit: contain;
}
.lightbox.is-open .lightbox__figure img { transform: scale(1); }
.lightbox__figure figcaption { margin-top: 16px; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }
.lightbox__close {
  position: absolute; top: 26px; right: 30px;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}
.lightbox__close:hover { background: rgba(243, 236, 221, 0.1); transform: rotate(90deg); }
.lightbox__nav {
  width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.2rem; transition: background 0.3s;
  flex-shrink: 0;
}
.lightbox__nav:hover { background: rgba(243, 236, 221, 0.1); }

/* ── testimonios ────────────────────────────────────────── */
.testis {
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(29, 80, 55, 0.22) 0%, transparent 70%),
    var(--pine-900);
  border-top: 1px solid var(--line);
}
.testi { max-width: 860px; margin-inline: auto; }
.testi__viewport { overflow: hidden; }
.testi__track { display: flex; transition: transform 0.8s var(--ease-out); }
.testi__card {
  flex: 0 0 100%; padding: clamp(10px, 2vw, 20px);
  text-align: center;
}
.testi__card p {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.45; color: var(--cream);
}
.testi__card footer {
  margin-top: 26px; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.testi__dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.testi__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(243, 236, 221, 0.22); transition: background 0.3s, transform 0.3s;
}
.testi__dots button.is-active { background: var(--gold); transform: scale(1.35); }

/* ── la canción de la finca ─────────────────────────────── */
.sound {
  background:
    radial-gradient(55% 70% at 50% 45%, rgba(46, 92, 64, 0.4) 0%, transparent 70%),
    var(--pine-950);
  border-top: 1px solid var(--line);
}
.sound__card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(28px, 4.5vw, 60px); align-items: center;
  background: var(--pine-900);
  border: 1px solid rgba(201, 162, 94, 0.3);
  border-radius: 30px;
  padding: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
}
.sound__card::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(176, 71, 46, 0.28), transparent 70%);
  pointer-events: none;
}
.sound__disc {
  position: relative; width: clamp(180px, 22vw, 250px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 6px solid rgba(243, 236, 221, 0.12);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 162, 94, 0.3);
  flex-shrink: 0;
  cursor: pointer;
}
.sound__disc video {
  position: absolute; top: 50%; left: 50%;
  width: 145%; height: 145%; max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover; display: block;
}
.sound__card.is-playing .sound__disc { animation: spinDisc 16s linear infinite; }
@keyframes spinDisc { to { transform: rotate(360deg); } }
.sound__hole {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px;
  transform: translate(-50%, -50%);
  background: var(--pine-950); border-radius: 50%;
  border: 2px solid rgba(243, 236, 221, 0.35); z-index: 2;
  pointer-events: none;
}
.sound__meta { position: relative; z-index: 1; }
.sound__meta h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--cream); margin-bottom: 10px;
}
.sound__meta > p { color: var(--cream-dim); max-width: 52ch; }
.sound__controls { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.sound__play {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: var(--cherry); color: #fff7ec;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s var(--ease-out), background 0.3s;
  box-shadow: 0 14px 34px -10px rgba(176, 71, 46, 0.6);
}
.sound__play:hover { transform: scale(1.08); background: var(--cherry-dark); }
.sound__play svg { width: 24px; height: 24px; }
.sound__play .ic-pause { display: none; }
.sound__card.is-playing .ic-play { display: none; }
.sound__card.is-playing .ic-pause { display: block; }
.sound__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(243, 236, 221, 0.15); cursor: pointer; overflow: hidden; }
.sound__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--cherry)); border-radius: 6px; }
.sound__time { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--cream-faint); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.sound__eq {
  position: absolute; right: clamp(24px, 4vw, 48px); bottom: clamp(20px, 3vw, 36px);
  display: flex; align-items: flex-end; gap: 4px; height: 26px;
  opacity: 0; transition: opacity 0.4s;
}
.sound__card.is-playing .sound__eq { opacity: 1; }
.sound__eq i { width: 4px; height: 45%; background: var(--gold); border-radius: 2px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.sound__eq i:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.sound__eq i:nth-child(3) { height: 100%; background: var(--cherry); animation-delay: 0.3s; }
.sound__eq i:nth-child(4) { height: 60%; animation-delay: 0.45s; }
.sound__eq i:nth-child(5) { height: 85%; animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* ── contacto ───────────────────────────────────────────── */
.contact {
  background: var(--pine-950);
  overflow: hidden;
}
.contact__wrap { text-align: center; }
.contact__wrap .eyebrow { justify-content: center; }
.contact__wrap .eyebrow::before { display: none; }
.contact__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.04;
}
.contact__title em { font-style: italic; color: var(--amber-soft); }
.contact__sub { max-width: 54ch; margin: 22px auto 0; color: var(--ink-dim); font-size: 1.05rem; }
.contact__actions { margin-top: 36px; }

.contact__grid {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 18px;
  text-align: left;
}
.contact__card {
  background: var(--cream-card); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.contact__card:hover { border-color: rgba(176, 71, 46, 0.45); transform: translateY(-4px); }
.contact__card h4 {
  font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--green-ink); font-weight: 500;
}
.contact__card p { color: var(--ink-dim); font-size: 0.98rem; }
.contact__socials { display: grid; gap: 12px; margin-top: 10px; }
.contact__socials .social-link {
  display: flex; align-items: center; gap: 13px; padding: 15px;
  border: 1px solid #d6dacf; border-radius: 14px;
  background: #f0f2e9; color: #214432; text-decoration: none;
  box-shadow: 0 3px 9px rgba(30, 48, 34, 0.04);
}
.contact__socials .social-link--instagram { background: #f8eee5; border-color: #e5d1c0; color: #7d3928; }
.social-link__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: #214432; color: #fff9ed; }
.social-link--instagram .social-link__icon { background: linear-gradient(135deg, #934458, #b25935 65%, #bd772f); }
.social-link__icon svg { width: 23px; height: 23px; }
.social-link__text { min-width: 0; }
.social-link__text strong { display: block; font-size: 0.96rem; font-weight: 600; letter-spacing: 0.01em; }
.social-link__text small { display: block; margin-top: 3px; font-size: 0.72rem; line-height: 1.4; }
.social-link__arrow { width: 18px; height: 18px; flex: 0 0 18px; margin-left: auto; }
.contact__socials .social-link:hover { border-color: currentColor; box-shadow: 0 5px 16px rgba(30, 48, 34, 0.12); }
.contact__socials .social-link:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.contact__card--form form { display: flex; flex-direction: column; gap: 12px; }
.contact__card--form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.contact__card--form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__card--form input, .contact__card--form select {
  background: #fdfaf0;
  border: 1px solid rgba(44, 35, 23, 0.2); border-radius: 12px;
  padding: 12px 14px; color: var(--ink);
  font: inherit; font-size: 0.95rem;
  outline: none; transition: border-color 0.3s;
  color-scheme: light;
}
.contact__card--form input:focus, .contact__card--form select:focus { border-color: var(--green-ink); }
.contact__card--form .btn { justify-content: center; margin-top: 6px; }

/* ── footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 44px; background: var(--pine-950); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__badge {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--cream);
}
.footer__brand strong { font-family: var(--font-display); font-weight: 400; }
.footer__brand span { color: var(--cream-faint); font-size: 0.85rem; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 0.85rem; color: var(--cream-dim); transition: color 0.3s; }
.footer__links a:hover { color: var(--amber-soft); }
.footer__note { color: var(--cream-faint); font-size: 0.8rem; }

/* ── whatsapp flotante ──────────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1faa53; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -8px rgba(31, 170, 83, 0.55);
  transition: transform 0.4s var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-4px) scale(1.06); }

/* ── secciones claras (lienzo crema) ────────────────────── */
.sec-light { background: var(--cream-bg); color: var(--ink); }
.sec-light .eyebrow { color: var(--green-ink); }
.sec-light .eyebrow::before { background: var(--green-ink); }
.sec-light .section-title { color: var(--ink); }
.sec-light .section-title em { color: var(--caramel); }
.sec-light .section-sub { color: var(--ink-dim); }
.sec-light .btn--outline { color: var(--ink); border-color: rgba(44, 35, 23, 0.3); }
.sec-light .btn--outline:hover { border-color: var(--cherry); color: var(--cherry); }
.sec-light .btn--ghost { color: var(--ink); border-color: rgba(44, 35, 23, 0.28); }
.sec-light .link-arrow { color: var(--cherry); }
.sec-light .link-arrow:hover { border-color: var(--cherry); }
.sec-light .chips li { border-color: rgba(44, 35, 23, 0.22); color: var(--ink-dim); }
.sec-light .chips li:hover { border-color: var(--green-ink); color: var(--green-ink); }
.sec-light .about__copy p { color: var(--ink-dim); }
.sec-light .cafe__hint { color: var(--ink-faint); }
.sec-light .section-title em.em-green,
.sec-light .contact__title em.em-green { color: var(--green-ink); }
/* botones sobre tarjetas cereza */
.tour .btn--outline { color: #fff7ec; border-color: rgba(255, 247, 236, 0.5); }
.tour .btn--outline:hover { background: #fff7ec; color: var(--cherry-dark); border-color: #fff7ec; }

/* ── estados iniciales (solo con JS) ────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(34px); }
.js [data-hero-fade] { opacity: 0; transform: translateY(26px); }
.js [data-reveal-media] { clip-path: inset(8% 6% 8% 6% round 22px); opacity: 0.001; }
.js .about__statement .word { opacity: 0.12; }
html:not(.js) .cursor, html:not(.js) .cursor-ring { display: none; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__card--form { grid-column: 1 / -1; }
  .stack__card, .tour { grid-template-columns: 1fr; }
  .stack__media, .tour__media { min-height: 300px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .cafe__wrap { grid-template-columns: 1fr; }
  .cafe__card { max-width: 400px; margin-inline: auto; margin-top: clamp(-120px, -14vw, -60px); }
}
@media (max-width: 899px) {
  .tours__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tours__viewport::-webkit-scrollbar { display: none; }
  .tour { scroll-snap-align: center; }
  .tours__track { padding-inline: 6vw; }
  .tours__progress { display: none; }
}
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
  .sound__card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sound__meta > p { margin-inline: auto; }
  .sound__controls { width: 100%; }
  .sound__eq { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; order: -1; }
  .hero__foot { flex-wrap: wrap; gap: 12px; }
  .hero__scrollcue { display: none; }
  .hero__line--accent { margin-left: 6vw; }
  .tour__facts { gap: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .lightbox__nav { display: none; }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--tall, .gallery__item--wide { grid-row: span 1; grid-column: span 1; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__card--form .row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__meta + .hero__meta { display: none; }
}

/* ── reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero-fade] { opacity: 1; transform: none; }
  .js [data-reveal-media] { clip-path: none; opacity: 1; }
  .js .about__statement .word { opacity: 1; }
  .hero__bg img { animation: none; }
  .marquee__track { animation: none; }
  .grain { display: none; }
}
