/* ===== Fundación Formando Futuro — Footer ===== */

.site-footer{
  background: linear-gradient(180deg, #26063a, var(--color-primary-dark) 60%);
  color: rgba(255,255,255,.85);
}

.footer__top{
  padding-block: 64px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 36px;
}

.footer__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer__brand img{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.footer__brand span{
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}
.footer__about p{ font-size: .92rem; color: rgba(255,255,255,.7); }

.site-footer h4{
  color: #fff;
  font-size: .95rem;
  letter-spacing: .03em;
  margin-bottom: 16px;
}
.footer__links li + li{ margin-top: 10px; }
.footer__links a{
  font-size: .92rem;
  color: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease, transform .2s ease;
}
.footer__links a:hover{ color: #fff; transform: translateX(3px); }
.footer__links a svg{ width: 12px; height: 12px; flex-shrink: 0; opacity: .8; }

.footer__social{
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.footer__social a{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  transition: background .2s ease, transform .2s ease;
}
.footer__social a:hover{ background: var(--color-accent); color: var(--color-primary-dark); transform: translateY(-3px); }
.footer__social svg{ width: 18px; height: 18px; }

.footer__qr{
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.footer__qr img{ width: 64px; height: 64px; border-radius: 8px; background: #fff; padding: 4px; }
.footer__qr span{ font-size: .78rem; color: rgba(255,255,255,.65); line-height: 1.4; }

.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 18px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.footer__bottom a{ color: rgba(255,255,255,.85); font-weight: 600; }
.footer__bottom a:hover{ color: var(--color-accent); }

@media (max-width: 900px){
  .footer__top{ grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px){
  .footer__top{ grid-template-columns: 1fr; padding-block: 48px 24px; }
}

/* ===== WhatsApp floating widget ===== */
.whatsapp-widget{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.whatsapp-float{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  border: none;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width: 30px; height: 30px; }

.whatsapp-popup{
  width: min(320px, calc(100vw - 44px));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.4);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(.9) translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.whatsapp-popup.is-open{
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}
.whatsapp-popup__header{
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
}
.whatsapp-popup__close{
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.whatsapp-popup__close svg{ width: 14px; height: 14px; }
.whatsapp-popup__body{ padding: 18px; }

.whatsapp-bubble{
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border-top-left-radius: 4px;
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--color-ink);
  margin-bottom: 16px;
}
.whatsapp-view__hint{ font-size: .85rem; color: var(--color-ink-soft); margin-bottom: 12px; }

.whatsapp-sedes{ display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.whatsapp-sedes a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: background .2s ease, color .2s ease;
}
.whatsapp-sedes a:hover{ background: var(--color-primary); color: #fff; }
.whatsapp-sedes a svg{ width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 480px){
  .whatsapp-widget{ right: 14px; bottom: 14px; }
}
