/* ============================================================
   FOOTER
   Depende de las variables CSS definidas en home.css (:root)
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 6vw 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Logo / Marca */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.footer-logo {
  /* Placeholder para imagen de logo — reemplaza el contenido del <span>
     por un <img src="assets/img/logo.svg" alt="Erick Digital"> cuando
     tengas el archivo listo */
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(112, 139, 255, .5);
  display: grid;
  place-items: center;
  color: #8ca2ff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(117, 87, 255, .2);
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Tagline centrada */
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .01em;
}

/* Lado derecho — redes + scroll-top */
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.footer-social-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

/* Botón scroll-to-top */
.footer-top-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-top-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
}

/* Copyright — fila inferior */
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.25);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 780px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 24px 28px;
  }

  .footer-right {
    justify-content: center;
  }
}
