/* ==============================================
   ENLACES — Página Linktree de AcademicMed
   Depende de: tokens.css, base.css
=============================================== */

/* ── Tokens locales (valores específicos de esta página) ── */
:root {
  --enlaces-shadow:    0 8px 24px rgba(10, 77, 140, 0.10);
  --enlaces-shadow-lg: 0 16px 40px rgba(10, 77, 140, 0.16);
  --enlaces-radius:    20px;
}

/* ── Fondo degradado de la página ── */
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(
    160deg,
    #e8f9fb 0%,
    #cceef7 35%,
    #b2e0f0 70%,
    #9acde6 100%
  );
  overflow-x: hidden;
  position: relative;
}

/* ── Blobs SVG fijos detrás del contenido ── */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='900' viewBox='0 0 800 900'%3E%3Cdefs%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='48'/%3E%3C/filter%3E%3C/defs%3E%3C!-- blob top-left --%3E%3Cellipse cx='120' cy='100' rx='220' ry='180' fill='%2335c9d6' opacity='0.22' filter='url(%23b)'/%3E%3C!-- blob top-right --%3E%3Cellipse cx='720' cy='60' rx='200' ry='160' fill='%2322b8c7' opacity='0.18' filter='url(%23b)'/%3E%3C!-- blob mid-left --%3E%3Ccircle cx='60' cy='480' r='160' fill='%230a4d8c' opacity='0.10' filter='url(%23b)'/%3E%3C!-- blob mid-right (grande) --%3E%3Cellipse cx='780' cy='420' rx='240' ry='200' fill='%2335c9d6' opacity='0.15' filter='url(%23b)'/%3E%3C!-- blob bottom-center --%3E%3Cellipse cx='400' cy='860' rx='300' ry='180' fill='%230a4d8c' opacity='0.13' filter='url(%23b)'/%3E%3C!-- blob bottom-left --%3E%3Ccircle cx='100' cy='820' r='140' fill='%2322b8c7' opacity='0.16' filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center top;
}

/* ── Wrapper centrado ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Estrellas decorativas de fondo ── */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 1;
}

.deco svg {
  opacity: 0.25;
}

.deco--tl { top: 8vh;    left: 5vw; }
.deco--tr { top: 12vh;   right: 8vw; }
.deco--bl { bottom: 15vh; left: 8vw; }
.deco--br { bottom: 10vh; right: 5vw; }

/* ══════════════════════════════════════
   PERFIL — Logo, nombre, bio
══════════════════════════════════════ */

.profile__logo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--enlaces-shadow-lg);
  margin-bottom: 1.1rem;
}

.profile__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-blue);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.profile__name mark {
  background: none;
  color: var(--color-teal-dark);
}

.profile__tagline {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.profile__handle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0.35rem;
}

.profile__bio {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 340px;
  margin-bottom: 2.25rem;
}

/* ══════════════════════════════════════
   LISTA DE ENLACES
══════════════════════════════════════ */

.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ── Tarjeta de enlace ── */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border-radius: var(--enlaces-radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--enlaces-shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(53, 201, 214, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--enlaces-shadow-lg);
}

.link-card:hover::before {
  opacity: 1;
}

/* Delays de entrada escalonados */
.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.10s; }
.link-card:nth-child(3) { animation-delay: 0.15s; }
.link-card:nth-child(4) { animation-delay: 0.20s; }
.link-card:nth-child(5) { animation-delay: 0.25s; }
.link-card:nth-child(6) { animation-delay: 0.30s; }
.link-card:nth-child(7) { animation-delay: 0.35s; }

/* ── Ícono circular ── */
.link-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Variantes de color de ícono */
.link-card__icon--teal      { background: linear-gradient(135deg, #35c9d6, #22b8c7); }
.link-card__icon--spotify   { background: #1db954; }
.link-card__icon--tiktok    { background: #010101; }
.link-card__icon--facebook  { background: #1877f2; }
.link-card__icon--youtube   { background: #ff0000; }
.link-card__icon--instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%
  );
}

.link-card__icon svg,
.link-card__icon span {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

/* ── Texto ── */
.link-card__body {
  flex: 1;
  min-width: 0;
}

.link-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.link-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.1rem;
}

/* ── Flecha ── */
.link-card__arrow {
  width: 34px;
  height: 34px;
  background: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.link-card__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card:hover .link-card__arrow {
  background: var(--color-teal-dark);
  transform: translateX(2px);
}

/* ── Separador de sección ── */
.links-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.links-divider::before,
.links-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(10, 77, 140, 0.1);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */

.enlaces-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.enlaces-footer__heart {
  color: var(--color-teal);
  font-size: 1.1rem;
}

.enlaces-footer__text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.enlaces-footer__text strong {
  color: var(--color-blue);
  font-family: var(--font-display);
}

/* ══════════════════════════════════════
   ANIMACIÓN DE ENTRADA
══════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}