/* =========================================================
   DIGITAL ESTATE — Landing page premium
   ========================================================= */

:root {
  --c-white: #ffffff;
  --c-offwhite: #faf8f5;
  --c-black: #0a0a0a;
  --c-gray-900: #141414;
  --c-gray-700: #454545;
  --c-gray-500: #7a7a7a;
  --c-gray-300: #d9d6d1;
  --c-gray-200: #e9e6e1;
  --c-gray-100: #f3f1ed;
  --c-blue: #2648e0;
  --c-blue-light: #eef1ff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 20, 20, 0.10);
  --shadow-lg: 0 24px 70px rgba(20, 20, 20, 0.16);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 84px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  color: var(--c-gray-900);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-white); color: var(--c-black); box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--contact { padding: 18px 30px; min-width: 190px; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--call { background: var(--c-blue); color: #fff; }
.btn--mail { background: var(--c-white); color: var(--c-black); border: 1px solid var(--c-gray-300); }
.btn--contact .icon { width: 20px; height: 20px; }
.btn--contact:hover { box-shadow: var(--shadow-md); }

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-blue); margin-bottom: 18px;
}
.eyebrow--light { color: #b9c4ff; }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}
.section-title--left { text-align: left; margin: 0 0 20px; }
.section-title--light { color: #fff; }
.section-lead {
  max-width: 620px; margin: 0 auto 56px; text-align: center; color: var(--c-gray-500); font-size: 1.05rem;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .3s var(--ease);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.navbar__back {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.85);
  transition: color .4s var(--ease); white-space: nowrap;
}
.navbar__back .icon { width: 16px; height: 16px; }
.navbar__back:hover { color: #fff; }
.navbar.scrolled .navbar__back { color: var(--c-gray-700); }
.navbar.scrolled .navbar__back:hover { color: var(--c-black); }

.navbar__list { display: flex; align-items: center; gap: 26px; }
.navbar__link {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.88);
  position: relative; padding: 4px 0; transition: color .4s var(--ease);
}
.navbar__link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: currentColor; transition: width .35s var(--ease);
}
.navbar__link:hover::after, .navbar__link.active::after { width: 100%; }
.navbar.scrolled .navbar__link { color: var(--c-gray-700); }
.navbar.scrolled .navbar__link.active { color: var(--c-black); }

.navbar__link--cta {
  background: var(--c-blue); color: #fff !important; padding: 10px 20px; border-radius: 100px;
}
.navbar__link--cta::after { display: none; }

.navbar__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px;
}
.navbar__toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all .35s var(--ease); }
.navbar.scrolled .navbar__toggle span { background: var(--c-black); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff;
}
.hero__bg {
  position: absolute; inset: -6% -2%; /* extra bleed for parallax */
  background-image: var(--hero-bg);
  background-size: cover; background-position: center;
  will-change: transform;
}
@media (max-width: 768px) {
  .hero__bg { background-image: var(--hero-bg-mobile, var(--hero-bg)); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.55) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 780px; padding: 0 24px; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; color: rgba(255,255,255,0.92);
  max-width: 560px; margin: 0 auto 40px;
}
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 44px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 20px;
}
.hero__scroll-line {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* =========================================================
   INTRO
   ========================================================= */
.intro { padding: 140px 0; background: var(--c-offwhite); }
.intro__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.intro__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 26px; }
.intro__text { color: var(--c-gray-500); font-size: 1.08rem; }

/* =========================================================
   ROOM SECTIONS
   ========================================================= */
.room { padding: 130px 0; background: var(--c-white); }
.room--alt { background: var(--c-offwhite); }

.room__title-block { text-align: center; margin-bottom: 44px; }
.room__title-block .eyebrow { display: block; }
.room__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.room__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 76px; align-items: center;
  margin-top: 64px;
}
.room__grid--reverse { direction: rtl; }
.room__grid--reverse > * { direction: ltr; }

.room__tagline { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 20px; }
.room__lead { color: var(--c-gray-700); font-size: 1.05rem; margin-bottom: 34px; }

.feature-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--c-gray-200);
  font-size: 0.98rem; color: var(--c-gray-900);
}
.feature-list li:last-child { border-bottom: 1px solid var(--c-gray-200); }
.feature-list li .icon { color: var(--c-blue); }
.feature-list--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.feature-list--grid li { border-top: 1px solid var(--c-gray-200); }

/* --- Comparison slider --- */
.compare { margin-bottom: 0; }
.compare__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--c-gray-200);
  --pos: 50%;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff;
  transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.compare__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare__labels {
  display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-gray-500); padding: 0 4px;
}

/* --- Gallery grid --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gallery-grid img {
  width: 100%; height: 90px; object-fit: cover; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gallery-grid button { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid button:hover img { transform: scale(1.07); }

/* =========================================================
   GARAGE — banda compacta destacando un plus (ej. cochera)
   ========================================================= */
.garage { padding: 70px 0; background: var(--c-black); color: #fff; }
.garage__inner { display: flex; align-items: center; gap: 40px; }
.garage__icon {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--c-blue-light);
}
.garage__icon .icon { width: 34px; height: 34px; }
.garage__content h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 4px 0 10px; color: #fff; }
.garage__content p { color: rgba(255,255,255,0.65); font-size: 0.98rem; max-width: 620px; margin-bottom: 16px; }
.garage__list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.garage__list li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.garage__list li .icon { width: 16px; height: 16px; color: var(--c-blue-light); }

/* =========================================================
   TOUR VIRTUAL
   ========================================================= */
.tour { padding: 130px 0; background: linear-gradient(180deg, #101014 0%, #17181d 100%); color: #fff; text-align: center; }
.tour__frame {
  position: relative; width: 100%; max-width: 960px; margin: 50px auto 0;
  aspect-ratio: 853 / 480; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.tour__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   FACTS / INFO GENERAL
   ========================================================= */
.facts { padding: 130px 0; background: var(--c-white); }
.facts__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.facts__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.facts__lead { color: var(--c-gray-500); font-size: 1rem; margin: -8px 0 26px; max-width: 480px; }

.facts__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
.fact-card {
  display: flex; align-items: center; gap: 12px; padding: 20px;
  background: var(--c-offwhite); border-radius: var(--radius-md);
  font-size: 0.92rem; font-weight: 500;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.fact-card .icon { color: var(--c-blue); }
.fact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: var(--c-blue-light); }

/* =========================================================
   LOCATION
   ========================================================= */
.location { padding: 130px 0; background: var(--c-offwhite); }
.location .eyebrow, .location .section-title { text-align: center; display: block; }
.location__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.location__map iframe { width: 100%; height: 420px; border: 0; display: block; }
.location__note { padding: 14px 20px; font-size: 0.8rem; color: var(--c-gray-500); background: #fff; }

.location__cards { display: flex; flex-direction: column; gap: 16px; }
.loc-card {
  display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.loc-card .icon { color: var(--c-blue); margin-top: 2px; }
.loc-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.loc-card p { font-size: 0.9rem; color: var(--c-gray-500); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 150px 0; background: var(--c-black); color: #fff; text-align: center;
}
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__text { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 44px; }
.contact__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 46px; }
.contact__data {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 0.85rem; color: rgba(255,255,255,0.45); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 30px 0; background: var(--c-black); border-top: 1px solid rgba(255,255,255,0.08); }
.footer__inner { display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(255,255,255,0.4); }

/* =========================================================
   GATE — página inicial con el logo
   ========================================================= */
.gate {
  min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--c-white); position: relative; padding: 40px 24px;
}
.gate__logo {
  max-width: 280px; width: 60%; height: auto;
  opacity: 0; animation: gateFadeIn 1.4s var(--ease) forwards;
}
@keyframes gateFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.gate__link {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--c-gray-300);
  opacity: 0.55; transition: opacity .4s var(--ease), color .4s var(--ease);
}
.gate__link:hover, .gate__link:focus-visible { opacity: 1; color: var(--c-gray-500); }

/* =========================================================
   CHOOSER — selección de departamento
   ========================================================= */
.chooser {
  min-height: 100vh; width: 100%; background: var(--c-offwhite);
  display: flex; align-items: center; padding: 80px 24px;
}
.chooser__inner { max-width: 1080px; margin: 0 auto; width: 100%; text-align: center; }
.chooser__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.chooser__subtitle { color: var(--c-gray-500); font-size: 1.05rem; max-width: 520px; margin: 0 auto 56px; }

.chooser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chooser__card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.chooser__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.chooser__card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.chooser__card:hover img { transform: scale(1.05); }
.chooser__card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}
.chooser__card-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 32px; text-align: left; color: #fff;
}
.chooser__card-eyebrow {
  display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 8px;
}
.chooser__card-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.chooser__card-text { font-size: 0.92rem; color: rgba(255,255,255,0.85); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 88vw; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; color: #fff; font-size: 1.6rem; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background-color .3s var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.12); }
.lightbox__close { top: 24px; right: 24px; font-size: 2rem; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .room__grid, .facts__grid, .location__grid { grid-template-columns: 1fr; gap: 44px; }
  .room__grid--reverse { direction: ltr; }
  .facts__media img { aspect-ratio: 16/9; }
  .location__map iframe { height: 320px; }
}

@media (max-width: 1080px) {
  .navbar__toggle { display: flex; }
  .navbar__nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; transform: translateX(100%); transition: transform .45s var(--ease);
    padding: 20px 0; overflow-y: auto;
  }
  .navbar__nav.open { transform: translateX(0); }
  .navbar__list { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 32px; width: 100%; }
  .navbar__list li { width: 100%; }
  .navbar__link { display: block; padding: 16px 0; color: var(--c-gray-900); font-size: 1.05rem; width: 100%; border-bottom: 1px solid var(--c-gray-100); }
  .navbar__link--cta { border-bottom: none; text-align: center; margin-top: 10px; }

  .intro, .room, .tour, .facts, .location, .contact { padding: 90px 0; }
  .feature-list--grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .chooser__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .chooser__card { aspect-ratio: 16/10; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero__title { font-size: 2.3rem; }
  .garage__inner { flex-direction: column; text-align: center; }
  .garage__list { justify-content: center; }
  .btn--contact { width: 100%; }
  .contact__buttons { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery-grid img { height: 72px; }
  .fact-card { font-size: 0.85rem; padding: 16px; }
  .facts__cards { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { width: 42px; height: 42px; font-size: 1.2rem; }
}
