/* ============================================================
   MAQUIMOL Colombia - Footer Styles
   Main Footer / Widgets / Bottom Bar / Back to Top / Responsive
   ============================================================ */

/* --------------------------------------------
   1. MAIN FOOTER
   -------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0;
  position: relative;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--primary-lighter);
}

.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6 {
  color: var(--white);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* --------------------------------------------
   2. WIDGET TITLES
   -------------------------------------------- */
.footer-widget {
  margin-bottom: 30px;
}

.footer-widget .widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-lighter);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(74, 158, 255, 0.3);
  position: relative;
}

.footer-widget .widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-lighter);
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-widget ul li a {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-widget ul li a::before {
  content: "\203A";
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.footer-widget ul li a:hover::before {
  transform: translateX(4px);
}

/* Footer About Widget */
.footer-about .footer-logo {
  max-height: 45px;
  margin-bottom: 16px;
}

.footer-about p {
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: var(--primary-lighter);
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-lighter);
  transform: translateY(-2px);
}

/* --------------------------------------------
   3. BOTTOM BAR
   -------------------------------------------- */
.footer-bottom {
  background: rgba(0, 0, 0, 0.15);
  padding: 15px 0;
  margin-top: 40px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-developer {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-developer a {
  color: var(--primary-lighter);
  font-weight: 500;
  text-decoration: none;
}

.footer-developer a:hover {
  text-decoration: underline;
}

.footer-developer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff !important;
  font-size: 0.75rem;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.footer-developer-whatsapp:hover {
  transform: scale(1.15);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
  color: var(--primary-lighter);
}

/* --------------------------------------------
   4. BACK TO TOP
   -------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-lighter);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------
   5. RESPONSIVE FOOTER
   -------------------------------------------- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}
