.footer-main {
  background-color: #111214;      /* fons fosc com a la imatge */
  color: #f5f5f5;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-list li {
  margin-bottom: 0.4rem;
  color: #d6d6d6;
}

.footer-list a {
  color: #d6d6d6;
  text-decoration: none;
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-logo-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  opacity: 0.95;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 0.75rem 0;
}

.footer-bottom small {
  color: #b9b9b9;
  font-size: 0.75rem;
}

.social-strip{
  height: 200px;
}

.social-icon svg{
  width: 34px;
  height: 34px;
}

.social-title{
  font-size: 14px;
  line-height: 1.2;
}

.social-desc{ 
  font-size: 12px; 
  line-height: 1.2; 
}

.social-item{ display:block; color: inherit; }
.social-item:hover{ opacity: .85; }
.social-item:focus-visible{ outline: 2px solid currentColor; outline-offset: 4px; border-radius: 8px; }
.social-icon svg{ width: 34px; height: 34px; }

.social-item{ padding: 0; }

.footer-logos{
  border-top: 1px solid #222;
}

.logo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-logo{
  max-height: 105px;
  width: auto;
  max-width: 100%;
  transition: transform .15s ease, opacity .15s ease;
}

.logo-link:hover .footer-logo{
  transform: translateY(-1px);
  opacity: .9;
}

.logo-link:focus-visible{
  outline: 2px solid rgba(13,110,253,.5); /* bootstrap primary-ish */
  outline-offset: 3px;
  border-radius: 8px;
}

/* Whatsapp xat */

.wa-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

/* Floating Action Button */
.wa-fab {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #25d366;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.wa-fab:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.wa-fab:active { transform: translateY(0); }
.wa-fab svg { width: 34px; height: 34px; fill: #fff; }

/* Popup */
.wa-popup {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 340px;
  max-width: calc(100vw - 40px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  background: #fff;
  transform-origin: bottom right;
  animation: waIn .14s ease-out;
}
@keyframes waIn {
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.wa-header {
  background: linear-gradient(90deg, #ae001c, #dc3545);
  color: #fff;
  padding: 16px 16px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wa-brand { font-size: 14px; opacity: .95; }
.wa-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.wa-body {
  padding: 18px 16px 16px 16px;
  background: #f3f7f6;
}

.wa-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  position: relative;
}
.wa-bubble:before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -6px 6px 12px rgba(0,0,0,.04);
}
.wa-hello { font-size: 20px; margin-bottom: 6px; color: #2a2a2a; }
.wa-question { font-size: 16px; color: #444; }

.wa-cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  border-radius: 999px;
  background: #ae001c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(37,211,102,.25);
  transition: transform .12s ease;
}
.wa-cta:hover { 
  transform: translateY(-1px); 
  color: #000;
}

@media (max-width: 576px){
  .social-strip{ height: auto; padding: 16px 0; }
}

/* Responsive: espais entre columnes en mòbil */
@media (max-width: 767.98px) {
  .footer-main .col-12 {
    margin-bottom: 2rem;
  }
}

@keyframes blinkContactAE001C {
  0%, 100% { color: inherit; }
  25%, 75% { color: #AE001C; }
}

#footer_contact.blink-contact,
#footer_contact.blink-contact * {
  animation: blinkContactAE001C .8s ease-in-out 3;
}
