/* ============================================================================
 * SoftGan.Sitio — Layout: Navbar Glassmorphism, Footer y WhatsApp Flotante
 * ========================================================================== */
/* Barra de progreso de lectura superior */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 80;
  background: linear-gradient(90deg, #10b981, #34d399, #fde047);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.75);
  transition: width 80ms linear;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 300ms var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.navbar--scrolled {
  top: 12px;
  left: 1rem;
  right: 1rem;
  max-width: var(--container-max);
  margin-inline: auto;
  height: 66px;
  border-radius: var(--radius-pill);
  background: rgba(7, 25, 19, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(110, 231, 183, 0.2);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--white);
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__tagline {
  font-size: 0.7rem;
  color: var(--forest-100);
  opacity: 0.82;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.65rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Menú móvil */
.mobile-drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(7, 25, 19, 0.97);
  backdrop-filter: blur(18px);
  z-index: 55;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-drawer a.mobile-link {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-drawer__actions {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-toggle,
  .mobile-drawer {
    display: none;
  }
}

/* Footer */
.footer {
  background: var(--forest-950);
  color: rgba(226, 232, 240, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 3.5rem 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer__desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  max-width: 360px;
  color: rgba(226, 232, 240, 0.7);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer__list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer__list a:hover {
  color: var(--forest-500);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.85);
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 14px 32px -6px rgba(22, 163, 74, 0.65);
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 38px -6px rgba(22, 163, 74, 0.75);
}

.wa-float__label {
  display: none;
}

@media (min-width: 640px) {
  .wa-float__label {
    display: inline;
  }
}
