:root {
  --ink: #f5f2ff;
  --muted: #aaa6b2;
  --paper: #050508;
  --card: rgba(15, 13, 20, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #a98bff;
  --accent-soft: rgba(169, 139, 255, 0.12);
  --lime: #65e6c4;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
  --radius-lg: 32px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #f1eadf;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 48px 20px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 202, 139, 0.44), transparent 27rem),
    radial-gradient(circle at 90% 90%, rgba(178, 219, 176, 0.42), transparent 30rem),
    var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.36;
  pointer-events: none;
}

.page-glow--one {
  top: -160px;
  right: -90px;
  background: #ff855f;
}

.page-glow--two {
  bottom: -180px;
  left: -90px;
  background: #b7e269;
}

.profile {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: radial-gradient(rgba(22, 37, 31, 0.32) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom, black, transparent 50%);
}

.profile__header {
  padding: 4px 4px 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.availability {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #46534c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.availability__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40a566;
  box-shadow: 0 0 0 4px rgba(64, 165, 102, 0.14);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px) rotate(-4deg);
  border-color: rgba(22, 37, 31, 0.24);
  background: white;
}

.icon-button:focus-visible,
.link-card:focus-visible {
  outline: 3px solid rgba(255, 104, 70, 0.36);
  outline-offset: 3px;
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  width: fit-content;
  align-self: start;
}

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border: 6px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 14px 40px rgba(22, 37, 31, 0.14);
  transform: rotate(-3deg);
}

.avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, var(--lime), #f1ffbd);
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.avatar-badge {
  position: absolute;
  right: -7px;
  bottom: -8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 4px solid var(--paper);
  border-radius: 50%;
  color: white;
  background: var(--accent);
}

.avatar-badge svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.bio {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.links-section {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#link-count {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #526056;
  background: #eef0e8;
  font-size: 0.75rem;
  font-weight: 700;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.75) 46%, transparent 68%);
  transform: translateX(-100%);
  transition: transform 600ms ease, opacity 200ms ease;
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 37, 31, 0.2);
  box-shadow: 0 12px 28px rgba(34, 46, 39, 0.09);
}

.link-card:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.link-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--icon-color, var(--ink));
  background: var(--icon-bg, #eef0e8);
}

.link-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card__copy {
  min-width: 0;
}

.link-card__title,
.link-card__description {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__title {
  margin-bottom: 4px;
  font-size: 0.97rem;
  font-weight: 800;
}

.link-card__description {
  color: var(--muted);
  font-size: 0.8rem;
}

.link-card__arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #68736d;
  background: #f3f3ee;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.link-card:hover .link-card__arrow {
  color: white;
  background: var(--ink);
  transform: rotate(-12deg);
}

.link-card__arrow svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px 12px 8px;
  color: #7a817d;
  font-size: 0.78rem;
  text-align: center;
}

.footer p {
  margin-bottom: 0;
}

.footer__mark {
  color: var(--accent);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  padding: 11px 16px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 35px rgba(22, 37, 31, 0.24);
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  body {
    padding: 14px;
  }

  .profile {
    padding: 15px;
    border-radius: 26px;
  }

  .profile__header {
    padding: 3px 2px 23px;
  }

  .topbar {
    margin-bottom: 25px;
  }

  .identity {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .avatar {
    width: 96px;
    height: 96px;
    border-radius: 26px;
  }

  .identity__copy {
    padding: 0 3px;
  }

  h1 {
    font-size: 2.3rem;
  }

  .links-section {
    padding: 16px;
  }

  .link-card {
    grid-template-columns: 44px 1fr 32px;
    gap: 11px;
    min-height: 70px;
    padding: 11px;
    border-radius: 17px;
  }

  .link-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .link-card__description {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tema escuro de Isabelle */
html {
  background: #030305;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(72, 35, 133, 0.42), transparent 31rem),
    radial-gradient(circle at 88% 88%, rgba(9, 91, 91, 0.3), transparent 34rem),
    linear-gradient(145deg, #020203 0%, #09070e 48%, #020607 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  pointer-events: none;
}

.page-glow--one {
  background: #6d31cd;
}

.page-glow--two {
  background: #087b7b;
}

.profile {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(20, 17, 27, 0.91), rgba(8, 10, 13, 0.88));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.045);
}

.availability,
.icon-button {
  border-color: rgba(255, 255, 255, 0.11);
  color: #d6d1de;
  background: rgba(255, 255, 255, 0.045);
}

.availability__dot {
  background: #65e6c4;
  box-shadow: 0 0 0 4px rgba(101, 230, 196, 0.1), 0 0 16px rgba(101, 230, 196, 0.55);
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.avatar {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.avatar--fallback {
  color: #07070a;
  background: linear-gradient(145deg, #65e6c4, #b9f8e6);
}

.avatar-badge {
  border-color: #121017;
  color: #08070b;
  background: #a98bff;
}

.eyebrow {
  color: #a98bff;
}

.bio {
  color: #aaa6b2;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.interest-tag {
  padding: 6px 9px;
  border: 1px solid rgba(169, 139, 255, 0.18);
  border-radius: 999px;
  color: #c8b9f5;
  background: rgba(169, 139, 255, 0.065);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.links-section {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
}

#link-count {
  color: #b9b4c1;
  background: rgba(255, 255, 255, 0.075);
}

.link-card {
  border-color: rgba(255, 255, 255, 0.09);
  color: #f5f2ff;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.link-card:hover {
  border-color: rgba(169, 139, 255, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 24px rgba(108, 70, 193, 0.08);
}

.link-card::before {
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.075) 46%, transparent 68%);
}

.link-card__description {
  color: #918d99;
}

.link-card__arrow {
  color: #a7a2ad;
  background: rgba(255, 255, 255, 0.06);
}

.link-card:hover .link-card__arrow {
  color: #08070b;
  background: #a98bff;
}

.footer {
  color: #77727e;
}

.footer__mark {
  color: #65e6c4;
}

.toast {
  color: #08070b;
  background: #65e6c4;
}
