/* ============================================================
   JUCA DÚPLEX — Styles
   v=20260629
   Archetype: Glassmorphism Modern · adaptado arquitectura
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #faf5ef;
  --bg-2:        #f2ead8;
  --bg-dark:     #111008;
  --bg-dark-2:   #1a1710;
  --ink:         #1a1510;
  --ink-soft:    #3d3530;
  --ink-mute:    #7a6f65;
  --cream:       #f4ead5;
  --cream-2:     #e0d5be;
  --accent:      #b87340;
  --accent-light:#d4956a;
  --gold:        #c9a561;
  --sand:        #e8ddd0;
  --line:        rgba(26,21,16,0.1);
  --line-light:  rgba(244,234,213,0.12);
  --glass:       rgba(255,255,255,0.6);
  --glass-dark:  rgba(255,255,255,0.07);
  --wa-green:    #25d366;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.64, 0, 0.78, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  --radius: 3px;
  --radius-lg: 8px;

  --section-pad: clamp(5rem, 9vw, 9rem);
  --container:   1200px;
  --gutter:      clamp(1.25rem, 5vw, 4rem);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { background: none; border: none; cursor: pointer; font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── CURSOR ─────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cursor { opacity: 0; transition: opacity .3s var(--ease-out); }
  .cursor.is-ready { opacity: 1; }
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 9999;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    transition: transform .08s linear;
  }
  .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9998;
    width: 34px; height: 34px;
    border: 1.5px solid rgba(184,115,64,0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    transition: transform .18s var(--ease-out), opacity .3s;
  }
}
@media (hover: none) { .cursor { display: none; } }

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-eyebrow--light { color: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,115,64,0.3);
}
.btn-primary:hover { background: #a66635; box-shadow: 0 6px 24px rgba(184,115,64,0.4); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244,234,213,0.35);
}
.btn-ghost:hover { background: rgba(244,234,213,0.08); border-color: rgba(244,234,213,0.6); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.25);
}
.btn-wa:hover { background: #1ebe5e; box-shadow: 0 6px 20px rgba(37,211,102,0.35); }

.btn-wa-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .6rem 1.2rem;
  font-size: .8rem;
  font-weight: 500;
  background: var(--wa-green);
  color: #fff;
  border-radius: var(--radius);
  transition: background .2s, transform .2s var(--ease-out);
}
.btn-wa-sm:hover { background: #1ebe5e; transform: translateY(-1px); }

.btn-wa-lg {
  background: var(--wa-green);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  gap: .75rem;
  box-shadow: 0 6px 28px rgba(37,211,102,0.35);
}
.btn-wa-lg:hover { background: #1ebe5e; box-shadow: 0 8px 36px rgba(37,211,102,0.45); }

.btn-email {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244,234,213,0.3);
  padding: 1rem 2rem;
  font-size: 1rem;
  gap: .6rem;
}
.btn-email:hover { background: rgba(244,234,213,0.08); border-color: rgba(244,234,213,0.55); }

/* ── REVEALS ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety: never hide a split+reveal element (gotcha A.4.5) */
.reveal[data-split] { opacity: 1; transform: none; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(250,245,239,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  transition: color .2s;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav.is-hero .nav-logo-main { color: var(--cream); }
.nav.is-hero .nav-logo-sub { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}
.nav-link {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }
.nav.is-hero .nav-link { color: rgba(244,234,213,0.75); }
.nav.is-hero .nav-link:hover { color: var(--cream); }

.nav-cta { flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav.is-hero .nav-hamburger span { background: var(--cream); }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(250,245,239,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2rem;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-mobile.is-open {
  display: block;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile li { border-bottom: 1px solid var(--line); }
.nav-mobile-link {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--ink); }
.nav-mobile-wa {
  color: var(--wa-green) !important;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
  /* Fondo oscuro cálido — visible incluso sin hero.jpg */
  background: #0e0b07;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(17,16,8,0.72) 0%,
    rgba(17,16,8,0.55) 50%,
    rgba(17,16,8,0.68) 100%
  );
}

/* Mesh gradient overlay (warm tone animation) */
.hero-mesh {
  position: absolute;
  inset: -20% -10%;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 15% 85%, rgba(184,115,64,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 85% 15%, rgba(201,165,97,0.38) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(140,90,40,0.25) 0%, transparent 65%);
  filter: blur(55px);
  animation: meshDrift 28s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33%       { transform: scale(1.08) rotate(3deg); }
  66%       { transform: scale(1.04) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 8rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #d4a96a;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .8s .2s var(--ease-out) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: #f8f2e6;
  margin-bottom: 1.5rem;
  max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn .9s .35s var(--ease-out) forwards;
}
.hero-title em {
  font-style: italic;
  color: #d4a96a;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(244,234,213,0.88);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .8s .5s var(--ease-out) forwards;
}
.br-desktop { display: inline; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .8s .65s var(--ease-out) forwards;
}

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions {
    opacity: 1; transform: none; animation: none;
  }
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(10,8,4,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201,165,97,0.18);
  padding: 1.25rem var(--gutter);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .25rem 2.5rem;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,234,213,0.55);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(244,234,213,0.1);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 5.5rem;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(244,234,213,0.4));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50%       { transform: scaleY(1); transform-origin: top; }
  51%       { transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; opacity: 0.4; }
}

@media (max-width: 640px) {
  .hero-stat { padding: .25rem 1.25rem; }
  .hero-stat-num { font-size: 1.25rem; }
  .hero-stat-divider { height: 30px; }
  .hero-scroll { display: none; }
  .br-desktop { display: none; }
}

/* ── ABOUT / EL PROYECTO ──────────────────────────────────── */
.about {
  background: var(--bg);
  padding: var(--section-pad) var(--gutter);
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-body {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.about-body strong { color: var(--ink); font-weight: 600; }
.about-body + .about-body { margin-top: .25rem; }
.about-text .btn { margin-top: 1.5rem; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.about-stat {
  background: var(--bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.about-stat-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── RENDERS / GALLERY ────────────────────────────────────── */
.renders {
  background: var(--bg-2);
  padding: var(--section-pad) var(--gutter);
}
.renders-header {
  max-width: var(--container);
  margin: 0 auto 3rem;
}
.renders-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
.render-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.render-lg {
  grid-row: span 2;
}
.render-wide {
  grid-column: span 2;
}
.render-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .65s var(--ease-out), filter .65s var(--ease-out);
  background: var(--sand);
}
@media (hover: hover) {
  .render-item:hover .render-img {
    transform: scale(1.04);
    filter: saturate(1.15) brightness(1.05);
  }
}
.render-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem .9rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,234,213,0.8);
  background: linear-gradient(to top, rgba(17,16,8,0.55) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.render-item:hover .render-caption,
.render-item:focus-within .render-caption {
  transform: none;
  opacity: 1;
}

/* Fallback gradient when image is missing */
.render-img {
  background:
    linear-gradient(135deg, var(--sand) 0%, var(--bg-2) 100%);
}

@media (max-width: 700px) {
  .renders-grid { grid-template-columns: 1fr; }
  .render-lg { grid-row: span 1; }
  .render-wide { grid-column: span 1; }
  .render-caption { opacity: 1; transform: none; }
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem var(--gutter);
}
.features-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
}
.feature-item {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .25s;
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  color: var(--accent);
  opacity: .85;
  transition: opacity .2s, transform .3s var(--ease-out);
}
@media (hover: hover) {
  .feature-item:hover { background: var(--bg-2); }
  .feature-item:hover .feature-icon { opacity: 1; transform: translateY(-3px); }
}
.feature-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .features-list { flex-direction: column; }
  .feature-item { flex-direction: row; border-right: none; border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: none; }
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 9, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  transform: scale(.96);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.is-open .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: transparent;
  color: #f4ead5;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .lightbox { padding: 1rem; }
}
/* Cursor de zoom en imágenes clickeables */
.planta-img-wrap,
.render-item {
  cursor: zoom-in;
}

/* ── PLANTAS ──────────────────────────────────────────────── */
.plantas {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.plantas-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.plantas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
  text-align: left;
}
@media (max-width: 768px) {
  .plantas-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.planta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.planta-img-wrap {
  width: 100%;
  background: #f0ece4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.planta-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.planta-info {
  padding: 1.75rem 2rem;
}
.planta-nivel {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.planta-lista {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.planta-lista li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .875rem;
  color: var(--ink-muted);
  gap: 1rem;
}
.planta-lista li span:first-child { color: var(--ink); }
.planta-lista li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--gold);
  font-weight: 500;
}

/* ── UNITS ────────────────────────────────────────────────── */
.units {
  background: var(--bg-dark);
  padding: var(--section-pad) var(--gutter);
}
.units-inner { max-width: var(--container); margin: 0 auto; }
.units-header { margin-bottom: 4rem; }
.units-sub {
  font-size: .88rem;
  color: rgba(244,234,213,0.55);
  max-width: 52ch;
  margin-top: -.5rem;
}

/* — Ficha técnica única ————————————————————————————————— */
.unit-ficha {
  border: 1px solid rgba(244,234,213,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.unit-ficha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(244,234,213,0.08);
}
.unit-ficha-tipo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: .01em;
}
.unit-badge {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 2px;
  white-space: nowrap;
}
.unit-badge--available {
  background: rgba(37,211,102,0.12);
  color: #4ddb88;
  border: 1px solid rgba(37,211,102,0.22);
}
.unit-badge--reserved {
  background: rgba(201,165,97,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,165,97,0.22);
}

.unit-ficha-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 0;
}
.unit-planta {
  padding: 1.75rem 2rem;
}
.unit-planta--total {
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.03);
}
.unit-planta-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.unit-ficha-specs {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.unit-ficha-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.unit-spec-label {
  font-size: .78rem;
  color: rgba(244,234,213,0.45);
}
.unit-spec-val {
  font-size: .82rem;
  font-weight: 500;
  color: var(--cream-2);
  text-align: right;
  white-space: nowrap;
}
.unit-ficha-divider {
  width: 1px;
  background: rgba(244,234,213,0.07);
  margin: 1.5rem 0;
}
.unit-ficha-cta {
  display: block;
  margin: 0;
  border-radius: 0;
  border-top: 1px solid rgba(244,234,213,0.08);
  padding: 1rem 2rem;
  font-size: .85rem;
  text-align: center;
  background: rgba(37,211,102,0.1);
  color: #4ddb88;
  transition: background .2s;
}
.unit-ficha-cta:hover { background: rgba(37,211,102,0.18); transform: none; }

/* — Slots de disponibilidad ——————————————————————————— */
.units-slots {
  margin-bottom: 2.5rem;
}
.units-slots-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(244,234,213,0.35);
  margin-bottom: 1rem;
}
.units-slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5px;
  background: rgba(244,234,213,0.06);
  border: 1px solid rgba(244,234,213,0.06);
}
.unit-slot {
  background: rgba(255,255,255,0.03);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  transition: background .2s;
}
.unit-slot:hover { background: rgba(255,255,255,0.06); }
.unit-slot-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
}
.unit-slot-orient {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,234,213,0.35);
}

.units-note {
  margin-top: 2rem;
  font-size: .8rem;
  color: rgba(244,234,213,0.38);
  text-align: center;
  line-height: 1.9;
}
.units-note em { font-style: italic; }

@media (max-width: 900px) {
  .unit-ficha-body {
    grid-template-columns: 1fr;
  }
  .unit-ficha-divider { width: 100%; height: 1px; margin: 0; }
  .units-slots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .unit-ficha-header { flex-direction: column; align-items: flex-start; }
  .units-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LOCATION ─────────────────────────────────────────────── */
.location {
  background: var(--bg);
  padding: var(--section-pad) var(--gutter);
}
.location-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.location-body {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.location-address {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--ink-mute);
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
}
.location-address svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.location-map {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--sand);
}

@media (max-width: 800px) {
  .location-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .location-map { order: -1; }
}

/* ── STUDIO ──────────────────────────────────────────────── */
.studio {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem var(--gutter);
  text-align: center;
}
.studio-inner { max-width: 600px; margin: 0 auto; }
.studio-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.studio-logo-wrap {
  margin-bottom: 1.75rem;
}
.studio-logo-img {
  height: 280px;
  width: auto;
  max-width: 600px;
  margin: 0 auto;
  /* el logo es negro sobre blanco — en fondo claro queda perfecto */
  opacity: .85;
  transition: opacity .3s;
}
.studio-logo-img:hover { opacity: 1; }
/* Si el logo no cargó todavía, fallback al nombre en texto */
.studio-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: .2rem;
  display: none; /* se muestra via JS si la imagen falla */
}
.studio-logo-img.is-error ~ .studio-name { display: block; }
.studio-sub {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.studio-desc {
  font-size: .85rem;
  color: var(--ink-mute);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.studio-ig {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.studio-ig:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ── CTA FINAL ────────────────────────────────────────────── */
.cta-final {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}
.cta-mesh {
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(ellipse 65% 55% at 30% 70%, rgba(184,115,64,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(201,165,97,0.12) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: meshDrift 24s ease-in-out infinite reverse;
}
@media (prefers-reduced-motion: reduce) {
  .cta-mesh { animation: none; }
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-sub {
  font-size: .9rem;
  color: rgba(244,234,213,0.5);
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(244,234,213,0.06);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--cream);
  margin-bottom: .35rem;
}
.footer-tagline {
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,234,213,0.4);
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a, .footer-contact a {
  font-size: .82rem;
  color: rgba(244,234,213,0.5);
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid rgba(244,234,213,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy, .footer-disclaimer {
  font-size: .73rem;
  color: rgba(244,234,213,0.3);
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── WHATSAPP FAB ────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  text-decoration: none;
}
@media (hover: hover) {
  .wa-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  }
  .wa-fab:hover .wa-fab-tooltip { opacity: 1; transform: translateX(-4px); }
}
.wa-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  animation: waPulse 2.5s ease infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab-pulse { animation: none; opacity: 0; }
}
.wa-fab-tooltip {
  position: absolute;
  right: calc(100% + .75rem);
  white-space: nowrap;
  background: rgba(17,16,8,0.92);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .2s, transform .2s var(--ease-out);
  pointer-events: none;
}

@media (max-width: 480px) {
  .wa-fab { bottom: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; }
  .wa-fab-tooltip { display: none; }
}

/* ── STAGGER DELAYS for reveal groups ───────────────────── */
.renders-grid .reveal:nth-child(2) { transition-delay: .08s; }
.renders-grid .reveal:nth-child(3) { transition-delay: .16s; }
.renders-grid .reveal:nth-child(4) { transition-delay: .06s; }
.features-list .feature-item:nth-child(2) { transition-delay: .07s; }
.features-list .feature-item:nth-child(3) { transition-delay: .14s; }
.features-list .feature-item:nth-child(4) { transition-delay: .21s; }
.features-list .feature-item:nth-child(5) { transition-delay: .28s; }
.features-list .feature-item:nth-child(6) { transition-delay: .35s; }
.units-grid .unit-card:nth-child(2) { transition-delay: .07s; }
.units-grid .unit-card:nth-child(3) { transition-delay: .14s; }
.units-grid .unit-card:nth-child(4) { transition-delay: .07s; }
.units-grid .unit-card:nth-child(5) { transition-delay: .14s; }
.units-grid .unit-card:nth-child(6) { transition-delay: .21s; }
.about-stats .reveal:nth-child(2) { transition-delay: .08s; }
.about-stats .reveal:nth-child(3) { transition-delay: .16s; }
.about-stats .reveal:nth-child(4) { transition-delay: .24s; }
