/* ==========================================================================
   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;
}

*, *::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;
}

/* ==========================================================================
   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);
}

.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%;
}

/* ==========================================================================
   ACCIONES RÁPIDAS DE CONTACTO (fuera de la lista de enlaces)
   ========================================================================== */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.action-primary:hover {
  opacity: 0.85;
}

.action-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.action-secondary:hover {
  border-color: var(--text-main);
}

/* ==========================================================================
   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);
}

/* ==========================================================================
   PÁGINA DE DEMOS
   ========================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--text-main);
}

.demos-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.demos-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.demo-card {
  display: flex;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

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

.demo-thumb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.demo-card:hover .demo-thumb {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: transparent;
}

.demo-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-initials {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  transition: color 0.25s ease;
}

.demo-card:hover .demo-initials {
  color: #ffffff;
}

.demo-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.demo-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
  transition: color 0.25s ease;
}

.demo-card:hover .demo-tag {
  color: rgba(255, 255, 255, 0.8);
}

.demo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.demo-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  transition: color 0.25s ease;
}

.demo-card:hover .demo-desc {
  color: rgba(255, 255, 255, 0.85);
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
}

.demo-link svg {
  transition: transform 0.25s ease;
}

.demo-card:hover .demo-link svg {
  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;
  }

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