/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
}

/* =========================
   CABECERA
========================= */

.profile-header {
  width: 100%;
  padding: 24px 16px 0;
  position: relative;
}

/* ---------- CONTENEDOR RECTANGULAR PORTADA ---------- */
.cover {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: #f1f1f1;
  border-radius: 25px;
  padding: 40px 0 28px;
  overflow: hidden;

  min-height: 210px;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.295);
}

/* imagen portada */
.cover img {
  width: 50%;
  height: 80px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 0 auto; /* centrado real */
}


/* subtítulo */
.cover::after {
  content: "Audiovisuales | Gráfica | Ambientación";
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.3px;
}

/* ---------- PERFIL ---------- */
.profile-info {
  max-width: 920px;
  margin: -5px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 28px;
  position: relative;
  z-index: 10;
}

/* ---------- AVATAR ---------- */
.avatar {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  padding: 4px;

  flex-shrink: 0; /* evita deformación */

  background: linear-gradient(
    50deg,
    #ffffff,
    #ff00ea,
    #7dd6ff
  );
  background-size: 300% 300%;
  animation: historia 4s linear infinite;
}

/* animación tipo historia */
@keyframes historia {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* fondo blanco interior */
.avatar::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #f8f8f8;
  border-radius: 50%;
  z-index: 1;
}

/* imagen perfil */
.avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  display: block;
}

/* ---------- TEXTO PERFIL ---------- */
.profile-name {
  margin-top: 27px;
  margin-left: 20px;

  font-size: 1rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

/* ---------- LINKS SOCIALES ---------- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
}

/* iconos redes */
.social-icon {
  width: 11px;
  height: 11px;
  opacity: 0.85;
}
