.floating-whatsapp {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 64px);
  z-index: 100;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}
.floating-whatsapp:hover, .floating-whatsapp:focus-visible { background: #128c4f; color: #fff; }
.floating-whatsapp:focus-visible { outline: 3px solid #192478; outline-offset: 3px; }
.floating-whatsapp svg { width: 28px; height: 28px; }
@media print { .floating-whatsapp { display: none !important; } }

.back-to-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #8c96c5;
  color: #fff;
}
.back-to-top:hover, .back-to-top:focus-visible { background: #707db6; color: #fff; }
.back-to-top[hidden] { display: none; }
.back-to-top:focus-visible { outline: 3px solid #192478; outline-offset: 3px; }
.back-to-top svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.site-footer {
  margin-top: 5rem;
  padding: 4.75rem 0 5rem;
  background: #192478;
  color: #fff;
  font-family: "Fira Sans", "Segoe UI", sans-serif;
}

.wl-home + .site-footer { margin-top: 0; }

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.6fr) 180px;
  column-gap: 3rem;
  row-gap: 2rem;
  width: min(100% - 3rem, var(--header-max, 1280px));
  margin: 0 auto;
}

.footer-brand img { display: block; width: min(100%, 250px); height: auto; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-social a, .footer-social-placeholder { display: block; width: 56px; height: 56px; }
.footer-social img { display: block; width: 100%; height: 100%; }
.footer-social a:hover, .footer-social a:focus-visible { opacity: .75; }
.footer-portfolio {
  position: absolute;
  top: -9rem;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  width: 200px;
  height: 200px;
  padding: 1.5rem;
  border-radius: 50%;
  background: #294ef5;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}
.footer-portfolio img { width: 52px; height: 64px; }
a.footer-portfolio:hover, a.footer-portfolio:focus-visible { background: #3d61ff; color: #fff; }
.footer-contact { grid-column: 1; }
.footer-legal { grid-column: 2 / 4; align-self: end; }
.footer-contact, .footer-legal { font-size: 1.05rem; line-height: 1.55; }
.footer-contact h2 { margin: 0 0 .5rem; color: #00e5e9; font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.footer-contact p, .footer-legal p { margin: .35rem 0 0; }
.footer-contact a, .footer-legal a { color: #fff; text-decoration: none; }
.footer-contact a:hover, .footer-legal a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem; padding-top: 3rem; }
  .footer-social { grid-column: 1 / -1; }
  .footer-legal { grid-column: 2; }
  .footer-portfolio { top: -9rem; width: 160px; height: 160px; font-size: 1.1rem; }
  .footer-portfolio img { width: 42px; height: 50px; }
}

@media (max-width: 600px) {
  .site-footer { padding: 3rem 0; }
  .footer-inner { width: min(100% - 2rem, 480px); grid-template-columns: 1fr; padding-top: 5rem; gap: 1.8rem; }
  .footer-brand { max-width: 190px; }
  .footer-social { grid-column: 1; gap: .75rem; }
  .footer-social a, .footer-social-placeholder { width: 46px; height: 46px; }
  .footer-contact, .footer-legal { grid-column: 1; }
  .footer-portfolio { top: -7rem; width: 135px; height: 135px; padding: 1rem; font-size: .95rem; }
  .footer-portfolio img { width: 34px; height: 42px; }
}
