
/* CONTENEDOR */
.perfil{
  position:absolute;

  left: calc(50% - ((100% - 300px)/2) + 40px);
  top: 310px;

  transform: translateY(-50%);

  width:140px;
  height:140px;

  border-radius:50%;
  border:4px solid #fff;

  z-index:50;
}

/* 🔥 RECORTE REAL */
.perfil-media{
  width:100%;
  height:100%;
  border-radius:50%;
  overflow:hidden;
}

/* 🔥 CONTENIDO BIEN (SIN absolute) */
.perfil-media img,
.perfil-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* BOTÓN */
.perfil-mini{
  position:absolute;
  top:20px;
  right:10px;

  transform: translate(40%, -40%);
cursor: pointer;
  width:35px;
  height:35px;
  border-radius:50%;
  background:#000;

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:60 !important;
}

/* ICONO */
.perfil-mini img{
  width:20px;
  height:20px;
  object-fit:contain;
  filter: invert(1);
}




@media (max-width:768px){

  .perfil{
    width:90px;
    height:90px;
  z-index:150;
    top:210px; /* acorde a portada de 200px */

    left: calc(50% - ((100% - 50px)/2) + 20px);
  }

  .perfil-mini{
    width:28px;
    height:28px;

    top:10px;
    right:5px;
  }

  .perfil-mini img{
    width:14px;
    height:14px;
  }

}



@media (min-width: 769px) and (max-width: 1024px){

  .perfil{
    width:120px;
    height:120px;

    top:310px;

    left: calc(50% - ((100% - 100px)/2) + 30px);
  }

  .perfil-mini{
    width:32px;
    height:32px;

    top:15px;
    right:8px;
  }

  .perfil-mini img{
    width:16px;
    height:16px;
  }

}


