@font-face {
  font-family: 'FuentePersonal';
  src: url('./fuente.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --card: #111213;
  --card2: #0f1011;
  --text: #eaeaea;
  --muted: #bdbdbd;
  --ring: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'FuentePersonal', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 600px at 50% 0%, #141414 0%, var(--bg) 55%);
  color: var(--text);
  padding: 0;
}

.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 36px;
  width: 100%;
  align-self: center;
}

.avatar-wrap {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  background: #1a1a1a;
}

.handle {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: none;
  align-items: flex-start;
  padding: 0 16px;
  flex: 1;
  overflow-y: auto;
}

.link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 20px 28px 0;
  text-decoration: none;
  color: var(--text);
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 120ms ease;
}

.link-text-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
}

.link-title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}

.link:hover {
  transform: translateY(-1px);
}

.link:active {
  transform: translateY(0px);
}

.link-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--ring);
  background: #0c0c0c;
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  flex: 1 1 auto;
  text-align: center;
}

/* --- Hero design (por defecto) --- */
body.classic .profile {
  display: block;
}

body:not(.classic) .profile {
  display: none;
}

body.classic .profile-hero {
  display: none;
}

body:not(.classic) .profile-hero {
  display: block;
  position: relative;
  width: 100%;
  height: 40vh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.9;
  transform: scale(1.1) translateY(0);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 16px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7) 40%, transparent);
  text-align: center;
}

.hero-handle {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}

.hero-subtitle {
  margin: 4px 0 0;
  font-size: 16px;
  color: #e0e0e0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Ocultar hero por defecto */
.profile-hero {
  display: none;
}

.link-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.footer {
  margin-top: auto;
  padding-top: 26px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
