:root {
  --theme-color: #000000;
  --bg-color: #f0f0f5;
  --btn-radius: 14px;
}

* {
  box-sizing: border-box;
}

body.public-page {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  min-height: 100vh;
  padding: 32px 0 16px;
  color: #1c1c1e;
}

.profile-wrapper {
  max-width: 520px;
  width: 100%;
  padding: 0 20px;
}

.avatar-container {
  margin-bottom: 16px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e2e8;
  font-size: 2.4rem;
  color: #9a9aa2;
  margin: 0 auto;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  word-break: break-word;
}

.profile-bio {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0;
  white-space: pre-line;
}

.category-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 24px 0 12px;
}

/* --- Fila de enlaces destacados (íconos) --- */
.featured-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 8px;
}

.featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  text-decoration: none;
  color: #1c1c1e;
}

.featured-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.featured-item:hover .featured-icon,
.featured-item:focus .featured-icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.featured-item:active .featured-icon {
  transform: translateY(0);
}

.featured-label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.featured-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 380px) {
  .featured-row {
    gap: 10px;
  }
  .featured-item {
    width: 64px;
  }
  .featured-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.3rem;
  }
  .featured-label {
    font-size: 0.66rem;
  }
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--btn-radius);
  padding: 14px 18px;
  text-decoration: none;
  color: #1c1c1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.link-btn:hover,
.link-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: #1c1c1e;
}

.link-btn:active {
  transform: translateY(0);
}

.link-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-right: 14px;
  overflow: hidden;
}

.link-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-title {
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  word-break: break-word;
}

.link-arrow {
  color: #c4c4cc;
  font-size: 0.9rem;
  margin-left: 10px;
}

/* --- Responsivo --- */
@media (max-width: 420px) {
  .profile-wrapper {
    padding: 0 14px;
  }
  .profile-title {
    font-size: 1.3rem;
  }
  .link-btn {
    padding: 12px 14px;
  }
  .link-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 10px;
  }
}

@media (min-width: 992px) {
  body.public-page {
    padding-top: 56px;
  }
}