/* Footer Component - Hero (Balanced Top & Bottom Padding, Max 85% Viewport Height)
   8px grid & Design Token System
   ========================================================================== */

.site-footer {
  padding-block: clamp(22px, 3.2vh, 34px);
  border-top: 1px solid var(--rule);
  background-color: var(--surface);
  color: var(--on-surface);
  min-height: 0;
  max-height: 85vh;
  max-height: 85svh;
  overflow: visible;
}

.site-footer__container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1 · Compact Footer Hero: Brand + 1 Studio & 1 WA (642 099 257) + Subir */
.site-footer__hero {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px var(--space-3);
  margin: 0 auto;
  width: 100%;
}

.footer-logo-rewind {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--space-1);
  padding: 2px 6px;
  transition: transform var(--duration-ui) var(--ease-out);
}

.footer-logo-rewind:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.footer-logo-rewind__img {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(66, 133, 244, 0.45)) drop-shadow(0 0 14px var(--color-gold-a20));
  transition:
    transform var(--duration-ui) var(--ease-out),
    filter var(--duration-ui) var(--ease-out);
}

.footer-logo-rewind__text {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1;
  white-space: nowrap;
}

.footer-logo-rewind__text .brand-thin {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.footer-logo-rewind__text .brand-bold {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--color-gold);
}

.footer-logo-rewind:hover .footer-logo-rewind__img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(66, 133, 244, 0.8)) drop-shadow(0 0 24px var(--color-gold-a55));
}

/* Compact Inlined bar: Icons sitting IN FRONT OF text on 1 row */
.site-footer__inlined-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer__phone {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: var(--color-gold-a08);
  border: 1px solid var(--color-gold-a20);
  color: var(--accent-ink);
  text-decoration: none;
  min-height: 34px;
  white-space: nowrap;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.site-footer__phone:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.site-footer__phone-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.site-footer__phone-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: var(--weight-display);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-footer__phone:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-night);
  transform: translateY(-1px);
}

.site-footer__phone:hover .site-footer__phone-icon {
  color: var(--color-night);
}

/* Compact horizontal Subir button */
.footer-desliza-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.42);
  color: #8AB4F8;
  text-decoration: none;
  min-height: 34px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.footer-desliza-btn:focus-visible {
  outline: 2px solid #8AB4F8;
  outline-offset: 2px;
}

.footer-desliza-btn__icon {
  width: 14px;
  height: 14px;
  color: #8AB4F8;
  flex-shrink: 0;
}

.footer-desliza-btn__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: var(--weight-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-desliza-btn:hover {
  background-color: #4285F4;
  border-color: #4285F4;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.footer-desliza-btn:hover .footer-desliza-btn__icon {
  color: #FFFFFF;
}

/* Responsive mobile adjustments */
@media (max-width: 859px) {
  .site-footer {
    padding-top: 18px;
    padding-bottom: 20px;
  }

  body.kebab-inner-page .site-footer {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__container {
    gap: 10px;
  }

  .site-footer__hero {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .footer-logo-rewind__img {
    width: 32px;
    height: 32px;
  }

  .site-footer__inlined-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  .site-footer__phone,
  .footer-desliza-btn {
    min-height: 28px;
    padding: 3px 7px;
    white-space: nowrap;
  }

  .site-footer__phone-num,
  .footer-desliza-btn__label {
    font-size: clamp(0.58rem, 2.4vw, 0.65rem);
  }
}
