/*
 * Soul Therapy Dogs — footer para Astra Free
 * El HTML se inserta en un único Widget HTML del footer.
 * Prefijo de aislamiento: std-footer-
 */

:root {
  --std-footer-night: #061827;
  --std-footer-navy: #102a46;
  --std-footer-red: #c93b3d;
  --std-footer-rose: #eda7a8;
  --std-footer-paper: #f5f2ec;
  --std-footer-muted: #b9c7d0;
  --std-footer-white: #ffffff;
}

/* Astra Free: convierte la fila primaria en un contenedor de ancho completo. */
body .site-primary-footer-wrap {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
body .site-primary-footer-wrap .ast-builder-grid-row,
body .site-primary-footer-wrap .site-primary-footer-inner-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .site-primary-footer-wrap .site-footer-section,
body .site-primary-footer-wrap .footer-widget-area,
body .site-primary-footer-wrap .ast-builder-layout-element {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: initial !important;
}

body .site-primary-footer-wrap .widget,
body .site-primary-footer-wrap .widget-area,
body .site-primary-footer-wrap .widget_block,
body .site-primary-footer-wrap .wp-block-shortcode {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.std-footer-shell,
.std-footer-shell * {
  box-sizing: border-box;
}

.std-footer-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  color: var(--std-footer-paper);
  font-family: inherit;
  line-height: 1.6;
}

.std-footer-container {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}

.std-footer-shell a {
  color: inherit;
  text-decoration: none;
}

.std-footer-shell a:focus-visible {
  outline: 3px solid var(--std-footer-rose);
  outline-offset: 4px;
}

/* CTA */
.std-footer-cta {
  border-top: 4px solid var(--std-footer-red);
  background: var(--std-footer-rose);
  color: var(--std-footer-night);
}

.std-footer-cta__inner {
  display: flex;
  min-height: 164px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 30px;
}

.std-footer__eyebrow {
  margin: 0 0 10px;
  color: #6f2028;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.std-footer-cta h2 {
  max-width: 720px;
  margin: 0;
  color: var(--std-footer-night);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.std-footer__button {
  display: inline-flex;
  min-width: 178px;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 2px solid var(--std-footer-night);
  border-radius: 999px;
  background: var(--std-footer-night);
  color: var(--std-footer-white) !important;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.std-footer__button:hover {
  background: transparent;
  color: var(--std-footer-night) !important;
  transform: translateY(-2px);
}

/* Contenido principal */
.std-footer-main {
  background: var(--std-footer-night);
}

.std-footer-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.65fr) minmax(240px, 1fr);
  gap: clamp(30px, 4vw, 54px);
  padding-block: clamp(38px, 5vw, 58px);
}

.std-footer-brand__logo {
  display: block;
  width: min(150px, 52vw);
  height: auto;
  margin: 0 0 18px;
  object-fit: contain;
}

.std-footer-brand__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.std-footer-brand p {
  max-width: 530px;
  margin: 0;
  color: var(--std-footer-muted);
  font-size: 0.93rem;
}

.std-footer-brand__location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  color: var(--std-footer-paper);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.std-footer-brand__location::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--std-footer-red);
  content: "";
}

.std-footer__title {
  margin: 0 0 14px;
  color: var(--std-footer-rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.std-footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.std-footer-nav li + li {
  margin-top: 3px;
}

.std-footer-nav a,
.std-footer-contact address a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--std-footer-paper);
  font-weight: 650;
  text-underline-offset: 5px;
}

.std-footer-nav a:hover,
.std-footer-contact a:hover {
  color: var(--std-footer-rose);
  text-decoration: underline;
}

.std-footer-contact address {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--std-footer-muted);
  font-style: normal;
}

.std-footer-contact address span {
  display: block;
  margin-top: 7px;
}

.std-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.std-footer-social a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--std-footer-paper);
  font-size: 0.86rem;
  font-weight: 750;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.std-footer-social a:hover {
  border-color: var(--std-footer-rose);
  background: rgba(237, 167, 168, 0.12);
}

/* Franja legal y crédito */
.std-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--std-footer-navy);
}

.std-footer-legal__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  padding-right: clamp(180px, 14vw, 225px);
  color: var(--std-footer-muted);
  font-size: 0.9rem;
}

.std-footer-legal p {
  margin: 0;
}

.std-footer-credit a {
  color: var(--std-footer-paper);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--std-footer-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.std-footer-credit a:hover {
  color: var(--std-footer-rose);
}

@media (max-width: 900px) {
  .std-footer-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .std-footer-main__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .std-footer-brand {
    grid-column: 1 / -1;
  }

  .std-footer-legal__inner {
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .std-footer-container {
    width: min(calc(100% - 32px), 1120px);
  }

  .std-footer-cta__inner {
    min-height: 0;
  }

  .std-footer__button {
    width: 100%;
  }

  .std-footer-main__inner {
    grid-template-columns: 1fr;
  }

  .std-footer-brand {
    grid-column: auto;
  }

  .std-footer-legal__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 26px 88px;
    padding-right: 0;
  }
}

.std-footer__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .std-footer-shell *,
  .std-footer-shell *::before,
  .std-footer-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
