/* V13.7 — Footer institucional horizontal, inspirado en la referencia aprobada */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 4.2vw, 66px) clamp(34px, 6.9vw, 112px) 22px;
  color: #153b4c;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(34,160,158,.075), transparent 32%),
    linear-gradient(180deg, #edf3ef 0%, #f4f7f3 100%);
  border-top: 1px solid rgba(9,67,78,.08);
}
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -265px;
  bottom: -325px;
  border: 1px solid rgba(0,139,152,.075);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(0,139,152,.022), 0 0 0 64px rgba(0,139,152,.014);
  pointer-events: none;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(245px, 1.25fr) minmax(145px, .78fr) minmax(205px, .98fr) minmax(245px, 1fr);
  gap: clamp(28px, 3.2vw, 58px);
  align-items: start;
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
}
.footer-brand-block,
.footer-nav,
.footer-contact-block {
  min-width: 0;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: min(100%, 245px);
  margin: -2px 0 13px;
  text-decoration: none;
  outline-offset: 5px;
}
.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 5px 9px rgba(18,55,66,.055));
}
.footer-tagline {
  position: relative;
  margin: 0 0 10px;
  padding-top: 12px;
  color: #153b4c;
  font: 400 clamp(22px, 1.65vw, 28px)/1.12 var(--serif);
  letter-spacing: -.35px;
}
.footer-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 1px;
  background: #0797a1;
}
.footer-tagline em {
  color: #087f8c;
  font-style: italic;
}
.footer-location-note {
  color: #6d8286;
  font: 600 9px/1.5 var(--sans);
  letter-spacing: .085em;
  text-transform: uppercase;
}
.footer-nav,
.footer-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 5px;
}
.footer-nav h3,
.footer-contact-block > h3 {
  position: relative;
  margin: 0 0 7px;
  padding-bottom: 11px;
  color: #153b4c;
  font: 400 23px/1.1 var(--serif);
  letter-spacing: -.2px;
}
.footer-nav h3::after,
.footer-contact-block > h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 27px;
  height: 1px;
  background: #0797a1;
}
.footer-nav a,
.footer-privacy-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  color: #5b737b;
  text-align: left;
  text-decoration: none;
  font: 400 12px/1.5 var(--sans);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.footer-nav a::after,
.footer-privacy-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: #0797a1;
  transition: right .2s ease;
}
.footer-nav a:hover,
.footer-privacy-link:hover {
  color: #007f8d;
  transform: translateX(2px);
}
.footer-nav a:hover::after,
.footer-privacy-link:hover::after { right: 0; }
.footer-secondary-heading { margin-top: 10px !important; }
.footer-contact-block { gap: 13px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #526d76;
  text-decoration: none;
  font: 400 11.5px/1.55 var(--sans);
  transition: color .2s ease, transform .2s ease;
}
.footer-contact-item svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: #078b98;
}
a.footer-contact-item:hover {
  color: #007f8d;
  transform: translateX(2px);
}
.footer-address { cursor: default; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}
.footer-social-label {
  margin-right: 2px;
  color: #607b80;
  font: 700 9px/1 var(--sans);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.footer-social-button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(21,59,76,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: #1877f2;
  box-shadow: 0 3px 9px rgba(13,56,66,.045);
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.footer-social-button svg { width: 17px; height: 17px; fill: currentColor; }
.footer-social-button.facebook:hover {
  transform: translateY(-3px);
  background: #1877f2;
  color: #fff;
  box-shadow: 0 7px 16px rgba(24,119,242,.22);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1510px;
  margin: clamp(35px, 3.5vw, 52px) auto 0;
  padding-top: 17px;
  border-top: 1px solid rgba(31,77,86,.15);
}
.footer-copyright,
.footer-credit {
  margin: 0;
  color: #718488;
  font: 400 9.5px/1.6 var(--sans);
}
.footer-credit strong {
  color: #315966;
  font-weight: 700;
}

/* Tablet landscape: retain horizontal reading order in a balanced 2x2 grid. */
@media (max-width: 1000px) {
  .site-footer { padding: 44px 34px 20px; }
  .footer-main {
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    gap: 34px 48px;
  }
  .footer-brand { width: 220px; }
  .footer-bottom { margin-top: 34px; }
}

/* Mobile portrait: stack the columns only when the viewport is genuinely narrow. */
@media (max-width: 600px) {
  .site-footer { padding: 38px 24px 20px; }
  .footer-main {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
  }
  .footer-brand { width: 205px; margin-bottom: 10px; }
  .footer-logo { max-height: 165px; }
  .footer-tagline { font-size: 24px; }
  .footer-nav,
  .footer-contact-block { gap: 10px; }
  .footer-nav h3,
  .footer-contact-block > h3 { font-size: 22px; margin-bottom: 5px; }
  .footer-nav a,
  .footer-privacy-link { font-size: 12px; }
  .footer-contact-item { font-size: 12px; }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 30px;
    padding-top: 14px;
  }
  .footer-copyright,
  .footer-credit { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-nav a,
  .footer-privacy-link,
  .footer-nav a::after,
  .footer-privacy-link::after,
  .footer-contact-item,
  .footer-social-button { transition: none; }
}
