/* ===================================================================
   GP Creations — Links (página tipo linktree)
   Estilo minimal: fondo negro, botones con borde blanco,
   tarjeta destacada para la página web. Acentos de marca solo en detalles.
   =================================================================== */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.9);
  --card: #1c1c1e;

  --grad-1: #6366f1; /* indigo */
  --grad-2: #a855f7; /* purple */
  --grad-3: #fcd34d; /* amber */

  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Clash Grotesk', 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.links-page {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 40px 16px 28px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Perfil ---------- */
.profile {
  text-align: center;
  margin-bottom: 28px;
}

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

.avatar img { width: 62%; height: auto; }

.profile-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 6px;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 auto 16px;
  max-width: 400px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible { transform: scale(1.12); outline: none; }

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

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.link:hover { transform: scale(1.015); background: rgba(255, 255, 255, 0.05); }
.link:active { transform: scale(0.99); }

.link-main {
  display: block;
  padding: 18px 48px;
  text-align: center;
  outline: none;
}

.link-main:focus-visible { box-shadow: 0 0 0 2px var(--grad-2); border-radius: inherit; }

.link-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.link-share {
  position: absolute;
  right: 10px;
  bottom: 0;
  height: 56px;
  width: 36px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.link-share:hover,
.link-share:focus-visible { color: var(--fg); outline: none; }

/* Tarjeta destacada: página web — borde púrpura animado que gira */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.link--featured {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.18);
}

.link--featured::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    rgba(168, 85, 247, 0.15) 60deg,
    #a855f7 150deg,
    #e9d5ff 180deg,
    #a855f7 210deg,
    rgba(168, 85, 247, 0.15) 300deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 4s linear infinite;
  pointer-events: none;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.link--featured .link-main { padding: 10px 10px 0; }

.featured-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(168, 85, 247, 0.22), transparent 70%),
    var(--card);
  overflow: hidden;
}

.featured-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-logo {
  position: relative;
  width: 38%;
  height: auto;
  transition: transform 0.4s ease;
}

.link--featured:hover .featured-logo { transform: scale(1.05); }

.link--featured .link-label { padding: 16px 38px 18px; }

/* ---------- Footer ---------- */
.links-footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Aviso "Link copiado" ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

/* ---------- Aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

.link.reveal.is-visible:hover { transform: scale(1.015); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .link, .socials a, .featured-logo { transition: none; }
  .link--featured::before { animation: none; }
}
