/* ==========================================================================
   RESET & VARIABLES GLOBALES
   ========================================================================== */
:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Syne', sans-serif;

  --bg-color: #ffffff;
  --bg-soft: #f7f7f7;
  --text-main: #111111;
  --text-muted: #555555;
  --text-faint: #9a9a9a;

  --accent: #111111;
  --border-color: #e5e5e5;

  --transition-smooth: all 0.25s ease;
}

/* Temas tipográficos dinámicos */
body.theme-modern {
  --font-display: 'Syne', sans-serif;
  --accent: #111111;
}

body.theme-editorial {
  --font-display: 'Playfair Display', serif;
  --accent: #1a1a1a;
}

body.theme-futuristic {
  --font-display: 'Unbounded', sans-serif;
  --accent: #111111;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   CONTENEDOR LINK TREE (centrado, columna estrecha)
   ========================================================================== */
.ltk-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* ==========================================================================
   BARRA SUPERIOR (selector de tipografía)
   ========================================================================== */
.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.5rem;
}

.font-switcher {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.switcher-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.font-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.25rem 0.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.font-btn:hover {
  color: var(--text-main);
}

.font-btn.active {
  color: var(--text-main);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   PERFIL
   ========================================================================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.avatar {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  user-select: none;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  user-select: none;
  color: var(--text-main);
}

body.theme-editorial .hero-name {
  font-style: italic;
  letter-spacing: -0.01em;
  font-weight: 700;
}

body.theme-futuristic .hero-name {
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-bio {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 420px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
}

/* ==========================================================================
   LISTA DE ENLACES
   ========================================================================== */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.link-row svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.link-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.link-row .arrow {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link-row:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.link-row:hover svg,
.link-row:hover .link-label {
  color: #ffffff;
}

.link-row:hover .arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.bottom-footer {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 480px) {
  .ltk-container {
    padding: 1.5rem 1.25rem;
    justify-content: flex-start;
  }

  .top-bar {
    justify-content: center;
  }

  .font-switcher {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .link-row {
    padding: 0.9rem 1rem;
  }
}