/* Global Reset & Base Variables */
:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --accent-color: #ffffff;
  --charcoal: #121212;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-glow: rgba(255, 255, 255, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-geom: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.logo-assembling {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-svg {
  width: 160px;
  height: 160px;
  z-index: 2;
}

.logo-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawStroke 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.logo-path.triangle {
  stroke: #dfb76c; /* Luxury subtle gold tint */
  stroke-width: 2;
}

.logo-path.inner-triangle {
  stroke: #ffffff;
  animation-delay: 0.5s;
}

.logo-path.eye-lid, .logo-path.eye-pupil, .logo-path.eye-brow {
  stroke: #dfb76c;
  animation-delay: 1s;
}

.logo-path.line-left, .logo-path.line-right {
  stroke: #ffffff;
  animation-delay: 1.2s;
}

/* Drawing animations for preloader SVG */
@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* Loading Progress Ring around Logo */
.loading-ring-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.loading-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
}

.ring-progress {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 283; /* 2 * PI * 45 */
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.1s linear;
}

.loader-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loading-label {
  font-family: var(--font-geom);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
}

.loading-percentage {
  font-family: var(--font-geom);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

/* Particle Background Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Header Navigation */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(2px);
}

.logo-container {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 95px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

/* Centered Menu & Capsule Buttons */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 6px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.nav-btn {
  font-family: var(--font-geom);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu Container */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-chevron {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  z-index: 110;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  font-family: var(--font-geom);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.dropdown-content a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding-left: 22px;
}

/* Header Right - Highlight Asesoria */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn.highlight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 0 20px rgba(255, 255, 255, 0.05);
}

.nav-btn.highlight:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.nav-btn.highlight:active {
  transform: translateY(1px);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 120;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Hamburger Active (X Transform) */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #dfb76c;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #dfb76c;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 4% 60px;
  z-index: 2;
  overflow: hidden;
}

/* Background Marquee Ribbon + Glassmorphism + Hover Glow */
.hero-marquee-wrapper {
  position: absolute;
  top: 48%;
  left: 0;
  width: 100vw;
  transform: translateY(-50%);
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

.marquee-glass-ribbon {
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 45px;
  padding-right: 45px;
  flex-shrink: 0;
}

.marquee-text {
  font-family: var(--font-geom);
  font-size: clamp(2.2rem, 5.5vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.marquee-separator {
  font-family: var(--font-geom);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  color: rgba(223, 183, 108, 0.35);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Hover Glow & High Visibility Effects */
.hero-marquee-wrapper:hover .marquee-glass-ribbon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(223, 183, 108, 0.45);
  box-shadow: 0 0 45px rgba(223, 183, 108, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-marquee-wrapper:hover .marquee-text {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9),
               0 0 40px rgba(223, 183, 108, 0.75),
               0 0 80px rgba(223, 183, 108, 0.4);
}

.hero-marquee-wrapper:hover .marquee-separator {
  color: #dfb76c;
  text-shadow: 0 0 25px rgba(223, 183, 108, 0.9);
}

.hero-marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Central 3D Residence */
.residence-3d-wrapper {
  position: relative;
  margin-top: 265px; /* Positioned ~155px below the menu (1 cm lower to prevent collision) */
  margin-bottom: 45px;
  width: 55vw;
  max-width: 780px;
  height: auto;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  perspective: 1200px;
  flex-shrink: 0; /* Guarantee structural flow, preventing height-based squishing */
}

.residence-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}

.residence-card {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  z-index: 2;
}

.residence-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4))
          drop-shadow(0 0 50px rgba(255, 255, 255, 0.1));
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.residence-card:hover .residence-img {
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.75))
          drop-shadow(0 0 70px rgba(255, 255, 255, 0.35))
          drop-shadow(0 0 100px rgba(255, 255, 255, 0.15));
}

/* Hero Bottom Subtitle & Indicator */
.hero-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  z-index: 3;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-shrink: 0; /* Keep the subtext and indicator strictly below the residence */
}

.hero-subtitle {
  font-family: var(--font-geom);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

/* Scroll indicator animation */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 16px;
    opacity: 0;
  }
  100% {
    top: 6px;
    opacity: 1;
  }
}

.scroll-text {
  font-family: var(--font-geom);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Scattered Collage Gallery Section */
.collage-section {
  position: relative;
  background-color: #000000;
  padding: 140px 4%;
  z-index: 3;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  font-family: var(--font-geom);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-geom);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Scattered Container */
.collage-container {
  position: relative;
  width: 100%;
  height: 900px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Individual collage items */
.collage-item {
  position: absolute;
  top: var(--top);
  left: --left;
  width: var(--width);
  transform: rotate(var(--initial-rot));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              z-index 0s linear;
}

.collage-item:nth-child(1) { left: 5%; }
.collage-item:nth-child(2) { left: 38%; }
.collage-item:nth-child(3) { left: 70%; }
.collage-item:nth-child(4) { left: 4%; }
.collage-item:nth-child(5) { left: 34%; }
.collage-item:nth-child(6) { left: 69%; }
.collage-item:nth-child(7) { left: 7%; }
.collage-item:nth-child(8) { left: 37%; }
.collage-item:nth-child(9) { left: 68%; }

/* Paper cutout aesthetic */
.paper-frame {
  position: relative;
  background-color: #e2e2e2; /* Fine off-white simulated paper card edge */
  padding: 3px; /* Simulates standard border */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  cursor: pointer;
  
  /* Applying torn-paper rough cutout borders with clip paths */
  clip-path: polygon(
    0% 2%, 8% 0%, 18% 3%, 29% 0%, 42% 2%, 58% 0%, 72% 3%, 85% 0%, 93% 2%, 100% 0%,
    98% 12%, 100% 24%, 97% 38%, 100% 52%, 98% 68%, 100% 82%, 97% 93%, 100% 100%,
    88% 97%, 74% 100%, 61% 97%, 48% 100%, 33% 98%, 20% 100%, 9% 97%, 0% 100%,
    2% 88%, 0% 73%, 3% 59%, 0% 44%, 2% 29%, 0% 15%
  );
}

/* Unique rough clip path polygon mappings for variance */
.collage-item:nth-child(2n) .paper-frame {
  clip-path: polygon(
    0% 0%, 12% 2%, 24% 0%, 38% 3%, 52% 0%, 69% 2%, 82% 0%, 94% 2%, 100% 1%,
    97% 15%, 100% 30%, 98% 46%, 100% 60%, 97% 76%, 100% 90%, 98% 100%,
    85% 98%, 70% 100%, 55% 97%, 40% 100%, 25% 98%, 11% 100%, 0% 98%,
    2% 85%, 0% 68%, 3% 52%, 0% 35%, 2% 18%
  );
}

.collage-item:nth-child(3n) .paper-frame {
  clip-path: polygon(
    0% 3%, 15% 0%, 30% 2%, 45% 0%, 60% 3%, 75% 0%, 90% 2%, 100% 0%,
    98% 18%, 100% 35%, 97% 50%, 100% 68%, 98% 85%, 100% 98%,
    83% 100%, 68% 97%, 52% 100%, 37% 98%, 22% 100%, 0% 97%,
    3% 82%, 0% 65%, 2% 48%, 0% 32%, 3% 15%
  );
}

.collage-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease-out;
  aspect-ratio: 16/10;
  filter: contrast(1.05) brightness(0.95) grayscale(0.1);
}

/* High-frequency Paper grain texture overlay */
.paper-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 2;
}

/* Hover magnification and straightening */
.collage-item:hover {
  transform: rotate(0deg) scale(1.15);
  z-index: 99 !important;
}

.collage-item:hover .collage-img {
  filter: contrast(1.1) brightness(1.05) grayscale(0);
}

/* Floating Typography Stamps */
.collage-stamp {
  position: absolute;
  font-family: var(--font-geom);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 4px;
  pointer-events: none;
  transform: rotate(-10deg);
  z-index: 2;
  transition: var(--transition-smooth);
}

.collage-container:hover .collage-stamp {
  color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Full Width Video Section */
.video-showcase-section {
  position: relative;
  width: 100vw;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  padding: 100px 4%;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 20% opacity dark overlay */
  z-index: 2;
}

/* Video Content Grid */
.video-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* Hero Text Styling */
.video-text-container {
  display: flex;
  flex-direction: column;
}

.video-hero-title {
  font-family: var(--font-geom);
  font-size: clamp(2.5rem, 5.5vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.video-hero-title .divider {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  margin: 0 10px;
}

.video-hero-title .italic-speed {
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  display: inline-block;
  transform: skewX(-4deg);
}

/* Glassmorphism Widget */
.video-glass-widget {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 40px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.video-glass-widget:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              0 0 30px rgba(255, 255, 255, 0.05);
}

.widget-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-title {
  font-family: var(--font-geom);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.widget-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.btn-cta {
  font-family: var(--font-geom);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000000;
  background-color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.35);
}

.btn-cta:active {
  transform: translateY(1px);
}

/* Footer elements */
.footer-bar {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 4%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  position: relative;
}

.footer-center {
  text-align: center;
}

.copyright {
  font-family: var(--font-geom);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Floating Controls (Social and WhatsApp) */
.floating-social-panel {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.social-icon, .whatsapp-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.social-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) rotate(8deg);
}

.whatsapp-btn {
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 1);
  border-color: rgba(37, 211, 102, 1);
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 115;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 110px 24px 40px;
    gap: 16px;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .nav-menu.active {
    display: flex !important;
    animation: mobileMenuSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu .nav-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    font-size: 0.95rem;
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
  }

  .nav-menu .dropdown {
    width: 100%;
    max-width: 320px;
  }

  .nav-menu .dropdown-trigger {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
  }

  .nav-menu .dropdown-content {
    position: static;
    transform: none;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px;
    box-shadow: none;
  }

  .nav-menu .dropdown.mobile-open .dropdown-content {
    opacity: 1;
    visibility: visible;
    display: flex;
    animation: mobileMenuSlideDown 0.25s ease forwards;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .video-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    height: 70px;
  }

  .nav-logo {
    height: 50px;
  }

  .hero-bg-text {
    font-size: clamp(1.8rem, 8vw, 3.5rem); /* Proportional scaling on mobile */
    line-height: 1.1;
  }

  .residence-3d-wrapper {
    width: 80vw;
    margin-top: 140px; /* Adjusted for mobile view to prevent large gap */
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 20px;
  }

  /* Reorder collage into simpler vertical layout on mobile */
  .collage-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 0 10px;
  }

  .collage-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 90% !important;
    max-width: 400px;
    transform: rotate(var(--initial-rot)) !important;
  }

  .collage-item:hover {
    transform: rotate(0deg) scale(1.08) !important;
  }

  .collage-stamp {
    display: none; /* Hide stamps on mobile to avoid layout crowding */
  }

  .video-hero-title {
    font-size: 2.2rem;
  }

  .video-glass-widget {
    padding: 24px;
  }

  .floating-social-panel {
    bottom: 20px;
    right: 20px;
  }

  .social-icon, .whatsapp-btn {
    width: 45px;
    height: 45px;
  }

  /* Mobile Catalog overrides */
  .properties-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .catalog-title {
    font-size: 2.2rem !important;
  }
  .property-card {
    border-radius: 16px;
  }
  .property-info {
    padding: 20px;
  }
  .property-actions {
    grid-template-columns: 1fr; /* Stack actions on mobile */
  }
  .property-btn.primary {
    grid-column: span 1 !important;
  }
  .full-width-action {
    grid-column: span 1 !important;
  }
}

/* ==========================================
   5. CATALOG PAGES STYLING (TERRENOS & DEPTOS)
   ========================================== */
.catalog-body {
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  padding-top: 110px;
}
.catalog-main {
  position: relative;
  z-index: 2;
}
.catalog-header-section {
  padding: 60px 4% 30px;
  text-align: center;
  position: relative;
}
.catalog-header-content {
  max-width: 800px;
  margin: 0 auto;
}
.catalog-tag {
  font-family: var(--font-geom);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #dfb76c;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}
.catalog-title {
  font-family: var(--font-geom);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #a6a6a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.catalog-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
}
.catalog-listing-section {
  padding: 20px 4% 100px;
  position: relative;
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.property-card {
  background: rgba(12, 12, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.property-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.03), 0 0 35px rgba(255, 255, 255, 0.02);
}
.property-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #080808;
}
.property-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.property-card:hover .property-main-img {
  transform: scale(1.04);
}
.property-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-geom);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
}
.property-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.property-meta-header {
  margin-bottom: 20px;
}
.property-type {
  font-family: var(--font-geom);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #dfb76c;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}
.property-title {
  font-family: var(--font-geom);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}
.property-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-weight: 300;
}
.property-specs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-bottom: 30px;
  flex-grow: 1;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label {
  font-family: var(--font-geom);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
.spec-val {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.property-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.property-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-geom);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  padding: 14px 20px;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-sizing: border-box;
}
.property-btn.primary {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #25d366;
  grid-column: span 2;
}
.property-btn.primary:hover {
  background: #128c7e;
  border-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}
.property-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.property-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.action-icon {
  flex-shrink: 0;
}
.full-width-action {
  grid-column: span 2;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: var(--transition-smooth);
}
.carousel-control:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.carousel-control.prev {
  left: 15px;
}
.carousel-control.next {
  right: 15px;
}
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-indicators .dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.carousel-indicators .dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 3px;
}

/* Distribution Details Accordion */
.distribution-details-container {
  margin-bottom: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}
.distribution-title {
  font-family: var(--font-geom);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #dfb76c;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.distribution-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}
.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 14px 20px;
  font-family: var(--font-geom);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}
.accordion-header:hover, .accordion-header.active {
  background: rgba(255, 255, 255, 0.04);
  color: #dfb76c;
}
.accordion-header::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}
.accordion-header.active::after {
  content: '−';
}
.accordion-body {
  padding: 0 20px 20px;
  display: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.accordion-body ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-body ul li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding-left: 15px;
}
.accordion-body ul li::before {
  content: '•';
  color: #dfb76c;
  position: absolute;
  left: 0;
}

/* ==========================================
   6. SELL OR RENT PROPERTY BANNER SECTION
   ========================================== */
.sell-rent-banner-section {
  position: relative;
  padding: 80px 4%;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
}

.sell-rent-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(223, 183, 108, 0.05);
  transition: var(--transition-smooth);
}

.sell-rent-card:hover {
  border-color: rgba(223, 183, 108, 0.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9),
              0 0 50px rgba(223, 183, 108, 0.12);
}

.sell-rent-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.sell-rent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sell-rent-card:hover .sell-rent-img {
  transform: scale(1.05);
}

.sell-rent-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(12,12,12,0.85) 100%);
}

.sell-rent-content {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.sell-rent-title {
  font-family: var(--font-geom);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.sell-rent-title .highlight-gold {
  color: #dfb76c;
  display: inline-block;
  text-shadow: 0 0 20px rgba(223, 183, 108, 0.3);
}

.sell-rent-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  margin-bottom: 35px;
  max-width: 540px;
}

.sell-rent-wapp-btn {
  font-size: 0.82rem;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

@media (max-width: 900px) {
  .sell-rent-card {
    grid-template-columns: 1fr;
  }
  .sell-rent-media-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(12,12,12,0.9) 100%);
  }
  .sell-rent-content {
    padding: 40px 28px;
  }
}
