/* ============================================
   RIGA Impulsora — S00064
   components.css — Header, footer, botón flotante WhatsApp
============================================ */

/* ============================================
   HEADER
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(6px);
}

.header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__logo {
  height: 96px;
  width: auto;
}

.header__logo--light {
  display: none;
}

.site-header.is-scrolled .header__logo--dark {
  display: none;
}

.site-header.is-scrolled .header__logo--light {
  display: block;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  display: inline-block;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.site-header.is-scrolled .header__nav a {
  color: var(--color-text);
}

.header__nav a:hover {
  color: var(--color-accent);
}

.header__nav-cta {
  margin-left: 12px;
}

.header__nav-cta a {
  color: var(--color-primary) !important;
}

.header__nav-cta a::before {
  content: none !important;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.header__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.site-header.is-scrolled .header__toggle span {
  background: var(--color-primary);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  border-top: 1px solid var(--color-border-dark);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 24px;
}

.footer__logo {
  height: 93px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 34ch;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.footer__links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer__links a {
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer__contact a,
.footer__contact p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer__contact a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a:hover {
  color: var(--color-accent);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__credit a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
============================================ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 90;
  transition: transform 0.2s ease;
}

.whatsapp-float .icon {
  width: 26px;
  height: 26px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ============================================
   RESPONSIVE (header/footer)
============================================ */
@media (max-width: 1023px) {
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    background: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 22px;
    width: 100%;
    padding: 0 24px;
    text-align: center;
  }

  .header__nav a {
    font-size: 1.3rem;
    color: #fff;
  }

  .header__nav-cta {
    margin-top: 10px;
    margin-left: 0;
  }

  .header__nav-cta a {
    color: var(--color-primary) !important;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }
}
