/* --- VARIABLES & RESET --- */
:root {
  --c-emerald: #012e29;
  --c-teal: #0f4c47;
  --c-ivory: #fdfbf7;
  --c-sand: #e8e0d5;
  --c-gold: #c5a059;
  --c-gold-light: #e6c88a;
  --c-dark: #050808;
  --c-white: #ffffff;
  --c-emerald-85: rgba(1, 46, 41, 0.85);
  --c-emerald-95: rgba(1, 46, 41, 0.95);
  --c-emerald-dark: #001a17;

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  --w-reg: 400;
  --w-med: 500;
  --w-bold: 600;
  --w-heavy: 700;

  --container-width: 1200px;
  --spacing-section: clamp(80px, 12vh, 160px);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--w-reg);
  color: var(--c-emerald);
  background-color: var(--c-ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* Cursor personalizado */
.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.2s, opacity 0.3s;
  opacity: 0.8;
}
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.8);
  opacity: 0.6;
}

/* Utilities */
.container { width: 88%; max-width: var(--container-width); margin: 0 auto; }
.text-center { text-align: center; }
.text-light { color: var(--c-ivory); }
.bg-ivory { background-color: var(--c-ivory); }
.bg-emerald { background-color: var(--c-emerald); }
.bg-dark { background-color: var(--c-dark); }
.section-padding { padding: var(--spacing-section) 0; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Tipografía */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: var(--w-bold);
}

.heading-serif {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.heading-serif.display-size {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}
.heading-serif.small { font-size: 2.5rem; }

.text-accent {
  color: var(--c-gold);
  font-style: italic;
  font-weight: var(--w-med);
}

.overline {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: var(--w-bold);
  margin-bottom: 1.5rem;
  color: var(--c-gold);
}

.body-text {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: var(--w-med);
  margin-bottom: 2rem;
  max-width: 55ch;
  color: var(--c-emerald-85);
}

.gold-gradient {
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

/* Logo */
.logo-img, .loader-logo-img, .footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.loader-logo-img {
  height: 80px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: var(--c-emerald);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--ease-lux), visibility 0.8s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.5s var(--ease-lux);
}
.navbar.scrolled {
  background: var(--c-emerald-95);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--c-gold);
}
.nav-cta {
  border: 1px solid var(--c-gold);
  padding: 0.6rem 1.8rem;
  border-radius: 2px;
  transition: all 0.4s var(--ease-lux);
}
.nav-cta:hover {
  background: var(--c-gold);
  color: var(--c-dark);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 102;
}
.line {
  width: 30px;
  height: 2px;
  background-color: var(--c-white);
  transition: 0.3s;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--c-emerald);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.8s var(--ease-lux);
}
.mobile-nav-overlay.active {
  transform: translateX(0);
}
.mobile-links {
  list-style: none;
  text-align: center;
}
.m-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--c-white);
  text-decoration: none;
  margin: 1rem 0;
  transition: color 0.3s;
}
.m-link:hover {
  color: var(--c-gold-light);
}

/* Hero */
.hero-section {
  min-height: 100dvh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;     /* <- evita “cortes”/tiles */
  background-attachment: fixed;     /* <- desktop */
  transform: translateZ(0);         /* <- ayuda a evitar glitches */
  will-change: transform;
}


.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1,46,41,0.2), rgba(1,46,41,0.4), rgba(1,46,41,0.7));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--c-white);
  padding: 0 20px;
  max-width: 900px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1.2s var(--ease-lux), opacity 1.2s ease;
}
.hero-title.active {
  opacity: 1;
  transform: translateY(0);
}
.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2.5rem;
  opacity: 0;
  transition: opacity 1.2s ease 0.2s;
}
.hero-subtitle.active {
  opacity: 1;
}
.hero-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}
.gold-text { color: var(--c-gold); }
.separator { color: var(--c-gold); opacity: 0.7; }

/* Animaciones genéricas */
.anim-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1.2s var(--ease-lux), opacity 1.2s ease;
}
.anim-wrapper.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Botones de lujo */
.btn-primary,
.btn-gold,
.btn-whatsapp {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-lux);
}
.btn-primary {
  background: var(--c-white);
  color: var(--c-emerald);
}
.btn-gold {
  background: transparent;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.btn-primary:hover,
.btn-gold:hover,
.btn-whatsapp:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-gold:hover {
  background: var(--c-gold);
  color: var(--c-dark);
}
.btn-whatsapp:hover {
  background: #128C7E;
}

/* Luxury hover class */
.luxury-hover {
  cursor: none;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
}

.feature-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(1,46,41,0.15);
  display: flex;
  gap: 1rem;
  font-size: 1.05rem;
}

/* Amenidades */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem;
  transition: all 0.7s var(--ease-lux);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.glass-card:hover {
  background: rgba(245, 240, 230, 0.08);
  border-color: var(--c-gold);
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: inset 0 0 20px rgba(197,160,89,0.15);
}
.card-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(255,255,255,0.08);
  position: absolute;
  top: 10px;
  right: 20px;
}
.glass-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.glass-card p {
  opacity: 0.85;
  font-weight: 300;
}

/* Inversión */
.investment-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--c-emerald-dark);
  color: var(--c-white);
  overflow: hidden;
}
.inv-background {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.inv-intro {
  max-width: 700px;
  margin: 0 auto 5rem;
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}
.inv-stats-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid rgba(197, 160, 89, 0.3);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  padding: 4rem 0;
  margin-bottom: 4rem;
}
.inv-stat-card { text-align: center; padding: 0 1rem; }
.inv-icon { display: block; font-size: 1.5rem; color: var(--c-gold); margin-bottom: 1rem; }
.inv-number {
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(to bottom, var(--c-gold-light), var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.inv-label {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-white);
}
.inv-desc {
  font-size: 0.9rem;
  opacity: 0.6;
  max-width: 250px;
  margin: 0 auto;
}
.inv-divider {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--c-gold), transparent);
  opacity: 0.5;
}

/* Galería */
.gallery-section {
  padding: 6rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gallery-track {
  display: flex;
  gap: 2rem;
  padding: 0 5%;
  width: max-content;
}
.gallery-item {
  flex: 0 0 300px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.8s var(--ease-lux);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(1, 46, 41, 0.8);
  color: white;
  padding: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover .caption {
  opacity: 1;
}

/* ========== SECCIÓN DE REDES SOCIALES ========== */
.social-section {
  background: var(--c-emerald);
  color: var(--c-ivory);
  padding: 4rem 0;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.social-icons a {
  display: flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-lux);
  color: var(--c-gold);
}
.social-icons a:hover {
  background: rgba(197, 160, 89, 0.2);
  transform: translateY(-4px);
  color: var(--c-ivory);
}
.social-icons svg {
  width: 28px;
  height: 28px;
}

/* ========== CONTACTO ACTUALIZADO ========== */
.cta-section {
  padding: 8rem 0;
  background: var(--c-ivory);
  position: relative;
}
.contact-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(1, 46, 41, 0.08);
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease-lux);
}
.contact-card:hover {
  transform: translateY(-6px);
}
.contact-card h2 {
  font-weight: var(--w-bold);
  color: var(--c-emerald);
}
.cta-subtitle {
  color: var(--c-gold);
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  opacity: 0.9;
}
.contact-lines {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
.line {
  width: 40px;
  height: 2px;
  background: var(--c-gold);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.contact-lines:hover .line {
  opacity: 1;
}
.contact-lines .line:nth-child(2) {
  width: 30px;
}
.contact-lines .line:nth-child(3) {
  width: 20px;
}
/* ========== FOOTER PREMIUM (CORREGIDO PARA CENTRAR EN MÓVIL) ========== */
.premium-footer {
  background: var(--c-dark);
  padding: 5rem 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* ✅ Centrado en todas las columnas */
.footer-col {
  text-align: center;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  color: var(--c-gold);
  font-weight: 600;
}

/* ✅ Logo centrado (clave para móviles) */
.footer-logo {
  height: 50px;
  opacity: 0.9;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  max-width: 250px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  justify-content: center;
}

.footer-links svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  opacity: 0.6;
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.footer-icon {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-social-icons a:hover .footer-icon {
  color: var(--c-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive adicional para asegurar en pantallas pequeñas */
@media (max-width: 600px) {
  .footer-grid {
    gap: 2rem;
  }
  .footer-col h3 {
    font-size: 0.85rem;
  }
  .footer-tagline {
    font-size: 0.95rem;
  }
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  animation: pulseFloat 4s infinite;
}
@keyframes pulseFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 0.8rem;
  opacity: 0.7;
}
.scroll-indicator .line {
  width: 1px;
  height: 30px;
  background: white;
  margin-top: 0.5rem;
  animation: scrollBlink 2s infinite;
}
@keyframes scrollBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
  .custom-cursor,
  .scroll-indicator,
  .pulse,
  .pulseFloat {
    display: none !important;
  }
}

/* Responsive mejorado */
@media (max-width: 900px) {
  .desktop-only { display: none; }
  .menu-toggle { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .inv-stats-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    border: none;
    padding: 2rem 0;
  }
  .inv-divider { display: none; }
  .inv-stat-card { border-bottom: 1px solid rgba(197, 160, 89, 0.2); padding-bottom: 2rem; }
  .inv-stat-card:last-child { border: none; }
  .cta-section { padding: 6rem 0; }
  .contact-card {
    padding: 1.5rem 2rem;
  }

  /* Galería */
  .gallery-track {
    gap: 1.2rem;
    padding: 0 2rem;
  }
  .gallery-item {
    flex: 0 0 280px;
  }

  /* Redes sociales */
  .social-icons {
    gap: 1.5rem;
  }
  .social-icons a {
    width: 50px;
    height: 50px;
  }
  .social-icons svg {
    width: 24px;
    height: 24px;
  }

  /* Footer */
  .footer-grid {
    gap: 2rem;
  }
  .footer-col {
    text-align: center;
  }
  .footer-links,
  .footer-social-icons {
    justify-content: center;
  }
  .footer-links li {
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }
}
/* =========================================================
   HERO FINAL: Full responsive (desktop + mobile)
   ========================================================= */

/* iOS/touch: background-attachment: fixed suele fallar -> scroll */
@supports (-webkit-touch-callout: inherit) {
  .hero-bg { background-attachment: scroll; }
}

/* Mobile / Tablet */
@media (max-width: 900px) {
  .hero-section {
    min-height: 82dvh;
    padding-top: 70px;
  }

  .hero-bg {
    background-attachment: scroll !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;

    /* Recomendado: imagen vertical para móvil (art direction) */
    background-image: url("images/hero-bg-mobile.jpg") !important;
  }

  .scroll-indicator { display: none; }
}

/* Teléfonos chicos */
@media (max-width: 480px) {
  .hero-section { min-height: 78dvh; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .hero-subtitle { letter-spacing: 0.22em; }
  .btn-primary { padding: 1rem 2.2rem; }
}

