/* ============================================
   NAUTILUS ENHANCE — Quiet Luxury System
   Riviera Maya Luxury Real Estate
   ============================================ */

/* ══════════════════════════════════════════════
   QUIET LUXURY — Global Color & Style Override
   ══════════════════════════════════════════════ */

:root {
  --navy: #1B2D3E !important;
  --ocean: #3D7A8A !important;
  --gold: #B8A080 !important;
  --text: #2C2C2C !important;
  --muted: #8A8580 !important;
  --border: #E8E4DE !important;
  --bg: #FAFAF8 !important;
  --bg2: #F5F3EF !important;
  --dark: #141E28 !important;
  --darker: #0B1218 !important;
}

/* — Outfit font loaded via <link> in HTML (no @import for performance) — */

body {
  font-family: 'Outfit', sans-serif !important;
  background: #FAFAF8 !important;
  color: #2C2C2C !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* — Global typography refinement — */
* {
  font-family: inherit;
}
nav, nav *, footer, footer *,
.nav-links a, .nav-cta, .nav-right *,
.lang-btn, .back-btn,
.hsf-select, .hsf-btn,
.btn-hero-primary, .btn-hero-ghost,
.btn-outline, .btn-cta, .btn-primary, .btn-wa,
.btn-full, .btn-wa-home, .btn-email-home,
.zona-sub, .zona-proyectos,
.hero-eyebrow, .hero-sub,
.section-label, .stat-label,
.phil-text, .footer-copy,
.footer-col a, .footer-brand p,
.card *, .search-input, .search-filter,
.feat-tipo, .feat-badge,
input, select, textarea, button {
  font-family: 'Outfit', sans-serif !important;
}

/* — Soft background for all pages — */
html {
  background: #FAFAF8;
}

/* — Refined link transitions — */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* — Buttons: subtle radius — */
.btn-hero-primary, .btn-hero-ghost,
.btn-outline, .btn-cta, .btn-primary,
.btn-wa, .btn-full, .btn-wa-home, .btn-email-home,
.nav-cta, .hsf-btn,
[style*="text-transform:uppercase"][style*="text-decoration:none"][style*="padding"] {
  border-radius: 3px !important;
}

/* — Refined gold accent color everywhere — */
.nav-cta {
  background: #B8A080 !important;
}
.hero-eyebrow, .zona-proyectos, .feat-badge {
  color: #B8A080 !important;
}
.hero-eyebrow::before, .section-label::before {
  background: #B8A080 !important;
}
.hero-dot.active {
  background: #B8A080 !important;
}
.hero-line {
  background: linear-gradient(90deg, transparent, #B8A080, transparent) !important;
}
.stat-gold, .stat-num.stat-gold {
  color: #B8A080 !important;
}

/* — Refined nav with subtle backdrop — */
nav.scrolled {
  background: rgba(11, 18, 24, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* — Card refinement: no borders, soft shadows — */
.card {
  border-radius: 4px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  border: none !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}
/* Remove inner card borders */
.card > div[style*="border:0.5px"],
.card > div[style*="border: 0.5px"] {
  border: none !important;
  border-top: 1px solid #F0ECE6 !important;
}

/* — Status badges: translucent, refined — */
.card span[style*="background:#059669"],
.card span[style*="background: #059669"] {
  background: rgba(5, 150, 105, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 2px !important;
  font-size: 8px !important;
  letter-spacing: 0.12em !important;
  padding: 3px 8px !important;
}
.card span[style*="background:#D97706"],
.card span[style*="background: #D97706"] {
  background: rgba(180, 130, 50, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 2px !important;
  font-size: 8px !important;
}
.card span[style*="background:#B45309"],
.card span[style*="background: #B45309"] {
  background: rgba(160, 80, 10, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 2px !important;
  font-size: 8px !important;
}

/* — Price typography: serif for elegance — */
.card div[style*="Cormorant Garamond"][style*="15px"] {
  font-weight: 400 !important;
  color: #1B2D3E !important;
  letter-spacing: 0.02em;
}

/* — Grid backgrounds: warm ivory instead of cold gray — */
.grid {
  background: #F5F3EF !important;
}

/* — Section spacing: more breathing room — */
.featured, .philosophy {
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

/* — Subzone headers: refined — */
.subzona-header {
  background: #1B2D3E !important;
}

/* — Dark sections: charcoal with blue undertone — */
.stats, .cta-section, .zone-hero {
  background: #141E28 !important;
}
footer {
  background: #0B1218 !important;
}

/* — White text at 85% for softer contrast — */
.stats .stat-num:not(.stat-gold) {
  color: rgba(255, 255, 255, 0.88) !important;
}
.stat-label {
  color: rgba(255, 255, 255, 0.38) !important;
}
.cta-text, .cta-headline {
  color: rgba(255, 255, 255, 0.92) !important;
}
.cta-headline em {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* — Hero overlay: slightly deeper for cinematic feel — */
.hero-overlay {
  background: linear-gradient(
    to top,
    rgba(11, 18, 24, 0.92) 0%,
    rgba(11, 18, 24, 0.50) 40%,
    rgba(11, 18, 24, 0.30) 100%
  ) !important;
}

/* — Zona cards: deeper, more immersive — */
.zona-card {
  background: #141E28 !important;
}
.zona-card::after {
  background: linear-gradient(to top, rgba(11, 18, 24, 0.92) 0%, transparent 65%) !important;
}
.zona-num {
  color: rgba(255, 255, 255, 0.05) !important;
}

/* — Featured section title — */
.section-title {
  color: #1B2D3E !important;
}

/* — Search bar refinement — */
.hero-search-form {
  border-radius: 6px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
}
.hsf-btn {
  background: #B8A080 !important;
  color: #fff !important;
}
.hsf-btn:hover {
  background: #A6907A !important;
}

/* — WhatsApp buttons: muted green, more integrated — */
.btn-wa, .btn-wa-home,
a[style*="background:#25D366"],
a[style*="background: #25D366"] {
  background: #2EAD6A !important;
  border-radius: 3px !important;
}
a[style*="background:#25D366"]:hover,
a[style*="background: #25D366"]:hover,
.btn-wa:hover, .btn-wa-home:hover {
  background: #269B5E !important;
}

/* — Primary buttons: midnight navy — */
a[style*="background:#1A3A5C"],
a[style*="background: #1A3A5C"],
.btn-primary {
  background: #1B2D3E !important;
  border-radius: 3px !important;
}
a[style*="background:#1A3A5C"]:hover,
a[style*="background: #1A3A5C"]:hover {
  background: #3D7A8A !important;
}

/* — Philosophy accent: champagne — */
.phil-img-accent {
  border-color: #B8A080 !important;
}

/* — Contact form inputs — */
input:focus, select:focus, textarea:focus {
  border-color: #B8A080 !important;
}

/* — Footer refinement — */
.footer-brand .name, .footer-logo-name {
  letter-spacing: 0.16em !important;
}

/* — Smooth body bg transition on scroll — */
.hero + .wave-separator {
  background: #0B1218 !important;
}

/* ══════════════════════════════════════════════
   END QUIET LUXURY OVERRIDES
   ══════════════════════════════════════════════ */

/* === PAGE LOADER === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0B1218;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  opacity: 0;
  transform: scale(0.8);
  animation: loaderPulse 1.2s ease-out forwards;
}
.loader-logo img {
  height: 64px;
  filter: brightness(0) invert(1);
}
.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #B8A080, transparent);
  animation: loaderBar 1s ease-out forwards;
}

@keyframes loaderPulse {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes loaderBar {
  from { width: 0; }
  to { width: 100%; }
}

/* === CUSTOM CURSOR (Desktop Only) === */
@media (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
    background: #B8A080;
    transition: transform 0.1s ease;
  }
  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(184, 160, 128, 0.35);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.08s ease;
    margin-left: -15px;
    margin-top: -15px;
  }
  .cursor-ring.hover {
    width: 56px;
    height: 56px;
    margin-left: -25px;
    margin-top: -25px;
    border-color: rgba(184, 160, 128, 0.6);
    background: rgba(184, 160, 128, 0.06);
  }
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor select {
    cursor: none !important;
  }
}

/* === SCROLL REVEAL SYSTEM === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* === GOLD PARTICLES (CSS-only floating dots) === */
.gold-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.gold-particles::before,
.gold-particles::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(184, 160, 128, 0.4);
  border-radius: 50%;
  animation: floatParticle 8s ease-in-out infinite;
}
.gold-particles::before {
  top: 30%;
  left: 15%;
  animation-delay: 0s;
}
.gold-particles::after {
  top: 60%;
  right: 20%;
  animation-delay: 4s;
  width: 2px;
  height: 2px;
}

.particle-1, .particle-2, .particle-3, .particle-4, .particle-5 {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(184, 160, 128, 0.3);
  border-radius: 50%;
  animation: floatParticle ease-in-out infinite;
  pointer-events: none;
}
.particle-1 { top: 20%; left: 40%; animation-duration: 10s; animation-delay: 1s; }
.particle-2 { top: 50%; left: 65%; animation-duration: 7s; animation-delay: 2s; width: 3px; height: 3px; }
.particle-3 { top: 75%; left: 30%; animation-duration: 9s; animation-delay: 3s; }
.particle-4 { top: 15%; right: 35%; animation-duration: 11s; animation-delay: 0.5s; width: 4px; height: 4px; opacity: 0.2; }
.particle-5 { top: 45%; left: 80%; animation-duration: 8s; animation-delay: 5s; }

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.4; }
  50% { transform: translate(-30px, -60px) scale(1.5); opacity: 0.22; }
  90% { opacity: 0; }
}

/* === WAVE SEPARATOR === */
.wave-separator {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}
.wave-separator svg {
  display: block;
  width: 100%;
  height: 60px;
}
.wave-separator.dark svg path {
  fill: #141E28;
}
.wave-separator.light svg path {
  fill: #fff;
}
.wave-separator.bg2 svg path {
  fill: #F5F3EF;
}
.wave-separator.navy svg path {
  fill: #1B2D3E;
}
.wave-separator.darker svg path {
  fill: #0B1218;
}

/* === ENHANCED CARD HOVER (3D tilt) === */
.card-3d {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  will-change: transform;
}
.card-3d:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* === GOLD GLOW EFFECT === */
.gold-glow {
  position: relative;
}
.gold-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(184, 160, 128, 0.15), transparent, rgba(184, 160, 128, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: -1;
}
.gold-glow:hover::after {
  opacity: 1;
}

/* === MAGNETIC BUTTON BASE === */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* === ANIMATED UNDERLINE LINKS === */
.link-reveal {
  position: relative;
  text-decoration: none;
}
.link-reveal::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.link-reveal:hover::after {
  width: 100%;
}

/* === COUNTER ANIMATION HELPER === */
.count-up {
  display: inline-block;
}

/* === SCROLL INDICATOR ENHANCED === */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #C5A55A);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* === GRADIENT MESH BACKGROUND === */
.gradient-mesh {
  position: relative;
  overflow: hidden;
}
.gradient-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26, 107, 138, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 160, 128, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(26, 58, 92, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  /* meshFloat estático (Fase 1): gradiente fijo, sin loop infinito */
}

@keyframes meshFloat {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(26, 107, 138, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(184, 160, 128, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 60% 80%, rgba(26, 58, 92, 0.05) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse at 30% 40%, rgba(26, 107, 138, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 30%, rgba(184, 160, 128, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 70%, rgba(26, 58, 92, 0.05) 0%, transparent 50%);
  }
}

/* === GRAIN TEXTURE OVERLAY === */
.grain-overlay {
  position: relative;
}
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 1;
}

/* === IMAGE CLIP REVEAL === */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.clip-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* === ACCENT GROW ANIMATION === */
.accent-grow {
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.accent-grow.visible {
  transform: scale(1);
}

/* === HERO SLIDE ENHANCED TRANSITIONS === */
.hero-slide-enhanced {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 6s ease-out;
}
.hero-slide-enhanced.active {
  opacity: 1;
  transform: scale(1);
}

/* === ZONA CARD ENHANCED HOVER === */
.zona-card-enhanced:hover .zona-bg {
  opacity: 0.35 !important;
  transform: scale(1.08);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.zona-card-enhanced .zona-bg {
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.zona-card-enhanced:hover .zona-nombre {
  transform: translateX(6px);
  transition: transform 0.3s ease;
}
.zona-card-enhanced .zona-nombre {
  transition: transform 0.3s ease;
}

/* === STAT NUMBER GLOW === */
.stat-glow {
  text-shadow: 0 0 24px rgba(184, 160, 128, 0.22);
  /* statPulse removido (Fase 1): glow estático sutil, sin pulso infinito */
}

@keyframes statPulse {
  0%, 100% { text-shadow: 0 0 30px rgba(184, 160, 128, 0.2); }
  50% { text-shadow: 0 0 50px rgba(184, 160, 128, 0.5), 0 0 80px rgba(184, 160, 128, 0.15); }
}

/* === FEATURED CARD CINEMATOGRAPHIC OVERLAY === */
.feat-overlay-cinematic {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 15, 26, 0.92) 0%,
    rgba(7, 15, 26, 0.4) 35%,
    rgba(7, 15, 26, 0.05) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

/* === FEATURED CARD 3D HOVER === */
.feat-3d {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.feat-3d:hover {
  transform: translateY(-5px);
}
.feat-3d:hover img {
  transform: scale(1.06) !important;
}

/* === PHILOSOPHY SECTION ENHANCED === */
.phil-image-reveal {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.phil-image-reveal.visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* === CONTACT CTA GRADIENT ANIMATED === */
.cta-gradient-animated {
  position: relative;
  overflow: hidden;
}
.cta-gradient-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26, 107, 138, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(184, 160, 128, 0.1) 0%, transparent 50%);
  /* ctaMeshMove estático (Fase 1): gradiente fijo, sin loop infinito */
  pointer-events: none;
}

@keyframes ctaMeshMove {
  0% {
    background:
      radial-gradient(circle at 20% 50%, rgba(26, 107, 138, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 80% 50%, rgba(184, 160, 128, 0.1) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(circle at 40% 30%, rgba(26, 107, 138, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 60% 70%, rgba(184, 160, 128, 0.12) 0%, transparent 50%);
  }
}

/* === FOOTER ENHANCED === */
.footer-link-animated {
  position: relative;
  display: inline-block;
}
.footer-link-animated::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}
.footer-link-animated:hover::after {
  width: 100%;
}

/* === SMOOTH TEXT LINE REVEAL === */
.text-line-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.text-line-reveal.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.text-line-reveal.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.text-line-reveal.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.text-line-reveal.visible > *:nth-child(4) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.text-line-reveal.visible > *:nth-child(5) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* === HERO PARALLAX === */
.hero-parallax .hero-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* === BADGE ANIMATE IN === */
.badge-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.feat-3d:hover .badge-reveal,
.feat-main:hover .badge-reveal,
.feat-small:hover .badge-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* === WhatsApp FLOAT ENHANCED === */
.wa-float-enhanced {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2EAD6A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(46, 173, 106, 0.2);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s;
  text-decoration: none;
}
.wa-float-enhanced:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 173, 106, 0.3);
}
.wa-float-enhanced::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(46, 173, 106, 0.2);
  animation: waRipple 4s ease-out infinite;
}

@keyframes waRipple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media(max-width:600px) {
  .wa-float-enhanced {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}

/* === FIX: Footer nav inheriting top nav styles === */
footer nav,
footer .footer-links {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  position: static !important;
  z-index: auto !important;
  border-bottom: none !important;
}

/* === PERFORMANCE: Reduce motion for users who prefer it === */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .clip-reveal, .accent-grow, .phil-image-reveal,
  .hero-slide-enhanced, .badge-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
  .gold-particles, .gold-particles::before, .gold-particles::after,
  .particle-1, .particle-2, .particle-3, .particle-4, .particle-5 {
    display: none !important;
  }
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════
   LIGHTBOX MOBILE IMPROVEMENTS
   ══════════════════════════════════════════════ */

/* Bigger touch targets for lightbox nav */
@media (max-width: 768px) {
  .lb-p, .lb-n {
    padding: 2rem 1.5rem !important;
    font-size: 36px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }
  .lb-x {
    font-size: 36px !important;
    top: 1rem !important;
    right: 1rem !important;
    padding: 0.5rem !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
  .lb img {
    max-width: 95vw !important;
    max-height: 80vh !important;
  }
}

/* ══════════════════════════════════════════════
   SEO & ACCESSIBILITY FIXES
   ══════════════════════════════════════════════ */

/* — Minimum touch targets (44x44px) — */
.lang-btn {
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.back-btn {
  font-size: 12px !important;
  padding: 8px 12px !important;
  min-height: 36px !important;
}

.hero-dot {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
}

/* — Minimum font sizes for mobile readability — */
@media (max-width: 768px) {
  .logo-text .sub {
    font-size: 10px !important;
  }
  .feat-badge, .feat-tipo,
  .tipo-label, .card-badge {
    font-size: 11px !important;
  }
  nav a, .nav-links a {
    font-size: 12px !important;
  }
}

/* ══════════════════════════════════════════════
   MOBILE UX OVERHAUL — Clean Luxury Experience
   ══════════════════════════════════════════════ */

/* Desktop: hide mobile-only elements, show collapsed content */
.mobile-section-toggle { display: none !important; }
.mobile-sticky-cta { display: none !important; }
.mobile-collapsible-content { max-height: none !important; overflow: visible !important; }

@media (max-width: 768px) {

  /* ── A. BREATHING ROOM & SECTION SEPARATION ── */
  .content {
    padding: 1.5rem 1.25rem 2rem !important;
  }
  .content article > section,
  .content article > .mission-box,
  .content article > .eco-banner,
  .content article > .neea-banner {
    margin-bottom: 1.75rem !important;
    padding-bottom: 1.75rem !important;
    border-bottom: 0.5px solid var(--border) !important;
  }
  .content article > section:last-child {
    border-bottom: none !important;
  }
  .divider-line, .divider-warm {
    display: none !important;
  }

  /* ── B. TYPOGRAPHY & ALIGNMENT ── */
  .proj-header {
    padding: 1.25rem 1.25rem 0 !important;
    text-align: left !important;
  }
  .proj-name {
    font-size: clamp(26px, 7.5vw, 38px) !important;
    text-align: left !important;
    line-height: 1.15 !important;
  }
  .proj-name2 {
    font-size: 14px !important;
  }
  .proj-dev {
    font-size: 9px !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.25rem !important;
  }
  .proj-loc {
    font-size: 12px !important;
    text-align: left !important;
  }
  .proj-price {
    font-size: clamp(20px, 5vw, 28px) !important;
    text-align: left !important;
  }
  .proj-desc {
    font-size: 13.5px !important;
    line-height: 1.85 !important;
    color: var(--muted) !important;
    text-align: left !important;
  }
  .sec-title {
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    text-align: left !important;
  }
  .mission-box {
    padding: 1.25rem !important;
    margin: 0 !important;
  }
  .mission-quote {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .mission-sub {
    font-size: 12px !important;
  }

  /* ── C. QUICK STATS — Clean 2-Column Grid ── */
  .quick-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-wrap: initial !important;
    gap: 0 !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin: 1rem 0 !important;
  }
  .qstat {
    flex: initial !important;
    min-width: initial !important;
    padding: 0.875rem 0.75rem !important;
    border-right: 0.5px solid var(--border) !important;
    border-bottom: 0.5px solid var(--border) !important;
    text-align: center !important;
  }
  .qstat:nth-child(2n) {
    border-right: none !important;
  }
  .qstat:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    border-right: none !important;
  }
  .qstat:nth-last-child(1):nth-child(2n),
  .qstat:nth-last-child(2):nth-child(odd) {
    border-bottom: none !important;
  }
  .qstat:last-child:nth-child(even) {
    border-bottom: none !important;
  }
  .qstat-num {
    font-size: 20px !important;
  }
  .qstat-label {
    font-size: 8.5px !important;
    letter-spacing: 0.12em !important;
  }

  /* ── D. GALLERY HERO — Single Main Photo ── */
  .gallery-hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    height: auto !important;
    gap: 0 !important;
  }
  .gal-main {
    grid-column: 1 !important;
    grid-row: auto !important;
    height: 58vw !important;
    min-height: 220px !important;
  }
  .gal-small {
    display: none !important;
  }
  .gal-ver {
    font-size: 11px !important;
    padding: 8px 18px !important;
    bottom: 0.75rem !important;
    right: 0.75rem !important;
  }
  .hero-badges {
    gap: 4px !important;
    top: 0.5rem !important;
    left: 0.75rem !important;
  }
  .hb {
    font-size: 8px !important;
    padding: 4px 8px !important;
  }

  /* ── E. THUMBNAILS — Horizontal Scroll Strip ── */
  .thumb-grid {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 6px !important;
    padding-bottom: 0.5rem !important;
    grid-template-columns: none !important;
  }
  .thumb-grid > .thumb,
  .thumb-grid > div {
    flex: 0 0 150px !important;
    height: 105px !important;
    scroll-snap-align: start !important;
    border-radius: 3px !important;
    min-width: 150px !important;
  }
  .thumb-grid::-webkit-scrollbar {
    display: none;
  }
  .thumb-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .thumb-label {
    font-size: 8px !important;
    padding: 3px 6px !important;
  }

  /* ── F. HIDE SECONDARY CONTENT ── */
  .award-banner {
    display: none !important;
  }
  .inversion-grid {
    display: none !important;
  }
  .arq-section {
    display: none !important;
  }
  .eco-banner {
    display: none !important;
  }
  .neea-banner {
    display: none !important;
  }

  /* ── G. COLLAPSIBLE SECTIONS (JS adds elements) ── */
  .mobile-section-toggle {
    display: flex !important;  /* Override the desktop display:none */
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
  }
  .mobile-section-toggle::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--ocean);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
  }
  .mobile-section-toggle.open::after {
    content: '\2212';
  }
  .mobile-collapsible-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .mobile-collapsible-content.open {
    max-height: 4000px !important;
  }

  /* ── H. STICKY CTA BAR ── */
  .mobile-sticky-cta {
    display: flex !important;  /* Override the desktop display:none */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9500;
    background: #fff;
    border-top: 0.5px solid var(--border);
    padding: 0.6rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  }
  .mobile-sticky-cta .mobile-cta-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .mobile-sticky-cta .mobile-cta-price small {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .mobile-sticky-cta a {
    flex: 0 0 auto;
    padding: 10px 14px !important;
    font-size: 11px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 42px !important;
    line-height: 1 !important;
  }
  .mobile-sticky-cta .mcta-wa {
    background: #2EAD6A !important;
    color: #fff !important;
  }
  .mobile-sticky-cta .mcta-email {
    background: var(--navy) !important;
    color: #fff !important;
  }

  /* Offset body for sticky bar */
  body {
    padding-bottom: 68px !important;
  }
  /* Move WhatsApp float above sticky bar */
  .wa-float-enhanced {
    bottom: 5.5rem !important;
  }
  /* Hide CTA buttons in the bottom right-card (duplicated in sticky bar) */
  .right-card .btn-full,
  .right-card .btn-wa {
    display: none !important;
  }

  /* ── FAB stacking fix 1 jun 2026 — chatbot + scroll-top NO se encimen con sticky CTA ── */
  /* Chatbot (Nautilus Concierge nx-fab) sube arriba del sticky bar */
  .nx-fab {
    bottom: 5.5rem !important;
    right: 1rem !important;
  }
  /* Scroll-top sube encima del chatbot para no chocar */
  .scroll-top-btn {
    bottom: 11rem !important;
    right: 1rem !important;
  }
  /* Cuando el panel del chatbot abre, dejarlo arriba del sticky bar también */
  .nx-panel {
    bottom: 5rem !important;
    max-height: calc(100vh - 8rem) !important;
  }

  /* ── I. AMENITIES COMPACT ── */
  .amen-cats {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .amen-cat {
    border: none !important;
    border-bottom: 0.5px solid var(--border) !important;
    padding: 0.75rem 0 !important;
    background: none !important;
  }
  .amen-cat:last-child {
    border-bottom: none !important;
  }
  .amen-cat-title {
    font-size: 11px !important;
    margin-bottom: 0.5rem !important;
  }
  .amen-item {
    font-size: 12px !important;
    margin-bottom: 0.2rem !important;
  }

  /* ── J. TYPOLOGIES & PRICING COMPACT ── */
  .tipos-grid, .precios-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .tipo-card {
    padding: 1rem !important;
  }
  .tipo-name {
    font-size: 15px !important;
  }
  .tipo-tag {
    font-size: 8px !important;
  }
  .tipo-specs {
    font-size: 12px !important;
    line-height: 1.7 !important;
  }
  .precio-card {
    padding: 1rem !important;
  }

  /* Tipo row cards (Villa Amara style) */
  .tipos-full {
    gap: 0.5rem !important;
  }
  .tipo-row-head {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
  }
  .tipo-m2 {
    text-align: left !important;
    font-size: 13px !important;
  }
  .tipo-details {
    padding: 0.5rem 1rem 0.75rem !important;
    gap: 0.25rem 0.75rem !important;
  }

  /* Payment scheme */
  .pago-opts {
    gap: 0.75rem !important;
  }
  .pago-steps {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .pago-step {
    text-align: left !important;
  }

  /* ── K. SPECS & DISTANCES ── */
  .specs-grid {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
  .distancias-grid {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
  .materiales-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
  }

  /* ── L. RIGHT CARD SIMPLIFY ── */
  .right-card {
    margin-top: 1rem !important;
    border: none !important;
    border-top: 0.5px solid var(--border) !important;
    border-radius: 0 !important;
  }
  .right-card .card-head {
    padding: 1rem !important;
  }
  .right-card .card-body {
    padding: 0.75rem 1rem 1rem !important;
  }
  .card-row {
    padding: 0.5rem 0 !important;
    font-size: 12px !important;
  }
  .card-nota {
    font-size: 10px !important;
    padding: 0.75rem 0 0 !important;
  }

  /* ── M. MAP SECTION ── */
  .content iframe[src*="google.com/maps"] {
    height: 250px !important;
    border-radius: 4px !important;
  }

  /* ── N. FAQ COMPACT ── */
  .faq-item {
    margin-bottom: 0 !important;
  }
  .faq-q {
    font-size: 13px !important;
    padding: 0.875rem 0 !important;
  }
  .faq-a {
    font-size: 12.5px !important;
    line-height: 1.75 !important;
    padding-bottom: 0.75rem !important;
  }

  /* ── O. FOOTER COMPACT ── */
  footer {
    padding: 2rem 1.25rem !important;
  }
  .footer-links {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }
  .footer-links a {
    font-size: 11px !important;
  }
  .footer-copy {
    font-size: 10px !important;
  }
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.nautilus-hamburger { display: none; }
.nautilus-mobile-menu, .nautilus-mobile-backdrop { display: none; }

@media (max-width: 900px) {
  nav .nav-right .nav-cta,
  nav .nav-right .lang-switch {
    display: none !important;
  }
  .nautilus-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    cursor: pointer;
    z-index: 10000;
    margin-left: 0.5rem;
  }
  .nautilus-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .nautilus-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nautilus-hamburger.open span:nth-child(2) { opacity: 0; }
  .nautilus-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nautilus-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
  }
  .nautilus-mobile-backdrop.open { opacity: 1; visibility: visible; }

  .nautilus-mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #0b1a2f;
    padding: 5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  }
  .nautilus-mobile-menu.open { transform: translateX(0); }

  .nautilus-mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }
  .nautilus-mobile-menu a:hover { color: #c9a961; padding-left: 8px; }

  .nautilus-mobile-menu .nautilus-mobile-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 1.5rem;
    background: #c9a961;
    color: #0b1a2f !important;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    border-bottom: none;
  }
  .nautilus-mobile-menu .nautilus-mobile-cta:hover { padding-left: 1.5rem; background: #d4b670; }

  .nautilus-mobile-menu .nautilus-mobile-lang {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
  }
  .nautilus-mobile-menu .nautilus-mobile-lang a {
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .nautilus-mobile-menu .nautilus-mobile-lang a.active {
    background: rgba(201,169,97,0.2);
    border-color: #c9a961;
    color: #c9a961;
  }

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

/* ============================================
   PROPERTY PAGES — MOBILE FIXES
   Overrides inline CSS de property pages que rompen <600px
   ============================================ */
@media (max-width: 900px) {
  /* Sidebar sticky rompe el layout — convertirlo en static */
  .content {
    display: block !important;
  }
  .right-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.5rem !important;
    top: auto !important;
  }
  .gallery-hero {
    height: auto !important;
    min-height: 55vh !important;
  }
}

@media (max-width: 600px) {
  .gallery-hero {
    height: auto !important;
    min-height: 42vh !important;
    max-height: 60vh !important;
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .gallery-main {
    height: 42vh !important;
    min-height: 240px !important;
  }
  .gallery-main img,
  .gallery-main video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .thumb-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.5rem 1rem !important;
  }
  .thumb-grid img {
    width: 100% !important;
    height: 90px !important;
    object-fit: cover !important;
  }
  .content {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }
  .quick-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .quick-stats > * {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: calc(50% - 0.5rem) !important;
    box-sizing: border-box !important;
  }
  .amen-cats,
  .materiales-grid,
  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .breadcrumb {
    padding: 0.6rem 1rem !important;
    font-size: 11px !important;
    flex-wrap: wrap !important;
    line-height: 1.6 !important;
  }
  .property-hero-title,
  .hero-title,
  .section-title {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.2 !important;
  }
  .right-card {
    padding: 1.25rem !important;
  }
  .map-embed,
  .map-wrap iframe {
    height: 260px !important;
  }
  /* Evita overflow horizontal generalizado */
  body, html {
    overflow-x: hidden !important;
  }
  img, video, iframe {
    max-width: 100% !important;
  }
}

/* ══════════════════════════════════════════════
   ZONE SEO CONTENT SECTION
   ══════════════════════════════════════════════ */
.zone-seo {
  padding: 4rem 2.5rem 3rem;
  background: var(--bg2, #F8F8F6);
  border-bottom: 0.5px solid var(--border, #E5E7EB);
}
.zone-seo-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #6B7280);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.zone-seo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--navy, #1A3A5C);
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 700px;
}
.zone-seo-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.zone-seo-text p {
  font-size: 14.5px;
  color: #3a3a3a;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.zone-seo-text p:last-child {
  margin-bottom: 0;
}
.zone-seo-text strong {
  color: var(--navy, #1A3A5C);
  font-weight: 500;
}
.zone-seo-highlights {
  background: #fff;
  border: 0.5px solid var(--border, #E5E7EB);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  position: sticky;
  top: 90px;
}
.zone-seo-highlights-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #6B7280);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border, #E5E7EB);
}
.zone-seo-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.zone-seo-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.zone-seo-stat-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
}
.zone-seo-stat-text {
  font-size: 13.5px;
  color: #3a3a3a;
  line-height: 1.5;
}
.zone-seo-stat-text strong {
  color: var(--navy, #1A3A5C);
  font-weight: 500;
}

@media (max-width: 900px) {
  .zone-seo {
    padding: 3rem 1.25rem 2rem;
  }
  .zone-seo-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .zone-seo-highlights {
    position: static;
  }
}
@media (max-width: 600px) {
  .zone-seo {
    padding: 2rem 1.25rem 1.5rem;
  }
  .zone-seo-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 1.5rem;
  }
  .zone-seo-text p {
    font-size: 13.5px;
    line-height: 1.8;
  }
  .zone-seo-highlights {
    padding: 1.25rem;
  }
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY IMPROVEMENTS
   ══════════════════════════════════════════════ */

/* — Skip to content link — */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s ease;
}
.skip-to-content:focus {
  top: 0;
}

/* — Focus visible for keyboard navigation — */
:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* — Improved contrast for secondary text — */
.zona-sub {
  color: rgba(255, 255, 255, 0.55) !important;
}
.stat-label {
  color: rgba(255, 255, 255, 0.48) !important;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.65) !important;
}
.hero-scroll {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* ══════════════════════════════════════════════
   PARTNERS / DEVELOPERS SECTION
   ══════════════════════════════════════════════ */
.partners {
  padding: 6rem 2.5rem;
  background: var(--bg2);
}

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

.partner-card {
  background: #fff;
  padding: 2rem 1.75rem;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.partner-card:hover::before {
  opacity: 1;
}

.partner-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.partner-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .partners {
    padding: 4rem 1.25rem;
  }
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .partner-card {
    padding: 1.25rem;
  }
}

/* ══════════════════════════════════════════════
   TESTIMONIALS SECTION
   ══════════════════════════════════════════════ */
.testimonials {
  padding: 6rem 2.5rem;
  background: var(--bg);
}

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

.testimonial-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: rgba(184, 160, 128, 0.12);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.testi-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.testi-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testi-author {
  border-top: 0.5px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.testi-author-info {
  display: flex;
  flex-direction: column;
}

.testi-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.testi-detail {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.testi-detail::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 900px) {
  .testimonials {
    padding: 4rem 1.25rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ══════════════════════════════════════════════
   ENHANCED FOOTER
   ══════════════════════════════════════════════ */
.footer-trust {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.footer-newsletter {
  margin-top: 0.5rem;
}
.footer-newsletter input {
  border-radius: 3px !important;
  transition: border-color 0.2s ease;
}
.footer-newsletter input:focus {
  border-color: var(--gold) !important;
}
.footer-newsletter button {
  border-radius: 3px !important;
  transition: opacity 0.2s ease;
}
.footer-newsletter button:hover {
  opacity: 0.85;
}

/* ══════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ══════════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 400;
  width: 44px;
  height: 44px;
  background: var(--navy, #1B2D3E);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--ocean, #3D7A8A);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.scroll-top-btn svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════
   PROJECT PAGE MOBILE NAV FIX
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Fix project page nav overflow */
  nav .nav-right {
    gap: 0.5rem !important;
  }
  nav .back-btn {
    font-size: 10px !important;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  nav .lang-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
}

/* ══════════════════════════════════════════════
   FORM VALIDATION (contacto.html)
   ══════════════════════════════════════════════ */
.field-error input,
.field-error select,
.field-error textarea {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
}
.field-error input:focus,
.field-error select:focus {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.error-msg {
  display: none;
  font-size: 11px;
  color: #DC2626;
  margin-top: 0.35rem;
}
.field-error .error-msg {
  display: block;
}

/* ══════════════════════════════════════════════
   SEO UX REDESIGN (READ MORE)
   ══════════════════════════════════════════════ */
.zone-seo-text-container {
  position: relative;
  overflow: hidden;
  max-height: 220px; /* Adjust based on first paragraph height */
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.zone-seo-text-container.expanded {
  max-height: 2000px; /* large enough to fit all text */
}

/* Drop Cap for the first paragraph */
.zone-seo-text-container p:first-child::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--gold);
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 6px;
}

/* Make first paragraph look like a lead text */
.zone-seo-text-container p:first-child {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

/* Column layout when expanded */
.zone-seo-text-container.expanded .zone-seo-text {
  column-count: 2;
  column-gap: 3rem;
}

@media(max-width: 768px) {
  .zone-seo-text-container.expanded .zone-seo-text {
    column-count: 1;
  }
}

/* The gradient fade overlay */
.seo-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(250,249,246,0) 0%, rgba(250,249,246,1) 90%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.zone-seo-text-container.expanded .seo-fade-overlay {
  opacity: 0;
}

.seo-read-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.seo-read-more-btn:hover {
  background: var(--gold);
  color: #fff;
}

.seo-read-more-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.seo-read-more-btn.expanded svg {
  transform: rotate(180deg);
}

/* =========================================
   COOKIE BANNER
========================================= */
#nautilus-cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2.5rem;
  width: calc(100% - 5rem);
  max-width: 400px;
  background: rgba(13, 26, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

#nautilus-cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.cookie-banner-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

.cookie-banner-text a {
  color: #C5A55A;
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-btn {
  background: #C5A55A;
  color: #0D1A26;
  border: none;
  padding: 10px 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Outfit', sans-serif;
  width: 100%;
}

.cookie-banner-btn:hover {
  background: #E5C57A;
}

@media(max-width: 600px) {
  #nautilus-cookie-banner {
    left: 1.25rem;
    bottom: 1.25rem;
    width: calc(100% - 2.5rem);
  }
}

/* ============================================
   MOBILE-ONLY KEN BURNS + INNER STAGGER
   Zonas home (Cancún, PDC, Tulum, Isla Mujeres)
   Apple-like luxury animation on scroll reveal
   Added: 2026-05-28
   ============================================ */

@media (max-width: 900px) {
  /* En mobile la card no se mueve — solo background + interior hacen la animación */
  .zona-card.zona-card-enhanced.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Background image: empieza al 60%, se aclara a 95% + zoom dramático al revelar */
  .zona-card.zona-card-enhanced .zona-bg,
  .zonas .zona-card .zona-bg {
    opacity: 0.6 !important;
    transform: scale(1.0);
    transition: transform 3.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform, opacity;
  }
  .zona-card.zona-card-enhanced.visible .zona-bg,
  .zonas .zona-card.visible .zona-bg {
    opacity: 0.95 !important;
    transform: scale(1.12);
  }
  /* Override del hover original que ponía opacity 0.25 */
  .zona-card:hover .zona-bg,
  .zona-card:active .zona-bg {
    opacity: 0.95 !important;
  }

  /* Reducir el gradient overlay para que la imagen del desarrollo se vea bien */
  .zona-card.zona-card-enhanced::after {
    background: linear-gradient(to top,
      rgba(7,15,26,0.85) 0%,
      rgba(7,15,26,0.55) 35%,
      rgba(7,15,26,0.1) 70%,
      transparent 100%) !important;
  }

  /* Altura más grande en mobile para que la imagen tenga presencia visual */
  .zona-card.zona-card-enhanced {
    min-height: 360px !important;
  }

  /* Inner stagger MÁS DRAMÁTICO: translateY más grande + delays más largos */
  .zona-card.zona-card-enhanced .zona-num {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .zona-card.zona-card-enhanced.visible .zona-num {
    opacity: 0.14;
    transform: translateY(0);
    transition-delay: 100ms;
  }

  /* Nombre de la zona (h2 principal) */
  .zona-card.zona-card-enhanced .zona-nombre {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .zona-card.zona-card-enhanced.visible .zona-nombre {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 300ms;
  }

  /* Sub-zonas (texto chico) */
  .zona-card.zona-card-enhanced .zona-sub {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .zona-card.zona-card-enhanced.visible .zona-sub {
    opacity: 0.55;
    transform: translateY(0);
    transition-delay: 500ms;
  }

  /* CTA "X proyectos →" */
  .zona-card.zona-card-enhanced .zona-proyectos {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .zona-card.zona-card-enhanced.visible .zona-proyectos {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 700ms;
  }

  /* Reduced motion: respect user preference, no animations */
  @media (prefers-reduced-motion: reduce) {
    .zona-card.zona-card-enhanced .zona-bg,
    .zona-card.zona-card-enhanced .zona-num,
    .zona-card.zona-card-enhanced .zona-nombre,
    .zona-card.zona-card-enhanced .zona-sub,
    .zona-card.zona-card-enhanced .zona-proyectos {
      transition: none !important;
      transform: none !important;
    }
    .zona-card.zona-card-enhanced .zona-bg { opacity: 0.95; }
    .zona-card.zona-card-enhanced .zona-num { opacity: 0.14; }
    .zona-card.zona-card-enhanced .zona-nombre { opacity: 1; }
    .zona-card.zona-card-enhanced .zona-sub { opacity: 0.55; }
    .zona-card.zona-card-enhanced .zona-proyectos { opacity: 1; }
  }
}

/* ============================================================
   FASE 1 UI/UX (5 jun 2026) — restraint + accesibilidad + press
   ============================================================ */

/* Partículas doradas OFF en móvil (ahorra CPU/batería, evita ruido) */
@media (max-width: 768px) {
  .gold-particles,
  .particle-1, .particle-2, .particle-3, .particle-4, .particle-5 {
    display: none !important;
  }
}

/* Focus visible accesible en todo lo interactivo (anillo dorado) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
.hero-dot:focus-visible,
summary:focus-visible {
  outline: 2px solid #C5A55A;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Press feedback consistente (excluye botones magnéticos que usan transform por JS) */
button:not(.btn-magnetic):active,
.btn:not(.btn-magnetic):active,
a.btn:active {
  transform: scale(0.98);
}
