
/* SOPHIA FOOTER SOCIALS | PREMIUM V2 */

footer[data-sophia-footer-socials="1"] {
  position: relative;
  padding-bottom: clamp(36px, 4vw, 62px) !important;
}

/* Redes centradas en la misma línea del footer */
footer .sophia-footer-socials-v1 {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 32px);
  z-index: 2;
}

/* Botones lavanda discretos */
footer .sophia-footer-socials-v1 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(179, 143, 221, .28);
  border-radius: 11px;
  background: linear-gradient(
    180deg,
    rgba(169, 136, 211, .11),
    rgba(169, 136, 211, .045)
  );
  color: #c6addf !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

footer .sophia-footer-socials-v1 a svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer .sophia-footer-socials-v1 a:hover {
  color: #ffffff !important;
  border-color: rgba(191, 156, 235, .65);
  background: rgba(169, 136, 211, .20);
  transform: translateY(-2px);
}

footer .sophia-footer-socials-v1 a:focus-visible {
  outline: 2px solid #d4baff;
  outline-offset: 3px;
}

/* Footer independiente, si no había footer original */
footer.sophia-socials-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 28px 20px !important;
  background: #0b0715;
}

footer.sophia-socials-only .sophia-footer-socials-v1 {
  position: static;
  transform: none;
}

/* Tablet: segunda línea sin superposiciones */
@media (max-width: 1350px) {
  footer[data-sophia-footer-socials="1"]:not(.sophia-socials-only) {
    padding-bottom: 98px !important;
  }

  footer:not(.sophia-socials-only) .sophia-footer-socials-v1 {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Móvil: iconos a la izquierda, lejos del chat */
@media (max-width: 600px) {
  footer[data-sophia-footer-socials="1"]:not(.sophia-socials-only) {
    padding-bottom: 92px !important;
  }

  footer:not(.sophia-socials-only) .sophia-footer-socials-v1 {
    left: 18px;
    bottom: 18px;
    transform: none;
  }

  footer .sophia-footer-socials-v1 a {
    min-width: 43px;
    min-height: 43px;
    padding: 10px;
  }

  footer .sophia-footer-socials-v1 a span {
    display: none;
  }

  footer.sophia-socials-only .sophia-footer-socials-v1 {
    position: static;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer .sophia-footer-socials-v1 a {
    transition: none;
  }

  footer .sophia-footer-socials-v1 a:hover {
    transform: none;
  }
}
