/* ═══════════════════════════════════════════════════════════
   VIDALES APARTMENTS RIO — Tema claro/oscuro
   Paleta corporativa:
     Dorado  #e5b12e
     Verde   #15934b
     Azul    #0e5391
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   VARIABLES — TEMA CLARO (default)
   ═══════════════════════════════════════════ */
:root,
[data-theme="light"] {
  /* Colores corporativos (fijos) */
  --gold:      #e5b12e;
  --gold-dark: #c8951f;
  --gold-soft: #f3e2cb;
  --green:     #15934b;
  --blue:      #0e5391;
  --blue-dark: #093d6b;

  /* Colores del tema CLARO */
  --bg-primary:    #faf8f5;
  --bg-secondary:  #ffffff;
  --bg-tertiary:   #f5f2ed;
  --bg-elevated:   rgba(255, 255, 255, 0.95);
  --bg-overlay:    rgba(250, 248, 245, 0.98);
  --bg-menu:       linear-gradient(160deg,
                     rgba(250, 248, 245, 0.98) 0%,
                     rgba(240, 235, 227, 0.95) 55%,
                     rgba(250, 248, 245, 0.98) 100%);
  
  --text-primary:   #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary:  #8a8a8a;
  --text-inverse:   #ffffff;
  
  --border-color:   rgba(0, 0, 0, 0.08);
  --border-soft:    rgba(0, 0, 0, 0.05);
  --border-strong:  rgba(200, 149, 31, 0.4);
  
  --shadow-soft:  0 8px 24px -8px rgba(0, 0, 0, 0.12);
  --shadow-hard:  0 20px 50px -20px rgba(0, 0, 0, 0.2);
  --shadow-gold:  0 8px 28px -8px rgba(229, 177, 46, 0.4);
  
  --hamburger-bg:    rgba(255, 255, 255, 0.92);
  --hamburger-border: rgba(200, 149, 31, 0.5);
  
  --video-overlay-start: rgba(250, 248, 245, 0);
  --video-overlay-mid:   rgba(250, 248, 245, 0.5);
  --video-overlay-end:   rgba(250, 248, 245, 0.92);
}

/* ═══════════════════════════════════════════
   VARIABLES — TEMA OSCURO (override)
   ═══════════════════════════════════════════ */
[data-theme="dark"] {
  --bg-primary:    #0b0a0a;
  --bg-secondary:  #101820;
  --bg-tertiary:   #16212e;
  --bg-elevated:   rgba(16, 24, 32, 0.85);
  --bg-overlay:    rgba(11, 10, 10, 0.95);
  --bg-menu:       linear-gradient(160deg,
                     rgba(11, 10, 10, 0.98) 0%,
                     rgba(9, 61, 107, 0.55) 55%,
                     rgba(11, 10, 10, 0.98) 100%);
  
  --text-primary:   #f0ede8;
  --text-secondary: #cfc3b0;
  --text-tertiary:  #8a7f6f;
  --text-inverse:   #0b0a0a;
  
  --border-color:   rgba(255, 255, 255, 0.08);
  --border-soft:    rgba(255, 255, 255, 0.05);
  --border-strong:  rgba(229, 177, 46, 0.25);
  
  --shadow-soft:  0 8px 24px -8px rgba(0, 0, 0, 0.4);
  --shadow-hard:  0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-gold:  0 8px 28px -8px rgba(229, 177, 46, 0.5);
  
  --hamburger-bg:    rgba(11, 10, 10, 0.55);
  --hamburger-border: rgba(229, 177, 46, 0.45);
  
  --video-overlay-start: rgba(11, 10, 10, 0);
  --video-overlay-mid:   rgba(11, 10, 10, 0.4);
  --video-overlay-end:   rgba(11, 10, 10, 0.85);
}






/* ═══════════════════════════════════════════
   TRANSICIONES SUAVES AL CAMBIAR TEMA
   ═══════════════════════════════════════════ */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.4s ease, 
              color 0.4s ease, 
              border-color 0.4s ease,
              box-shadow 0.4s ease !important;
}

/* ═══════════════════════════════════════════
   RESET Y BASE
   ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   VIDEO BACKGROUND
   ═══════════════════════════════════════════ */
.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-primary);
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b0a0a; /* Fondo oscuro corporativo para las franjas */
}

.video-background video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* 👈 La clave: el video nunca se recorta */
}

/* En tema claro, atenuar más el video */
[data-theme="light"] .video-background video {
  opacity: 0.85;
  filter: brightness(1.1) saturate(0.95);
}

/* ═══════════════════════════════════════════
   RESPONSIVE DEL VIDEO
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .video-background video {
    /* En móviles es mejor llenar la pantalla aunque se recorte un poco */
    object-fit: cover; 
  }
}

/* ═══════════════════════════════════════════
   BOTÓN HAMBURGUESA
   ═══════════════════════════════════════════ */
.hamburger {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hamburger-bg);
  border: 1px solid var(--hamburger-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.hamburger:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   BOTÓN TOGGLE DE TEMA (SOL/LUNA)
   ═══════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: 28px;
  right: 100px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hamburger-bg);
  border: 1px solid var(--hamburger-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05) rotate(20deg);
}

.theme-toggle i {
  position: absolute;
  font-size: 1.1rem;
  color: var(--gold);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Icono visible según tema activo */
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(180deg) scale(0); }

[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-180deg) scale(0); }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

/* Icono visible según tema activo */
.theme-toggle .icon-moon { 
  opacity: 1; 
  transform: rotate(0deg) scale(1); 
}
.theme-toggle .icon-sun { 
  opacity: 0; 
  transform: rotate(180deg) scale(0); 
}

/* En tema OSCURO, mostrar sol */
[data-theme="dark"] .theme-toggle .icon-moon { 
  opacity: 0; 
  transform: rotate(-180deg) scale(0); 
}
[data-theme="dark"] .theme-toggle .icon-sun { 
  opacity: 1; 
  transform: rotate(0deg) scale(1); 
}

/* ═══════════════════════════════════════════
   OVERLAY DEL MENÚ
   ═══════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

[data-theme="light"] .menu-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════
   SIDE MENU
   ═══════════════════════════════════════════ */
.side-menu {
  position: fixed;
  top: 0;
  right: -460px;
  z-index: 95;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  padding: 2.4rem 2.8rem 2rem 2.8rem;
  background: var(--bg-menu);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: right 0.55s cubic-bezier(0.77, 0, 0.18, 1);
  overflow-y: auto;
}

.side-menu.active { right: 0; }

.side-menu::-webkit-scrollbar { width: 6px; }
.side-menu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
.side-menu::-webkit-scrollbar-thumb {
  background: rgba(229, 177, 46, 0.35);
  border-radius: 3px;
}

.side-menu-header {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-color);
}

.side-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.side-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.side-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.side-logo-text .vidales {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.side-logo-text .apartments {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.side-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.4rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.4rem 1rem 0;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav a .num {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--gold);
  opacity: 0.55;
  min-width: 26px;
  transition: all 0.35s ease;
}

.side-nav a .label {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.side-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.45s ease;
}

.side-nav a:hover { padding-left: 1rem; }
.side-nav a:hover .num { opacity: 1; color: var(--gold); }
.side-nav a:hover .label { color: var(--gold); letter-spacing: 3px; }
.side-nav a:hover::before { width: 100%; }

.side-lang {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
}

.side-lang .lang-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.9;
}

.lang-buttons {
  display: flex;
  gap: 0.6rem;
}

.lang-buttons button {
  flex: 1;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  transition: all 0.3s ease;
}

[data-theme="light"] .lang-buttons button {
  background: rgba(0, 0, 0, 0.03);
}

.lang-buttons button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(229, 177, 46, 0.08);
}

.lang-buttons button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0a0a;
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.side-footer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  font-weight: 300;
}

.side-footer i {
  color: var(--gold);
  margin-right: 10px;
  width: 14px;
  text-align: center;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════
   HERO (HOME)
   ═══════════════════════════════════════════ */
body.home-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

.hero-fullscreen {
  position: relative;
  z-index: 10;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem 3.5rem 2.4rem 3.5rem;
  max-width: 1440px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-fullscreen > * { pointer-events: auto; }

.hero-topbar {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  max-width: 70%;
  padding-bottom: 2rem;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.2rem;
  pointer-events: auto;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-secondary);
  font-size: 1.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  animation: bounceDown 2.5s ease-in-out infinite;
}

.scroll-hint i {
  color: var(--gold);
  font-size: .9rem;
  opacity: 1.8;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: .6; }
}

.hero-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-weight: 200;
  font-size: .8rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-meta i {
  color: var(--gold);
  margin-right: 8px;
  opacity: .8;
}

/* Logo y tagline */
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-official img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

[data-theme="light"] .logo-official img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo-official img:hover { transform: scale(1.05); }

.logo-icon { display: flex; align-items: baseline; gap: 0; }

.logo-icon .vidales {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.logo-icon .apartments {
  font-size: 1.2rem;
  font-weight: 200;
  margin-left: 6px;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.logo-icon .rio {
  font-size: 1.4rem;
  font-weight: 300;
  margin-left: 10px;
  letter-spacing: 3px;
  color: var(--text-tertiary);
  border-left: 1px solid var(--border-color);
  padding-left: 14px;
}

.hero-tagline {
  font-size: 3.8rem;
  font-weight: 200;
  letter-spacing: 6px;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.8rem;
}

[data-theme="light"] .hero-tagline {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-tagline strong {
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 200;
  letter-spacing: 4px;
  color: var(--text-secondary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

[data-theme="light"] .hero-sub {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-sub i { color: var(--gold); opacity: 0.85; }

/* ═══════════════════════════════════════════
   SECCIÓN DESTACADAS
   ═══════════════════════════════════════════ */
.featured-section {
  position: relative;
  z-index: 10;
  padding: 5rem 3.5rem 4rem;
  background: linear-gradient(
    180deg,
    var(--video-overlay-start) 0%,
    var(--video-overlay-mid) 20%,
    var(--video-overlay-end) 60%,
    var(--bg-primary) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border-strong);
}

.featured-container { max-width: 1400px; margin: 0 auto; }

.featured-header { text-align: center; margin-bottom: 1.5rem; }

.featured-eyebrow {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: .9;
}

.featured-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: .5rem;
  letter-spacing: 4px;
}

.featured-header h2::after {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

.featured-header p {
  color: var(--text-tertiary);
  font-size: .9rem;
  letter-spacing: 2px;
  margin-top: 1.5rem;
}

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

.featured-card {
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-soft);
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hard);
}

.featured-img {
  position: relative;
  height: 360px;
  background-color: var(--bg-tertiary);
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.featured-card:hover .featured-img { transform: scale(1.03); }

.featured-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(229, 177, 46, 0.35);
  font-size: 2.5rem;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .35rem .9rem;
  /*background: rgba(11, 10, 10, 0.85);*/
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.featured-info { padding: 1.4rem 1.5rem 1.5rem; }

.featured-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .5rem;
  line-height: 1.25;
}

.featured-info p {
  font-size: .8rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.featured-info p i { color: var(--gold); margin-right: 5px; }

.featured-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
}

.featured-cta {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  margin: 0 auto 3rem auto; /* ⬅️ Añadimos 3rem de margen abajo */
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s ease;
}

.featured-cta:hover {
  background: rgba(229, 177, 46, 0.1);
  border-color: var(--gold);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════
   FOOTER DE HOME
   ═══════════════════════════════════════════ */
.home-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 3.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.home-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.footer-copy i { margin-right: 6px; }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .25s;
}

.footer-links a:hover { color: var(--gold); }

.footer-address { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-address i { color: var(--gold); margin-right: 6px; opacity: .8; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-fullscreen { padding: 1.5rem 1.8rem 2rem 1.8rem; }
  .hero-center { max-width: 100%; align-items: center; text-align: center; }
  .hero-tagline { font-size: 2.8rem; letter-spacing: 4px; }
  .hero-sub { border-left: none; padding-left: 0; justify-content: center; font-size: .9rem; letter-spacing: 3px; }
  .hero-meta { flex-direction: column; gap: .8rem; text-align: center; }
  .featured-section { padding: 4rem 1.8rem 3rem; }
  .featured-header h2 { font-size: 2.2rem; letter-spacing: 2px; }
  .featured-grid { grid-template-columns: 1fr; }
  .home-footer { padding: 1.5rem 1.8rem; }
  .home-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .hamburger { top: 20px; right: 20px; width: 50px; height: 50px; }
  .theme-toggle { top: 20px; right: 84px; width: 50px; height: 50px; }
  .hero-tagline { font-size: 2rem; letter-spacing: 2px; }
  .logo-official img { height: 35px; }
  .logo-icon .vidales { font-size: 1.4rem; }
  .logo-icon .apartments { font-size: .85rem; }
  .logo-icon .rio { font-size: 1rem; padding-left: 8px; margin-left: 6px; }
  .featured-header h2 { font-size: 1.8rem; }
}


/* ═══════════════════════════════════════════
   AJUSTES ESPECÍFICOS DEL TEMA CLARO
   ═══════════════════════════════════════════ */

/* El video se ve mejor con un filtro suave en claro */
[data-theme="light"] .video-background video {
  opacity: 1;
  filter: none;
}

/* El logo en claro puede necesitar sombra suave */
[data-theme="light"] .logo-icon .vidales {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* El hamburger en claro se ve mejor con más contraste */
[data-theme="light"] .hamburger,
[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(200, 149, 31, 0.4);
}

[data-theme="light"] .hamburger:hover,
[data-theme="light"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--gold);
}

/* El overlay del menú lateral en claro es más sutil */
[data-theme="light"] .side-menu {
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.15);
}

/* El "Explore" hint en claro */
[data-theme="light"] .scroll-hint {
  color: var(--text-tertiary);
}

/* En el panel admin no aplicamos el tema claro */
body.admin-body {
  --bg-primary: #0b0a0a;
  --bg-secondary: #101820;
  --text-primary: #f0ede8;
  --text-secondary: #cfc3b0;
}


/* ═══════════════════════════════════════════
   REDES SOCIALES
   ═══════════════════════════════════════════ */
.social-links {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hamburger-bg);
  border: 1px solid var(--hamburger-border);
  color: var(--gold);
  font-size: .95rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-soft);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0a0a;
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-gold);
}

/* Visibilidad según dispositivo */
.social-links-desktop { display: flex; }
.social-links-mobile  { display: none; }

@media (max-width: 900px) {
  .social-links-desktop { display: none; }
  .social-links-mobile  { 
    display: flex; 
    justify-content: center;
    gap: .8rem;
    margin: .8rem 0;
  }
}


.footer-social {
  display: flex;
  gap: .5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: .85rem;
  text-decoration: none;
  transition: all .25s;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0a0a;
  transform: translateY(-2px);
}







/* ═══════════════════════════════════════════
   FOOTER UNIFICADO
   ═══════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 3.5rem 1.5rem;
  color: var(--text-secondary);
}

.site-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.footer-col h4 {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* Columna 1: Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo img {
  height: 42px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: .6rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: .9rem;
  text-decoration: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: #0b0a0a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* Columnas 2 y 3: listas */
.footer-links-col ul,
.footer-contact-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-links-col a,
.footer-contact-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .5px;
  transition: all .25s;
}

.footer-links-col a:hover,
.footer-contact-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact-col li {
  font-size: .85rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: .5px;
}

.footer-contact-col i {
  color: var(--gold);
  width: 16px;
  text-align: center;
  opacity: .85;
}

/* Línea inferior */
.site-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.footer-copy i {
  margin-right: 6px;
  color: var(--gold);
  opacity: .8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .25s;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .site-footer { padding: 2.5rem 1.8rem 1.5rem; }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-social { justify-content: center; }
  .footer-contact-col li { justify-content: center; }
  .site-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   MENÚ PRE-FOOTER (HORIZONTAL)
   ═══════════════════════════════════════════ */
.pre-footer-nav {
  position: relative;
  z-index: 10;
  background: var(--bg-primary);
  padding: 1.2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 0;
}

.pre-footer-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.pre-footer-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 8px;
  transition: all 0.3s ease;
  position: relative;
}

/* Línea dorada animada al hacer hover */
.pre-footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.pre-footer-nav a:hover {
  color: var(--gold);
}

.pre-footer-nav a:hover::after {
  width: 100%;
}

.nav-sep {
  color: var(--gold);
  opacity: 0.5;
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .pre-footer-nav-inner { gap: 0.8rem; flex-direction: column; }
  .nav-sep { display: none; }
  .pre-footer-nav a { font-size: 1.2rem; }
}


/* ═══════════════════════════════════════════
   SELECTOR DE IDIOMA CON BANDERAS
   ═══════════════════════════════════════════ */
.lang-switcher {
  position: fixed;
  top: 28px;
  right: 172px; /* Ajustado para quedar junto al de tema y hamburguesa */
  z-index: 100;
}

.lang-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hamburger-bg);
  border: 1px solid var(--hamburger-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  font-size: 1.4rem; /* Tamaño de la bandera */
}

.lang-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

/* Menú desplegable */
.lang-dropdown {
  position: absolute;
  top: 65px;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* Ajustes para las imágenes de las banderas */
.lang-toggle img {
  width: 24px;
  height: 24px;
  border-radius: 50%; /* Las hace redondas como el botón */
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-option img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.lang-option i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.lang-option span {
  font-weight: 500;
  color: var(--text-primary);
}

.lang-option:hover {
  background: rgba(229, 177, 46, 0.1);
  color: var(--gold);
}

.lang-option.active {
  background: rgba(229, 177, 46, 0.15);
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .lang-switcher { top: 20px; right: 152px; }
  .lang-toggle { width: 50px; height: 50px; font-size: 1.2rem; }
  .lang-dropdown { top: 58px; }
}