/* ==========================================
   FOOTER BASE CSS — Estilos compartidos por todos los footers
   ========================================== */

.footer-site {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  position: relative;
  font-family: inherit;
  /* margin-top: 4rem; */
}

/* Accent Line */
.footer-accent-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  position: absolute;
  top: 0;
  left: 0;
}

/* Typography & Links */
.footer-site a {
  transition: all 0.25s ease;
}

/* Social Links Common */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-2);
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--color-primary);
  color: var(--color-button-text);
  transform: scale(1.1);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* --- COPYRIGHT BAR --- */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-3);
}
.copyright p {
  margin: 0;
}

/* Términos y privacidad (HU-93, footers/parts/legal-links.html) */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem;
}
.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover {
  color: var(--color-text);
}

/* --- FOOTER USER MENU (Multiusuario) --- */
.footer-user-menu {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 0;
  margin: 0 auto;
  max-width: var(--container-width, 1200px);
  padding-left: var(--container-padding, 1.5rem);
  padding-right: var(--container-padding, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.footer-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-user-initial {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.footer-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-footer-text);
}

.footer-user-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-user-link {
  font-size: 0.8rem;
  color: var(--color-text-3);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-user-link:hover {
  color: var(--color-primary);
}

.footer-user-sep {
  font-size: 0.75rem;
  color: var(--color-text-3);
}

.footer-logout-form {
  display: inline;
}

.footer-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
