:root {
  --bg: #fff8ef;
  --bg-soft: #f2f9f1;
  --surface: #ffffff;
  --text: #253229;
  --muted: #506155;
  --line: #dde8dd;
  --shadow: 0 14px 30px rgba(71, 114, 86, 0.14);
  --accent: #6ab58a;
  --accent-strong: #3d8f66;
  --title-font: "Baloo 2", cursive;
  --body-font: "Nunito", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  position: relative;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 221, 189, 0.7), transparent 28%),
    radial-gradient(circle at 85% 82%, rgba(179, 224, 194, 0.65), transparent 30%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-soft) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./assets/images/logo-neria.jpeg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.18;
  filter: saturate(82%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.linktree-page {
  position: relative;
  z-index: 1;
  width: min(100% - 1rem, 700px);
  margin: 0 auto;
  padding: 2rem 0 2.25rem;
}

.profile {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.42rem;
}

.avatar-wrap {
  width: clamp(120px, 34vw, 170px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(64, 95, 72, 0.2);
  background: #fff;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-tag {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
}

h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1;
}

.profile-role {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #3f5a45;
}

.profile-text {
  margin: 0.15rem 0 0;
  max-width: 39ch;
  font-size: clamp(0.98rem, 3.8vw, 1.2rem);
  color: var(--muted);
}

.specialties {
  margin-top: 0.9rem;
}

.specialties-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4d6755;
}

.specialties-list {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 560px;
}

.specialties-list li {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 150, 120, 0.36);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.89rem;
  font-weight: 700;
  color: #335441;
}

.links-list {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.86rem;
}

.link-card {
  min-height: 82px;
  padding: 0.78rem 0.92rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.72rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(61, 109, 76, 0.2);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f4faf5;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon.whatsapp {
  color: #25d366;
}

.card-icon.instagram {
  color: #ec4899;
}

.card-icon.map {
  color: #ed7c57;
}

.card-icon.site {
  color: #4c7a5d;
}

.card-text {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: clamp(1rem, 3.7vw, 1.35rem);
  letter-spacing: 0.01em;
}

.note {
  margin: 1.35rem auto 0;
  max-width: 72ch;
  padding: 0.95rem 1.1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(94, 131, 104, 0.2);
  border-radius: 20px;
  color: #3e5644;
  font-size: 0.95rem;
  line-height: 1.45;
}

.clinic-address {
  margin: 0.75rem auto 0;
  max-width: 62ch;
  text-align: center;
  color: #486150;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 520px) {
  body::before {
    background-position: center center;
    background-size: cover;
    opacity: 0.2;
  }

  .linktree-page {
    width: min(100% - 0.78rem, 700px);
    padding-top: 1.3rem;
  }

  .link-card {
    min-height: 78px;
  }

  .card-text {
    font-size: 1rem;
  }

  .note {
    border-radius: 16px;
    line-height: 1.4;
  }

  .clinic-address {
    font-size: 0.88rem;
  }

  .specialties-list {
    gap: 0.4rem;
    max-width: 95%;
  }

  .specialties-list li {
    font-size: 0.82rem;
    padding: 0.39rem 0.62rem;
  }
}
