/* ==========================================================
   Ingenial Web · Navbar, progress bar, footer
   ========================================================== */

/* --- Progress bar (PRD sección 17) --- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- Navbar cristal --- */
.navbar {
  position: fixed;
  top: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 2rem));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out), background var(--dur-mid) var(--ease-out);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.85);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink);
}
.navbar__logo img { height: 30px; width: auto; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  position: relative;
  padding-block: 0.3rem;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--dur-fast) var(--ease-out);
}
.navbar__links a:hover { color: var(--color-ink); }
.navbar__links a:hover::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 0.75rem; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.navbar__toggle span {
  width: 20px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .navbar__links { display: none; }
  .navbar__toggle { display: flex; }
}

/* --- Footer --- */
.footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand { max-width: 320px; }
.footer__brand img { height: 32px; margin-bottom: var(--space-sm); }
.footer__brand p { font-size: var(--fs-small); }

.footer__col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { font-size: 0.9rem; transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--color-primary); }

.footer__social { display: flex; gap: 0.75rem; margin-top: var(--space-sm); }
.footer__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.footer__social a:hover { background: var(--color-primary); transform: translateY(-3px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: var(--fs-small);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Botón flotante de WhatsApp (sitio completo) --- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@media (max-width: 600px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}
