/* ============================================================
   LAYOUT.CSS — Topbar, Navegación y Footer Premium
   Grupo Vastil — Inmobiliaria Premium
   ============================================================ */

/* ── TOP BAR ── */
.topbar {
  background: var(--dark);
  color: var(--mid);
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-sep {
  opacity: 0.35;
}
.topbar a {
  color: var(--mid);
  text-decoration: none;
  transition: var(--transition);
}
.topbar a:hover {
  color: var(--gold);
}
.topbar-socials {
  display: flex;
  gap: 16px;
}
.topbar-socials a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── NAVEGACIÓN FLOTANTE INTELIGENTE ── */
#main-navigation {
  position: fixed;
  top: 38px; /* Altura exacta de la topbar */
  left: 0;
  width: 100%;
  padding: 22px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado al hacer scroll (esmerilado luxury con slideDown) */
body.scrolled #main-navigation {
  position: fixed;
  top: 0;
  padding: 15px 8%;
  background: var(--dark-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

#main-navigation .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
#main-navigation .logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
#main-navigation .logo:hover img {
  opacity: 0.85;
}
body:not(.dark-hero-active) #main-navigation:not(.scrolled) .logo img {
  filter: invert(1);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Nav links color en secciones claras cuando no hay scroll */
body:not(.scrolled) #main-navigation .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

.nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px;
  text-decoration: none;
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(197, 168, 109, 0.25);
  transform: translateY(-1px);
}

/* Hamburger para móviles */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── FOOTER DE ALTO ESTÁNDAR ── */
footer {
  background: var(--dark);
  color: var(--mid);
  padding: 0 0 40px;
  border-top: 1px solid var(--border-glass);
}

/* ── TOP BAR ── */
.footer-topbar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 8%;
}
.footer-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 300;
  color: var(--mid);
}
.footer-topbar-item svg {
  color: var(--gold);
  flex-shrink: 0;
}
.footer-topbar-sep {
  color: var(--border-glass);
  font-size: 16px;
  line-height: 1;
}

/* ── MAIN GRID ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.4fr;
  gap: 48px;
  padding: 72px 8% 64px;
  margin-bottom: 0;
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 24px;
}
.footer-brand .footer-logo span {
  color: var(--gold);
  font-style: italic;
}
.footer-brand .footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 28px;
  font-weight: 300;
}
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials .social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: var(--transition);
}
.footer-socials .social-link .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-socials .social-link .social-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-socials .social-link:hover {
  color: var(--gold);
}
.footer-socials .social-link:hover .social-icon {
  border-color: var(--gold);
  background: rgba(197,168,109,0.06);
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 30px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 14px;
  color: var(--mid);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 300;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-contact-item {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.newsletter-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 20px;
  font-weight: 300;
}

.footer-col .newsletter-form {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}
.footer-col .newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  color: var(--white);
  font-size: 13px;
  font-family: var(--sans);
  transition: var(--transition);
}
.footer-col .newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}
.footer-col .newsletter-form button {
  background: var(--gold);
  border: none;
  color: var(--dark);
  padding: 0 20px;
  cursor: pointer;
  transition: var(--transition);
}
.footer-col .newsletter-form button:hover {
  background: var(--gold-hover);
}

/* ── NEWSLETTER ZONES ── */
.footer-zones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.footer-zone {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mid);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── TRUST BAR ── */
.footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 8%;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin: 0 0 40px;
}
.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.04em;
}
.footer-trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}
.footer-trust-sep {
  color: var(--border-glass);
  font-size: 16px;
}

/* ── BOTTOM BAR ── */
.footer-bottom {
  border-top: none;
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 300;
}
.footer-copy {
  color: var(--mid-dark);
}
.footer-legal a {
  color: var(--mid-dark);
  text-decoration: none;
  margin-left: 24px;
  transition: var(--transition);
}
.footer-legal a:hover {
  color: var(--gold);
}
