:root {
  --grad-1: #1fe2b6;
  --grad-2: #0087c3;
  --ink: #12233f;
  --brand: #5668aa;
  --surface: #ffffff;
  --control: rgba(12, 40, 70, 0.72);
  --control-hover: rgba(12, 40, 70, 0.88);
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100dvh;
  padding: 32px 16px;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--grad-2);
}

/* Capa fija: en iOS background-attachment: fixed no funciona. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
}

body::before {
  z-index: -2;
  background: linear-gradient(180deg, var(--grad-1), var(--grad-2));
}

body::after {
  z-index: -1;
  background: url("assets/world-map.png") center / max(100%, 900px) auto no-repeat;
  opacity: 0.3;
}

ul { list-style: none; padding: 0; }

.card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 24px;
}

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

.topbar #share { margin-left: auto; }

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--control);
  cursor: pointer;
  transition: background 0.15s;
}

.icon-btn[hidden] { display: none; }
.icon-btn:hover { background: var(--control-hover); }

svg { display: block; width: 20px; height: 20px; }

.profile {
  padding: 28px 0;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand);
}

.avatar { overflow: hidden; }
.avatar img { width: 70%; height: auto; }
.avatar img.photo { width: 100%; height: 100%; object-fit: cover; }

h1 { font-size: 24px; font-weight: 600; }

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

.link {
  position: relative;
  border-radius: 999px;
  background: var(--surface);
  transition: transform 0.15s, box-shadow 0.15s;
}

.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.link > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 8px 60px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
}

.thumb {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
}

.thumb img { width: 78%; height: auto; }
.thumb.whatsapp { background: #128c4b; }

.thumb.zummy {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: #ffd400;
  background: #d9231c;
}

.link .icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 50%;
  color: #5a6578;
  background: transparent;
}

.link .icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
.link .icon-btn svg { width: 18px; height: 18px; }

.socials {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #128c4b;
  background: var(--surface);
}

.socials svg { width: 26px; height: 26px; }

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}

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

.noscript { padding: 16px; text-align: center; }

@media (max-width: 480px) {
  body { padding: 0; }

  .card { padding: 16px; }
  body::after { background-position: center bottom; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
