/* ============  CONTENEDOR PRINCIPAL  */

.swz-social-container {
  position: fixed;

  right: 0;
  bottom: 28px;

  z-index: 99999;

  display: flex;
  align-items: center;

  font-family: "Montserrat", Arial, sans-serif;

  /* Evita que interfiera con otros elementos */
  pointer-events: none;
}

/* ======== PESTAÑA PRINCIPAL ================================== */

.swz-social-toggle {
  width: 43px;
  height: 68px;

  border: 0;

  /* Bordes solo en el lado izquierdo */
  border-radius: 18px 0 0 18px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  /*
       Fondo transparente tipo cristal
    */
  background: linear-gradient(
    135deg,
    rgba(2, 2, 2, 0.736),
    rgba(11, 12, 12, 0.28)
  );

  border: 1px solid rgba(228, 10, 10, 0.22);

  border-right: none;

  /*
       Efecto Glass
    */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    -5px 5px 25px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(0, 245, 160, 0.12);

  pointer-events: auto;

  transition:
    width 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

/* ========  FLECHA ========================== */

.swz-social-arrow {
  font-size: 32px;

  font-family: Arial, sans-serif;

  font-weight: 300;

  line-height: 1;

  transform: translateX(-1px);

  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    color 0.3s ease;
}

/* =========================================================
   EFECTO AL PASAR EL MOUSE ============================ */

.swz-social-toggle:hover {
  width: 50px;

  background: linear-gradient(
    135deg,
    rgba(0, 245, 160, 0.52),
    rgba(0, 198, 255, 0.45)
  );

  box-shadow:
    -8px 5px 30px rgba(0, 0, 0, 0.32),
    0 0 25px rgba(0, 245, 160, 0.22);
}

/* =========================================================
   CUANDO ESTÁ ABIERTO
========================================================= */

.swz-social-container.active .swz-social-arrow {
  transform: rotate(180deg) translateX(1px);
}

/* =========================================================
   MENÚ DE REDES
========================================================= */

.swz-social-menu {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-right: 9px;

  opacity: 0;

  visibility: hidden;

  transform: translateX(35px) scale(0.85);

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    visibility 0.3s ease;
}

/* =========================================================
   MENÚ ABIERTO
========================================================= */

.swz-social-container.active .swz-social-menu {
  opacity: 1;

  visibility: visible;

  transform: translateX(0) scale(1);

  pointer-events: auto;
}

/* =========================================================
   BOTONES DE REDES
========================================================= */

.swz-social-btn {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #ffffff;

  text-decoration: none;

  font-size: 20px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

/* =========================================================
   HOVER REDES
========================================================= */

.swz-social-btn:hover {
  transform: translateY(-5px) scale(1.1);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);

  filter: brightness(1.12);
}

/* =========================================================
   FACEBOOK
========================================================= */

.swz-social-btn.facebook {
  background: linear-gradient(145deg, #1877f2, #0756c9);
}

/* =========================================================
   TIKTOK
========================================================= */

.swz-social-btn.tiktok {
  background: linear-gradient(145deg, #111111, #272727);
}

/* =========================================================
   INSTAGRAM
========================================================= */

.swz-social-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

/* =========================================================
   WHATSAPP
========================================================= */

.swz-social-btn.whatsapp {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

/* =========================================================
   ANIMACIÓN INDIVIDUAL
========================================================= */

.swz-social-container.active .swz-social-btn:nth-child(1) {
  transition-delay: 0.04s;
}

.swz-social-container.active .swz-social-btn:nth-child(2) {
  transition-delay: 0.08s;
}

.swz-social-container.active .swz-social-btn:nth-child(3) {
  transition-delay: 0.12s;
}

.swz-social-container.active .swz-social-btn:nth-child(4) {
  transition-delay: 0.16s;
}

/* =========================================================
   PEQUEÑO BRILLO EN LA PESTAÑA
========================================================= */

.swz-social-toggle::before {
  content: "";

  position: absolute;

  right: 7px;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.8);

  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);

  animation: swz-social-blink 2.5s infinite;
}

@keyframes swz-social-blink {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================================
   ANIMACIÓN DE ENTRADA DE LOS ICONOS
========================================================= */

@keyframes swz-social-enter {
  from {
    opacity: 0;

    transform: translateX(30px) scale(0.7);
  }

  to {
    opacity: 1;

    transform: translateX(0) scale(1);
  }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 768px) {
  .swz-social-container {
    bottom: 22px;
  }

  .swz-social-toggle {
    width: 40px;
    height: 62px;

    border-radius: 16px 0 0 16px;
  }

  .swz-social-arrow {
    font-size: 29px;
  }

  .swz-social-menu {
    gap: 8px;

    margin-right: 8px;
  }

  .swz-social-btn {
    width: 45px;
    height: 45px;

    font-size: 18px;
  }
}

/* =========================================================
   RESPONSIVE — CELULAR
========================================================= */

@media (max-width: 480px) {
  .swz-social-container {
    bottom: 16px;
  }

  .swz-social-toggle {
    width: 36px;
    height: 57px;

    border-radius: 14px 0 0 14px;
  }

  .swz-social-arrow {
    font-size: 27px;
  }

  .swz-social-menu {
    gap: 6px;

    margin-right: 6px;
  }

  .swz-social-btn {
    width: 42px;
    height: 42px;

    font-size: 17px;
  }
}

/* =========================================================
   CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 360px) {
  .swz-social-menu {
    gap: 4px;

    margin-right: 4px;
  }

  .swz-social-btn {
    width: 39px;
    height: 39px;

    font-size: 16px;
  }

  .swz-social-toggle {
    width: 33px;
    height: 53px;
  }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .swz-social-toggle,
  .swz-social-menu,
  .swz-social-btn,
  .swz-social-arrow {
    transition: none !important;
  }

  .swz-social-toggle::before {
    animation: none;
  }
}
