/* Footer Xtantos — portado desde la landing de HERENCIA.
   Todo cuelga de .site-footer para no interferir con los estilos de la app. */

.site-footer {
  --blue: #1f75c0;
  --blue-light: #79c1d9;
  --ink: #272727;
  --ink-strong: #0d0d0d;
  --white: #fff;
  --font-body: "Barlow Semi Condensed", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 8.91vw, 154px);
  --wrap: 1420px;
  --fs-copy: clamp(16px, 1.22vw, 21px);
  --fs-mail: clamp(15px, 0.98vw, 17px);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);

  background: var(--blue);
  color: var(--white);
  padding-block: clamp(48px, 5.79vw, 100px) clamp(42px, 4.86vw, 84px);
  text-align: center;
  font-family: var(--font-body);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after { box-sizing: border-box; }

.site-footer h2,
.site-footer p { margin: 0; }

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

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

.site-footer img {
  display: block;
  max-width: 100%;
}

.site-footer button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-footer .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(32px, 4.63vw, 80px);
  padding-bottom: clamp(32px, 3.24vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.site-footer .newsletter { max-width: 483px; }
.site-footer .newsletter__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.22;
  color: var(--white);
}
.site-footer .newsletter__row {
  display: flex;
  margin-top: 8px;
}
.site-footer .newsletter__email {
  width: 300px;
  max-width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 19px;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  background: var(--white);
}
.site-footer .newsletter__email::placeholder { color: var(--ink); opacity: 0.6; font-size: 18px; }
.site-footer .newsletter__submit {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 38px;
  border-radius: 4px;
  background: var(--blue-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  transform: translateX(-6px);
  transition: background 0.25s var(--ease);
}
.site-footer .newsletter__submit:hover { background: #8fcfe3; }
.site-footer .newsletter__trap { position: absolute; left: -5000px; }

.site-footer .share { text-align: center; }
.site-footer .share__title {
  font-size: var(--fs-copy);
  line-height: 1.22;
}
.site-footer .share__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.16vw, 20px);
  margin-top: clamp(14px, 1.16vw, 20px);
}
.site-footer .share__ico { display: block; transition: transform 0.5s var(--ease); }
.site-footer .share__ico img { width: auto; height: clamp(28px, 2.31vw, 40px); }
.site-footer .share__ico:hover { transform: scale(1.12); }
.site-footer .share__cta {
  display: inline-block;
  margin-top: clamp(16px, 1.39vw, 24px);
  padding: clamp(11px, 0.81vw, 14px) clamp(24px, 2.2vw, 38px);
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--ink);
  font-size: var(--fs-mail);
  font-weight: 700;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-footer .share__cta:hover { background: #8fcfe3; transform: translateY(-2px); }

.site-footer__bottom {
  padding-top: clamp(36px, 4.05vw, 70px);
  text-align: center;
}

.site-footer .site-footer__legal {
  margin-top: clamp(20px, 1.85vw, 32px);
  font-size: var(--fs-mail);
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__rrss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.site-footer .rrss__ico {
  display: grid;
  place-items: center;
  width: clamp(40px, 2.72vw, 47px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink-strong);
}
.site-footer .rrss__ico img {
  width: auto;
  height: clamp(15px, 1.16vw, 20px);
  transition: transform 0.5s var(--ease);
}
.site-footer .rrss__ico:hover img { transform: scale(1.2); }

@media (max-width: 1024px) {
  .site-footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer .newsletter { max-width: 100%; width: 100%; }
  .site-footer .newsletter__row { justify-content: center; }
  .site-footer__rrss { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .site-footer { padding-block: 56px 56px; }
  .site-footer .site-footer__legal { margin-top: 24px; }
  .site-footer .share__title { font-size: 18px; }
  .site-footer .share__cta { width: 100%; max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .share__ico,
  .site-footer .share__cta,
  .site-footer .newsletter__submit,
  .site-footer .rrss__ico img { transition: none; }
}
