/* ---------- Variables: cambia los colores aquí ---------- */
:root {
  --fondo: #0f1117;
  --tarjeta: #1a1d27;
  --tarjeta-hover: #232736;
  --borde: #2a2f3f;
  --texto: #f2f4f8;
  --texto-suave: #9aa3b5;

  --c-whatsapp: #25d366;
  --c-instagram: #e1306c;
  --c-telegram: #27a7e7;
  --c-correo: #ea4335;
  --c-facebook: #1877f2;
  --c-tiktok: #fe2c55;
  --c-threads: #555555;
  --c-discord: #5865f2;
  --c-messenger: #0084ff;
  --c-reddit: #ff4500;
  --c-steam: #2a475e;
  --c-linkedin: #0a66c2;
  --c-github: #484f58;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.contenedor {
  width: 100%;
  max-width: 480px;
}

/* ---------- Perfil ---------- */
.perfil {
  text-align: center;
  margin-bottom: 32px;
}

.avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--tarjeta);
  border: 2px solid var(--borde);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-iniciales {
  font-size: 2rem;
  font-weight: 700;
  color: var(--texto-suave);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perfil h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.descripcion {
  color: var(--texto-suave);
}

/* ---------- Tarjetas ---------- */
.tarjetas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tarjeta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tarjeta:hover,
.tarjeta:focus-visible {
  background: var(--tarjeta-hover);
  transform: translateY(-2px);
  border-color: var(--color);
  outline: none;
}

.icono {
  flex-shrink: 0;
  box-sizing: content-box;
  padding: 10px;
  border-radius: 12px;
  background: var(--color);
}

.texto {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.texto strong {
  font-size: 1.05rem;
}

.texto small {
  color: var(--texto-suave);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flecha {
  font-size: 1.8rem;
  color: var(--texto-suave);
}

/* Color propio de cada tarjeta */
.whatsapp  { --color: var(--c-whatsapp); }
.instagram { --color: var(--c-instagram); }
.telegram  { --color: var(--c-telegram); }
.correo    { --color: var(--c-correo); }
.facebook  { --color: var(--c-facebook); }
.tiktok    { --color: var(--c-tiktok); }
.threads   { --color: var(--c-threads); }
.discord   { --color: var(--c-discord); }
.messenger { --color: var(--c-messenger); }
.reddit    { --color: var(--c-reddit); }
.steam     { --color: var(--c-steam); }
.linkedin  { --color: var(--c-linkedin); }
.github    { --color: var(--c-github); }

/* Ícono hecho con texto (para LinkedIn) */
.icono-texto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

/* ---------- Enlace discreto a "más contactos" ---------- */
.enlace-mas {
  display: block;
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--texto-suave);
  text-decoration: none;
  transition: color 0.15s ease;
}

.enlace-mas:hover,
.enlace-mas:focus-visible {
  color: var(--texto);
  text-decoration: underline;
  outline: none;
}

/* ---------- Página "más contactos" ---------- */
.volver {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--texto-suave);
  text-decoration: none;
}

.volver:hover,
.volver:focus-visible {
  color: var(--texto);
  text-decoration: underline;
  outline: none;
}

.grupo {
  margin-bottom: 32px;
}

.grupo-titulo {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

/* ---------- Pie ---------- */
.pie {
  margin-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--texto-suave);
}