/* Pie compartido por todas las páginas. No modifica header ni contenido. */
.site-footer {
  background: #081522;
  color: #f1f6fb;
}
.site-footer > .container {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  grid-template-areas:
    "logo contact"
    "networks contact"
    "copyright copyright";
  column-gap: clamp(44px, 7vw, 110px);
  row-gap: 20px;
  padding-top: 28px;
}
.site-footer__top {
  display: contents;
}
.site-footer__heading {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.site-footer__contact { grid-area: contact; }
.site-footer__contact address {
  display: grid;
  gap: 10px;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.55;
}
.site-footer__contact address > p,
.site-footer__contact address > a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  color: #ced9e4;
  width: fit-content;
  max-width: 100%;
}
.site-footer__contact address > a { min-height: 26px; transition: color .2s; }
.site-footer__contact address > a:hover { color: #fff; }
.site-footer__contact address span { overflow-wrap: anywhere; }
.site-footer__contact svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #4ba6f7;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer__networks { grid-area: networks; justify-self: start; min-width: 0; }
.site-footer__networks .site-footer__heading { display: flex; align-items: center; gap: 10px; }
.site-footer__networks .site-footer__heading::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0e7ee8; }
.site-footer__social-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.site-footer__social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #2b3a49;
  border-radius: 12px;
  background: #182532;
  transition: transform .25s, background-color .25s, border-color .25s;
}
.site-footer__social img { display: block; width: 22px; height: 22px; object-fit: contain; }
.site-footer a.site-footer__social:hover { background: #0e6abd; border-color: #318ce0; transform: translateY(-3px); }
.site-footer a.site-footer__social--whatsapp:hover { background: #157d4b; border-color: #269c62; }
.site-footer__brand-row {
  display: contents;
}
.site-footer__logo {
  grid-area: logo;
  display: block;
  align-self: start;
  width: 185px;
  max-width: 100%;
}
.site-footer__logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.site-footer__copyright { grid-area: copyright; margin: 0; padding: 2px 0 23px; text-align: center; color: #7890a3; font-size: .8125rem; line-height: 1.7; }
.site-footer a:focus-visible { outline: 2px solid #73bafd; outline-offset: 5px; }

/* WhatsApp permanece fuera del footer para no quedar recortado por sus capas. */
.whatsapp-floating {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff3b;
  border-radius: 50%;
  background: #1bc866;
  box-shadow: 0 7px 23px #031a1540;
  isolation: isolate;
  transition: background-color .25s, box-shadow .25s;
}
.whatsapp-floating img { position: relative; width: 32px; height: 32px; display: block; }
.whatsapp-floating::before,
.whatsapp-floating::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid #1bc866;
  border-radius: inherit;
  background: #1bc86620;
  pointer-events: none;
  animation: whatsapp-footer-pulse 2.8s ease-out infinite;
}
.whatsapp-floating::after { animation-delay: 1.4s; }
.whatsapp-floating:hover { background: #13aa56; box-shadow: 0 8px 28px #063d274a; }
.whatsapp-floating:hover::before,
.whatsapp-floating:hover::after,
.whatsapp-floating:focus-visible::before,
.whatsapp-floating:focus-visible::after { animation-play-state: paused; }
.whatsapp-floating:focus-visible { outline: 3px solid #075f2b; outline-offset: 6px; }
.whatsapp-floating__label {
  position: absolute;
  right: calc(100% + 13px);
  padding: 8px 13px;
  border-radius: 8px;
  background: #081522;
  color: #fff;
  font-size: .8125rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(5px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.whatsapp-floating:hover .whatsapp-floating__label,
.whatsapp-floating:focus-visible .whatsapp-floating__label { opacity: 1; visibility: visible; transform: none; }
.menu-open .whatsapp-floating { visibility: hidden; pointer-events: none; }
@keyframes whatsapp-footer-pulse {
  0% { transform: scale(1); opacity: .45; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 700px) {
  .site-footer > .container { grid-template-columns: 1fr; grid-template-areas: "logo" "contact" "networks" "copyright"; gap: 22px; padding-top: 26px; }
  .site-footer__heading { margin-bottom: 14px; }
  .site-footer__logo { width: 175px; }
  .site-footer__copyright { padding: 0 0 95px; text-align: left; }
  .whatsapp-floating { right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .whatsapp-floating img { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-floating::before,
  .whatsapp-floating::after { animation: none; opacity: 0; }
  .site-footer__social,
  .whatsapp-floating,
  .whatsapp-floating__label { transition: none; }
}
