/* Footer compartido — navegación clara en escritorio y móvil. */
.site-footer:not(.footer) {
  box-sizing: border-box;
  width: 100%;
  margin-top: 48px;
  padding: 48px 24px 18px;
  color: #d8e4ed;
  background: linear-gradient(135deg, #101a36 0%, #142744 72%, #104844 100%);
  border-top: 3px solid #0e9f91;
  text-align: left;
}
.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.footer-inner { width: min(1200px, 100%); margin: 0 auto; }
.footer-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #ffffff24; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -.035em; text-decoration: none; }
.footer-brand img { display: block; width: 42px; height: 42px; padding: 4px; object-fit: contain; border-radius: 13px; background: #eff8f6; }
.footer-heading p { max-width: 460px; margin: 0; color: #b9c9d8; line-height: 1.65; text-align: right; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; padding: 30px 0 28px; }
.footer-group { min-width: 0; text-align: left; }
.footer-group h2 { margin: 0 0 14px; color: #ffd071; font-size: 12px; font-weight: 900; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.footer-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-group li { min-width: 0; margin: 0; padding: 0; }
.site-footer:not(.footer) .footer-group a { display: inline-block; max-width: 100%; padding: 2px 0; color: #d8e4ed; font-size: 14px; line-height: 1.55; text-decoration: none; overflow-wrap: anywhere; }
.site-footer:not(.footer) .footer-group a:hover { color: #fff; text-decoration: underline; text-decoration-color: #53d5c3; text-underline-offset: 4px; }
.footer-group a:focus-visible, .footer-brand:focus-visible { outline: 3px solid #ffd071; outline-offset: 4px; border-radius: 3px; }
.footer-detail { margin: 14px 0 0; color: #aebfd0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 24px; padding-top: 16px; border-top: 1px solid #ffffff24; color: #aebfd0; font-size: 12px; line-height: 1.6; }
.footer-bottom span { min-width: 0; overflow-wrap: anywhere; }
.footer-bottom a { color: #d8e4ed; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
}
@media (max-width: 560px) {
  .site-footer:not(.footer) { margin-top: 34px; padding: 34px 18px max(18px, env(safe-area-inset-bottom)); }
  .site-footer.has-floating-assistant { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .footer-heading { align-items: flex-start; flex-direction: column; gap: 10px; padding-bottom: 20px; }
  .footer-brand { font-size: 18px; }
  .footer-brand img { width: 38px; height: 38px; }
  .footer-heading p { max-width: none; font-size: 14px; text-align: left; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0 18px; }
  .footer-group { padding: 18px 0; border-bottom: 1px solid #ffffff24; }
  .footer-group:last-child { border-bottom: 0; }
  .footer-group h2 { margin-bottom: 10px; font-size: 11px; }
  .footer-group ul { gap: 7px; }
  .site-footer:not(.footer) .footer-group a { display: block; width: fit-content; padding: 5px 0; font-size: 15px; }
  .footer-detail { margin-top: 10px; font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 5px; padding-top: 14px; font-size: 12px; }
}
