:root {
  color-scheme: dark;
  --navy-950: #04111f;
  --navy-925: #061a2e;
  --navy-900: #071f37;
  --navy-850: #0a2945;
  --navy-800: #123450;
  --line: rgba(166, 205, 222, .22);
  --line-strong: rgba(72, 224, 189, .52);
  --text: #f7fbff;
  --text-soft: #adc2d1;
  --text-muted: #7f9aac;
  --mint: #48e0bd;
  --mint-soft: #a9f3df;
  --aqua: #70c9ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
  --radius-card: 18px;
  --font-sans: "Inter", "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(49, 119, 145, .25), transparent 34rem),
    linear-gradient(180deg, #051629 0%, var(--navy-950) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--mint);
  color: #052036;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-orbit {
  position: fixed;
  z-index: 0;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(93, 200, 223, .09);
  border-radius: 50%;
  pointer-events: none;
}

.page-orbit::after {
  position: absolute;
  inset: 2.5rem;
  border: 1px solid rgba(72, 224, 189, .07);
  border-radius: inherit;
  content: "";
}

.page-orbit--one {
  top: -17rem;
  left: -15rem;
}

.page-orbit--two {
  right: -18rem;
  bottom: -16rem;
  opacity: .7;
}

.linktree-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 5vw, 1.35rem) max(1.25rem, env(safe-area-inset-bottom));
}

.profile-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .15rem 0 1.25rem;
  text-align: center;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  min-height: 2.75rem;
  margin-bottom: .55rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: calc(100% - 3.5rem);
  padding: .46rem .72rem;
  border: 1px solid rgba(72, 224, 189, .22);
  border-radius: 999px;
  background: rgba(16, 55, 72, .52);
  color: var(--mint-soft);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-dot__pulse {
  width: .42rem;
  height: .42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 .22rem rgba(72, 224, 189, .12);
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(210, 239, 248, .22);
  border-radius: 50%;
  background: rgba(9, 37, 61, .7);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(14, 57, 77, .9);
  transform: translateY(-2px);
}

.icon-button:active {
  transform: translateY(0) scale(.96);
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.brand-isotipo {
  width: clamp(5.7rem, 24vw, 6.5rem);
  height: clamp(5.7rem, 24vw, 6.5rem);
  margin: .55rem auto .95rem;
  filter: drop-shadow(0 15px 22px rgba(0, 0, 0, .2));
}

.brand-isotipo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .2em;
  line-height: 1.2;
}

.profile-header h1 {
  max-width: 100%;
  margin: .45rem 0 .12rem;
  color: var(--text);
  font-size: clamp(1.75rem, 7vw, 2.15rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.profile-handle {
  margin: .05rem 0 0;
  color: var(--text-soft);
  font-size: .91rem;
  font-weight: 650;
}

.profile-bio {
  max-width: 31rem;
  margin: .9rem auto 0;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.52;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin: .65rem 0 0;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
}

.profile-location svg {
  width: .95rem;
  height: .95rem;
  color: var(--mint);
}

.share-status {
  min-height: 1.2em;
  margin: .55rem 0 -.25rem;
  color: var(--mint-soft);
  font-size: .74rem;
  font-weight: 650;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: .68rem;
  scroll-margin-top: 1rem;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) 1.35rem;
  align-items: center;
  column-gap: .72rem;
  width: 100%;
  min-height: 4.55rem;
  padding: .72rem .9rem .72rem .75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(21, 59, 83, .82), rgba(9, 34, 58, .82));
  box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
  color: var(--text);
  text-decoration: none;
  transform: translateY(8px);
  opacity: 0;
  transition: border-color .24s ease, background .24s ease, box-shadow .24s ease, transform .24s ease, opacity .32s ease;
}

.link-card.is-visible {
  transform: translateY(0);
  opacity: 1;
  transition-delay: var(--delay, 0ms);
}

.link-card::after {
  position: absolute;
  top: -4rem;
  left: -7rem;
  width: 11rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(72, 224, 189, .1);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(72, 224, 189, .7);
  background: linear-gradient(135deg, rgba(25, 70, 91, .94), rgba(10, 39, 63, .96));
  box-shadow: 0 15px 30px rgba(0, 0, 0, .22), 0 0 0 3px rgba(72, 224, 189, .08);
  transform: translateY(-2px);
}

.link-card:hover::after,
.link-card:focus-visible::after {
  opacity: 1;
  transform: translate(1rem, 1rem);
}

.link-card:active {
  transform: translateY(0) scale(.992);
}

.link-card--primary {
  border-color: transparent;
  background: linear-gradient(105deg, #50e2bf 0%, #6ae5c9 100%);
  box-shadow: 0 14px 32px rgba(42, 205, 172, .2);
  color: #062138;
}

.link-card--primary:hover,
.link-card--primary:focus-visible {
  border-color: rgba(255, 255, 255, .62);
  background: linear-gradient(105deg, #5be9c6 0%, #7bebd2 100%);
  box-shadow: 0 18px 36px rgba(42, 205, 172, .28), 0 0 0 3px rgba(72, 224, 189, .15);
}

.link-card--primary::after {
  background: rgba(255, 255, 255, .23);
}

.link-card--compact {
  min-height: 4.1rem;
}

.link-card__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(168, 221, 235, .25);
  border-radius: 13px;
  background: rgba(7, 27, 46, .42);
  color: var(--mint);
}

.link-card--primary .link-card__icon {
  border-color: rgba(3, 33, 49, .16);
  background: rgba(255, 255, 255, .25);
  color: #06314a;
}

.link-card__icon--whatsapp {
  color: #69edb8;
}

.link-card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.link-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .22rem;
  text-align: left;
}

.link-card__copy strong,
.link-card__copy small {
  overflow-wrap: anywhere;
}

.link-card__copy strong {
  color: inherit;
  font-size: .94rem;
  font-weight: 760;
  letter-spacing: -.018em;
  line-height: 1.2;
}

.link-card__copy small {
  color: var(--text-muted);
  font-size: .71rem;
  font-weight: 560;
  line-height: 1.28;
}

.link-card--primary .link-card__copy small {
  color: rgba(6, 33, 56, .75);
}

.link-card__arrow {
  position: relative;
  z-index: 1;
  justify-self: end;
  color: var(--mint);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transition: transform .24s ease, color .24s ease;
}

.link-card--primary .link-card__arrow {
  color: #062138;
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  transform: translate(2px, -2px);
}

.link-section-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .62rem .15rem .04rem;
  color: var(--mint);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .19em;
  line-height: 1.2;
}

.link-section-label--secondary {
  margin-top: .8rem;
}

.link-section-line {
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(72, 224, 189, .35), transparent);
}

.legal-footer {
  padding: 1.35rem .25rem .15rem;
  text-align: center;
}

.footer-rule {
  width: min(8rem, 35%);
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, rgba(72, 224, 189, .6), transparent);
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .2em;
}

.footer-brand span {
  color: var(--mint);
}

.footer-copy {
  max-width: 26rem;
  margin: .65rem auto 0;
  color: var(--text-muted);
  font-size: .67rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .38rem;
  margin-top: .72rem;
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 650;
}

.footer-links a {
  text-underline-offset: .2em;
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--mint);
}

.footer-note {
  margin: .85rem 0 0;
  color: rgba(173, 194, 209, .6);
  font-size: .64rem;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

@media (min-width: 600px) {
  body {
    padding: 1.25rem 0;
  }

  .linktree-shell {
    min-height: calc(100vh - 2.5rem);
    padding: 1.2rem 1.45rem 1.4rem;
    border: 1px solid rgba(155, 207, 220, .14);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(9, 36, 61, .88), rgba(5, 24, 42, .96));
    box-shadow: var(--shadow);
  }

  .profile-header {
    padding-top: .1rem;
  }
}

@media (max-width: 365px) {
  .linktree-shell {
    padding-right: .8rem;
    padding-left: .8rem;
  }

  .status-dot {
    font-size: .6rem;
    letter-spacing: .055em;
  }

  .link-card {
    grid-template-columns: 2.45rem minmax(0, 1fr) 1.1rem;
    column-gap: .55rem;
    padding-right: .68rem;
    padding-left: .6rem;
  }

  .link-card__icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .link-card__copy strong {
    font-size: .87rem;
  }

  .link-card__copy small {
    font-size: .67rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .link-card {
    transform: none;
    opacity: 1;
  }
}
