/* ============================================
   SINERGIADS — LAYOUT CORREGIDO
   layout.css — v2.1
============================================ */

/* ---- HEADER — fondo desde el inicio, estable ---- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243,242,238,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47,47,47,0.07);
  transition: box-shadow var(--t);
}
.hdr.scrolled {
  background: rgba(243,242,238,0.98);
  box-shadow: 0 1px 0 rgba(47,47,47,0.08), 0 4px 20px rgba(47,47,47,0.05);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

/* LOGO */
.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-wrap img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--t);
}
.logo-wrap:hover img { opacity: 0.75; }

/* NAV desktop — más legible */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--t);
  color: var(--txt);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-link:hover {
  background: var(--bg-c);
  color: var(--dark);
}
.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

/* HEADER ACTIONS */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-wa-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #25D366;
  color: white;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-wa-hdr:hover { background: #1EBA5A; transform: translateY(-1px); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  padding: 3px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE NAV */
.mob-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--bg-w);
  z-index: 99;
  padding: 1.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  border-top: 1px solid var(--bdr);
}
.mob-nav.open { display: flex; }
.mob-nav .nav-link {
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
}
.mob-nav .btn { margin-top: 1rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark-2);
  padding: 5rem 0 2rem;
  color: rgba(255,255,255,0.45);
}
.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
.logo-footer img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--t);
}
.logo-footer:hover img { opacity: 0.95; }
.ft-tagline {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 260px;
}
.ft-social { display: flex; gap: 8px; margin-top: 1.4rem; }
.ft-soc {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all var(--t);
}
.ft-soc:hover { background: var(--blue); color: white; }
.ft-soc svg { width: 14px; height: 14px; }
.ft-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ft-links { display: flex; flex-direction: column; gap: 0.5rem; }
.ft-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  transition: color var(--t);
}
.ft-link:hover { color: rgba(255,255,255,0.85); }
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.74rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.ft-legal { display: flex; gap: 1.5rem; }
