/* UCAL Linktree — [ucal_linktree] shortcode (Figma: PIEZAS CAMPAÑA, node 3004:811) */

.ucal-linktree {
  --ucal-gray-text: #555554;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.ucal-linktree__blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.ucal-linktree__blob--lime {
  width: 180px;
  height: 180px;
  top: -90px;
  left: -90px;
  background: #c8d12b;
}
.ucal-linktree__blob--fucsia {
  width: 180px;
  height: 180px;
  top: -110px;
  right: -70px;
  background: #e5007f;
}
.ucal-linktree__blob--teal {
  width: 180px;
  height: 180px;
  bottom: 80px;
  left: -130px;
  background: #05ac98;
}
.ucal-linktree__blob--orange {
  width: 180px;
  height: 180px;
  bottom: -20px;
  right: -130px;
  background: #f39200;
}

.ucal-linktree__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ucal-linktree__logo {
  width: 140px;
  height: auto;
  margin-bottom: 18px;
}

.ucal-linktree__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ucal-linktree__list li {
  animation: ucal-linktree-enter 0.4s ease both;
}

.ucal-linktree__list li:nth-child(2) { animation-delay: 0.08s; }
.ucal-linktree__list li:nth-child(3) { animation-delay: 0.16s; }
.ucal-linktree__list li:nth-child(4) { animation-delay: 0.24s; }
.ucal-linktree__list li:nth-child(5) { animation-delay: 0.32s; }
.ucal-linktree__list li:nth-child(6) { animation-delay: 0.4s; }

.ucal-linktree__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background-color: #fff;
  box-shadow: 0 0 14px 2px rgba(0, 0, 0, 0.13);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ucal-linktree__pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px 2px rgba(0, 0, 0, 0.18);
}

.ucal-linktree__pill--disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.96;
}

.ucal-linktree__pill--disabled:hover {
  transform: none;
  box-shadow: 0 0 14px 2px rgba(0, 0, 0, 0.13);
}

/* Solo las 3 primeras píldoras llevan fondo de color; el resto queda en blanco */
.ucal-linktree__pill--solid {
  background-color: var(--pill-bg);
}

/* En el diseño las píldoras blancas son más angostas y quedan centradas respecto a las de color (749px vs 850px) */
.ucal-linktree__pill--light {
  width: min(100%, 860px);
}

.ucal-linktree__pill--solid {
  width: min(100%, 860px);
}

.ucal-linktree__pill--active {
  width: min(95%, 760px);
}

/* Grano sutil sobre las 3 píldoras de color sólido, igual que en el diseño */
.ucal-linktree__pill--solid::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('../assets/img/texture-grain.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.ucal-linktree__pill--solid .ucal-linktree__text {
  color: #fff;
}

.ucal-linktree__pill--light .ucal-linktree__text {
  color: var(--ucal-gray-text);
}

.ucal-linktree__icon {
  position: relative;
  z-index: 1;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ucal-linktree__icon img {
  width: auto;
  height: auto;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.ucal-linktree__text {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.ucal-linktree__arrow {
  position: relative;
  z-index: 1;
  flex: none;
  width: 24px;
  height: 24px;
  display: flex;
}

.ucal-linktree__arrow img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

.ucal-linktree__socials {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.ucal-linktree__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ucal-gray-text);
  color: var(--ucal-gray-text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ucal-linktree__socials a:hover {
  background: var(--ucal-gray-text);
  color: #fff;
}

.ucal-linktree__tagline {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #989897;
  text-align: center;
}

@keyframes ucal-linktree-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ucal-linktree__list li {
    animation: none;
  }
}

@media only screen and (min-width : 320px) {
  html:has(.ucal-linktree) {
    overflow-x: clip;
  }

  .ucal-linktree {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .ucal-linktree__list {
    max-width: 600px;
  }
}

@media only screen and (min-width : 768px) {
  .ucal-linktree__text {
    font-size: 18px;
  }

  .ucal-linktree__icon {
    width: 60px;
    height: 60px;
  }
}
