@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #fcfcfc;
  --surface-alt: #f8f8f8;
  --text: #3d3d3d;
  --title: #111111;
  --primary: #c5a547;
  /* Dorado institucional más profundo */
  --primary-dark: #a68b3c;
  --accent: #1a3c34;
  --radius: 28px;
  --radius-pill: 100px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 40px 90px rgba(197, 165, 71, 0.08);
  /* Sombra con tinte dorado */
  --space: clamp(4rem, 10vw, 8rem);
  /* Espaciado generoso Aman style */
  --container: min(1200px, 90vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--title);
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 6vw, 7rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: clamp(28px, 4.8vw, 36px);
  /* Responsive max-height (reduced 20%) */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--title);
  padding: 0.5rem;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-outline:hover,
.hero-outline:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4) !important;
}

.btn-reserve-alt:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25) !important;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--title);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--title);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(26, 60, 52, 0.6), rgba(26, 60, 52, 0.2)), url("assets/hero-family.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  width: 100%;
  z-index: 1;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.hero-inner {
  max-width: 800px;
  padding-left: clamp(1rem, 5vw, 4rem);
}

.hero-inner h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  white-space: pre-line;
}

.hero-inner .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.hero-outline:hover {
  background: #fff;
  color: var(--title);
}

.hero-shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.hero-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.hero-shape-divider .shape-fill {
  fill: var(--bg);
}

/* Trust Bar */
.trust-bar {
  background: var(--bg);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item h4 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

/* Typography Headings */
.section-head {
  text-align: center;
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
  max-width: 1000px;
  margin-inline: auto;
  position: relative;
}

.section-head h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  /* Elegancia minimalista */
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
  color: var(--title);
}

.section-head p {
  font-size: 1.25rem;
  color: #666;
  max-width: 750px;
  margin-inline: auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Grid & Cards */
.villa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.villa-card,
.location-card,
.pillars article,
blockquote,
.faq details,
.contact-form,
.masterplan-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  border: 1px solid transparent;
  /* Evita el salto al hacer hover */
}

.villa-card:hover,
.location-card:hover,
.pillars article:hover,
.stat-box:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary) !important;
  /* El borde ahora cambia de color suavemente */
}

.villa-card {
  padding: 1.5rem;
}

.villa-photo {
  border-radius: calc(var(--radius) - 8px);
  height: 260px;
  margin-bottom: 1.5rem;
  background-size: cover;
  background-position: center;
}

.villa-1 {
  background-image: url('assets/amara.webp');
}

.villa-2 {
  background-image: url('assets/emaar.webp');
}

.villa-3 {
  background-image: url('assets/mia.webp');
}

.villa-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.villa-spec {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.villa-spec span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.villa-price {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.villa-card .btn {
  width: 100%;
}

.center {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* Sections Backgrounds */
.experience {
  background: var(--surface);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pillars article {
  padding: 2.5rem 2rem;
}

.pillars .icon {
  width: 56px;
  height: 56px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.pillars h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.pillars p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Full Width Architecture Banner */
.architecture-banner {
  height: 80vh;
  min-height: 600px;
  background-image: linear-gradient(to right, rgba(26, 60, 52, 0.7), rgba(26, 60, 52, 0.2)), url('assets/aerial.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
  border-radius: 40px;
  /* Bordes suaves anti-cuadros */
  margin: 4rem 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.architecture-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 900px;
  line-height: 1.2;
}

/* Finance Section */
.finance-section {
  background: #000 !important;
  /* Negro absoluto */
  color: #fff;
  padding: 5rem 2rem;
  border-radius: 40px;
  /* Highly rounded */
  margin: 4rem 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.finance-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.finance-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
}

.finance-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.finance-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius);
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.stat-box h3 {
  color: var(--primary);
  font-size: 3.5rem;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-box p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.finance-reserve {
  margin-top: 3rem;
  font-size: 1.2rem;
}

.finance-reserve span {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Masterplan */
.masterplan-wrapper {
  background: var(--surface-alt);
  padding: 6rem 0;
}

.masterplan-card {
  padding: 3rem;
  text-align: center;
  background: #fff;
}

.masterplan-card img {
  max-width: 100%;
  border-radius: calc(var(--radius) - 8px);
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mp-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.mp-stat h4 {
  font-size: 2rem;
  color: var(--title);
  margin-bottom: 0.2rem;
}

.mp-stat p {
  color: var(--muted);
}

/* Map Locations */
.locations {
  background: var(--bg);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.location-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.location-card h3 {
  color: var(--title);
  margin-bottom: 1rem;
}

/* Contact */
.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.contact-actions .btn {
  flex: 0 1 auto;
  min-width: 180px;
  /* Asegura un tamaÃ±o mÃ­nimo cÃ³modo */
}

.contact-form {
  padding: 3rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--surface-alt);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Language Switcher */
.lang-switch {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  min-width: 100px;
}

.lang-switch.open .lang-menu {
  display: flex;
}

.lang-menu button {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.lang-menu button:hover {
  background: var(--surface);
  color: var(--primary);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* Footer */
.site-footer {
  background: #000;
  /* Negro absoluto */
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 35px;
  /* Reducido para mayor elegancia */
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 24px 24px;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .experience-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .mp-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .villa-grid,
  .location-grid,
  .trust-grid,
  .mp-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .finance-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .finance-section {
    border-radius: 24px;
    padding: 3rem 1.5rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

/* Thank You Overlay */
.thank-you-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.thank-you-overlay.active {
  opacity: 1;
}

.thank-you-content {
  text-align: center;
  color: #fff;
  max-width: 600px;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.thank-you-overlay.active .thank-you-content {
  transform: translateY(0);
}

.thank-you-logo {
  height: 100px;
  /* Un poco mÃ¡s grande para que luzca la corona */
  width: auto;
  margin-bottom: 2.5rem;
  /* Eliminado el filtro para que se vea el color dorado original de la M */
}

.thank-you-content h2 {
  color: var(--primary);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.thank-you-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.thank-you-content .btn {
  min-width: 200px;
}



/* ===== MERGED CONTENT FROM styles-alt.css ===== */
/* Estilos EspecÃ­ficos para Alternativa Minimalista Aman */

.site-header-alt {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  background-color: #111 !important;
  backdrop-filter: none;
  padding: 1rem 0;
  box-shadow: none !important;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hide header during preloader logic */
body.loading .brand-alt,
body.loading .header-alt-right,
body.loading .header-alt-left {
  opacity: 0;
  pointer-events: none;
}

/* Smooth reveal after hand-off */
.site-header-alt .brand-alt,
.site-header-alt .header-alt-right,
.site-header-alt .header-alt-left {
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero {
  padding-top: 85px;
  /* Ajuste para el header fijo */
  min-height: 90vh;
}

.trust-bar {
  background: #111;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
  margin-top: -40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 6% !important;
  /* MÃ¡s espacio a los lados para que "respire" */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.trust-bar.active:hover {
  transform: translateY(-10px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
}

/* El texto se mantiene blanco/dorado original, ya no cambia a negro */
.trust-bar:hover .trust-item h4 {
  color: var(--primary) !important;
}

.trust-bar:hover .trust-item p {
  color: #ffffff !important;
  /* White for better contrast on dark background */
}

.trust-item h4 {
  color: var(--primary) !important;
  font-size: 2.8rem !important;
  /* Slightly larger for impact */
  font-weight: 700 !important;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.trust-item p {
  color: #ffffff !important;
  /* White for better contrast on dark background */
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  /* 30% less white for a premium greyish tone */
  font-weight: 500;
}

.nav-wrap-alt {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 4%;
  /* Sin max-width para que expanda a los bordes */
  max-width: none;
  margin: 0;
}

/* LEFT SIDE: Menu & Search */
.header-alt-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.menu-alt-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: #fff;
  /* Cambio a BLANCO */
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1001;
  /* Must be above the overlay nav */
  position: relative;
  /* For z-index to work */
  transition: opacity 0.18s ease;
}

.menu-alt-btn * {
  pointer-events: none;
}

.menu-alt-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.premium-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  letter-spacing: -0.1em;
}

.premium-reveal.trigger {
  animation: premiumFadeIn 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 1 !important;
}

@keyframes premiumFadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    letter-spacing: -0.1em;
  }

  100% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.05em;
    /* Un poco más de aire al final */
  }
}

.menu-alt-line {
  width: 24px;
  height: 1.6px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, width 0.3s ease;
}

.menu-alt-btn:hover .menu-alt-line {
  width: 26px;
}

.menu-alt-btn[aria-expanded="true"] .menu-alt-line:nth-child(1) {
  transform: translateY(7.6px) rotate(45deg);
}

.menu-alt-btn[aria-expanded="true"] .menu-alt-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}

.menu-alt-btn[aria-expanded="true"] .menu-alt-line:nth-child(3) {
  transform: translateY(-7.6px) rotate(-45deg);
}

.menu-alt-btn[aria-expanded="true"]:hover .menu-alt-line:nth-child(1) {
  transform: translateY(7.6px) rotate(52deg);
}

.menu-alt-btn[aria-expanded="true"]:hover .menu-alt-line:nth-child(3) {
  transform: translateY(-7.6px) rotate(-52deg);
}


.search-alt-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  /* Cambio a BLANCO */
  padding-top: 2px;
}

.search-alt-btn svg {
  stroke-width: 1px;
}

.brand-alt {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  position: relative;
  height: 51px;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.brand-logo-m {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  height: 38px;
  /* Slightly smaller than M for balance */
  width: auto;
  object-fit: contain;
}

.brand-logo-alt {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-small {
  position: absolute;
  height: 28px;
  width: auto;
  opacity: 0;
  transform: translateY(10px);
  object-fit: contain;
}

/* Modificadores al hacer Scroll */
.site-header-alt.header-scrolled {
  padding: 0.8rem 0;
  background-color: rgba(17, 17, 17, 0.98) !important;
  /* NEGRO translÃºcido */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  border-bottom: transparent;
}

.site-header-alt.header-scrolled .brand-alt {
  height: 35px;
  /* El contenedor se achica */
}

.site-header-alt.header-scrolled .logo-large {
  opacity: 0;
  transform: translateY(-10px);
  /* Se esconde hacia arriba */
  pointer-events: none;
}

.site-header-alt.header-scrolled .logo-small {
  opacity: 1;
  transform: translateY(0);
  /* Queda en el centro */
}

/* Menu abierto: se oculta la barra superior y queda solo el boton animado */
.site-header-alt.menu-active {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.site-header-alt.menu-active .brand-alt,
.site-header-alt.menu-active .header-alt-right {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.site-header-alt.menu-active .nav-wrap-alt {
  justify-content: flex-start;
}

.site-header-alt.menu-active .header-alt-left {
  flex: 0 0 auto;
}



.site-header-alt.menu-active .menu-alt-btn {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 1201;
}

.site-header-alt.menu-closing .menu-alt-btn {
  opacity: 0;
}

.site-header-alt.menu-active .menu-alt-text {
  display: none;
}


/* RIGHT SIDE: Lang & Reserve */
.header-alt-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
}

.location-alt-btn {
  color: #fff;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.location-alt-btn:hover {
  color: var(--primary);
}

.lang-switch .lang-btn {
  font-size: 0.85rem;
  color: #fff !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  font-weight: 400;
  transition: color 0.3s ease;
}

.lang-switch .lang-btn:hover {
  color: var(--primary) !important;
}

.lang-switch .lang-btn svg {
  stroke-width: 1.5px;
}

.site-header-alt .lang-menu {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-header-alt .lang-menu button {
  color: #fff;
}

.site-header-alt .lang-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.btn-reserve-alt {
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  font-size: 0.80rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
  /* Evita que el texto rompa linea */
}

.btn-reserve-alt:hover {
  background-color: var(--primary-dark);
}

/* Adjustments to override existing styles */
.menu-toggle {
  display: none !important;
}

body.alt-menu-open {
  overflow: hidden;
}

/* Overlay Navigation Alt */
.overlay-nav-alt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1190;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay-nav-alt.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay-nav-alt.open .overlay-nav-inner {
  transform: translateY(0);
}

.menu-overlay-logo {
  width: auto;
  height: 60px;
  margin-top: 8rem;
  /* MÃ¡s alejado del borde superior */
  margin-bottom: 0.5rem;
  /* MÃ¡s cerca de 'INICIO' */
  opacity: 0.95;
  object-fit: contain;
}

.hero-inner {
  max-width: 800px;
  padding-left: clamp(1rem, 5vw, 4rem);
  transform: translateY(-20px);
  /* Sutil elevaciÃ³n Aman style */
}

.nav-link-alt {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  /* Un poco mÃ¡s pequeÃ±o para el efecto */
  font-weight: 300;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0.5rem 0;
}

/* Efecto Ãrbol / SimetrÃ­a Progresiva */
.nav-link-alt:nth-of-type(1) {
  letter-spacing: 0.1em;
}

.nav-link-alt:nth-of-type(2) {
  letter-spacing: 0.15em;
}

.nav-link-alt:nth-of-type(3) {
  letter-spacing: 0.22em;
}

.nav-link-alt:nth-of-type(4) {
  letter-spacing: 0.3em;
}

.nav-link-alt:nth-of-type(5) {
  letter-spacing: 0.4em;
}

.nav-link-alt:nth-of-type(6) {
  letter-spacing: 0.55em;
}

.nav-link-alt.highlight {
  color: var(--primary);
  font-weight: 500;
  margin-top: 2rem;
  letter-spacing: 0.7em !important;
  /* El mÃ¡s estirado al final */
}

.nav-link-alt:hover {
  color: var(--primary);
  transform: scale(1.05);
}


/* Responsive Hide for some elements */
@media (max-width: 900px) {

  .menu-alt-text,
  .lang-alt-switch {
    display: none;
  }

  .header-alt-left {
    gap: 1rem;
  }

  .header-alt-right {
    justify-content: flex-end;
  }

  .btn-reserve-alt {
    padding: 0.8rem 1.2rem;
    font-size: 0.75rem;
  }

}


/* En telefono ocultamos solo el CTA de reserva en el header
   para mantener visibles ubicacion + idioma sin desbordes */
@media (max-width: 768px) {
  .btn-reserve-alt {
    display: none !important;
  }

  .header-alt-right {
    gap: 0.75rem;
  }

  .location-alt-btn {
    padding: 0.2rem;
  }
}

/* El badge de Reservas se oculta en pantallas medianas para evitar overflow */
@media (max-width: 1200px) {
  .hero-reservation-badge {
    display: none;
  }
}

/* Modificaciones de Hero p/ diseÃ±o Mockup */
.site-header-alt~main .hero-visual {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%), url("assets/hero-family.webp") !important;
  background-size: cover;
  background-position: center;
  z-index: 0;
  background-attachment: fixed !important;
  /* Efecto Parallax */
  transform: translate3d(0, 0, 0) scale(1.02);
  transform-origin: center center;
  animation: hero-breath 22s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  will-change: transform;
}

/* Y volver a enderezar su contenedor para no daÃ±ar los textos */
.site-header-alt~main .hero-overlay,
.site-header-alt~main .hero-shape-divider {
  position: relative;
  z-index: 2;
}

/* Badge de Reservas en la seccion Modelos */
.models-with-badge {
  position: relative;
  overflow: hidden !important;
}

body {
  overflow-x: hidden;
}

.hero-reservation-badge {
  position: absolute;
  top: 3.5rem;
  right: 3.5%;
  width: fit-content;
  height: fit-content;
  background-color: #1a1a1a;
  color: #fff;
  padding: 1.2rem 2.2rem;
  border-radius: 15px;
  text-align: left;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  opacity: 0;
  transform: translateX(110px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.hero-reservation-badge.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-reservation-badge:hover {
  background-color: #222;
  transform: translateY(-6px);
  border-color: var(--primary);
  color: #fff;
}

.hero-reservation-badge span {
  font-size: 0.85rem;
  color: #ddd;
  border-bottom: 1px solid #555;
  padding-bottom: 3px;
  margin-bottom: 5px;
  font-weight: 500;
}

.hero-reservation-badge strong {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}



/* Estilos de Lujo para la SecciÃ³n About */
/* --- SECTION ADJUSTMENTS (MINIMALIST) --- */

#about {
  padding: 4rem 0 2rem;
  /* Espacio inferior reducido al mÃ­nimo para compactar */
  background: #fff;
  text-align: center;
}

#about h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #111;
  margin-bottom: 2rem;
}

#about p {
  font-size: 1.25rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* --- MODELOS (FONDO NEGRO, TARJETAS BLANCAS) --- */
#models {
  background: #000 !important;
  color: #fff !important;
  padding: 8rem 0;
}

#models .section-head h2,
#models .section-head p {
  color: #fff !important;
}

#models .villa-card {
  background: #fff !important;
  color: #111 !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
  padding: 1.5rem;
  border: 1px solid transparent;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  perspective: 1000px;
  transform-style: preserve-3d;
}

#models .villa-card:hover {
  transform: translateY(-15px) rotateY(10deg) rotateX(2deg);
  border-color: var(--primary) !important;
  box-shadow: -15px 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 165, 71, 0.2) !important;
}

#models .villa-card .villa-photo {
  transition: transform 0.8s ease;
}

#models .villa-card:hover .villa-photo {
  transform: scale(1.05) translateZ(20px);
}

#models .villa-card h3 {
  color: #111 !important;
}

#models .villa-card .villa-spec span {
  color: #666 !important;
}

#models .villa-card .btn-outline {
  background-color: var(--primary) !important;
  border: none !important;
  color: #fff !important;
}

/* --- EXPERIENCIA (FONDO NEGRO) --- */
#experience {
  background: #111 !important;
  color: #fff !important;
  padding: 8rem 0;
}

#experience h2,
#experience p,
#experience .pillars h3 {
  color: #fff !important;
}

#experience .reveal.active h2,
#experience .reveal.active p,
#experience .pillars article.active h3 {
  opacity: 1 !important;
}

#experience .pillars article {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s ease;
}

#experience .pillars article:hover {
  border-color: var(--primary) !important;
  transform: translateY(-10px);
}

.masterplan-card {
  background: var(--primary) !important;
  border-radius: 0 0 clamp(80px, 12vw, 160px) clamp(80px, 12vw, 160px) !important;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  margin: 4rem 0;
}

.masterplan-card-img-bg {
  width: 100% !important;
  height: clamp(500px, 70vw, 900px) !important;
  position: relative;
  background: #000;
  border-radius: 0 0 clamp(60px, 10vw, 120px) clamp(60px, 10vw, 120px);
  overflow: hidden;
}

.masterplan-card-img-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/aerial.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.06);
  transform-origin: center center;
  animation: masterplan-depth 16s ease-in-out infinite alternate;
  /* Faster and more noticeable */
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

@keyframes masterplan-depth {
  from {
    transform: scale(1.05) translate(0, 0);
  }

  to {
    transform: scale(1.25) translate(-20px, -15px);
  }
}

.masterplan-card img {
  display: none !important;
}

.mp-stats {
  padding: 2.5rem 10% !important;
  background: transparent !important;
}

.mp-stat h4 {
  color: #111 !important;
  /* Negro sobre dorado para mÃ¡xima legibilidad */
  text-shadow: none;
}

.mp-stat p {
  color: rgba(0, 0, 0, 0.7) !important;
  /* Negro suavizado */
  font-weight: 600;
  font-size: 0.85rem !important;
  /* Increased for better legibility */
}

/* --- ARQUITECTURA (PORTAL DE INGRESO) --- */
.architecture-banner {
  background: #000 !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* Resetting card layout from base styles for true full-width */
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  height: clamp(500px, 70vh, 800px);
  /* Altura generosa */
  display: flex;
  align-items: center;
  justify-content: center;
}

.architecture-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('assets/ARC-ENTRANCE.webp');
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transform-origin: center center;
  animation: architecture-depth 22s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.arch-overlay-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: background 0.4s ease;
}

.architecture-banner:hover .arch-overlay-btn {
  background: rgba(0, 0, 0, 0.3);
}

.play-trigger {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.8;
  transition: all 0.4s ease;
}

.play-trigger svg {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 55, 0.9);
  padding: 18px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  animation: pulse-gold 2s infinite;
}

.play-trigger span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: #fff;
}

.architecture-banner:hover .play-trigger {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

@keyframes model-modal-spin-in {
  0% {
    opacity: 0;
    transform: translateY(36px) rotateY(90deg) scale(0.985);
  }

  62% {
    opacity: 1;
    transform: translateY(4px) rotateY(14deg) scale(0.995);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateY(0deg) scale(1);
  }
}

@keyframes model-modal-content-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-breath {
  0% {
    transform: translate3d(0, 0.6%, 0) scale(1.02);
  }

  50% {
    transform: translate3d(0, -0.8%, 0) scale(1.045);
  }

  100% {
    transform: translate3d(0, 0.4%, 0) scale(1.03);
  }
}

@keyframes architecture-depth {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1.02);
  }
}

@keyframes masterplan-depth {
  0% {
    transform: translate3d(0, 1.2%, 0) scale(1.06);
  }

  100% {
    transform: translate3d(0, -1.2%, 0) scale(1.03);
  }
}

@keyframes mp-text-blur-in {
  0% {
    opacity: 0;
    filter: blur(24px);
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes mp-stat-blur-in {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Modal de Video EspecÃ­fico */
.video-modal-content {
  background: #000;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9);
}

.video-responsive-container {
  width: 100%;
  height: 100%;
}

.video-responsive-container iframe,
.video-responsive-container video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  /* Para no deformar el video */
  background: #000;
}

/* --- CONOCE LA ARQUITECTURA (DETALLES DE PLANOS) --- */
.architecture-details {
  background-color: #fff;
  padding: 8rem 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.plan-item {
  position: relative;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.plan-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.plan-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.plan-item:hover .plan-img-container img {
  transform: scale(1.05);
}

.plan-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  text-align: center;
}

.plan-overlay span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* --- UBICACION --- */
#location {
  background-color: var(--surface);
  padding: 8rem 0;
}

.location-card {
  background: #111 !important;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* --- UBICACION (BLOQUE NEGRO) --- */
.location-details {
  background: #111 !important;
  color: #fff !important;
  padding: 4rem 3rem !important;
  display: flex;
  flex-direction: column;
  /* Centrado vertical stack */
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.location-text p {
  line-height: 1.4 !important;
  margin: 0 !important;
}

.loc-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  /* Muy sutil al inicio */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.location-card:hover .loc-icon {
  background: rgba(212, 175, 55, 0.2);
  /* Hover "apenas" perceptible como solicitado */
  transform: scale(1.05);
}

.loc-icon svg {
  width: 35px;
  height: 35px;
}

.location-details h3 {
  color: #fff !important;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
  /* Reducido para mayor elegancia */
  margin-bottom: 1.5rem !important;
}

.location-details p {
  color: #aaa !important;
  font-size: 1.1rem;
  margin: 0;
}

.contact-form {
  background: #111 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.4s ease !important;
  padding: 3rem !important;
  border-radius: 24px !important;
}

.contact-form:hover {
  background: #2a2a2a !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.05) !important;
}

.contact-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-actions .btn {
  flex: 0 1 auto;
  min-width: 180px;
}


/* Modales (Modal Overlay y Funcionalidad) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111;
  width: 90%;
  max-width: 1300px;
  height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: translateY(50px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Model details modal: spin-in reveal inspired by intro M */
#model-modal .modal-content {
  opacity: 0;
  transform: translateY(36px) rotateY(90deg) scale(0.985);
  transform-origin: 50% 60%;
  backface-visibility: hidden;
  transition: none;
}

#model-modal.active .modal-content {
  animation: model-modal-spin-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#model-modal .modal-media-gallery,
#model-modal .modal-col-left {
  opacity: 0;
  transform: translateY(18px);
}

#model-modal.active .modal-media-gallery {
  animation: model-modal-content-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

#model-modal.active .modal-col-left {
  animation: model-modal-content-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
  backdrop-filter: blur(5px);
}

.modal-close:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.modal-render-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  height: 100%;
}

.modal-media-gallery {
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-right: 1px solid #222;
}

.modal-main-view {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.main-display-img.contain {
  object-fit: contain;
  background: #fff;
  padding: 2rem;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-nav-btn:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn svg {
  width: 24px;
  height: 24px;
}

.modal-nav-prev {
  left: 20px;
}

.modal-nav-next {
  right: 20px;
}

.modal-thumb-carousel {
  height: 140px;
  background: #000;
  padding: 15px 20px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-top: 1px solid #222;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.modal-thumb-carousel::-webkit-scrollbar {
  height: 4px;
}

.modal-thumb-carousel::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.thumb-item {
  flex: 0 0 110px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.thumb-item.active {
  border-color: var(--primary);
  transform: scale(0.95);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.thumb-item.active img,
.thumb-item:hover img {
  opacity: 1;
}

.thumb-item.video-thumb::after {
  content: 'â–¶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
}

.gallery-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  z-index: 5;
}

.modal-col-left {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  background: #111;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.modal-col-left::-webkit-scrollbar {
  width: 5px;
}

.modal-col-left::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.modal-sticky-header {
  margin-bottom: 2rem;
}

.modal-sticky-header h2 {
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.modal-price {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.btn-view-arch {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  width: 100%;
  margin-bottom: 1rem;
}

.btn-view-arch:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-col-left ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  /* Reducido de 3rem */
}

.modal-col-left li {
  font-size: 0.95rem;
  padding: 0.8rem 0;
  /* Reducido de 1rem para evitar scroll */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  color: #bbb;
}

.modal-col-left li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.modal-carousel-wrap {
  position: relative;
  flex: 1;
  /* ocupa el espacio restante mayormente */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: var(--primary);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Carrusel de control simple para opacity (JS toggles this) */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 3 Mini-Videos (o fotos extra) debajo */
.modal-video-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  height: clamp(120px, 20vh, 180px);
  background: #000;
  border-top: 1px solid #222;
}

.vid-thumb {
  position: relative;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 991px) {
  .modal-render-body {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
    /* Gallery takes top half */
  }

  .modal-col-left {
    padding: 2rem;
    order: 2;
  }

  .modal-media-gallery {
    order: 1;
    border-right: none;
    border-bottom: 1px solid #222;
  }

  .gallery-item {
    flex: 0 0 300px;
    /* Smaller items on mobile */
  }

  .hero-reservation-badge {
    top: 0.9rem;
    bottom: auto;
    right: 2.5%;
    left: auto;
    padding: 0.8rem 1.5rem;
  }

  .hero-reservation-badge strong {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .location-card {
    flex-direction: row;
    align-items: stretch;
  }

  .map-container {
    flex: 2;
  }

  .location-details {
    flex: 1.2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* --- NARRATIVE TEXT STYLES --- */
.mp-community-note {
  color: rgba(0, 0, 0, 0.75) !important;
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 1.5rem 10%;
  text-align: center;
  font-weight: 400;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mp-stats-note {
  color: rgba(0, 0, 0, 0.65) !important;
  font-size: 0.85rem;
  line-height: 1.8;
  padding: 1.5rem 10% 2rem;
  text-align: center;
  font-weight: 400;
}

.fin-scheme-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 2rem;
  text-align: center;
  font-style: italic;
}

.location-tagline {
  color: #888 !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  margin-top: 2rem !important;
  font-style: italic;
}

.form-intro-note {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- COMPLIANCE MODAL --- */
.legal-modal-content {
  max-width: 700px;
  background: #111;
  color: #fff;
  border-radius: 20px;
  padding: 4rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-modal-body h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--primary);
  padding-left: 15px;
  background: #0a0a0a;
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #aaa;
}

@media (max-width: 768px) {
  .legal-modal-content {
    width: 95%;
    padding: 3rem 1.5rem;
  }
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  perspective: 1200px;
}

.preloader-inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Layer 1: El ENVOLTORIO (Maneja MOVIMIENTO y ESCALA) */
.preloader-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 20;
  will-change: transform;
}

/* Layer 2: La Imagen (Maneja ANIMACIÓN INICIAL solamente) */
.preloader-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  animation: loaderLogoZoom 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ESTADOS DE MOVIMIENTO AJUSTADOS POR AUDIO (M up 1.5cm + 3mm finales, Logos +3%) */
.preloader-logo-wrap.move-up {
  /* Subida extrema de la M para compensar visualmente (+1mm adicional) */
  /* Reducción al 29% del tamaño (+3% de crecimiento) */
  transform: translate(-50%, calc(-50vh - 30.5px)) scale(0.29) !important;
  animation: none !important;
}

.preloader-logo-wrap.shift-left {
  /* Desplazamiento final manteniendo la altura extrema elevada y escala 0.29 */
  transform: translate(calc(-50% - 31px), calc(-50vh - 30.5px)) scale(0.29) !important;
  animation: none !important;
  transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.p-brand-reveal {
  position: absolute;
  top: 45.5px;
  /* Subido 0.5mm finales (2px) para ajuste de precisión */
  left: 50%;
  height: 39.5px;
  /* Reducción de tamaño del 3% adicional (de 40.7px a 39.5px) */
  width: auto;
  transform: translate(-10px, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  clip-path: inset(0 100% 0 0);
}

.p-brand-reveal.active {
  opacity: 1;
  /* Desplazamiento REDUCIDO otros 0.25mm (+7px en lugar de +8px) para cohesión total */
  transform: translate(7px, -50%);
  clip-path: inset(0 0 0 0);
}

.preloader-msg {
  position: absolute;
  top: calc(50% + 130px);
  /* SUBIDO 2cm (80px) para compactar el diseño central */
  left: 0;
  right: 0;
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  opacity: 0;
  text-align: center;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  animation: loaderTextBlur 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
  z-index: 15;
}

.preloader-msg.fade-out {
  opacity: 0 !important;
  filter: blur(10px);
  transform: translateY(-20px);
}

.preloader-msg span {
  display: block;
}

.p-welcome {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.p-brand {
  font-size: 1.2rem;
  font-weight: 700;
}

#preloader.exit {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), visibility 1.2s;
}

#preloader.hidden {
  display: none !important;
}

@keyframes loaderLogoZoom {
  0% {
    opacity: 0;
    transform: scale(0.05) rotateY(-720deg);
    filter: blur(15px);
  }

  100% {
    opacity: 1;
    transform: scale(1.1) rotateY(0deg);
    filter: blur(0);
  }
}

@keyframes loaderTextBlur {
  0% {
    opacity: 0;
    filter: blur(12px);
    letter-spacing: 0.2em;
    transform: translateY(15px);
  }

  100% {
    opacity: 0.7;
    filter: blur(0);
    letter-spacing: 0.4em;
    transform: translateY(0);
  }
}

body.loading {
  overflow: hidden !important;
}

/* === POST-PRELOADER REVEAL SYSTEM === */

/* 1. Hero Content (Visible by Default to avoid load issues) */
.hero-inner {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 2.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}

.hero-inner.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* 2. Hero Buttons (Visible by Default) */
.cta-row {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.3s;
  will-change: opacity, transform;
}

.cta-row.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Trust Bar / Stats Banner (Scroll Reveal) */
.trust-bar {
  opacity: 0 !important;
  transform: translateY(80px) !important;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1.2s !important;
  transition-delay: 1s;
  will-change: opacity, transform;
}

.trust-bar.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible;
}

/* --- MASTERPLAN BLUR REVEAL --- */
#masterplan .section-head h2,
#masterplan .section-head p {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#masterplan.active .section-head h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#masterplan.active .section-head p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.4s;
}

#masterplan .mp-community-note,
#masterplan .mp-stats,
#masterplan .mp-stats-note {
  opacity: 0;
  filter: blur(24px);
  transform: translateY(30px);
  transition: opacity 1.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#masterplan .mp-stats .mp-stat {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

#masterplan .mp-stats .mp-stat p {
  opacity: 0 !important;
  filter: blur(18px) !important;
  transform: translateY(16px) !important;
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

#masterplan.active .mp-community-note {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
  animation: mp-text-blur-in 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition-delay: 0.55s;
}

#masterplan.active .mp-stats {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.8s;
}

#masterplan.active .mp-stats .mp-stat:nth-child(1) {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.9s;
}

#masterplan.active .mp-stats .mp-stat:nth-child(2) {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 1.05s;
}

#masterplan.active .mp-stats .mp-stat:nth-child(3) {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 1.2s;
}

#masterplan.active .mp-stats .mp-stat:nth-child(1) p {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
  animation: mp-stat-blur-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition-delay: 1s;
}

#masterplan.active .mp-stats .mp-stat:nth-child(2) p {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
  animation: mp-stat-blur-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition-delay: 1.15s;
}

#masterplan.active .mp-stats .mp-stat:nth-child(3) p {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
  animation: mp-stat-blur-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition-delay: 1.3s;
}

#masterplan.active .mp-stats-note {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
  animation: mp-text-blur-in 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition-delay: 1.3s;
}

/* --- FINANCE BLUR REVEAL --- */
#finance h2,
#finance [data-i18n="fin_intro"],
#finance .fin-scheme-note {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#finance.active h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#finance.active [data-i18n="fin_intro"] {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.35s;
}

#finance.active .fin-scheme-note {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.55s;
}

/* =============================================
   MEJORA #1: ABOUT — BLUR REVEAL
   ============================================= */
#about .section-head h2,
#about .section-head p {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(16px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#about .section-head.active h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#about .section-head.active p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* =============================================
   MEJORA #2: PILARES — STAGGER SLIDE-UP
   ============================================= */
.pillars article {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillars.active article:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.pillars.active article:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}

.pillars.active article:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.31s;
}

.pillars.active article:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.44s;
}

/* =============================================
   MEJORA #3: FINANCE STAT BOXES — SCALE + FADE
   ============================================= */
.stat-box {
  opacity: 0;
  transform: translateY(25px) scale(0.96);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

#finance.active .stat-box:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.2s;
}

#finance.active .stat-box:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.4s;
}

/* =============================================
   MEJORA #4: FOOTER — FADE-IN SUAVE
   ============================================= */
.site-footer .footer-grid>div:first-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer.active .footer-grid>div:first-child {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

/* =============================================
   BLUR REVEAL — SISTEMA GLOBAL DE SECCIONES
   Aplica a: Models, Experience, Finance,
             Location, Contact, Architecture
   ============================================= */

/* --- BASE: Estado inicial compartido --- */
#models .section-head h2,
#models .section-head p,
#experience .reveal h2,
#experience .reveal p,
.finance-container h2,
.finance-container>p,
#location .section-head h2,
#location .section-head p,
#contact .contact-info h2,
#contact .contact-info>p,
.architecture-banner h2 {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(18px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- A: MODELOS --- */
#models .section-head.active h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#models .section-head.active p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* --- B: EXPERIENCE / CONCEPTO --- */
#experience .reveal.active h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#experience .reveal.active p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* --- D: FINANCIAMIENTO --- */
#finance.active .finance-container h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.15s;
}

#finance.active .finance-container>p:not(.fin-scheme-note) {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.35s;
}

#finance.active .fin-scheme-note {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* --- E: UBICACIÓN --- */
#location .container.active .section-head h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#location .container.active .section-head p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* --- F: CONTACTO --- */
#contact .contact-grid.active .contact-info h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.1s;
}

#contact .contact-grid.active .contact-info>p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* --- H: ARCHITECTURE BANNER --- */
.architecture-banner.active h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* --- MODELS CARDS: RISE + TILT (SOFT) --- */
#models .villa-grid {
  perspective: 1200px;
}

#models .villa-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#models .villa-card.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

#models .villa-grid .villa-card.reveal:nth-child(1).active {
  transition-delay: 0s;
}

#models .villa-grid .villa-card.reveal:nth-child(2).active {
  transition-delay: 0.42s;
}

#models .villa-grid .villa-card.reveal:nth-child(3).active {
  transition-delay: 0.84s;
}

#models .villa-card.reveal.active:hover {
  transform: translateY(-8px) rotateY(0deg) scale(1.01);
}

@media (prefers-reduced-motion: reduce) {
  .site-header-alt~main .hero-visual {
    animation: none !important;
    transform: none !important;
  }

  .masterplan-card-img-bg::before {
    animation: none !important;
    transform: none !important;
  }

  .architecture-banner::before {
    animation: none !important;
    transform: none !important;
  }

  #model-modal .modal-content,
  #model-modal.active .modal-content,
  #model-modal .modal-media-gallery,
  #model-modal .modal-col-left,
  #model-modal.active .modal-media-gallery,
  #model-modal.active .modal-col-left {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #masterplan .mp-community-note,
  #masterplan .mp-stats-note,
  #masterplan .mp-stats .mp-stat p,
  #masterplan.active .mp-community-note,
  #masterplan.active .mp-stats-note,
  #masterplan.active .mp-stats .mp-stat p {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  #models .villa-card.reveal,
  #models .villa-card.reveal.active {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- REFINAMIENTOS DE ESPACIADO Y VISIBILIDAD --- */

/* Separación en Finanzas (Intro vs Esquema) */
.fin-scheme-note {
  margin-top: 2.5rem !important;
  /* Más aire */
  display: block;
}

/* Separación en Ubicación (Dirección vs Tagline) */
.location-tagline {
  margin-top: 1.5rem !important;
  /* Ajustado con el <br> del HTML */
  display: block;
}

/* Fix Masterplan Stats (Prevenir desaparición) */
#masterplan.active .mp-stat,
#masterplan.active .mp-stat h4,
#masterplan.active .mp-stat p,
#masterplan.active .mp-stat .premium-reveal {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
  color: #111 !important;
  /* Forzar negro sobre dorado */
  visibility: visible !important;
}

#masterplan.active .mp-stats {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
}

/* Asegurar que las notas del masterplan respiren */
.mp-community-note,
.mp-stats-note {
  padding: 0 4rem;
  margin: 1.5rem 0;
}

/* Animación de Ondulación (Sway) para el Icono de Ubicación */
@keyframes iconSway {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(12deg);
  }

  75% {
    transform: rotate(-8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Animación de Vibración Intensa (Shake) */
@keyframes iconShake {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-22deg);
  }

  40% {
    transform: rotate(22deg);
  }

  60% {
    transform: rotate(-18deg);
  }

  80% {
    transform: rotate(18deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.loc-icon svg {
  transform-origin: 50% 90%;
  /* Punto de pivote en la punta del pin */
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Se dispara al revelarse */
.location-card.active .loc-icon svg {
  animation: iconSway 0.8s cubic-bezier(0.45, 0, 0.55, 1) both;
}

/* Balanceo suave al pasar el mouse por la TARJETA */
.location-card:hover .loc-icon svg {
  animation: iconSway 1.2s ease-in-out infinite;
}

/* VIBRACIÓN FUERTE al pasar el mouse específicamente por el ICONO */
.loc-icon:hover svg {
  animation: iconShake 0.5s ease-in-out infinite !important;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.location-card:hover .loc-icon {
  background: rgba(212, 175, 55, 0.25) !important;
}


/* --- BOTÓN ATENCIÓN INMEDIATA (FOOTER/CONTACTO) --- */
.btn-phone {
  background: #fff !important;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0.6rem 1.4rem !important;
  font-weight: 600 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  transition: all 0.3s ease !important;
}

.btn-phone:hover {
  transform: translateY(-5px) !important;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3) !important;
}


/* --- ANIMACIONES DE TELÉFONO (RINGING EFFECT) --- */
@keyframes phoneRing {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(12deg);
  }

  75% {
    transform: rotate(-8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes phoneIntense {
  0% {
    transform: rotate(0deg) scale(1.1);
  }

  10% {
    transform: rotate(-15deg) scale(1.1);
  }

  20% {
    transform: rotate(15deg) scale(1.1);
  }

  30% {
    transform: rotate(-15deg) scale(1.1);
  }

  40% {
    transform: rotate(15deg) scale(1.1);
  }

  50% {
    transform: rotate(-15deg) scale(1.1);
  }

  60% {
    transform: rotate(15deg) scale(1.1);
  }

  100% {
    transform: rotate(0deg) scale(1.1);
  }
}

.btn-phone svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  animation: phoneRing 1.5s ease-in-out infinite;
  transform-origin: center;
}

/* --- VISUAL RHYMING --- */
.section-head {
  position: relative;
}

.visual-rhyme {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 280px;
  /* Un toque más de escala para mayor impacto visual */
  font-weight: 800;
  color: #c5a547;
  opacity: 0.05;
  /* Aún más sutil para un efecto de marca de agua etéreo */
  line-height: 1;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
  z-index: 0;
  user-select: none;
  filter: grayscale(1) brightness(1.2);
  /* Más suavizado */
  white-space: nowrap;
  transition: opacity 1.5s ease;
}

.section-head h2,
.section-head p {
  position: relative;
  z-index: 2;
  /* Texto por encima de la M */
}

@media (max-width: 768px) {
  .visual-rhyme {
    font-size: 200px;
    top: -40px;
    left: -20px;
  }
}

.btn-phone:hover svg {
  animation: phoneIntense 0.4s ease-in-out infinite !important;
}
