.site-footer {
  --footer-bg: #08080b;
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-muted: rgba(255, 255, 255, 0.56);
  --footer-hairline: rgba(255, 255, 255, 0.08);
  --footer-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.9rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ed474c 0%, #824c9e 100%);
}

.site-footer__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 26rem at 8% 0%, rgba(237, 71, 76, 0.14), transparent 70%),
    radial-gradient(48rem 30rem at 96% 30%, rgba(130, 76, 158, 0.16), transparent 70%),
    radial-gradient(40rem 24rem at 50% 115%, rgba(46, 66, 155, 0.14), transparent 70%);
}

.site-footer svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  text-decoration: none;
}

.site-footer__shell {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Garantías ---------- */
.footer-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--footer-hairline);
}

.footer-perk {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: calc(1.75rem - 0.375rem);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  transition: background 0.5s var(--footer-ease);
}

.footer-perk:hover {
  background: rgba(255, 255, 255, 0.05);
}

.footer-perk__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(237, 71, 76, 0.18), rgba(130, 76, 158, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.6s var(--footer-ease);
}

.footer-perk:hover .footer-perk__icon {
  transform: translateY(-2px) rotate(-6deg);
}

.footer-perk__text {
  display: grid;
  gap: 0.1rem;
  line-height: 1.3;
}

.footer-perk__text strong {
  font-size: 0.88rem;
}

.footer-perk__text span {
  color: var(--footer-muted);
  font-size: 0.78rem;
}

/* ---------- Llamada a la acción ---------- */
.footer-cta {
  padding: 0.375rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--footer-hairline);
}

.footer-cta__core {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 3rem);
  border-radius: calc(2rem - 0.375rem);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(110deg, #ed474c 0%, #824c9e 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.footer-cta__copy {
  display: grid;
  gap: 0.4rem;
  max-width: 60ch;
}

.footer-eyebrow {
  justify-self: start;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-cta__title {
  margin: 0.2rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

.footer-cta__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: #3f1f55 !important;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.5s var(--footer-ease);
}

.footer-cta__btn-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(130, 76, 158, 0.12);
  font-size: 1rem;
  transition: transform 0.5s var(--footer-ease);
}

.footer-cta__btn:hover .footer-cta__btn-icon {
  transform: translate(3px, -2px) scale(1.06);
}

.footer-cta__btn:active {
  transform: scale(0.98);
}

/* ---------- Rejilla principal ---------- */
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.2fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.footer-brand {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.footer-brand__logo img {
  width: clamp(150px, 13vw, 190px);
  height: auto;
}

.footer-brand__text {
  margin: 0;
  max-width: 36ch;
  color: var(--footer-muted);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--footer-hairline);
  font-size: 1.15rem;
  transition:
    transform 0.5s var(--footer-ease),
    background 0.5s var(--footer-ease),
    box-shadow 0.5s var(--footer-ease);
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ed474c, #824c9e);
  box-shadow: 0 12px 24px -12px rgba(237, 71, 76, 0.6);
}

.footer-col__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul a {
  position: relative;
  display: inline-block;
  color: var(--footer-text);
  line-height: 1.4;
  transition: color 0.4s var(--footer-ease), transform 0.5s var(--footer-ease);
}

.footer-col ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, #ed474c, #824c9e);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--footer-ease);
}

.footer-col ul a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-col ul a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--footer-text);
  line-height: 1.45;
}

.footer-contact li > svg {
  margin-top: 0.15rem;
  color: #f27a7e;
  font-size: 1.05rem;
}

.footer-contact li a::after {
  display: none;
}

.footer-contact__phones {
  display: grid;
  gap: 0.2rem;
}

.footer-contact a {
  word-break: break-word;
}

.footer-complaints {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem 0.6rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--footer-hairline);
  font-size: 1.4rem;
  transition: background 0.5s var(--footer-ease);
}

.footer-complaints:hover {
  background: rgba(255, 255, 255, 0.09);
}

.footer-complaints span {
  display: grid;
  font-size: 0.82rem;
  line-height: 1.3;
}

.footer-complaints small {
  color: var(--footer-muted);
  font-size: 0.72rem;
}

/* ---------- Barra inferior ---------- */
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--footer-hairline);
  color: var(--footer-muted);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  color: var(--footer-text);
  font-weight: 700;
}

.footer-top__icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--footer-hairline);
  font-size: 0.95rem;
  transition: transform 0.5s var(--footer-ease), background 0.5s var(--footer-ease);
}

.footer-top:hover .footer-top__icon {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ed474c, #824c9e);
}

/* ---------- Entrada al hacer scroll ---------- */
.has-reveal .site-footer [data-reveal],
.has-reveal .site-footer .footer-perk {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--footer-ease) calc(var(--i, 0) * 0.08s),
    transform 1.1s var(--footer-ease) calc(var(--i, 0) * 0.08s);
}

.has-reveal .site-footer [data-reveal].is-revealed,
.has-reveal .site-footer .is-revealed .footer-perk {
  opacity: 1;
  transform: none;
}

.has-reveal .site-footer .footer-perks[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-col--contact {
    grid-column: span 3;
  }

  .footer-brand {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem 2.5rem;
  }

  .footer-social {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (max-width: 960px) {
  .footer-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-perks {
    grid-template-columns: 1fr;
  }

  .footer-cta__core {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta__btn {
    white-space: normal;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .footer-brand,
  .footer-col--contact {
    grid-column: 1 / -1;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-col:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-top {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .site-footer [data-reveal],
  .has-reveal .site-footer .footer-perk {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
