/* Pie institucional: jerarquía, confianza y acceso directo a la atención. */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
  background:
    radial-gradient(circle at 4% 12%, rgba(235,155,157,.12), transparent 25%),
    radial-gradient(circle at 89% 108%, rgba(131,200,187,.12), transparent 30%),
    linear-gradient(135deg, #061b34 0%, #092747 55%, #0d3155 100%);
  color: #fff;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), #f0c4b5, var(--mint), #9fb8db, var(--pink));
}
.site-footer::after {
  content: "";
  width: 380px;
  height: 380px;
  position: absolute;
  right: -220px;
  top: -230px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.018), 0 0 0 110px rgba(255,255,255,.012);
  pointer-events: none;
}
.footer-grid {
  width: min(1580px, 100%);
  margin: 0 auto;
  padding: 78px 6vw 60px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .55fr 1.25fr .9fr;
  align-items: start;
  gap: clamp(36px, 4vw, 72px);
}
.site-footer .footer-identity,
.site-footer .footer-navigation,
.site-footer .footer-contact,
.site-footer .footer-appointment { display: flex; flex-direction: column; }
.site-footer .footer-identity { gap: 18px; }
.site-footer .footer-brand { width: 270px; align-self: flex-start; justify-content: flex-start; }
.site-footer .footer-brand .official-logo { width: 100%; height: auto; }
.footer-identity > p { max-width: 380px; margin: 0; color: #b9c9d7; font-size: 15px; line-height: 1.75; }
.footer-socials { display: flex !important; flex-direction: row !important; gap: 10px !important; }
.footer-socials a {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  color: #fff;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.footer-socials a:hover { transform: translateY(-5px); background: var(--pink2); border-color: var(--pink2); }
.footer-socials svg { width: 20px; height: 20px; fill: currentColor; }
.header-social svg { width: 13px; height: 13px; fill: currentColor; }

.footer-heading {
  margin-bottom: 20px;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-heading::after { content: ""; width: 38px; height: 3px; margin-top: 10px; display: block; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--mint)); }
.footer-navigation { gap: 6px !important; }
.footer-navigation a {
  width: fit-content;
  padding: 6px 0;
  color: #bdcad6;
  font-size: 15px;
  font-weight: 700;
  transition: color .25s ease, transform .25s ease;
}
.footer-navigation a::before { content: "›"; margin-right: 9px; color: var(--pink); font-size: 19px; }
.footer-navigation a:hover { color: #fff; transform: translateX(5px); }

.footer-contact { gap: 16px !important; }
.footer-contact-item {
  display: grid !important;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 12px !important;
  color: inherit;
}
.footer-contact-item > svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: rgba(235,155,157,.12);
  fill: #f5a8b0;
}
.footer-contact-item > div { display: flex; flex-direction: column; gap: 3px !important; }
.footer-contact-item strong { color: #fff; font-size: 13px; }
.footer-contact-item span { color: #b7c7d5; font-size: 14px; line-height: 1.5; }
a.footer-contact-item:hover span { color: #fff; }
a.footer-contact-item:hover > svg { background: var(--pink2); fill: #fff; }

.site-footer .footer-appointment {
  padding: 28px;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  box-shadow: 0 22px 55px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}
.footer-appointment > span { color: #f4a9b1; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-appointment h3 { margin: 0; color: #fff; font: 700 26px/1.2 Georgia, serif; }
.footer-appointment p { margin: 0 0 8px; color: #bdcad6; font-size: 14px; line-height: 1.65; }
.footer-appointment-btn {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  background: linear-gradient(135deg, #26d366, #17aa57);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 13px 28px rgba(23,170,87,.22);
  transition: transform .3s ease, box-shadow .3s ease;
}
.footer-appointment-btn:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(23,170,87,.34); }
.footer-appointment-btn b { font-size: 21px; }

.footer-bottom {
  width: min(1580px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 24px 0 28px;
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px !important;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom span { color: #8299ad; font-size: 12px; }
.footer-legal {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  gap: 5px !important;
}
.footer-credit {
  grid-column: 2;
  grid-row: 1;
  min-height: 52px;
  padding: 7px 10px 7px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.footer-credit span { font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.footer-credit img { width: 115px; height: auto; display: block; filter: brightness(1.18) saturate(1.05); }
.footer-credit:hover { transform: translateY(-3px); border-color: rgba(131,200,187,.34); background: rgba(255,255,255,.075); }

@media (max-width: 1150px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-appointment { align-self: stretch; }
}
@media (max-width: 700px) {
  .footer-grid { padding: 64px 24px 42px; grid-template-columns: 1fr; gap: 38px; }
  .site-footer .footer-brand { width: 235px; }
  .footer-bottom { width: calc(100% - 48px); grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-legal { align-items: center; }
  .footer-legal, .footer-credit { grid-column: 1; grid-row: auto; }
  .site-footer .footer-appointment { padding: 24px 21px; }
}
